WO2021129264A1 - 一种通信连接的方法及电子设备 - Google Patents

一种通信连接的方法及电子设备 Download PDF

Info

Publication number
WO2021129264A1
WO2021129264A1 PCT/CN2020/130384 CN2020130384W WO2021129264A1 WO 2021129264 A1 WO2021129264 A1 WO 2021129264A1 CN 2020130384 W CN2020130384 W CN 2020130384W WO 2021129264 A1 WO2021129264 A1 WO 2021129264A1
Authority
WO
WIPO (PCT)
Prior art keywords
profile
electronic device
imei
communication connection
esim
Prior art date
Application number
PCT/CN2020/130384
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 华为技术有限公司
Priority to EP20905753.8A priority Critical patent/EP4068902A4/en
Priority to CN202080090141.0A priority patent/CN114846905A/zh
Priority to US17/758,050 priority patent/US20230054451A1/en
Publication of WO2021129264A1 publication Critical patent/WO2021129264A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Definitions

  • This application relates to the field of electronic technology, and in particular to a communication connection method and electronic equipment.
  • SIM subscriber identification module
  • the embodiments of the present application provide a communication connection method and electronic device.
  • the electronic device can support the simultaneous establishment of multiple communication connections based on multiple profiles in one eSIM. Only one eSIM can be installed to achieve multiple cards and multiple standbys, thereby saving Cost, reduce the occupation of electronic equipment space.
  • the present application provides a communication connection method, which is applied to an electronic device with an eSIM.
  • the method includes: the electronic device establishes a first communication connection according to a first profile, and the eSIM includes the first profile; In the operation of establishing a communication connection by the second profile, the electronic device establishes a second communication connection according to the second profile without terminating the first communication connection.
  • the eSIM also includes the second profile, the first profile, and the The second profile is different.
  • the electronic device can respond to user operations without terminating the first communication connection established according to the first profile in an eSIM, and establish according to a second profile in the eSIM that is different from the first profile.
  • the second communication connection When there is no data to be sent and received on these two communication connections, wait on the two communication connections, and when there is data to be sent on the two communication connections, send and receive data on the corresponding communication connections.
  • Only one eSIM is needed to establish a communication connection based on multiple profiles in the eSIM and to be used in standby mode. Multiple SIM card slots or eSIMs are no longer needed to achieve multi-card and multi-standby, which saves costs and reduces the need for electronic equipment. Space occupation.
  • the method further includes: the electronic device updates the status information in the eSIM entry corresponding to the second profile to display as enabled .
  • the eSIM entry is a display form of the Profile on the display screen of the electronic device.
  • the eSIM entry may contain current status information of the Profile, and the status information may be one of two states: enabled and disabled.
  • the activation status of the corresponding profile has been enabled, and the deactivation status of the corresponding profile has been deactivated.
  • the status information is displayed, it is not limited to only displaying enabled/disabled in the text, and other texts with the same meaning can also be used, or a combination of graphics and graphics can be used.
  • the electronic device since the operation of establishing a communication connection according to the second profile is performed, and the electronic device establishes the second communication connection in response to this operation, in order to feed back the working status of the electronic device to the user, the electronic device may update the first
  • the status information in the eSIM entry corresponding to the profile is displayed as enabled.
  • the eSIM entry may also display information such as the operator described in the profile and the mobile phone number corresponding to the profile.
  • the method further includes: the electronic device displays first indication information, the first indication information is used to indicate the signal strength of the first communication connection; the electronic device displays second indication information , The second indication information is used to indicate the signal strength of the second communication connection.
  • the electronic device can monitor the signal strength of the communication connection and display it on the display screen by means of indication information.
  • the user it is convenient for the user to view the current signal strength of the established communication connection, so as to choose which one to use.
  • the communication connection is used for business processing.
  • the indication information may be a signal strength indicator.
  • the signal strength indicator is updated and displayed according to the strength of the monitored signal strength of the communication connection.
  • the electronic device establishing a second communication connection according to the second profile includes: the electronic device activates the second profile; the electronic device allocates IMEI to the second profile, and establishes the second profile. Correspondence between the unique identifier of the Profile and the allocated second IMEI; the electronic device establishes the second communication connection at least according to the second IMEI.
  • the electronic device may activate the second profile by writing the activation status field in the second profile as 1.
  • the electronic device allocates IMEI to the second profile
  • the corresponding relationship between the unique identifier of the second profile and the allocated second IMEI is added to the corresponding relationship between the profile and IMEI stored in the electronic device (for example, the Profile-IMEI data table)
  • the unique identifier of the profile is used to mark the corresponding profile, instead of using the hardware component SIM card slot or the corresponding relationship between eSIM and IMEI.
  • the electronic device can still find the unique identifier of the second profile through the corresponding relationship between the stored Profile and the IMEI, so as to obtain the storage from the eSIM based on the unique identifier of the second profile.
  • the second IMSI in the second profile of the eSIM sends the second IMEI and the second IMSI to the second base station, thereby establishing a second communication connection.
  • the expression form of the correspondence relationship between the stored Profile and the IMEI is not limited, and it can be a Profile-IMEI data table, a Profile-IMEI array, or a Profile-IMEI function.
  • the correspondence between the profile and the IMEI stores the correspondence between the unique identifier of the profile and the IMEI allocated for the corresponding profile.
  • an IMEI is assigned to the profile, and the corresponding relationship between the unique identifier of the profile and the IMEI is added to the stored corresponding relationship between the profile and the IMEI for subsequent use.
  • the correspondence between the profile and IMEI may not only include the correspondence between the unique identifier of the profile and the IMEI assigned to it, but also the correspondence between the unique identifier of the profile and the IMSI in the profile, that is, electronic After reading the IMSI in the Profile from the eSIM, the device may also add the correspondence between the IMSI and the Profile to the correspondence between the Profile and the IMEI to form the correspondence between the Profile, the IMSI, and the IMEI.
  • the electronic device may also store the corresponding relationship between the profile and the hardware component (SIM card slot or eSIM), where the unique identifier of the profile is used to identify the profile, and the SIM card slot or eSIM number is used to identify the hardware component.
  • SIM card slot or eSIM the hardware component
  • the electronic device may also store the corresponding relationship between the profile and the hardware component (SIM card slot or eSIM), where the unique identifier of the profile is used to identify the profile, and the SIM card slot or eSIM number is used to identify the hardware component.
  • the unique identifier of the profile may be an ICCID number or an ISP-D number.
  • the electronic device since the electronic device stores the corresponding relationship between Profile and IMEI, after the multiple profiles activated in eSIM are assigned IMEIs and recorded in the corresponding relationship, when a communication connection needs to be established The electronic device can obtain the unique identifier of the profile that needs to establish a communication connection according to the corresponding relationship between the profile and the IMEI, so as to obtain the IMSI in the profile from the eSIM for subsequent establishment of the communication connection.
  • the establishment of the first communication connection by the electronic device according to the first profile may be triggered by different situations:
  • the electronic device establishing the first communication connection according to the first profile includes: the electronic device determines that the first profile is activated; the electronic device determines that the first profile has been activated; Corresponding first IMEI; the electronic device sends the first IMEI and the first IMSI in the first profile to the first base station to establish the first communication connection.
  • the electronic device can determine that the first profile has been activated by reading the activation status field of each profile in the eSIM. Then, the corresponding relationship between the Profile and the IMEI stored in the electronic device (for example, the Profile-IMEI data table) is searched, and the first IMEI corresponding to the first profile in the corresponding relationship is determined.
  • the first IMEI is the IMEI assigned to the first profile by the electronic device when the first profile is activated, and after the assignment, the corresponding relationship between the first profile and the first IMEI is added to the stored corresponding relationship between the profile and the IMEI .
  • the electronic device may also obtain the first IMSI stored in the first profile from the eSIM, send the first IMEI and the first IMSI to the first base station, and establish the first communication connection after going through the network access authentication process.
  • the IMEI assigned to the activated profile can be accurately determined when the profile is loaded when the profile is turned on.
  • the unique identifier of the activated profile corresponding to the IMEI can be accurately determined, so that the IMSI in the determined profile can be accurately obtained from the eSIM, which is in an eSIM Activate multiple profiles at the same time, and establish communication connections according to the profiles to provide feasible solutions.
  • the electronic device establishing the first communication connection according to the first profile includes: the electronic device activates the first profile; the electronic device allocates IMEI to the first profile, and establishes the unique identifier of the first profile and the allocated information Correspondence of the first IMEI; the electronic device sends the first IMEI and the first IMSI in the first profile to the first base station to establish the first communication connection.
  • the electronic device activates the first profile, it allocates an IMEI to the first profile, and adds the corresponding relationship between the unique identifier of the first profile and the allocated first IMEI to the corresponding relationship between the profile and the IMEI stored in the electronic device in. Then, the electronic device can obtain the first IMSI stored in the first profile from the first profile, send the first IMEI and the first IMSI to the first base station, and establish the first communication connection after passing the network access authentication process.
  • the electronic device activating the second profile includes: the electronic device judging whether the number of enabled profiles is less than a preset threshold, and the preset threshold is the maximum that the electronic device can simultaneously activate and The preset threshold is a positive integer not less than 2; when it is determined that the number of enabled profiles is less than the preset threshold, the electronic device activates the second profile.
  • the activation operation is performed after determining that the number is less than, so as to prevent the electronic device from activating too many profiles when its ability to maintain communication connections is exceeded.
  • the operation of electronic equipment is stable.
  • an embodiment of the present application provides an electronic device, the electronic device includes: an eSIM, one or more processors, a memory, and a display screen; the memory is coupled with the one or more processors, and the memory is used for Store computer program code, the computer program code includes computer instructions, the one or more processors call the computer instructions to cause the electronic device to execute: establish a first communication connection according to a first profile, the eSIM includes the first profile; response In the operation of establishing a communication connection according to the second profile, the second communication connection is established according to the second profile without terminating the first communication connection.
  • the eSIM also includes the second profile, the first profile, and the second profile. Two profiles are different.
  • the electronic device provided by the second aspect without terminating the first communication connection established according to the first profile in an eSIM, can respond to user operations and establish a second profile according to a second profile in the eSIM that is different from the first profile.
  • Communication connection When there is no data to be sent and received on these two communication connections, wait on the two communication connections, and when there is data to be sent on the two communication connections, send and receive data on the corresponding communication connections. Only one eSIM is needed to establish a communication connection based on multiple profiles in the eSIM and to be used in standby mode. Multiple SIM card slots or eSIMs are no longer needed to achieve multi-card and multi-standby, which saves costs and reduces the need for electronic equipment. Space occupation.
  • the one or more processors are further configured to invoke the computer instruction to cause the electronic device to execute: update the status information in the eSIM entry corresponding to the second profile on the display screen Shown as enabled.
  • the one or more processors are further configured to invoke the computer instruction to cause the electronic device to execute: display the first instruction information on the display screen, and the first instruction information is used To indicate the signal strength of the first communication connection; display second indication information on the display screen, and the second indication information is used to indicate the signal strength of the second communication connection.
  • the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to execute: activate the second profile; allocate IMEI to the second profile, and establish a second profile The corresponding relationship between the unique identifier of the Profile and the allocated second IMEI; the second communication connection is established at least according to the second IMEI.
  • the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to execute: determine that the first profile is activated; determine the first profile corresponding to the first profile An IMEI; the first IMEI and the first IMSI in the first profile are sent to the first base station to establish the first communication connection.
  • the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to execute: activate the first profile; allocate IMEI to the first profile, and establish a first profile The corresponding relationship between the unique identifier of the profile and the allocated first IMEI; the first IMEI and the first IMSI in the first profile are sent to the first base station to establish the first communication connection.
  • the one or more processors are specifically configured to invoke the computer instruction to cause the electronic device to execute: determine whether the number of enabled profiles is less than a preset threshold, and the preset threshold is The electronic device can activate and stand-by profiles at most, and the preset threshold is a positive integer not less than 2. When it is determined that the number of activated profiles is less than the preset threshold, the electronic device activates the second profile.
  • the unique identification of the profile is an ICCID number or an ISP-D number.
  • the embodiments of the present application provide a chip, which is applied to an electronic device, the chip includes one or more processors, and the processor is used to invoke computer instructions to make the electronic device execute the first aspect and the first aspect.
  • the embodiments of the present application provide a computer program product containing instructions.
  • the computer program product is run on an electronic device, the electronic device is caused to execute the first aspect and any possible implementation manner in the first aspect. Described method.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which when the above instructions run on an electronic device, cause the electronic device to execute the first aspect and any possible implementation manner in the first aspect Described method.
  • the electronic equipment provided in the second aspect, the chip provided in the third aspect, the computer program product provided in the fourth aspect, and the computer storage medium provided in the fifth aspect are all used to implement the methods provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.
  • FIG. 1 is a schematic diagram of the software architecture of an eSIM provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of the relationship between a remote management platform and other communication roles provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of dual-card dual-standby data transmission according to an embodiment of the application.
  • FIG. 4 is a schematic diagram of three-card three-standby data transmission according to an embodiment of the application.
  • FIG. 5 is a schematic diagram of another dual-card dual-standby data transmission provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of another three-card three-standby data transmission provided by an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 8 is a schematic diagram of the allocation of a hardware transceiver module according to an embodiment of the application.
  • FIG. 9 is a schematic diagram of another hardware transceiver module allocation provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of another hardware transceiver module allocation provided by an embodiment of the application.
  • FIG. 11 is a schematic diagram of a software architecture provided by an embodiment of this application.
  • 12a-12f are schematic diagrams of a set of interfaces involved in the prior art provided by the embodiments of the application;
  • FIG. 13 is a schematic flowchart of a communication connection method provided by an embodiment of this application.
  • 14a-14c are schematic diagrams of a set of interfaces provided by an embodiment of the application.
  • 15a-15c are schematic diagrams of another set of interfaces provided by an embodiment of the application.
  • 16a-16c are schematic diagrams of another set of interfaces provided by an embodiment of the application.
  • Figures 17a-17d are schematic diagrams of another set of interfaces provided by an embodiment of the application.
  • 19a-19c are schematic diagrams of another set of interfaces provided by an embodiment of the application.
  • 20a-20d are schematic diagrams of another set of interfaces provided by an embodiment of the application.
  • Figures 21a-21d are schematic diagrams of another set of interfaces provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
  • the SIM card includes a microprocessor (CPU), program memory (ROM), working memory (RAM), data memory (EEPROM), and a serial communication unit.
  • CPU microprocessor
  • ROM program memory
  • RAM working memory
  • EEPROM electrically erasable programmable read-only memory
  • serial communication unit In the process of using the SIM card, the electronic device actually sends a command to the SIM card, and the SIM card executes and feeds back the result according to the standard specification.
  • the data stored in the SIM card can be divided into four categories:
  • Temporary data refers to network-related temporary data, such as Local Area Identity (LAI), Temporary Mobile Subscriber Identity (TMSI), and public telephone network codes forbidden to access, etc.;
  • LAI Local Area Identity
  • TMSI Temporary Mobile Subscriber Identity
  • Business codes such as personal identification number (PIN), unlock code (PUK), billing rate, etc.;
  • the data stored in one SIM card is collectively referred to as a profile.
  • IMSI is an identification code that is used to distinguish different users in a cellular network and is not repeated in all cellular networks.
  • IMEI is commonly referred to as the mobile phone serial number and mobile phone "serial number", which is used to identify each independent mobile phone and other mobile communication equipment in the mobile phone network, which is equivalent to the mobile phone's ID card.
  • IMEI is allocated by the equipment manufacturer according to the specification, and is stored in the memory of the electronic device when the electronic device leaves the factory.
  • the electronic device sends the IMSI and the IMEI in the memory to the mobile network;
  • the mobile network generates a set of random numbers (RADN) and sends it to the electronic device;
  • the electronic device sends the RADN to the SIM card
  • the SIM card calculates the result 1 (SENS-1) according to RADN and Ki, and sends it to the electronic device;
  • the electronic device sends SENS-1 to the mobile network
  • the mobile network finds the Ki corresponding to this IMSI from the database, and uses the same RAND and the same algorithm to calculate the result 2 (SENS-2), and compares whether SENS-1 is the same as SENS-2;
  • the mobile network confirms that the card is a legal card issued by itself, the authentication is successful, and it is allowed to log in. Otherwise, the authentication fails.
  • the electronic device when the mobile network sends RAND to the electronic device, the electronic device will also allow the SIM card to calculate another key (Kc) for RAND and Ki for the entire communication encryption use.
  • Kc another key
  • eSIM also known as Embedded-Universal Integrated Circuit Card (eUICC).
  • eUICC Embedded-Universal Integrated Circuit Card
  • the eSIM is directly fixed and installed in the electronic device. It is programmable and supports remote configuration via over-the-air card writing (OTA) to realize the download, installation, activation, deactivation and deletion of the operator's profile.
  • OTA over-the-air card writing
  • One eSIM can download multiple profiles, which enables flexible selection of multiple operators and different card numbers.
  • the eSIM can also contain a profile that is preset when the electronic device leaves the factory.
  • the Profile contains user identification information, that is, user identity, authentication parameters, operator customized parameters and other information and service subscription information, which is similar to the data contained in a traditional SIM card.
  • Fig. 1 is a logical function architecture diagram of an exemplary eSIM provided by an embodiment of the application.
  • the eUICC operating system on the basic platform provides the basic functions of a common embedded SIM card operating system.
  • ⁇ Platform management services are used to provide platform management functions, retrieve ISD-P general information, and maintain policy execution mechanisms through policy control.
  • the telecommunications framework is used to provide standardized network authentication algorithms for Profile.
  • the algorithm is called when the network access application (NAA) of the Profile stored in the ISD-P performs network access authentication.
  • NAA network access application
  • ⁇ ECASD on the basic platform is the control security domain of eUICC.
  • ⁇ ISD-P is the Profile security domain, which represents the on-chip representative of remote management platform data preparation (SM-DP) for off-chip entities.
  • SM-DP remote management platform data preparation
  • ISD-Ps there can be multiple ISD-Ps in an eSIM.
  • ⁇ ISD-R is the root security domain, which represents the remote management platform data routing (SM-SR) of the off-chip entity in the chip.
  • SM-SR remote management platform data routing
  • ⁇ MNO-SD is the operator's security domain.
  • Fig. 2 is a schematic diagram of the relationship between an exemplary remote management platform provided by an embodiment of the application and other communication roles.
  • the remote management platform is used to obtain data from the mobile network operator system and establish a secure transmission channel with the eSIM.
  • the remote management platform can be interconnected with multiple operators, and can also be interconnected with multiple remote management platforms.
  • Data related to the operator and eSIM manufacturer is generated through the remote management platform to generate a complete operator data file Profile, and then downloaded to the eSIM via the OTA interface of the operator through the OTA method.
  • the remote management platform includes two important modules:
  • SM-DP Data preparation
  • SM-SR Data routing
  • the RSP server is a specific communication server between the electronic device and the remote management platform.
  • LPA is used to manage eSIM on electronic devices and mainly includes the following functions:
  • the mobile phone is called a dual-card single-standby system.
  • the dual-card single-standby system only has a set of hardware transceiver modules (baseband chip, radio frequency chip and antenna) and a set of protocol stacks. In the dual-card single-standby system, there is only one SIM card that is actually useful at the same time. The SIM card that is not activated is in the off state and cannot receive information such as calls.
  • the use of time division multiplexing technology reduces the time Divide into small enough resources, and assign multiple profiles to do business according to business needs to maximize the use of antenna resources. In this way, multiple profiles on the electronic device can be in standby at the same time, receiving calls and other information or performing data services. deal with.
  • FIG. 3 a schematic diagram of dual-card dual-standby data transmission according to the embodiment of this application.
  • the data that needs to be sent on the communication connection established according to Profile1 and Profile2 can be transmitted through time division multiplexing technology. All are sent through this set of hardware transceiver modules. Since the time division is small enough, from a relatively long time dimension, it can be considered that data is sent simultaneously on the communication connection established according to the two profiles.
  • Profile1 and Profile2 can be stored in the same eSIM or in different eSIMs.
  • a set of hardware transceiver modules can maintain communication connections established according to more profiles and send and receive data, which is not limited here.
  • FIG. 4 a schematic diagram of three-card three-standby data transmission according to an embodiment of this application.
  • the communication connections established according to Profile1, Profile2, and Profile3 can be transmitted.
  • the data is sent out through this set of hardware transceiver modules.
  • Profile1, Profile2 and Profile3 can be stored in the same eSIM or in different eSIMs
  • FIG. 5 another schematic diagram of dual-card dual-standby data transmission according to an embodiment of this application, at this time, the electronic device has two sets of hardware transceiver modules.
  • hardware transceiver module 1 is responsible for maintaining the communication connection established according to Profile1 and sending and receiving data
  • hardware transceiver module 2 is responsible for maintaining the communication connection established according to Profile2 and sending and receiving data.
  • the hardware transceiver module 1 is responsible for maintaining the communication connection established according to Profile1 and Profile2, and sending and receiving data.
  • the hardware transceiver module 2 is responsible for maintaining the communication connection established according to the Profile 3 and sending and receiving data. Therefore, the hardware transceiver module 1 uses the time division multiplexing technology to send the data that needs to be sent on the communication connection corresponding to Profile1 and Profile2 through the hardware transceiver module 1, and the hardware transceiver module 2 sends the data that needs to be sent on the communication connection corresponding to Profile3. It is sent out through the hardware transceiver module 2.
  • the multiple profiles activated at the same time in the prior art all originate from multiple different hardware components.
  • the two profiles that are activated at the same time may be a profile that activates a SIM card in a SIM card slot and a profile in an eSIM.
  • the three profiles that are enabled at the same time are the profiles that enable the SIM card in one SIM card slot and one profile of each of the two eSIMs.
  • multiple profiles in the same eSIM chip can be activated at the same time. Therefore, the multiple profiles activated at the same time can come from the same hardware component. For example, two profiles that are activated at the same time can be two different profiles in the same eSIM, and three profiles that are activated at the same time can be three different profiles in the same eSIM.
  • the maximum number of profiles that can be simultaneously activated and standby for an electronic device is a fixed value when the electronic device leaves the factory. It is related to the number of hardware transceiver modules of the electronic device and the degree to which the electronic device uses the time division multiplexing technology on a set of hardware transceiver modules (depending on the content and number of the protocol stack).
  • an electronic device only has a set of hardware transceiver modules, but according to the deployment of its related protocol stack, the hardware transceiver modules can maintain at most 3 communication connections at the same time, it is considered that the electronic device can be enabled and standby at the same time.
  • the number of profiles is 3.
  • an electronic device has two sets of hardware transceiver modules, but according to the deployment of its related protocol stack, one set of hardware transceiver modules can only maintain one communication connection at the same time, and the other set of hardware transceiver modules can only maintain two at the same time. If there are two communication connections, it is considered that the maximum number of profiles that the electronic device can be activated and standby at the same time is only 3.
  • the electronic device manufacturer will preset a corresponding number of IMEIs in the electronic device.
  • the maximum number of profiles that the electronic device can be activated and standby at the same time is referred to as a preset threshold.
  • a preset threshold the maximum number of profiles that the electronic device can be activated and standby at the same time.
  • FIG. 7 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, Subscriber identification module (subscriber identification module, SIM) card interface 195 and eSIM196, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention 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 split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • receiver/transmitter UART
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • eUICC embedded Embedded-Universal Integrated Circuit Card
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the SIM interface can be used to communicate with the SIM card interface 195 to realize the function of transmitting data to the SIM card or reading data in the SIM card.
  • the eUICC interface can be used to communicate with eSIM196 to realize the function of sending data to eSIM or reading data in eSIM.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • emitting diode AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application required for a function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.) and so on.
  • the storage data area can store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the eSIM196 is used to store Profile.
  • the electronic device 100 may support 1 or N eSIMs, and N is a positive integer greater than 1.
  • the same eSIM196 can store multiple profiles at the same time. The multiple profiles stored can belong to the same operator or different operators.
  • the electronic device 100 interacts with the network through the profile stored in the eSIM to implement functions such as call and data communication.
  • the eSIM can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the mobile communication module 150 of the electronic device 100 in the embodiment of the present application includes a different number of hardware transceiver modules, multiple profiles are enabled.
  • the electronic device 100 allocates IMEI to the profile and the process of allocating the hardware transceiver module for the communication connection that needs to be established is described.
  • the hardware transceiver module in this application file can be a radio frequency receiver. And sending circuit.
  • the internal memory 121 stores IMEIs to be allocated corresponding to the maximum number of profiles that can be activated and standby at the same time by the electronic device.
  • the internal memory 121 also stores two sets of correspondences: one set of correspondences is the correspondence between the IMEI assigned to the profile when the profile is activated. For ease of description, it is hereinafter referred to as the “Profile-IMEI correspondence”; the other set of correspondences In order to allocate the configuration of the hardware transceiver module, that is, the corresponding relationship between the IMEI and the hardware transceiver module, for ease of description, the following is referred to as the IMEI-transceiver module corresponding relationship.
  • the manifestation of the two sets of correspondences in the internal memory 121 may be in various forms, such as data tables, arrays, functions, etc., which are not limited here.
  • these corresponding relationships can be represented in one place, or can be stored in multiple places, which is not limited here.
  • the correspondence between Profile and IMEI may not be fixed, but may be changed. For example, when Profile1 is activated, profile1 and IMEI2 are assigned to correspond; then the user deactivates Profile1 to change Profile1 from activated to inactive, and then activates Profile2 to assign Profile2 and IMEI2 to correspond. After the correspondence between Profile and IMEI is changed, the correspondence between Profile and IMEI stored in the memory is updated.
  • the corresponding relationship between the IMEI and the hardware transceiver module may not be fixed, but may change. After the corresponding relationship between the IMEI and the hardware transceiver module is changed, the IMEI-transceiver module corresponding relationship stored in the memory is updated.
  • the data table storing the Profile-IMEI correspondence relationship is called the Profile-IMEI data table:
  • IMEI1, IMEI2, and IMEI3 there are 3 IMEIs built in the internal memory 121, namely: IMEI1, IMEI2, and IMEI3.
  • the electronic device 100 has a SIM card interface 195 into which a SIM card is inserted, and the card contains Profile1.
  • eSIM196 in the electronic device 100, and three profiles are downloaded and installed in the eSIM196, namely Profile2, Profile3, and Profile4. Among them, Profile2 has been activated.
  • Table 1 below is an example of a Profile-IMEI data table in the internal memory 121 at this time, in which the correspondence between the unique identifier of Profile2 and the IMEI2 allocated to it has been stored:
  • IMEI3 Randomly select one of IMEI1 and IMEI3 that have not yet been allocated (for example, IMEI3), allocate it to the Profile3, and record it in the Profile-IMEI data table.
  • Table 2 below is an example of a Profile-IMEI data table in the internal memory 121 at this time:
  • the IMEIs to be allocated are all stored in a stack, following the last-in first-out principle. If IMEI3 is the latest IMEI released after deactivation of an activated Profile, IMEI3 is stored at the top of the stack. At this time Profile3 is activated, IMEI3 is the first to pop out of the stack, is allocated to Profile3, and is recorded in the Profile-IMEI data table. An example of this can be shown in Table 2 above.
  • the unique identifier of the profile The most recently assigned IMEI Unique ID of Profile1 IMEI1 Unique ID of Profile2 IMEI2 Unique ID of Profile3 IMEI3 Unique ID of Profile4 IMEI1
  • the electronic device looks up the recent allocation history table and obtains that the IMEI allocated during the last Profile3 activation is IMEI3. The electronic device determines that IMEI3 is not currently allocated, allocates IMEI3 to the activated Profile3, and records it in Profile-IMEI Data sheet.
  • An example of its manifestation can be shown in Table 2 above.
  • the most recently allocated IMEI of Profile3 recorded in the most recent allocation history table is currently allocated. For example, if the most recent allocation history table is as shown in Table 5 below:
  • the unique identifier of the profile The most recently assigned IMEI Unique ID of Profile1 IMEI1 Unique ID of Profile2 IMEI2 Unique ID of Profile3 IMEI2 Unique ID of Profile4 IMEI3
  • the most recent IMEI assigned by Profile2 is IMEI2, and IMEI2 is currently assigned to the activated Profile2.
  • the electronic device can use other assignment methods (such as one of the above-mentioned assignment methods) to assign an unassigned IMEI is allocated to Profile2, and the latest allocation history table is updated.
  • the electronic device determines that the IMEI2 allocated by Profile3 has been allocated, it uses random allocation to allocate IMIE3 to the activated Profile3, and records it in the Profile-IMEI data table.
  • An example of this can be shown in Table 2 above.
  • the unique identifier of the profile The most recently assigned IMEI Unique ID of Profile1 IMEI1 Unique ID of Profile2 IMEI2 Unique ID of Profile3 IMEI3 Unique ID of Profile4 IMEI3
  • the electronic device will not clear the IMEI record in the Profile-IMEI data table, but will only clear the profile's unique identification record.
  • Table 7 below is an example of a Profile-IMEI data table in the internal memory 121 at this time:
  • Profile1, Profile2, and Profile3 Prior to this, Profile1, Profile2, and Profile3 were activated at the same time and were assigned IMEI1, IMEI2, and IMEI3 respectively. After Profile1 and Profile3 are deactivated, the unique identifiers of Profile1 and Profile3 are deleted in the Profile-IMEI data table, but IMEI1 and IMEI3 are not deleted. When a new Profile3 is activated, it is determined that there are empty values in the Profile-IMEI data table, and the unique identifier of Profile3 is directly recorded in the corresponding position of IMEI1 in order to obtain one of the Profile-IMEI data tables shown in Table 8 below.
  • Table 8 Example:
  • the electronic device may also adopt other allocation methods according to preset settings, such as priority allocation with the most historical matching times, first-in-last-out order allocation, etc., which are not limited here.
  • the Profile-IMEI data table is not limited to recording the correspondence between the IMEI and the unique identifier of the Profile, and it can also record the correspondence between more data to facilitate subsequent processes.
  • the direct call may also be the corresponding relationship between the IMEI, the unique identifier of the Profile, and the IMSI.
  • Table 9 below is an example of the Profile-IMEI data table at this time, in which the unique identifier of Profile2 that has been stored, the correspondence between IMSI2 in Profile2 and the IMEI2 allocated to it:
  • the IMEI-transceiver module data table corresponding to the transceiver module is called IMEI-transceiver module data table:
  • FIG. 8 it is a schematic diagram of allocating hardware transceiver modules in this embodiment of the application.
  • Profile1, Profile2, and Profile3 in the SIM inserted in the SIM card interface 195 are all enabled.
  • the processor 110 uses the information stored in the internal memory 121
  • the corresponding relationship in the Profile-IMEI data table is assigned IMEI, and according to the default configuration stored in the internal memory 121 (the default configuration can be expressed as the IMEI-transceiver module data table shown in FIG.
  • the processor 110 will move Within the capability range of the only set of hardware transceiver module 1 in the communication module 150, the hardware transceiver module 1 is allocated to establish, maintain, and transmit and receive communication connections, and Profile1, Profile2, and Profile3 perform time-sharing communication connections.
  • Case 2 There are N sets of hardware transceiver modules and the maximum number of profiles that can be activated and standby at the same time for the electronic device is N
  • each enabled profile will be assigned to a separate hardware transceiver module.
  • the IMEI-transceiving module data table stored in the internal memory 121 has a corresponding relationship between N IMEIs and N hardware transceiving modules.
  • the processor 110 When a profile is enabled and activated, the processor 110 will assign IMEI to the profile. According to the IMEI assigned to the profile, the processor 110 will assign the corresponding hardware according to the corresponding relationship between the IMEI stored in the internal memory 121 and the hardware transceiver module
  • the transceiver module establishes, maintains, and transmits and receives data for the Profle.
  • FIG. 9 another schematic diagram of allocating hardware transceiver modules in this embodiment of the application. Take the electronic device with 3 sets of hardware transceiver modules and the maximum number of profiles that can be activated and standby at the same time for the electronic device is 3 as an example. At this time, there are 3 IMEIs (IMEI1, IMEI2, IMEI3) and 3 hardware built in the internal memory 121. Correspondence between the transceiver modules (hardware transceiver module 1, hardware transceiver module 2, hardware transceiver module 3).
  • the internal memory 121 stores The hardware transceiver module corresponding to IMEI2 is the hardware transceiver module 2. Therefore, the hardware transceiver module 2 is allocated to establish, maintain, and transmit and receive data for the Profle1.
  • the hardware transceiver module corresponding to IMEI1 stored in the internal memory 121 is the hardware transceiver module 1. Therefore, the hardware transceiver module 1 is allocated for the communication connection of the Profile2. Establish, maintain and send and receive data.
  • the hardware transceiver module corresponding to IMEI1 stored in the internal memory 121 is the hardware transceiver module 3. Therefore, the hardware transceiver module 3 is allocated for the communication connection of the Profile3. Establish, maintain and send and receive data.
  • Case 3 There are N sets of hardware transceiver modules and the maximum number of profiles that can be activated and standby at the same time for the electronic device is greater than N
  • each set of hardware transceiver modules has the maximum number of communication connections that can be maintained at the same time.
  • the electronic device 100 can allow hardware transceiver modules that are currently capable of maintaining more communication connections to establish the communication connection according to the capabilities of each hardware transceiver module and the current status of each hardware transceiver module.
  • the pre-configured hardware transceiver module usage rules there can be many ways to allocate the hardware transceiver module to establish the communication connection, such as allocation according to the idle sequence, random allocation, historical record allocation, etc.
  • allocation methods please refer to the profile allocation IMEI The various methods of, are not repeated here, and the specific allocation method used is not limited here.
  • the hardware transceiver modules allocated to establish a communication connection are exemplarily described.
  • the hardware transceiver module 1 supports the establishment and maintenance of one communication connection
  • the hardware transceiver module 2 supports the establishment and maintenance of two communication connections.
  • the hardware transceiver module assigned to IMEI1 is the hardware transceiver module 1. Therefore, the hardware transceiver module 1 is used to establish, maintain, and send and receive data for this Profle1.
  • the hardware transceiver module 2 is used to establish, maintain, and send and receive data for the Profle2.
  • the hardware transceiver module 2 is used to establish, maintain, and transmit and receive data for the Profle3.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100.
  • FIG. 11 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include SIM card management and/or eSIM management, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS and other applications (also called application).
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a local profile assistant (LPA), etc.
  • a window manager may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a local profile assistant (LPA), etc.
  • LPA local profile assistant
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialogue interface. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • the LPA is used to provide the electronic device 100 with the operation function of the profile stored in the eSIM196.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), two-dimensional graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem, and provides a combination of two-dimensional (2-Dimensional, 2D) and three-dimensional (3-Dimensional, 3D) layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, sensor driver, and virtual card driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or videos.
  • an electronic device supports dual standby and has an eSIM storing multiple profiles and a SIM card slot into which a SIM card is inserted.
  • One profile in eSIM has been activated.
  • the user's operation process on the electronic device can refer to Figure 12a, Figure 12b, Figure 12c, Figure 12d, Figure 12e, Figure 12f .
  • the electronic device displays a user interface 51, where the user interface 51 includes a status bar 511 and a setting area 512.
  • the setting area 512 contains multiple setting items, and the multiple setting items include: SIM card management 513 and eSIM management 514.
  • the electronic device displays the user interface 52 shown in FIG. 12b.
  • a SIM card entry 521 is displayed in the SIM card management area of the user interface 52, and the SIM card entry shows that the current status of the SIM card is disabled.
  • the electronic device displays the user interface 53 as shown in FIG. 12d.
  • Four eSIM entries are displayed in the eSIM management area of the user interface 53, which respectively correspond to the four profiles downloaded in the eSIM of the electronic device.
  • the profile corresponding to the eSIM entry 531 is in the enabled state, and the profiles corresponding to the other three eSIM entries are all in the disabled state.
  • the electronic device displays the user interface 54 as shown in FIG. 12e.
  • the user interface 54 includes multiple operation controls for the Profile corresponding to the eSIM entry 532, including a control 541 for enabling or not. The whether to enable control 541 is currently in a closed state.
  • the electronic device When it is detected whether the click operation on the control 541 is enabled in the user interface 54 as shown in FIG. 12e, in response to the operation, as shown in FIG. 12f, the electronic device will pop up a prompt box 542 on the user interface 54.
  • the prompt box 542 displays a text message: “One eSIM can only activate one card, please disable the activated card first” and the confirmation control 543.
  • the electronic device When it is detected that the click operation on the control 543 is determined in the prompt box 542 as shown in FIG. 12f, in response to the operation, the electronic device returns to displaying the user interface 53 as shown in FIG. 12d.
  • the profile corresponding to eSIM entry 532 cannot be activated and remains in a disabled state.
  • the electronic device can also accept the user's basis when the first communication connection is established according to the first profile in an eSIM and the first communication connection is not terminated.
  • the operation of establishing a communication connection with the second profile in the eSIM establishes a second communication connection according to the second profile, so that the electronic device is on standby at the same time on the first profile and the second profile in the eSIM.
  • the electronic device can support one In the eSIM, multiple profiles are activated for use at the same time, and multiple cards and multiple standbys can be realized by installing only one eSIM, thereby saving costs and reducing the space occupation of electronic equipment.
  • Application scenario 1 In response to the above problems, the embodiment of the application provides a communication connection method as shown in FIG. 13, which can activate the second profile in the first eSIM when the first profile in the first eSIM is activated, so that The electronic device simultaneously establishes multiple communication connections according to multiple profiles in one eSIM, and waits on the multiple communication connections.
  • the communication connection method includes steps S601 to S625.
  • S601-S607 introduce the profile state loading process
  • S608-S618 introduce the processing process of activating the new second profile
  • S619-S625 introduce the processing process of deactivating the first profile.
  • the electronic device responds to the user's operation and turns on;
  • the first eSIM may be the only eSIM in the electronic device, or may be one of multiple eSIMs in the electronic device, which is not limited here.
  • the Profile in the first eSIM may be pre-installed in the eSIM or downloaded from the remote management platform, which is not limited here.
  • the status indicator on the eSIM entry in the eSIM management area can generally be used on the electronic device to display the status information of the profile corresponding to the eSIM entry in the user interface.
  • the enabled state corresponds to that the profile has been activated.
  • the deactivated state corresponds to that the profile has been deactivated or has been downloaded and installed and has not been activated yet.
  • the eSIM entry corresponding to the profile can also display other related information of the profile, such as the operator to which the profile belongs, the mobile phone number corresponding to the profile, etc.
  • the place is not limited.
  • the electronic device can read the downloaded and installed Profile information in the eSIM through the LPA, and determine the current activation state of each profile through the state field (for example, the Profilestate field) in each profile file.
  • the electronic device determines through LPA that 4 Profiles have been downloaded and installed in the first eSIM: Profile1, Profile2, Profile3, and Profile4, and read the values of the Profilestate fields of the 4 Profiles respectively, and obtain the Profilestate field value of Profile1 If the value of the Profilestate field of Profile2, Profile3, and Profile4 is disabled(0), the electronic device determines that Profile1 is activated, and Profile2, Profile3, and Profile4 are not activated. Furthermore, on the status indicator of the eSIM entry corresponding to each Profile, it is shown that the status of Profile1 is enabled, and the status of Profile2, Profile3, and Profile4 are disabled, and it is determined that Profile1 is activated.
  • the electronic device reads the first IMSI from the first profile of the first eSIM.
  • the first profile of the first eSIM contains identification information such as IMSI and Ki distributed by the operator. After determining that the first profile is activated, the electronic device can read the first IMSI of the first profile in the first eSIM through LPA. The first IMSI is used for the mobile network to uniquely identify the first profile during the communication process.
  • S604 The electronic device searches for the corresponding relationship between Profile-IMEI and obtains the first IMEI allocated to the first profile.
  • the electronic device When a profile is activated in the electronic device, the electronic device will assign IMEI to the activated Profile, and then record the corresponding relationship between the assigned IMEI and the activated Profile in the Profile-IMEI correspondence and store it in the internal memory.
  • IMEI the electronic device will assign IMEI to the activated Profile, and then record the corresponding relationship between the assigned IMEI and the activated Profile in the Profile-IMEI correspondence and store it in the internal memory.
  • the profile is represented by the unique identifier of the profile.
  • Which unique identifier is used to uniquely determine a profile is determined by the remote service provider, mobile network operator, eSIM manufacturer, and electronic device manufacturer of the profile.
  • the Integrate circuit card identity (ICCID) can be used as the unique identification of the profile; the ISD-P number can also be used as the unique identification of the profile; the IMSI in the profile can also be used to pass certain encryption
  • the identifier calculated by the algorithm is used as the unique identifier of the profile, and it can also be other types of unique identifiers negotiated by each service provider, which is not limited here.
  • the correspondence between IMEI and the unique identifier of the profile can be expressed in the form of a data table, or in the form of an array, or expressed by other types of correspondence relations, as long as the unique identity of the profile can be recorded
  • the corresponding relationship with the IMEI assigned to it enables the electronic device to find the IMEI assigned to it according to the unique identifier of the profile, which is not limited here.
  • the electronic device finds the corresponding relationship between Profile-IMEI and obtains [011472001975695, 8986031874876304205], then the electronic device determines that the IMEI assigned to the profile is 011472001975695.
  • the electronic device sends the first IMSI and the first IMEI to the first base station, and establishes a first communication connection according to the first profile.
  • the electronic device sends the read first IMSI and the searched first IMEI to the first base station for network access authentication, and establishes the first communication link according to the first profile.
  • the specific network access authentication process please refer to the above-mentioned network access authentication process using the SIM card, which will not be repeated here.
  • the first base station is a base station subordinate to the operator of the first profile. If there are multiple profiles in the electronic device, and the multiple profiles belong to different operators, the electronic device may need to communicate with base stations under different operators, and the base stations under different operators may not be the same base station. In some cases, if relevant operators have reached an agreement to share base stations, it may also be base stations belonging to different operators, which is not limited here.
  • the electronic device monitors the signal strength of the first communication connection.
  • the electronic device After establishing the first communication connection according to the first profile, the electronic device monitors the signal strength of the first communication connection. If there is data to be sent and received on the first communication connection, then the data is sent and received; if there is no data to be sent or received on the first communication connection for a period of time, the first communication connection enters a standby state.
  • the standby state indicates whether the low power consumption of the electronic device monitors whether there is data to be sent and received on the first communication connection.
  • the electronic device displays the signal strength indicator of the first communication connection.
  • the electronic device After the electronic device monitors the signal strength of the first communication connection, it will display corresponding first indication information for indicating the signal strength on the display screen in real time.
  • An expression form of the first indication information may be a signal strength indicator.
  • GUI graphical user interface
  • FIG. 14a exemplarily shows an exemplary user interface 71 on the electronic device 100 for displaying an application program installed by the electronic device 100.
  • the user interface 71 may include: a status bar 701, a calendar indicator 702, a weather indicator 703, a tray 704 with icons of commonly used applications, a navigation bar 705, and other application icons. among them:
  • the status bar 701 may include: one or more signal strength indicators 701A for mobile communication signals (also called cellular signals), and one or more signal strength indicators 701B for wireless fidelity (Wi-Fi) signals , Battery status indicator 701C, time indicator 701D.
  • signal strength indicators 701A for mobile communication signals (also called cellular signals)
  • signal strength indicators 701B for wireless fidelity (Wi-Fi) signals
  • Battery status indicator 701C for wireless fidelity (Wi-Fi) signals
  • time indicator 701D time indicator
  • the calendar indicator 702 can be used to indicate the current time, such as date, day of the week, hour and minute information, and so on.
  • the weather indicator 703 can be used to indicate the type of weather, such as cloudy to clear, light rain, etc., and can also be used to indicate information such as temperature.
  • the tray 704 with icons of commonly used application programs can display: a phone icon 704A, a contact icon 704B, a short message icon 704C, and a camera icon 704D.
  • the navigation bar 705 may include system navigation keys such as a return key 705A, a home screen key 705B, and a multi-task key 705C.
  • system navigation keys such as a return key 705A, a home screen key 705B, and a multi-task key 705C.
  • the electronic device 100 may display the previous page of the current page.
  • the electronic device 100 may display the home interface.
  • the electronic device 100 may display the task recently opened by the user.
  • the naming of each navigation key can also be other, which is not limited in this application. Not limited to virtual keys, each navigation key in the navigation bar 705 can also be implemented as a physical key.
  • the user interface 71 may also include a page indicator 716.
  • Other application icons may be distributed on multiple pages, and the page indicator 716 may be used to indicate which application in which page the user is currently browsing. The user can swipe the area of other application icons left and right to browse application icons in other pages.
  • the user interface 71 exemplarily shown in FIG. 14a may be a home screen.
  • the electronic device 100 may also include a physical home screen key.
  • the home screen key can be used to receive instructions from the user and return the currently displayed UI to the home interface, so that it is convenient for the user to view the home screen at any time.
  • the above instruction can be an operation instruction for the user to press the home screen key once, or an operation instruction for the user to press the home screen key twice in a short period of time, or the user to press and hold the home screen key for a predetermined period of time. Operation instructions.
  • the home screen key can also be integrated with a fingerprint recognizer, so that when the home screen key is pressed, fingerprints are collected and recognized accordingly.
  • FIG. 14a only exemplarily shows the user interface on the electronic device 100, and should not constitute a limitation to the embodiment of the present application.
  • the user interface 72 exemplarily shown in FIG. 14b may be an implementation of the "setting interface".
  • the user interface 72 may be provided by the "Settings” application.
  • the “settings” application is an application installed on electronic devices such as smart phones, tablet computers and the like for setting various functions of the electronic device, and the name of the application is not limited in the embodiment of the present application.
  • the user interface 72 may be a user interface opened by the user clicking the setting icon 715 in the user interface 71 shown in FIG. 14a.
  • the user interface 72 may include: a status bar 721, a title bar 722, and an area 723 including one or more setting items.
  • the title bar 722 may include a current page indicator 722A, and the current page indicator 722A may be used to indicate the current page.
  • the text information "settings" may be used to indicate that the current page is used to display one or more setting items.
  • the current page indicator 722A may also be an icon.
  • the area 723 includes one or more setting items, and the one or more setting items may include: flight mode setting items, WIFI setting items, Bluetooth setting items, eSIM management setting items 723A, mobile network setting items, do not disturb mode setting items, Display and brightness settings, Huawei account settings, sound settings, privacy settings, etc.
  • the manifestation of each setting item may include icons and/or text, which is not limited in this application.
  • Each setting item can be used to monitor an operation (such as a touch operation) that triggers the display of the setting content of the corresponding setting item, and in response to the operation, the electronic device can open a user interface for displaying the setting content of the corresponding setting item.
  • an operation (such as a touch operation) on the eSIM management setting item 723A in the user interface 72 as shown in FIG. 14b is detected, and the electronic device may display the user interface 73 as shown in FIG. 14c.
  • the user interface 73 is used to display the corresponding content of the eSIM management setting item.
  • the user interface 73 may include: a status bar 731, a title bar 732, and an eSIM management area 733.
  • the title bar 732 may include: a return key 732A and a current page indicator 732B.
  • the return key 732A is an APP-level return key, which can be used to return to the upper level of the menu.
  • the upper level page of the user interface 73 may be the user interface 72 as shown in FIG. 14b.
  • the current page indicator 732B can be used to indicate the current page.
  • the text information "eSIM management" can be used to indicate that the current page is used to display the corresponding content of the eSIM management setting items.
  • the current page indicator 732B is not limited to text information.
  • the current page indicator 732B can also be an icon.
  • the eSIM management area 733 can display the eSIM entries corresponding to the downloaded and installed Profile in the eSIM and add an eSIM control 733E.
  • the addition of the eSIM control 733E can be used to communicate with the remote RSP server when a user operation (such as a touch operation) is received, and the profile can be downloaded.
  • the electronic device determines that 4 Profiles have been downloaded and installed in the eSIM: Profile1, Profile2, Profile3, and Profile4. Then four eSIM entries are correspondingly displayed in the eSIM management area 733 in the user interface 73 shown in FIG. 14c: eSIM entry 733A, eSIM entry 733B, eSIM entry 733C, and eSIM entry 733D.
  • Each eSIM entry may include the icon, name, mobile phone number, profile status indicator, and entry setting control of the network operator to which the corresponding profile belongs.
  • the electronic device When the electronic device determines that Profile1 is activated, and Profile2, Profile3, and Profile4 are not activated, it can update the Profile status indicator 733A1 in the eSIM entry 733A corresponding to Profile1 to display as enabled, and the eSIM entries 733B, 733C, and 733C corresponding to other inactive Profile1.
  • the Profile status indicator in the 733D is shown as disabled.
  • step S607 if a communication connection is established according to Profile1, after the signal is detected, the signal strength indicator 701A of the communication connection can be displayed in the status bar 701 of FIG. 14a.
  • the electronic device receives the user's operation to activate the second profile in the first eSIM;
  • the electronic device has activated the first profile in the first eSIM, and in the case that the first communication connection established according to the first profile has not been terminated, it can also receive the user's operation to activate the second profile in the first eSIM .
  • the second profile is a profile different from the first profile in the first eSIM. It can be understood that the essence of this operation is to enable the electronic device to establish a communication connection according to the second profile.
  • the user's operation to enable the second profile can be to click the entry setting control on the eSIM entry corresponding to the second profile in the eSIM management area, enter the card information management interface, and check whether the card information management area in the card information management interface Enable the control to perform operations (such as touch operations, or click operations, etc.), thereby enabling the second profile that is not enabled.
  • the user drags the eSIM entry corresponding to the second profile to the right in the eSIM management area, and clicks the enable option in the enable/deselect control that appears, thereby enabling the second profile that is not enabled. It is understandable that, according to the settings of the electronic device, there may be other operations for receiving the user to activate the second profile, which is not limited here.
  • the electronic device determines whether the number of enabled profiles is less than a preset threshold
  • the operation will not be directly rejected because there is already an activated profile on the first eSIM. Instead, it will determine whether the number of profiles currently enabled on the electronic device is less than a preset threshold.
  • the preset threshold is the maximum number of profiles that can be simultaneously activated and standby for the above-mentioned electronic device. The details can be included in the above description and will not be repeated here. It is understandable that the number of profiles enabled is not limited to the profiles enabled in the first eSIM, but the number of profiles currently enabled in the electronic device.
  • N is a positive integer greater than or equal to 2.
  • M is a positive integer.
  • step S611 will be executed.
  • step S609 when the electronic device determines in step S609 that the number of enabled profiles is not less than the preset threshold, if a new profile is enabled at this time, the ability of the electronic device to be enabled and standby profiles at most at the same time is exceeded.
  • the electronic device can pop up a prompt box to remind the user that the profile that has been enabled needs to be disabled before enabling the profile.
  • the electronic device may pop up a deactivation option box, and the deactivation option box may contain entries corresponding to all enabled profiles in the electronic device. After the user chooses to deactivate the profile corresponding to one of the items in the deactivation option box, step S609 is executed.
  • the electronic device when the electronic device determines that the number of enabled profiles is less than the preset threshold in step S609, it indicates that the electronic device can still support the activation of the new profile at this time, and the electronic device activates the second profile.
  • the electronic device may modify the state field (for example, the Profilestate field) in the second profile through the LPA to set the second profile to the active state.
  • the state field for example, the Profilestate field
  • the electronic device determines through LPA in step S602 that 4 Profiles have been downloaded and installed in the first eSIM: Profile1, Profile2, Profile3, and Profile4, and read the values of the Profilestate fields of the 4 Profiles, respectively, the value of Profile1 is obtained.
  • the Profilestate field value is enabled (1), and the Profilestate field values of Profile2, Profile3, and Profile4 are all disabled (0).
  • the electronic device establishes a communication connection on the Profile1.
  • step S608 the user's operation to enable Profile3 is received.
  • the electronic device modifies the Profilestate field value in Profile3 to enabled (1 ), set the Profile3 to the active state.
  • the electronic device may notify the second RSP server that the second profile has been activated
  • the electronic device can send a notification message to the second RSP server to inform that the second profile has been activated.
  • the second RSP server is a server for the electronic device to communicate with the remote management platform of the second profile.
  • the second RSP server can synchronously record the status of the second profile.
  • this step may or may not be executed, which is not limited here.
  • the electronic device updates and displays the status information in the eSIM entry corresponding to the second profile.
  • the electronic device may display related information of the second profile in the eSIM entry corresponding to the second profile in the eSIM management area: for example, the operator to which the second profile belongs, the mobile phone number corresponding to the second profile, and so on. In addition, the current status information of the second profile will also be displayed.
  • the electronic device can display the status indicator of the second profile as deactivated in the eSIM entry corresponding to the second profile in the eSIM management area; after activating the second profile, the electronic device can update the status indicator Is enabled. It is understandable that at this time, the status indicator of the first profile displayed in the eSIM entry corresponding to the first profile is also enabled.
  • the electronic device allocates an IMEI to the second profile, and adds a correspondence between the unique identifier of the second profile and the allocated second IMEI in the profile-IMEI correspondence.
  • the electronic device will select one of the IMEIs to be allocated, allocate it to the IMEI, establish the corresponding relationship between the unique identifier of the second profile and the allocated second IMEI, and store it in the internal memory Correspondence between Profile-IMEI in.
  • the electronic device monitors the activation of the second profile, obtains the second IMSI of the second profile, and determines the second IMEI assigned to it;
  • the electronic device After the electronic device monitors the activation of the second profile, it can obtain the second IMSI stored in the second profile from the eSIM through the LPA. And according to the unique identifier of the second profile, the corresponding relationship between Profile-IMEI stored in the internal memory of the electronic device is searched, and the second IMEI allocated for the second profile is determined.
  • the electronic device sends the second IMSI and the second IMEI to the second base station, and establishes a second communication connection according to the second profile.
  • the specific network access authentication process can refer to the network access authentication process using the SIM card, which will not be repeated here.
  • the second base station is a base station subordinate to the operator of the second profile. According to whether the operators of the first profile and the second profile are the same and whether there are related agreements between the operators, the first base station and the second base station may be the same base station, or may not be the same base station, which is not limited here.
  • the electronic device monitors the signal strength of the second communication connection.
  • the electronic device After establishing the second communication connection according to the second profile, the electronic device monitors the signal strength of the second communication connection. If there is data to be sent and received on the first communication connection, then the data is sent and received; if there is no data to be sent or received on the second communication connection for a period of time, the second communication connection enters the standby state.
  • the standby state indicates whether the low-power consumption monitoring of the electronic device has data to be sent and received on the second communication connection.
  • the electronic device displays the signal strength indicator of the second communication connection
  • the electronic device After the electronic device monitors the signal strength of the second communication connection, it will display the corresponding second indication information for indicating the signal strength on the display screen in real time.
  • An expression form of the second indication information may be a signal strength indicator.
  • the following describes an exemplary user interface involved in the process of enabling the new second profile.
  • an operation (such as a touch operation) on the eSIM entry 733C in the user interface 73 as shown in FIG. 14c is detected, and the electronic device may display the user interface 81 as shown in FIG. 15a.
  • the user interface 81 may include a status bar 811, a title bar 812, and an area 813 including one or more management controls.
  • the status bar 811 may include: a signal strength indicator 811A, a WIFI signal strength indicator, a battery status indicator, and a time indicator indicating the communication link established after the profile corresponding to the eSIM entry 733A in the user interface 73 shown in FIG. 14c is activated.
  • the title bar 812 may include: a return key 812A and a current page indicator 812B.
  • the return key 812A is an APP-level return key that can be used to return to the upper level of the menu.
  • the upper level page of the user interface 81 may be the user interface 73 as shown in FIG. 14c.
  • the current page indicator 812B can be used to indicate the current page.
  • the text information "card information management" can be used to indicate that the current page is used to display the corresponding content of eSIM information management. It is not limited to text information.
  • the current page indicator 812B can also be an icon.
  • the area 813 includes one or more card information management control items, and the one or more card information management control items may include:
  • Whether to enable the control 813A used to accept the user's operation (click or touch, etc.) and change the enabled/general status of the profile. If the switch state of the control 813A is OFF, it means that the profile is disabled; if the switch state of the control 813A is ON, it means that the profile is enabled.
  • Network selection control 813B used to indicate the network selection of the profile. Generally, it is selected by default according to the profile information when the profile is downloaded and installed.
  • Mobile phone number control 813C used to indicate the mobile phone number corresponding to the profile. Generally, it is displayed by default according to the profile information when the profile is downloaded and installed.
  • Card name control 813D used to identify the name of the profile on the machine to facilitate user identification. The user can click on the control to enter the card name he named in the pop-up text box.
  • Enable mobile data control 813E used to accept user operations (click or touch, etc.), and control whether mobile data is enabled after the profile is enabled. If the switch state of the control 813E is OFF, it means that the mobile data of the profile is not enabled, and all applications in the electronic device cannot use the mobile data of the profile. If the switch state of the control 813E is ON, it means that the mobile data of the profile is enabled, and the application in the electronic device can choose to use the mobile data of the profile.
  • the default mobile data card control 813F used to accept user operations (click or touch, etc.), and control whether to use the profile as the default mobile data card when the switch state of the mobile data control 813E is ON. If the switch status of the control 813F is ON, it means that the profile should be used as the default mobile data card. If the user does not actively make a selection, the applications in the mobile device will give priority to using the profile's mobile data by default. If the switch state of the control 813F is OFF, it means that the profile is not used as the default mobile data card. Unless the user actively selects certain applications to use the mobile data of the profile, the application will use the mobile data of the current default mobile data card by default.
  • control 813G used to accept user operations (click or touch, etc.), and control whether it is used as the default phone/information card after the profile is enabled. If the switch status of the control 813G is ON, it means that the profile is used as the default phone/information card. When the user makes a call or sends a message, if the user does not actively make a choice, click the dial out button or the send button, and it will be used by default The profile makes a call or sends a message. If the switch state of the control 813G is OFF, it means that the profile is not used as the default phone/information card.
  • the current default phone/information card When the user makes a call or sends a message, the current default phone/information card will be used by default to make a call or send a message. It is understandable that in the electronic device, only the switch state of the control 813G of the profile can be ON, and the others are all OFF. For example, if the switch status of the profile as the default phone/information card control 813G is set to ON at this time, then the profile under the profile that was previously set as the default phone/information card control switch to ON is the default phone/information. The switch state of the card control will be automatically set to OFF.
  • the control appears in the dialing options. If the switch status of the control 813H is ON, when the user makes a call, if the dial button is long pressed, the dial option will appear, and the dial-out control corresponding to the profile will appear in the dial option. If the user clicks the corresponding profile The call dial-out control will use the profile to make the call, instead of using the default profile to make the call.
  • the switch status of the control 813H is OFF, when the user makes a call, if the dial button is long pressed, and if there is another profile that appears in the dialing option, the status switch of the control is set to ON, then the phone corresponding to the other profile will dial out The control will appear in the dialing option. If the status switch of the control appearing in the dialing option under all profiles is OFF, the dialing option will not appear when the dial button is long pressed, and the default phone/information card can only be used to make outgoing calls.
  • Delete this card control 813I used to accept user operations (click or touch, etc.) to delete the profile. Only when the switch state of whether to enable the control 813A is OFF, the delete of the card control 813I can be triggered, otherwise, the control 813I is in a non-triggable state.
  • the electronic device may display as shown in FIG. 15b. ⁇ User Interface 81.
  • the electronic device executes the above steps S608 to S618, and establishes a communication connection according to the profile corresponding to the eSIM entry 733C in the user interface 73 shown in FIG. 14c. As shown in FIG.
  • the status bar 811 of the user interface 81 displays the signal strength indicator 811B of the communication connection established after the Profile corresponding to the newly activated eSIM entry 733C is activated. Whether to enable the control 813A and the switch status of the default phone/information card control 813G are updated to the ON state, and the deletion of the card control 813I is updated to the non-triggerable state.
  • an operation (such as a touch operation) on the return key 812A in the user interface 81 as shown in FIG. 15b is detected, and the electronic device may display the user interface 73 as shown in FIG. 15c.
  • the status bar 731 now updates and displays the signal strength indicator 811B of the communication connection established according to the profile corresponding to the eSIM entry 733C, and the Profile status indicator 733C1 in the eSIM entry 733C The update is shown as enabled.
  • the electronic device may determine that the number of activated profiles is not less than a preset threshold, so that the subsequent steps S611 to S618 cannot be executed, but the steps S611 to S618 are executed instead.
  • S610 takes the preset threshold of 2 as an example to exemplify the example that the electronic device executes step S610 when the user wants to enable the new profile again in the case that the user has enabled 2 profiles in the user interface 73 shown in FIG. 15c Sexual user interface.
  • the electronic device can display the user interface 91 as shown in FIG. 16b.
  • the electronic device may display a user interface 91 as shown in FIG. 16c, and a prompt box 912 will pop up on the user interface 91.
  • the prompt box 912 displays a text message: "Prompt: The maximum number of enabled cards supported by this terminal is 2, the number of enabled cards is full, please disable other cards and enable again" and confirm control 912A.
  • the electronic device When it is detected that the click operation on the control 912A is determined in the prompt box 912 as shown in FIG. 16c, in response to the operation, the electronic device returns to displaying the user interface 73 as shown in FIG. 16a.
  • the profile corresponding to eSIM entry 733B cannot be activated and remains in a disabled state.
  • S619 The electronic device receives the user's operation of deactivating the first profile in the first eSIM;
  • the electronic device deactivates the first profile
  • the electronic device can modify the state field (for example, the Profilestate field) in the first profile through LPA to deactivate the second profile.
  • the state field for example, the Profilestate field
  • the electronic device modifies the value of the Profilestate field in Profile1 to disabled (0) through the LPA.
  • S622 The electronic device updates and displays the status information in the eSIM entry corresponding to the first profile.
  • the electronic device may update the status indicator in the eSIM entry corresponding to the first profile in the eSIM management area to be disabled.
  • the electronic device may notify the first RSP server that the first profile has been deactivated;
  • this step may or may not be executed, which is not limited here.
  • the electronic device may send a notification message to the first RSP server to inform that the first profile has been activated, and the first RSP server is a server for the electronic device to communicate with the remote management platform of the first profile.
  • the first RSP server can synchronously record the status of the second profile.
  • the first RSP server and the second RSP server may be the same RSP server, It may also be a different server from the second RSP, which is not limited here.
  • the electronic device no longer displays the signal strength indicator of the first communication connection
  • the electronic device updates the profile-IMEI correspondence: removing the unique identifier of the first profile.
  • the electronic device may remove the unique identifier of the first profile from the profile-IMEI correspondence relationship, and reclaim the IMEI allocated to the first profile to the unallocated IMEI storage space.
  • IMEI needs to be allocated
  • the unique identifier of the profile that needs to be allocated IMEI is directly filled in the empty value part to establish a corresponding relationship.
  • the corresponding relationship between Profile-IMEI please refer to the above description of the corresponding relationship between Profile-IMEI, which will not be repeated here.
  • the following describes an exemplary user interface involved in the process of deactivating the first profile.
  • the first profile to be deactivated by the user is the profile corresponding to the eSIM entry 733A in the user interface 73 shown in FIG. 17a as an example for illustrative description:
  • the Profile status indicator 733A1 of the eSIM entry 733A is displayed as enabled, and the Profile status indicator 733C1 of the eSIM entry 733C is displayed as enabled, and there are two profiles in the status bar corresponding to these two profiles. Of 2 signal strength indicators.
  • an operation (such as a touch operation) on the eSIM entry 733A in the user interface 73 as shown in FIG. 17a is detected, and the electronic device may display the user interface 101 as shown in FIG. 17b.
  • the status bar 101 of the user interface 101 includes the signal strength indicator 1011A of the profile corresponding to the eSIM entry 733A and the signal strength indicator 1011B of the profile corresponding to the eSIM entry 733C.
  • the user interface 101 also includes whether to enable the control 1012 and delete the card control 1013. Since the profile is currently in an enabled state, deleting this card control 1013 is currently in an inactive state. For specific descriptions of other controls in the user interface 101, reference may be made to the user interface 81 shown in FIG. 15a, which will not be repeated here.
  • the electronic device After detecting whether the user has enabled an operation (such as a touch operation) on the control 1012 in the user interface 101 as shown in FIG. 17b, the electronic device may display the user interface 101 as shown in FIG. 17c.
  • an operation such as a touch operation
  • the switch state of the enable control 1012 is set to OFF, and the electronic device executes the foregoing steps S619 to S625.
  • the signal strength indicator 1011A of the profile corresponding to the eSIM entry 733A is hidden, and only the signal strength indicator 1011B of the profile corresponding to the eSIM entry 733C is displayed in the status bar 1011. Since the profile has been deactivated, delete the card control 1013 and update it to an activatable state.
  • the electronic device can display the user interface 73 as shown in FIG. 17d.
  • the Profile status indicator 733A1 on the eSIM entry 733A is updated to be disabled.
  • the user can delete a profile that has been disabled.
  • the following takes the user to delete the Profile corresponding to the eSIM entry 733C in the user interface 73 shown in FIG. 18a as an example to illustrate:
  • the electronic device may display the user interface 81 as shown in FIG. 18b. Since the profile corresponding to the eSIM entry 733C is in a disabled state, the delete control 813I is in a triggerable state.
  • the identity verification prompt box 1101 pops up in the user interface 81 as shown in FIG. 18c.
  • the identity verification prompt box 1101 may include:
  • Identity authentication indicator 1101A used to remind the user that the identity verification prompt box 1101 is used for identity verification;
  • Fingerprint identification indicator 1101B used to remind the user that the currently triggered identity verification method is fingerprint identification.
  • the fingerprint icon of the fingerprint identification indicator 1101B can change accordingly according to the progress of the user's fingerprint identification.
  • Password authentication control 110C used to pop up a password input box after receiving the user's operation
  • Face recognition control 110D used to trigger a face recognition verification mode after receiving a user's operation.
  • the electronic device After detecting that the user identity authentication is successful, the electronic device displays a user interface 81 as shown in FIG. 18d.
  • an authentication success prompt box 1102 pops up.
  • the authentication success prompt box 1102 contains text information: the identity authentication is successful, and the card information has been deleted.
  • the electronic device will automatically jump to the user interface 73 as shown in FIG. 18e.
  • the eSIM entry 733C has been deleted and is no longer displayed.
  • Application scenario 2 In some embodiments of the present application, more than one eSIM may be installed in the electronic device, and at the same time, a card slot may also be installed.
  • an electronic device has two eSIMs and a SIM card slot with a SIM card inserted, and the maximum number of profiles that can be activated and standby at the same time for the electronic device is 5 as an example. It is possible to implement the communication connection method in the embodiment of this application. Illustrative description of the involved user interface:
  • the user interface 121 shown in FIG. 19a includes a status bar 1201, a title bar, and a setting item area.
  • the status bar 1201 includes a signal strength indicator 1201A, a signal strength indicator 1201B, and a signal strength indicator 1201C, which indicate that three profiles in the electronic device have been activated and are in an active state.
  • the setting item area includes a SIM card management setting item 1202.
  • the SIM card management setting item is used to manage all eSIMs and SIM cards in the multi-electronic device.
  • the electronic device can display the user interface 122 as shown in FIG. 19b.
  • the user interface 122 shown in FIG. 19b includes a status bar, a return button, a page indicator, a card management area 1203, a card management area 1205, and a sliding control 1204.
  • the sliding control 1204 is used to receive the operation of sliding up and down after the user presses down, so as to display more areas in the user interface 122.
  • the electronic device can display the user interface 122 shown in FIG. 19c.
  • the user interface 122 shown in FIG. 19c includes the remaining part of the card management area 1205 and the card management area 1206.
  • the card management area 1203 includes: area indicator 1203A, eSIM entry 1203B, eSIM entry 1203C, eSIM entry 1203D, eSIM entry 1203E, and adding eSIM controls.
  • the area indicator 1203A is used to indicate that the eSIM/card slot to which the SIM/eSIM entry displayed in the area belongs is eSIM1.
  • the Profile status indicator in the eSIM entry 1203B is displayed as enabled, indicating that the corresponding Profile is active.
  • the signal strength indicator in the status bar corresponding to the profile is the signal strength indicator 1201A.
  • the Profile status indicators in the eSIM entry 1203C, eSIM entry 1203D, and eSIM entry 1203E are all displayed as disabled.
  • the card management area 1205 includes: an area indicator 1205A, an eSIM entry 1205B, an eSIM entry 1205C, and an added eSIM control.
  • the area indicator 1205A is used to indicate that the eSIM/card slot to which the SIM/eSIM entry displayed in the area belongs is eSIM2.
  • the Profile status indicator in the eSIM entry 1205B is displayed as enabled, indicating that the corresponding Profile is active.
  • the signal strength indicator in the status bar corresponding to the profile is the signal strength indicator 1201B.
  • the Profile status indicator in eSIM entry 1205C is shown as disabled.
  • the card management area 1206 includes: an area indicator 1206A and a SIM card entry 1206B.
  • the area indicator 1206A is used to indicate that the eSIM/card slot to which the SIM/eSIM entry displayed in this area belongs is SIM card slot 1.
  • the Profile status indicator in the SIM card entry 1206B is displayed as enabled, indicating that the corresponding Profile is active.
  • the electronic device may display the user interface 131 as shown in FIG. 20b.
  • the electronic device may perform steps S608 to S618, and display the user interface 131 as shown in FIG. 20c.
  • the status switch of the enable control 1301 in the user interface 131 is set to ON, and the status bar 1201 is updated to display the signal strength indicator 1201D of the communication connection established according to the profile corresponding to the eSIM entry 1203D.
  • the electronic device can display the user interface 122 as shown in FIG. 20d.
  • the Profile status indicator of the eSIM entry 1203D in the user interface 122 has been updated and displayed as enabled.
  • the electronic device can display the user interface 141 as shown in FIG. 21b.
  • the electronic device may perform steps S608 to S618, and display the user interface 141 shown in FIG. 21c.
  • the status switch of the enable control 1401 in the user interface 141 is set to ON, and the status bar 1201 is updated to display the signal strength indicator 1201E of the communication connection established according to the profile corresponding to the eSIM entry 1203C.
  • the electronic device can display the user interface 122 as shown in FIG. 21d.
  • the Profile status indicator of the eSIM entry 1203C in the user interface 122 has been updated and displayed as enabled.
  • Application scenario 3 In some embodiments, the electronic device activates multiple profiles that activate an eSIM, and establishes communication connections according to the multiple profiles. After waiting on the multiple communication connections, one of them may be activated. When business processing is performed on the communication connection corresponding to the profile, a request for business processing on the communication connection corresponding to another active profile is received.
  • CPU110 When ProfileA is activated, CPU110 reads the IMSI-A of the ProfileA from eSIM196 through the LPA of the application framework layer in the electronic device 100, and searches the Profile-IMEI data table to determine that the IMEI-A assigned to the ProfileA is the electronic device.
  • 100 sends IMSI-A and IMEI-A to base station A through mobile communication module 150, and base station A is a base station of mobile network A.
  • the mobile network A generates a set of random numbers (RADN-A) and sends it to the electronic device 100. After receiving the RADN-A through the mobile communication module 150 in the electronic device 100, it uses the LPA of the application framework layer to send it to the eSIM196 through the CPU 110.
  • eSIM196 calculates the authentication result (SENS-A) according to the authentication key (Ki-A) stored in RADN-A and ProfileA. At the same time, eSIM196 calculates the communication key (Kc-A) according to the authentication key (Ki-A) stored in RADN-A and ProfileA. eSIM196 sends SENS-A and Kc-A to CPU110. The CPU 110 saves Kc-A, and sends SENS-A to the base station A via the mobile communication module 150. The mobile network A determines that SENS-A is the same as the authentication result calculated by itself, and allows the communication connection A to be established on the profile A, and the electronic device 100 is on standby on the communication connection A.
  • CPU110 saves the communication key (Kc-B) calculated by eSIM196 based on the authentication key (Ki-B) stored in RADN-B and ProfileB, and saves the calculated authentication result (SENS-B). ) Is sent to base station B, which is the base station of mobile network B.
  • the mobile network B determines that SENS-B is the same as the authentication result calculated by itself, and allows the establishment of the communication connection B on the profile B, and the electronic device 100 stands by on the communication connection B.
  • the CPU 110 uses Kc-A to encrypt the data flow and then moves
  • the communication module 150 performs data transmission and reception processing with the base station A on the communication connection A.
  • the CPU 110 uses Kc-B to encrypt the data flow and communicates via mobile communication.
  • the module 150 transmits and receives data with the base station B on the communication connection B.
  • the mobile communication module 150 may use time division multiplexing technology to communicate with base station A and base station B respectively.
  • time division multiplexing technology to communicate with base station A and base station B respectively.
  • the mobile communication module 150 for the allocation of hardware transceiver modules to establish and maintain communication connections when the number of hardware transceiver modules is different, please refer to the description of the IMEI-transceiver module correspondence shown in Figures 8 to 10 above. I won’t repeat it here.
  • the term “when” can be interpreted as meaning “if" or “after” or “in response to determining" or “in response to detecting".
  • the phrase “when determining" or “if detected (statement or event)” can be interpreted as meaning “if determined" or “in response to determining" or “when detected (Condition or event stated)” or “in response to detection of (condition or event stated)”.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • 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 usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk).
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

一种通信连接的方法及电子设备。在该方法中,电子设备在根据eSIM中的一个Profile建立第一通信连接后,在不终止该第一通信连接的情况下,可以根据该eSIM中另一个Profile建立第二通信连接。实施本申请提供的技术方案,电子设备可支持根据一个eSIM中的多个Profile同时建立多个通信连接并待机,仅需安装一个eSIM即可实现多卡多待,节省了成本且减少了对电子设备控件的占用。

Description

一种通信连接的方法及电子设备
本申请要求于2019年12月28日提交中国专利局、申请号为201911384810.0、申请名称为“一种通信连接的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种通信连接的方法及电子设备。
背景技术
随着通信行业的不断发展,消费者多卡多待的需求与日俱增。有的用户需要使用不同的手机卡号将生活与工作分开,有的用户需要使用不同的手机卡号将不同的公司业务分开,还有的用户需要使用不同的手机卡号将不同的生活场景分开。除此之外,为了使用不同运营商提供的多种多样的套餐及服务,消费者也有意愿同时使用多张不同的手机卡号。
目前电子设备中均是使用多个用户标识模块(subscriber identification module,SIM)卡槽部件,分别插入SIM卡来实现多卡多待。
即使随着技术的发展,出现了可以在一个嵌入式SIM(Embedded-SIM,eSIM)中下载多个Profile的技术方案,但电子设备也仅支持一个eSIM激活多个Profile的其中一个Profile进行使用。若要实现多卡多待,则同样需要在电子设备中安装多个SIM卡槽部件或eSIM,不仅成本较高,而且极大的占用了电子设备的布局空间。
发明内容
本申请实施例提供了一种通信连接的方法及电子设备,电子设备可支持根据一个eSIM中的多个Profile同时建立多个通信连接,仅需安装一个eSIM即可实现多卡多待,从而节省成本,减少对电子设备空间的占用。
第一方面,本申请提供了一种通信连接的方法,应用于具有eSIM的电子设备,该方法包括:电子设备根据第一Profile建立第一通信连接,该eSIM包含该第一Profile;响应于根据第二Profile建立通信连接的操作,在不终止该第一通信连接的情况下,该电子设备根据该第二Profile建立第二通信连接,该eSIM还包含该第二Profile,该第一Profile和该第二Profile不同。
实施第一方面提供的方法,电子设备在不终止根据一个eSIM中第一Profile建立的第一通信连接的情况下,可响应用户操作,根据该eSIM中与该第一Profile不同的第二Profile建立第二通信连接。在没有数据需要在这两个通信连接上收发的情况下,在这两个通信连接上待机,在有数据需要在这两个通信连接上发送的情况下,在相应的通信连接上收发数据。只需要使用一个eSIM,即可实现根据该eSIM中的多个Profile建立通信连接并待机使用,不再需要多个SIM卡槽或eSIM才能实现多卡多待,节省了成本,减少了对电子设备空间的占用。
结合第一方面,在一些实施例中,该电子设备根据该第二Profile建立第二通信连接后, 该方法还包括:该电子设备更新该第二Profile对应的eSIM条目中状态信息显示为已启用。
具体的,eSIM条目为Profile在电子设备的显示屏上的一种显示形式。该eSIM条目中可以包含有该Profile当前的状态信息,状态信息可以为已启用和已停用这两种状态的一种。其中已启用对应该Profile的激活状态,已停用对应该Profile的去激活状态。在状态信息的显示时,并不限于文字上仅显示已启用/已停用,也可以使用其他表示相同意思的文字显示,或者使用图形、图文结合的方式均可。
本申请实施例中,由于进行了根据第二Profile建立通信连接的操作,且电子设备响应于该操作建立了第二通信连接,所以为了向用户反馈电子设备的工作状态,电子设备可以更新该第二Profile对应的eSIM条目中状态信息显示为已启用。除此之外,该eSIM条目中还可以显示有该Profile所述的运营商,该Profile对应的手机号码等信息。
结合第一方面,在一些实施例中,该方法还包括:该电子设备显示第一指示信息,该第一指示信息用于指示该第一通信连接的信号强度;该电子设备显示第二指示信息,该第二指示信息用于指示该第二通信连接的信号强度。
具体的,在建立通信连接后,电子设备可以监测通信连接的信号强度,在显示屏上通过指示信息的方式显示出来,一方面便于用户查看建立的通信连接当前的信号强度,以便于选择使用哪个通信连接进行业务处理,另一方面,便于用户明确的知晓目前电子设备已经同时建立了多少个通信连接。
示例性的,该指示信息可以为信号强度指示符。该信号强度指示符随着监测到的通信连接的信号强度的强弱不同而更新显示。
结合第一方面,在一些实施例中,该电子设备根据该第二Profile建立第二通信连接,包括:该电子设备激活该第二Profile;该电子设备为该第二Profile分配IMEI,建立第二Profile的唯一标识与分配的第二IMEI的对应关系;该电子设备至少根据该第二IMEI建立该第二通信连接。
具体的,电子设备激活第二Profile可以为将第二Profile中的激活状态字段写为1。
具体的,电子设备为第二Profile分配IMEI后,将第二Profile的唯一标识与分配的第二IMEI的对应关系添加到了电子设备存储的Profile与IMEI的对应关系(例如Profile-IMEI数据表)中,在该对应关系中使用Profile的唯一标识来标志对应的Profile,而不是使用硬件部件SIM卡槽或eSIM与IMEI的对应关系。这样,在一个eSIM中激活有多个Profile时,电子设备还是可以通过存储的Profile与IMEI的对应关系,找到第二Profile的唯一标识,从而基于该第二Profile的唯一标识向该eSIM获取到存储在该eSIM的该第二Profile中的第二IMSI,将该第二IMEI与第二IMSI发送给第二基站,从而建立起第二通信连接。
下面对电子设备存储的Profile与IMEI的对应关系进行说明:
存储的Profile与IMEI的对应关系的表现形式并不限定,可以为Profile-IMEI数据表、可以为Profile-IMEI数组,也可以为Profile-IMEI函数等。该Profile与IMEI的对应关系中存储着Profile的唯一标识与为相应的Profile分配的IMEI的对应关系。
在电子设备激活一个Profile时,会为该Profile分配一个IMEI,然后将该Profile的唯一标识与该IMEI的对应关系添加到该存储的Profile与IMEI的对应关系中,以供后续使用。
可选的,在该Profile与IMEI的对应关系中,可以不仅包含Profile的唯一标识与为其 分配的IMEI的对应关系,还可以包含Profile的唯一标识与该Profile中的IMSI的对应关系,即电子设备从eSIM中读取出该Profile中的IMSI后,还可以将该IMSI与该Profile的对应关系添加到该Profile与IMEI的对应关系中,形成Profile、IMSI与IMEI的对应关系。
可选的,电子设备中还可以存储有Profile与硬件部件(SIM卡槽或eSIM)的对应关系,其中使用Profile的唯一标识来标志Profile,使用SIM卡槽或eSIM编号来标志硬件部件。使得电子设备根据Profile与IMEI的对应关系中的Profile的唯一标识,更容易的确定需要从哪个硬件部件获取到该Profile中的数据。
可选的,在一种实现方式中,在电子设备存储的Profile与IMEI的对应关系中,Profile的唯一标识可以为ICCID号或ISP-D号。
本申请实施例中,由于电子设备中存储的是Profile与IMEI的对应关系,因此,在为eSIM中激活的多个Profile分别分配了IMEI并记录在该对应关系中后,在需要建立通信连接时,电子设备可以根据该Profile与IMEI的对应关系,得到需要建立通信连接的Profile的唯一标识,从而从eSIM中获取到该Profile中的IMSI用于后续的通信连接的建立。
而不会像现有技术一样,由于只存储有硬件部件SIM卡槽或eSIM与IMEI的对应关系,因此,只能在一个eSIM中激活一个Profile。这样在需要建立通信连接时,才可以找到该eSIM获取当前激活的Profile中的IMSI。否则现有技术中若激活一个eSIM中的多个Profile,电子设备在向eSIM获取IMSI时,由于没有准确的信息标识,电子设备只知道要向哪个eSIM获取IMSI,但是无法获取到正确的IMSI用于后续通信连接的建立。
结合第一方面,本申请实施例中,电子设备根据第一Profile建立第一通信连接可能来自于不同情况的触发:
(1)可能第一Profile在本次电子设备开机前已经被启用并激活
在一些实施例中,在开机进行Profile状态加载的过程中,电子设备根据第一Profile建立第一通信连接,包括:该电子设备确定该第一Profile已激活;该电子设备确定与该第一Profile对应的第一IMEI;该电子设备将该第一IMEI与该第一Profile中的第一IMSI发送到第一基站,建立该第一通信连接。
具体的,该电子设备可以通过读取eSIM中各Profile的激活状态字段,确定其中第一Profile已激活。然后查找电子设备中存储的Profile与IMEI的对应关系(例如Profile-IMEI数据表),确定在该对应关系中,与该第一Profile对应的第一IMEI。该第一IMEI为该第一Profile激活时,电子设备分配给该第一Profile的IMEI,并在分配之后将该第一Profile与第一IMEI的对应关系添加到了存储的Profile与IMEI的对应关系中。该电子设备还可以向eSIM获取到第一Profile中存储的第一IMSI,将该第一IMEI与该第一IMSI发送到第一基站,通过入网鉴权过程后,建立第一通信连接。
本申请实施例中,由于电子设备中存储有Profile与IMEI的对应关系,因此在开机Profile状态加载时,能准确的确定为已激活的Profile分配的IMEI。与此同时,也因为该Profile与IMEI的对应关系存在,因此能准确的确定IMEI对应的已激活的Profile的唯一标识,从而可以准确的向eSIM获取到确定的Profile中的IMSI,为在一个eSIM上同时激活多个Profile,并根据其中的Profile分别建立通信连接提供可行的方案。
(2)可能第一Profile是在本次电子设备开机之后才被启用的
在一些实施例中,电子设备根据第一Profile建立第一通信连接,包括:该电子设备激活该第一Profile;该电子设备为该第一Profile分配IMEI,建立第一Profile的唯一标识与分配的第一IMEI的对应关系;该电子设备将该第一IMEI与该第一Profile中的第一IMSI发送到第一基站,建立该第一通信连接。
具体的,电子设备激活第一Profile后,为该第一Profile分配IMEI,并将第一Profile的唯一标识与分配的第一IMEI的对应关系添加到存储在电子设备中的Profile与IMEI的对应关系中。然后电子设备可以向第一Profile获取到第一Profile中存储的第一IMSI,将该第一IMEI与该第一IMSI发送到第一基站,通过入网鉴权过程后,建立第一通信连接。
结合第一方面,在一些实施例中,该电子设备激活该第二Profile,包括:该电子设备判断已启用的Profile数量是否小于预设阈值,该预设阈值为该电子设备最多能同时启用并待机的Profile数量,该预设阈值为不小于2的正整数;当确定已启用的Profile数量小于预设阈值时,该电子设备激活该第二Profile。
本申请实施例中,在激活前判断已启用的Profile数量是否小于预设阈值,确定小于才进行激活操作,从而防止电子设备在超出自身维持通信连接的能力的情况下激活过多的Profile,维持电子设备的运行稳定。
第二方面,本申请实施例提供了一种电子设备,该电子设备包括:eSIM、一个或多个处理器、存储器和显示屏;该存储器与该一个或多个处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该电子设备执行:根据第一Profile建立第一通信连接,该eSIM包含该第一Profile;响应于根据第二Profile建立通信连接的操作,在不终止该第一通信连接的情况下,根据该第二Profile建立第二通信连接,该eSIM还包含该第二Profile,该第一Profile和该第二Profile不同。
第二方面提供的电子设备,在不终止根据一个eSIM中第一Profile建立的第一通信连接的情况下,可响应用户操作,根据该eSIM中与该第一Profile不同的第二Profile建立第二通信连接。在没有数据需要在这两个通信连接上收发的情况下,在这两个通信连接上待机,在有数据需要在这两个通信连接上发送的情况下,在相应的通信连接上收发数据。只需要使用一个eSIM,即可实现根据该eSIM中的多个Profile建立通信连接并待机使用,不再需要多个SIM卡槽或eSIM才能实现多卡多待,节省了成本,减少了对电子设备空间的占用。
结合第二方面,在一些实施例中,该一个或多个处理器,还用于调用该计算机指令以使得该电子设备执行:在该显示屏上更新该第二Profile对应的eSIM条目中状态信息显示为已启用。
结合第二方面,在一些实施例中,该一个或多个处理器,还用于调用该计算机指令以使得该电子设备执行:在该显示屏上显示第一指示信息,该第一指示信息用于指示该第一通信连接的信号强度;在该显示屏上显示第二指示信息,该第二指示信息用于指示该第二通信连接的信号强度。
结合第二方面,在一些实施例中,该一个或多个处理器,具体用于调用该计算机指令 以使得该电子设备执行:激活该第二Profile;为该第二Profile分配IMEI,建立第二Profile的唯一标识与分配的第二IMEI的对应关系;至少根据该第二IMEI建立该第二通信连接。
结合第二方面,在一些实施例中,该一个或多个处理器,具体用于调用该计算机指令以使得该电子设备执行:确定该第一Profile已激活;确定与该第一Profile对应的第一IMEI;将该第一IMEI与该第一Profile中的第一IMSI发送到第一基站,建立该第一通信连接。
结合第二方面,在一些实施例中,该一个或多个处理器,具体用于调用该计算机指令以使得该电子设备执行:激活该第一Profile;为该第一Profile分配IMEI,建立第一Profile的唯一标识与分配的第一IMEI的对应关系;将该第一IMEI与该第一Profile中的第一IMSI发送到第一基站,建立该第一通信连接。
结合第二方面,在一些实施例中,该一个或多个处理器,具体用于调用该计算机指令以使得该电子设备执行:判断已启用的Profile数量是否小于预设阈值,该预设阈值为该电子设备最多能同时启用并待机的Profile数量,该预设阈值为不小于2的正整数;当确定已启用的Profile数量小于预设阈值时,该电子设备激活该第二Profile。
结合第二方面,在一些实施例中,Profile的唯一标识为ICCID号或ISP-D号。
第三方面,本申请实施例提供了一种芯片,该芯片应用于电子设备,该芯片包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
第四方面,本申请实施例提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
第五方面,本申请实施例提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
可以理解地,上述第二方面提供的电子设备、第三方面提供的芯片、第四方面提供的计算机程序产品和第五方面提供的计算机存储介质均用于执行本申请实施例所提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种eSIM的软件构架示意图;
图2为本申请实施例提供的一种远程管理平台与其他通信角色的关系示意图;
图3为本申请实施例提供的一种双卡双待数据发送示意图;
图4为本申请实施例提供的一种三卡三待数据发送示意图;
图5为本申请实施例提供的另一种双卡双待数据发送示意图;
图6为本申请实施例提供的另一种三卡三待数据发送示意图;
图7为本申请实施例提供的一种电子设备的结构示意图;
图8为本申请实施例提供的一种硬件收发模块分配示意图;
图9为本申请实施例提供的另一种硬件收发模块分配示意图;
图10为本申请实施例提供的另一种硬件收发模块分配示意图;
图11为本申请实施例提供的一种软件架构示意图;
图12a-图12f为本申请实施例提供的现有技术中涉及的一组界面示意图;
图13为本申请实施例提供的一种通信连接的方法的流程示意图;
图14a-图14c为本申请实施例提供的一组界面示意图;
图15a-图15c为本申请实施例提供的另一组界面示意图;
图16a-图16c为本申请实施例提供的另一组界面示意图;
图17a-图17d为本申请实施例提供的另一组界面示意图;
图18a-图18e为本申请实施例提供的另一组界面示意图;
图19a-图19c为本申请实施例提供的另一组界面示意图;
图20a-图20d为本申请实施例提供的另一组界面示意图;
图21a-图21d为本申请实施例提供的另一组界面示意图。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
由于本申请实施例涉及多卡多待及eSIM的应用,为了便于理解,下面先对本申请实施例涉及的相关术语及多卡多待等相关概念进行介绍。
(1)SIM卡
SIM卡包括微处理器(CPU)、程序存储器(ROM)、工作存储器(RAM)、数据存储器(EEPROM),以及串行通信单元。在SIM卡使用过程中,实际上是电子设备向SIM卡发出了命令,SIM卡根据标准规范来执行并反馈结果。
SIM卡中存储的数据可分为四类:
1、固定数据。这类数据在被出售之前由SIM卡中心写入,包括国际移动用户识别号(International Mobile Subscriber Identity,IMSI)、鉴权密钥(Ki)等;
2、临时数据。指的是网络相关的临时数据,如位置区域识别码(Local Area Identity,LAI)、移动用户暂时识别码(Temporary Mobile Subscriber Identity,TMSI)、禁止接入的公共电话网代码等;
3、业务代码,如个人识别码(PIN)、解锁码(PUK)、计费费率等;
4、电话本、短消息等用户记录。
为便于统一描述及理解,本申请实施例在后续描述中,将一个SIM卡中存储的数据统称为一个Profile。
(2)IMSI
IMSI是用于区分蜂窝网络中不同用户的、在所有蜂窝网络中不重复的识别码。
(3)国际移动设备识别码(International Mobile Equipment Identity,IMEI)
IMEI即通常所说的手机序列号、手机“串号”,用于在移动电话网络中识别每一部独立的手机等移动通信设备,相当于移动电话的身份证。IMEI由设备商根据规范分配,在电子设备出厂时即存储在电子设备的存储器中。
(4)使用SIM卡的入网鉴权过程
1、电子设备开机时,从SIM卡中读取IMSI;
2、电子设备将IMSI与存储器中的IMEI发送给移动网络;
3、移动网络生成一组随机数(RADN)发送给电子设备;
4、电子设备将该RADN发送给SIM卡;
5、SIM卡根据RADN和Ki算出结果1(SENS-1),发送给电子设备;
6、电子设备将SENS-1发送给移动网络;
7、与此同时,移动网络从数据库中找到与此IMSI对应的Ki,并使用相同的RAND、相同算法计算出结果2(SENS-2),并比较SENS-1是否与SENS-2相同;
8、若相同,则移动网络确认这个卡是自己发出的合法的卡,鉴权成功,允许其登陆。否则鉴权失败。
(5)使用SIM卡的通信加密过程
在上述鉴权过程的第3步中,移动网络发送RAND给电子设备时,电子设备还会让SIM卡对RAND和Ki计算出另一个密钥(Kc)以供全程通信加密使用。
由于通信加密计算量较大,而SIM卡的运算速度一般不够快,因此所有通信过程中的加密都是由电子设备来完成。
(6)eSIM
eSIM,又称嵌入式通用集成电路卡(Embedded-Universal Integrated Circuit Card,eUICC)。eSIM直接固定安装在电子设备中,它是可编程的,支持通过空中写卡(OTA)进行远程配置,实现运营商Profile的下载、安装、激活、去激活及删除。一个eSIM可以下载多个Profile,从而实现灵活选择多家运营商及不同的卡号。除了通过远程下载的方式,eSIM中也可以包含在电子设备出厂时预先预置的Profile。
其中,Profile包含用户识别信息,即用户身份、认证参数、运营商定制参数等信息和业务签约信息,与传统SIM卡中包含的数据类似。
如图1所示为本申请实施例提供的示例性eSIM的逻辑功能架构图。
·基本平台上的eUICC操作系统提供普通的嵌入式SIM卡操作系统的基础功能。
·平台管理服务用于提供平台管理功能、检索ISD-P通用信息以及通过策略控制来维 护策略执行机制。
·电信框架用于为Profile提供标准化的网络认证算法。算法由存储在ISD-P中的Profile的网络接入应用(NAA)进行网络接入认证时调用。
·在基本平台之上的ECASD为eUICC的控制安全域。
·ISD-P为Profile安全域,为芯片外实体远程管理平台数据准备(SM-DP)在芯片内的代表。一个eSIM中可以有多个ISD-P。
·ISD-R为根安全域,为芯片外实体远程管理平台数据路由(SM-SR)在芯片内的代表。
·MNO-SD为运营商安全域。
(7)远程管理平台
如图2所示为本申请实施例提供的示例性远程管理平台与其他通信角色的关系示意图。
其中,远程管理平台用于从移动网络运营商系统内获取数据,建立和eSIM之间的安全传输通道。远程管理平台可以与多个运营商互联,也可以与多个远程管理平台互联。涉及运营商和eSIM制造商的数据,经由远程管理平台生成完整的运营商数据文件Profile,然后经运营商OTA接口通过OTA方式下载到eSIM中。
远程管理平台中包括两个重要模块:
数据准备(SM-DP):负责eSIM远程配置的Profile生成、存储和下载。
数据路由(SM-SR):负责eSIM远程配置数据的安全传输和管理。
(8)远程服务提供商(Remote Service Provider,RSP)服务器
RSP服务器为电子设备与远程管理平台的具体通信服务器。
可以理解的是,由于用户可能使用属于不同运营商的Profile,而不同运营商也可能使用不同主体的远程管理平台,因此,电子设备使用不同的Profile时,可能与不同的RSP服务器进行通信。具体与哪个RSP服务器通信来对Profile进行管理,取决于eSIM制造商、远程管理平台以及运营商之间的协议,需根据实际情况而定,本申请实施例中不作限定。
(9)本地Profile管理助手(Local Profile Assistant,LPA)
LPA用于在电子设备上对eSIM进行管理,主要包括如下功能:
·从远程管理平台获取SM-DP登记的关于本地eSIM中Profile的事件记录;
·从SM-DP获取Profile,转移到eSIM中;
·面向用户提供Profile管理功能,包括Profile的激活、去激活、删除等。
(10)多卡多待
早期的多卡手机虽然能够同时插两张SIM卡,但实际上同一时刻可用的只有一张SIM卡,由硬件电路来实现两张卡的切换。因为协议栈的影响,在工作状态中不能实现两张SIM卡的动态切换。在开机状态选择切换卡时,则需要重新启动手机系统(主要是启动手机协 议栈/上层软件等等),此时的手机被称为双卡单待系统。双卡单待系统只拥有一套硬件收发模块(基带芯片、射频芯片和天线)以及一套协议栈。双卡单待系统同一时间实际有用的只有一个SIM卡,没有启动的SIM卡处于关机状态,不能接收到呼叫等信息。
在同样只使用一套硬件收发模块的情况下,通过对协议栈的调配(使用多套协议栈密切配合,或者使一套协议栈实现更复杂的切换功能),使用时分复用技术,将时间分割成足够小的资源,按业务需要分给多个Profile做业务,最大化地利用天线资源,这样,电子设备上的多个Profile都能同时处于待机状态,分别接收呼叫等信息或进行数据业务处理。
如图3所示,为本申请实施例一个双卡双待数据发送示意图,虽然只有一套硬件收发模块,但是通过时分复用技术,可以将根据Profile1和Profile2建立的通信连接上需要发送的数据都通过这一套硬件收发模块发送了出去,由于时间分割的足够小,因此,在一个相对长的时间维度上来看,可以认为在根据这两个Profile建立的通信连接上同时发送了数据。Profile1和Profile2可以存储在同一个eSIM中,也可以存储在不同的eSIM中。
根据时分复用技术的使用程度,一套硬件收发模块可以维持对根据更多个Profile建立的通信连接,并收发数据,此处不作限定。
如图4所述,为本申请实施例一个三卡三待数据发送示意图,通过在一套硬件收发模块上使用时分复用技术,可以将根据Profile1、Profile2和Profile3建立的通信连接上需要发送的数据都通过这一套硬件收发模块发送了出去。Profile1、Profile2和Profile3可以存储在同一个eSIM中,也可以存储在不同的eSIM中
在具有多套硬件收发模块的情况下,同时启用的多个Profile可以分别使用这多套硬件收发模块进行通信连接并收发数据。如图5所示,为本申请实施例另一个双卡双待数据发送示意图,此时电子设备中具有两套硬件收发模块。按照预先配置的硬件收发模块使用规则,硬件收发模块1负责维持根据Profile1建立的通信连接,并收发数据,硬件收发模块2负责维持根据Profile2建立的通信连接,并收发数据。
在具有多套硬件收发模块,但是启用的Profile数目大于硬件收发模块的数目时,也可以通过预先阈值的对应关系,在需要同时维持多个通信连接的硬件收发模块上使用时分复用技术,来实现对多个通信连接的同时待机及数据收发。如图6所示,为本申请实施例另一个三卡三待数据发送示意图,此时电子设备中具有两套硬件收发模块,但是同时启用了3个Profile,需要同时维持根据这3个Profile建立的3个通信连接并发送数据。按照预先配置的硬件收发模块使用规则,硬件收发模块1负责维持根据Profile1和Profile2建立的通信连接,并收发数据。硬件收发模块2负责维持根据Profile3建立的通信连接,并收发数据。因此,硬件收发模块1使用时分复用技术,将Profile1和Profile2对应的通信连接上需要发送的数据都通过硬件收发模块1发送了出去,硬件收发模块2将Profile3对应的通信连接上需要发送的数据通过硬件收发模块2发送了出去。
需要说明的是,在现有技术中,由于无法在同一个eSIM中同时启用多个Profile,因此现有技术中同时启用的多个Profile均来源于多个不同的硬件部件。例如,同时启用的2个Profile可能为分别启用一个SIM卡槽中SIM卡的Profile以及一个eSIM中的一个Profile。同时启用的3个Profile为分别启用一个SIM卡槽中SIM卡的Profile以及2个eSIM中的各一个Profile。
而本申请实施例中,可以同时启用同一个eSIM芯片中的多个Profile,因此,同时启用的多个Profile可以来自于同一个硬件部件。例如,同时启用的2个Profile可以为启用同一个eSIM中不同的2个Profile,同时启用的3个Profile同理可以为启用同一个eSIM中不同的3个Profile。
(11)电子设备最多能同时启用并待机的Profile数量
根据对上面多卡多待技术的介绍,可以理解的是,电子设备最多能同时启用并待机的Profile数量在电子设备出厂时即为一个固定值。其与电子设备具有的硬件收发模块的套数以及电子设备在一套硬件收发模块上使用时分复用技术的程度(取决于协议栈内容和数目)均有关。
例如,若一个电子设备仅具有一套硬件收发模块,但是根据与其相关的协议栈的调配,该套硬件收发模块最多能同时维持3个通信连接,则认为该电子设备最多能同时启用并待机的Profile数量为3。再如,若一个电子设备具有2套硬件收发模块,但是根据与其相关的协议栈的调配,其中一套硬件收发模块仅能同时维持1个通信连接,另一套硬件收发模块仅能同时维持2个通信连接,则认为该电子设备最多能同时启用并待机的Profile数量也仅为3。
根据该电子设备最多能同时启用并待机的Profile数量,电子设备厂商会在该电子设备中预置相应数目的IMEI。
为便于描述及理解,在本申请实施例的一些实施例中,会将该电子设备最多能同时启用并待机的Profile数量称呼为预置阈值,在实际应用中,其还可以有其他种不同的称呼,此处不作限定。
下面首先介绍本申请实施例提供的示例性电子设备100。
图7是本申请实施例提供的电子设备100的结构示意图。
下面以电子设备100为例对实施例进行具体说明。应该理解的是,电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,用户标识模块(subscriber identification module,SIM)卡接口195以及eSIM196等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本 申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,嵌入式通用集成电路卡(Embedded-Universal Integrated Circuit Card,eUICC)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被 用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
SIM接口可以被用于与SIM卡接口195通信,实现传送数据到SIM卡或读取SIM卡中数据的功能。
eUICC接口可以被用于与eSIM196通信,实现发送数据到eSIM或读取eSIM中数据的功能。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实 施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(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可以包括1个或N个显示屏194,N为大于1的正整数。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用(比如人脸识别功能,指纹识别功能、移动支付功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如人脸信息模板数据,指纹信息模板等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。
eSIM196用于存储Profile。电子设备100可以支持1个或N个eSIM,N为大于1的正整数。同一个eSIM196可以同时存储多个Profile。存储的多个Profile可以属于相同的运营商,也可以属于不同的运营商。电子设备100通过eSIM存储的Profile和网络交互,实现通话以及数据通信等功能。eSIM可以嵌在电子设备100中,不能和电子设备100分离。
下面结合本申请实施例中电子设备100的硬件结构,如图8-图10所示,对本申请实施例电子设备100中移动通信模块150包含有不同数目的硬件收发模块的情况下,启用多个Profile,需要根据这多个Profile建立多个通信连接时,电子设备100为Profile分配IMEI,以及为需要建立的通信连接分配硬件收发模块的过程进行描述,本申请文件中的硬件收发 模块可以为射频接收和发送电路。
可以理解的是,内部存储器121中存储有电子设备最多能同时启用并待机的Profile数量相应数目的待分配的IMEI。此外,内部存储器121中还存储有两套对应关系:一套对应关系为Profile激活时,为Profile分配的IMEI的对应关系,为便于描述,以下称为Profile-IMEI对应关系;另一套对应关系为分配硬件收发模块的配置,即IMEI与硬件收发模块的对应关系,为便于描述,以下称为IMEI-收发模块对应关系。这两套对应关系在内部存储器121中的表现形式可以为多种,例如数据表、数组、函数等等,此处不作限定。此外,这些对应关系可以位于一处表示,也可以分别存储于多处表示,此处不作限定。
作为一种实施方式,Profile和IMEI的对应关系可以不是固定不变的,是可以发生变化的。例如Profile1激活时,分配Profile1和IMEI2对应;然后用户将Profile1去激活,使Profile1由激活变为非激活,之后激活Profile2,可以分配Profile2和IMEI2对应。Profile和IMEI的对应关系发生变化之后,更新存储器中存储的Profile和IMEI的对应关系。
IMEI和硬件收发模块的对应关系也可以不是固定不变的,是可以发生变化的。IMEI和硬件收发模块的对应关系变化之后,更新存储器中存储的IMEI-收发模块对应关系。
以下以这两套对应关系在内部存储器121中分别以数据表的表现形式来存储为例,来进行说明:
下面结合具体的分配场景为例,先对Profile-IMEI对应关系进行描述,在一些实现方式中,将存储有该Profile-IMEI对应关系的数据表称为Profile-IMEI数据表:
假设电子设备最多能同时启用并待机的Profile数量为3,内部存储器121中内置了3个IMEI,分别为:IMEI1,IMEI2,IMEI3。电子设备100中有一个SIM卡接口195,其中插入了一张SIM,卡中包含Profile1。电子设备100中有一个eSIM196,eSIM196中下载安装了3个Profile,分别为Profile2、Profile3、Profile4。其中,Profile2已激活。则如下表1所示,为此时内部存储器121中一个Profile-IMEI数据表的示例,其中,已存储了Profile2的唯一标识与为其分配的IMEI2的对应关系:
IMEI Profile的唯一标识
IMEI2 Profile2的唯一标识
表1
当Profile3激活,需要为Profile3分配IMEI时,至少可以有以下几种方式:
1、随机分配
从还未分配的IMEI1与IMEI3中随机选择一个(例如IMEI3),分配给该Profile3,并记录在Profile-IMEI数据表中。则如下表2所示,为此时内部存储器121中一个Profile-IMEI数据表的示例:
IMEI Profile的唯一标识
IMEI2 Profile2的唯一标识
IMEI3 Profile3的唯一标识
表2
2、按数值大小顺序分配
按数值大小顺序从还未分配的IMEI1与IMEI3中选择数值大小较小的IMEI1,分配给该Profile3,并记录在Profile-IMEI数据表中。则如下表3所示,为此时内部存储器121中一个Profile-IMEI数据表的示例:
IMEI Profile的唯一标识
IMEI2 Profile2的唯一标识
IMEI1 Profile3的唯一标识
表3
3、按先入先出的顺序分配
在这种分配方式中,待分配的IMEI均存储在一个栈中,遵循后入先出原则。若IMEI3为一个已激活的Profile去激活后最新被释放的IMEI,则IMEI3被存储到该栈的栈顶。此时Profile3被激活,则IMEI3最先出栈,被分配给该Profile3,并记录在Profile-IMEI数据表中。其一种示例可以如上表2所示。
4、按最近分配历史记录优先分配
在这种分配方式中,内部存储器121中还有一个最近分配历史记录表,记录了最近一次为该Profile分配的IMEI,该表的一种表现形式可以如下表4所示:
Profile的唯一标识 最近一次分配的IMEI
Profile1的唯一标识 IMEI1
Profile2的唯一标识 IMEI2
Profile3的唯一标识 IMEI3
Profile4的唯一标识 IMEI1
表4
当Profile3被激活时,电子设备查找该最近分配历史记录表,得到最近一次Profile3激活时分配的IMEI为IMEI3,电子设备确定IMEI3当前未分配,将IMEI3分配给激活的Profile3,并记录在Profile-IMEI数据表中。其一种表现形式的示例可以如上表2所示。
在一种可能的情况中,有可能最近分配历史记录表中记录的Profile3最近一次分配的IMEI当前已被分配,例如若最近分配历史记录表如下表5所示:
Profile的唯一标识 最近一次分配的IMEI
Profile1的唯一标识 IMEI1
Profile2的唯一标识 IMEI2
Profile3的唯一标识 IMEI2
Profile4的唯一标识 IMEI3
表5
Profile2最近一次分配的IMEI为IMEI2,而IMEI2当前已被分配给了已激活的Profile2,则此时电子设备可以采取其他的分配方式(例如上述各种分配方式中的一种)将一个未分配的IMEI分配给Profile2,并更新最近分配历史记录表。
例如,电子设备在确定Profile3最近一次分配的IMEI2已被分配的情况下,使用随机分配的方式将IMIE3分配给激活的Profile3,并记录在Profile-IMEI数据表中。其一种示例可以如上表2所示。并更新最近分配历史记录表为如下表6所示:
Profile的唯一标识 最近一次分配的IMEI
Profile1的唯一标识 IMEI1
Profile2的唯一标识 IMEI2
Profile3的唯一标识 IMEI3
Profile4的唯一标识 IMEI3
表6
5、按Profile-IMEI数据表中空闲IMEI顺序优先分配
在这种分配方式中,Profile去激活后,电子设备不会清除该Profile-IMEI数据表中IMEI的记录,而只是会清除Profile的唯一标识记录。例如下表7所示,为此时内部存储器121中一个Profile-IMEI数据表的示例:
IMEI Profile的唯一标识
IMEI1  
IMEI2 Profile2的唯一标识
IMEI3  
表7
在此之前,Profile1、Profile2、Profile3同时启用,分别被分配了IMEI1、IMEI2、IMEI3。在Profile1、Profile3去激活后,Profile1、Profile3的唯一标识在Profile-IMEI数据表中被删除,但是IMEI1与IMEI3并未被删除。当有新的Profile3被激活时,确定Profile-IMEI数据表中有空值,则直接按顺序将Profile3的唯一标识记录到IMEI1对应的位置,得到如下表8所示的Profile-IMEI数据表的一个示例:
IMEI Profile的唯一标识
IMEI1 Profile3的唯一标识
IMEI2 Profile2的唯一标识
IMEI3  
表8
若新的Profile3被激活时,确定Profile-IMEI数据表中没有空值,则再采取其他的分配方式(例如上述各种分配方式中的一种)将一个未分配的IMEI分配给Profile3。
除了上述分配方式之外,根据预先设定,电子设备还可以采用其他的分配方式,例如历史匹配次数最多优先分配、先入后出顺序分配等等,此处不作限定。
在一种可选实现方式中,该Profile-IMEI数据表中并不仅限于记录IMEI与Profile的唯一标识两者之间的对应关系,还可以记录更多数据之间的对应关系以便于后续过程中的直接调用。例如,该Profile-IMEI数据表还可以为IMEI、Profile的唯一标识以及IMSI之间的对应关系。如下表9所示,为此时Profile-IMEI数据表的一个示例,其中,已存储了的Profile2的唯一标识、Profile2中的IMSI2与为其分配的IMEI2的对应关系:
IMEI Profile的唯一标识 IMSI
IMEI2 Profile2的唯一标识 IMSI2
表9
可以理解的是,在这种可选的Profile-IMEI数据表的实现方式中,也可以根据需要采 用上述的各种不同的分配IMEI的方式,此处不作限定。
下面结合具体的移动通信模块150包含不同数目的硬件收发模块的场景为例,对根据IMEI-收发模块对应关系进行硬件收发模块分配的过程进行描述,在一些实现方式中,将存储有该IMEI-收发模块对应关系的数据表称为IMEI-收发模块数据表:
情况1:仅有一套硬件收发模块
如图8所示,为本申请实施例中分配硬件收发模块一个示意图。在这种情况下,在SIM卡接口195中插入的SIM中的Profile1、eSIM196中Profile2和Profile3均被启用,根据该Profile1、Profile2和Profile3建立通信连接时,处理器110根据内部存储器121中存储的Profile-IMEI数据表中的对应关系分别分配IMEI,并根据内部存储器121中存储的默认配置(该默认配置可以表现为图8中所示的IMEI-收发模块数据表),处理器110会在移动通信模块150中仅有的那一套硬件收发模块1的能力范围内,分配该硬件收发模块1进行通信连接的建立、维持及数据收发工作,Profile1、Profile2和Profile3进行分时通信连接。
情况2:有N套硬件收发模块且电子设备最多能同时启用并待机的Profile数量为N
可以理解的是,在这种情况下,每个被启用的Profile均会分配到单独的一个硬件收发模块。内部存储器121存储的IMEI-收发模块数据表中有N个IMEI与N个硬件收发模块的对应关系。当一个Profile被启用并激活后,处理器110会给该Profile分配IMEI,根据为该Profile分配的IMEI,处理器110会按照内部存储器121存储的IMEI与硬件收发模块的对应关系,分配相应的硬件收发模块为该Profle进行通信连接的建立、维持及数据收发工作。
如图9所示,为本申请实施例中分配硬件收发模块另一个示意图。以电子设备中有3套硬件收发模块且电子设备最多能同时启用并待机的Profile数量为3为例,此时内部存储器121中内置有3个IMEI(IMEI1、IMEI2、IMEI3)分别与3个硬件收发模块(硬件收发模块1、硬件收发模块2、硬件收发模块3)的对应关系,SIM卡接口195插入的SIM卡中的Profile1激活后,由于为该Profile1分配的IMEI为IMEI2,内部存储器121存储的与IMEI2对应的硬件收发模块为硬件收发模块2,因此,分配使用硬件收发模块2为该Profle1进行通信连接的建立、维持及数据收发工作。eSIM196中的Profile2激活后,由于为该Profile2分配的IMEI为IMEI1,内部存储器121存储的与IMEI1对应的硬件收发模块为硬件收发模块1,因此,分配使用硬件收发模块1为该Profle2进行通信连接的建立、维持及数据收发工作。eSIM196中的Profile3激活后,由于为该Profile3分配的IMEI为IMEI3,内部存储器121存储的与IMEI1对应的硬件收发模块为硬件收发模块3,因此,分配使用硬件收发模块3为该Profle3进行通信连接的建立、维持及数据收发工作。
情况3:有N套硬件收发模块且电子设备最多能同时启用并待机的Profile数量大于N
在此种情况下,每套硬件收发模块有最多能同时维持的通信连接的上限数目。当有Profile启用,需要建立通信连接时,电子设备100可以根据各硬件收发模块的能力以及当前各硬件收发模块的状态,让当前有能力维持更多通信连接的硬件收发模块建立该通信连接。按照预先配置的硬件收发模块使用规则,分配建立该通信连接的硬件收发模块的方式可以有多种,例如按照空闲顺序分配、随机分配、历史记录分配等,各种分配方式可参考 为Profile分配IMEI的各种方式,此处不作赘述,具体使用何种分配方式此处不作限定。
下面以电子设备100具有2套硬件收发模块,且电子设备最多能同时启用并待机的Profile数量为3为例,对本情况中分配建立通信连接的硬件收发模块进行示例性描述。如图10所示,硬件收发模块1支持建立及维持1个通信连接,硬件收发模块2支持建立及维持2个通信连接。根据SIM卡接口195插入的SIM卡中的Profile1建立通信连接时,查询内部存储器121中Profile-IMEI数据表,确定为Profile1分配的IMEI为IMEI1,查询内部存储器121中IMEI-收发模块数据表,确定为IMEI1分配的硬件收发模块为硬件收发模块1,因此,使用硬件收发模块1为该Profle1进行通信连接的建立、维持及数据收发工作。根据eSIM196中的Profile2建立通信连接时,查询内部存储器121中Profile-IMEI数据表,确定为Profile2分配的IMEI为IMEI2,查询内部存储器121中IMEI-收发模块数据表,确定为IMEI2分配的硬件收发模块为硬件收发模块2,因此,使用硬件收发模块2为该Profle2进行通信连接的建立、维持及数据收发工作。根据eSIM196中的Profile3建立通信连接时,查询内部存储器121中Profile-IMEI数据表,确定为Profile3分配的IMEI为IMEI3,查询内部存储器121中IMEI-收发模块数据表,确定为IMEI3分配的硬件收发模块也为硬件收发模块2,因此,使用硬件收发模块2为该Profle3进行通信连接的建立、维持及数据收发工作。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图11是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图11所示,应用程序包可以包括SIM卡管理和/或eSIM管理,相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序(也可以称为应用)。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图11所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器,本地Profile管理助手(Local Profile Assistant,LPA)等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
LPA用于提供电子设备100对eSIM196中存储的Profile的操作功能。
安卓运行时(Android Runtime)包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维(2-Dimensional,2D)和三维(3-Dimensional,3D)图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现3D图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,虚拟卡驱动。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
在现有技术中,若一个电子设备支持双待,且具有存储有多个Profile的eSIM和插入了一张SIM卡的SIM卡槽。eSIM中的一个Profile已经被启用,此时,用户需要进行启用另一个Profile的操作时,用户对电子设备的操作过程可以参考如图12a、图12b、图12c、 图12d、图12e、图12f。
如图12a所示,电子设备显示了用户界面51,其中,用户界面51包括状态栏511和设置区域512。设置区域512中包含多个设置项,该多个设置项中包括:SIM卡管理513和eSIM管理514。
当检测到在如图12a所示的用户界面51中SIM卡管理513上的点击操作时,响应于该操作,电子设备显示如图12b所示的用户界面52。用户界面52的SIM卡管理区域中显示有一个SIM卡条目521,该SIM卡条目显示该SIM卡的当前状态为已停用。
当检测到在如图12c所示的用户界面51中eSIM管理514上的点击操作时,响应于该操作,电子设备显示如图12d所示的用户界面53。用户界面53的eSIM管理区域中显示有4个eSIM条目,分别对应电子设备的eSIM中下载的4个Profile。其中eSIM条目531对应的Profile为已启用状态,其他3个eSIM条目对应的Profile均为已停用状态。
当检测到在如图12d所示的用户界面53中eSIM条目532上的点击操作时,响应于该操作,电子设备显示如图12e所示的用户界面54。用户界面54中包括多个对eSIM条目532对应的Profile的操作控件,其中包括是否启用控件541。该是否启用控件541当前为关闭状态。
当检测到在如图12e所示的用户界面54中否启用控件541上的点击操作时,响应于该操作,如图12f所示,电子设备会在用户界面54上弹出提示框542。该提示框542中显示有文本信息:“一个eSIM仅能启用一个卡,请先停用已启用的卡”以及确定控件543。
当检测到在如图12f所示的提示框542中确定控件543上的点击操作时,响应于该操作,电子设备回到显示如图12d所示的用户界面53。eSIM条目532对应的Profile无法被启用,依然为已停用状态。
由上述图12a、图12b、图12c、图12d、图12e、图12f所示的现有技术可以看出,在eSIM中一个Profile已经启用的情况下,即使电子设备支持双待且SIM卡槽中的SIM卡未启用,电子设备也不支持激活eSIM中另一个Profile。这样,若需要多卡多待,则电子设备中需要至少安装多个SIM卡槽和/或eSIM,不仅成本较高,而且占用了电子设备中极大的空间,增大了电子设备的重量和厚度。本申请实施例提供的一种通信连接的方法,在根据一个eSIM中的第一Profile建立了第一通信连接,且不终止该第一通信连接的情况下,电子设备还可以接受用户进行的根据该eSIM中第二Profile建立通信连接的操作,根据该第二Profile建立第二通信连接,使得电子设备同时在该eSIM中的第一Profile和第二Profile上待机,这样,电子设备可支持在一个eSIM中同时激活多个Profile进行使用,仅需安装一个eSIM即可实现多卡多待,从而节省了成本,减少了对电子设备空间的占用。
应用场景1:针对上述问题,本申请实施例提供了如图13所示的通信连接的方法,可以在第一eSIM中第一Profile激活的情况下,激活第一eSIM中的第二Profile,使电子设备同时根据一个eSIM中的多个Profile分别建立多个通信连接,在该多个通信连接上待机。
如图13所示,该通信连接的方法包含步骤S601~S625。其中S601~S607介绍Profile状态加载过程;S608~S618介绍启用新的第二Profile的处理过程;S619~S625介绍停用第一Profile的处理过程。以下分别进行描述:
(一)步骤S601~S607,Profile状态加载过程
S601、电子设备响应用户操作,开机;
S602、电子设备开机后,从第一eSIM获取并显示Profile状态,其中,第一eSIM中的第一Profile已激活;
第一eSIM可以为电子设备中唯一的一个eSIM,也可以为电子设备中多个eSIM中的其中一个,此处不作限定。
可以理解的是,第一eSIM中的Profile,可以是预装在该eSIM中的,也可以是从远程管理平台下载的,此处不作限定。
在一种实现方式中,在电子设备上一般可以通过用户界面中,位于eSIM管理区域的eSIM条目上的状态指示符,来显示对应于该eSIM条目的Profile的状态信息。显示的Profile状态一般可以有两种:已启用和已停用。其中已启用状态对应的是该Profile已被激活。已停用状态对应的是该Profile已被去激活或已被下载安装还未被激活。该Profile对应的eSIM条目上除了显示用于指示该Profile当前状态的状态指示符外,还可以显示有该Profile的其他相关信息,例如该Profile所属的运营商、该Profile对应的手机号等,此处不作限定。电子设备可以通过LPA读取eSIM中已下载安装的Profile信息,并通过各Profile文件中的状态字段(例如Profilestate字段)来确定各Profile当前的激活状态。
示例性的,若电子设备通过LPA确定第一eSIM中已下载安装了4个Profile:Profile1、Profile2、Profile3、Profile4,且分别读取4个Profile的Profilestate字段的值,得到了Profile1的Profilestate字段值为enabled(1),Profile2、Profile3、Profile4的Profilestate字段值均为disabled(0),则电子设备确定Profile1已激活,Profile2、Profile3、Profile4未激活。进而在各Profile对应的eSIM条目的状态指示符上,显示Profile1的状态为已启用,Profile2、Profile3、Profile4的状态为已停用,确定Profile1已激活。
S603、电子设备从第一eSIM的第一Profile中读取第一IMSI;
第一eSIM的第一Profile中包含有运营商分发的IMSI及Ki等身份识别信息,在确定第一Profile已激活后,电子设备可以通过LPA读取第一eSIM中第一Profile的第一IMSI。该第一IMSI用于在通讯过程中,移动网络唯一识别该第一Profile。
S604、电子设备查找Profile-IMEI对应关系,得到为第一Profile分配的第一IMEI;
当电子设备中有Profile激活时,电子设备会给该激活的Profile分配IMEI,然后将被分配的IMEI与该激活的Profile的对应关系在Profile-IMEI对应关系中记录,并在内部存储器中存储,关于Profile-IMEI对应关系的分配和存储的具体描述,请参阅前述图8至图10所示的描述,此处不作赘述。
Profile-IMEI对应关系中,Profile使用Profile的唯一标识来表示。使用何种唯一标识来唯一确定一个Profile,由Profile的远程服务提供商、移动网络运营商、eSIM制造商以及电子设备制造商确定。可选的,可以使用集成电路卡识别码(Integrate circuit card identity,ICCID)作为Profile的唯一标识;也可以使用ISD-P号作为Profile的唯一标识;还可以使用该Profile中的IMSI通过一定的加密算法计算出的标识作为该Profil的唯一标识,还可以是各服务提供商商定的其他类型的唯一标识,此处不作限定。
Profile-IMEI对应关系中,IMEI与Profile唯一标识的对应关系可以使用数据表的形式 表示,也可以使用数组的形式表示,还可以用其他表示对应关系类型来表示,只需能记录Profile的唯一标识与为其分配的IMEI的对应关系,使电子设备能根据Profile的唯一标识,找到为其分配的IMEI即可,此处不作限定。
示例性的,在一种实现方式中,若使用ICCID作为Profile唯一标识,现需要查找ICCID为8986031874876304205的Profile对应的IMEI。电子设备查找到Profile-IMEI对应关系,得到【011472001975695,8986031874876304205】,则电子设备确定为该Profile分配的IMEI为011472001975695。
S605、电子设备将第一IMSI与第一IMEI发送给第一基站,根据第一Profile建立第一通信连接;
电子设备将读取得到的第一IMSI与查找得到的第一IMEI发送给第一基站进行入网鉴权,根据该第一Profile建立第一通信链接。具体的入网鉴权过程可参考上述使用SIM卡的入网鉴权过程,此处不作赘述。
需要说明的是,该第一基站为第一Profile的运营商下属的基站。若电子设备中有多个Profile,且该多个Profile属于不同的运营商,则电子设备可能需要与不同的运营商下属的基站进行通信,这不同运营商下属的基站可能并不是同一个基站。在一些情况下,若相关运营商达成了共用基站的协议,则也可能可以是不同运营商所属的基站,此处不作限定。
S606、电子设备监测该第一通信连接的信号强度;
电子设备根据第一Profile建立第一通信连接后,监测该第一通信连接的信号强度。若在该第一通信连接上有数据需要收发,则进行数据收发工作;若一段时间在该第一通信连接上均无数据需要收发,则在该第一通信连接上进入待机状态。待机状态表示电子设备低功耗的监测是否在该第一通信连接上有数据需要收发。
S607、电子设备显示第一通信连接的信号强度指示符;
电子设备监测到第一通信连接的信号强度后,会在显示屏上实时显示相应的用于指示该信号强度的第一指示信息。该第一指示信息的一种表现形式可以为信号强度指示符。
可以理解的是,若在开机时,电子设备中还有其他的Profile已激活,则其同样可以按照上述过程进行状态加载。
下面介绍Profile状态加载过程所涉及的示例性用户界面(user interface,UI)。本申请的说明书和权利要求书及附图中的术语“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
图14a示例性示出了电子设备100上的用于展示电子设备100安装的应用程序的示例性用户界面71。
用户界面71可包括:状态栏701,日历指示符702,天气指示符703,具有常用应用 程序图标的托盘704,导航栏705,以及其他应用程序图标。其中:
状态栏701可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符701A、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符701B,电池状态指示符701C、时间指示符701D。
日历指示符702可用于指示当前时间,例如日期、星期几、时分信息等。
天气指示符703可用于指示天气类型,例如多云转晴、小雨等,还可以用于指示气温等信息。
具有常用应用程序图标的托盘704可展示:电话图标704A、联系人图标704B、短信图标704C、相机图标704D。
导航栏705可包括:返回键705A、主屏幕键705B、多任务键705C等系统导航键。当检测到用户点击返回键705A时,电子设备100可显示当前页面的上一个页面。当检测到用户点击主屏幕键705B时,电子设备100可显示主界面。当检测到用户点击多任务键705C时,电子设备100可显示用户最近打开的任务。各导航键的命名还可以为其他,本申请对此不做限制。不限于虚拟按键,导航栏705中的各导航键也可以实现为物理按键。
其他应用程序图标可例如:微信(Wechat)的图标、QQ的图标、推特(Twitter)的图标、脸书(Facebook)的图标、邮箱的图标710、云共享的图标711、备忘录的图标712、支付宝的图标、图库的图标714、设置的图标715。用户界面71还可包括页面指示符716。其他应用程序图标可分布在多个页面,页面指示符716可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。
在一些实施例中,图14a示例性所示的用户界面71可以为主界面(Home screen)。
在其他一些实施例中,电子设备100还可以包括实体的主屏幕键。该主屏幕键可用于接收用户的指令,将当前显示的UI返回到主界面,这样可以方便用户随时查看主屏幕。上述指令具体可以是用户单次按下主屏幕键的操作指令,也可以是用户在短时间内连续两次按下主屏幕键的操作指令,还可以是用户在预定时间内长按主屏幕键的操作指令。在本申请其他一些实施例中,主屏幕键还可以集成指纹识别器,以便用于在按下主屏幕键的时候,随之进行指纹采集和识别。
可以理解的是,图14a仅仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。
图14b示例性示出的用户界面72可以为“设置界面”的一种实现方式。该用户界面72可以是“设置”应用提供的。“设置”应用是安装于智能手机、平板电脑等电子设备上的一款用于设置电子设备的各项功能的应用程序,本申请实施例对该应用程序的名称不做限制。该用户界面72可以是用户点击图14a所示的用户界面71中的设置图标715打开的用户界面。
如图14b所示,用户界面72可包括:状态栏721、标题栏722、包括一个或多个设置项的区域723。
状态栏721可参照图14a所示的用户界面71中的状态栏701,这里不再赘述。
标题栏722可包括当前页面指示符722A,当前页面指示符722A可用于指示当前页面, 例如文本信息“设置”可用于指示当前页面用于展示一个或多个设置项。不限于文本信息,当前页面指示符722A还可以是图标。
区域723包括一个或多个设置项,该一个或多个设置项可包括:飞行模式设置项,WIFI设置项,蓝牙设置项,eSIM管理设置项723A,移动网络设置项,勿扰模式设置项,显示与亮度设置项,华为账号设置项,声音设置项,隐私设置项等。各个设置项的表现形式可包括图标和/或文本,本申请对此不做限制。各个设置项可用于监听触发显示对应设置项的设置内容的操作(如触摸操作),响应于该操作,电子设备可打开用于显示对应设置项的设置内容的用户界面。
在一些实施例中,检测到在如图14b所示的用户界面72中eSIM管理设置项723A上的操作(如触摸操作),电子设备可显示如图14c所示的用户界面73。
如图14c所示,用户界面73用于展示eSIM管理设置项的对应内容。该用户界面73可包括:状态栏731、标题栏732、eSIM管理区域733。
状态栏731可参照图14a所示的用户界面71中的状态栏701,这里不再赘述。
标题栏732可包括:返回键732A、当前页面指示符732B。返回键732A为APP级返回键,可用于返回菜单上一级。用户界面73的上一级页面可以为如图14b所示的用户界面72。当前页面指示符732B可用于指示当前页面,例如文本信息“eSIM管理”可用于指示当前页面用于展示eSIM管理设置项的对应内容,不限于文本信息,当前页面指示符732B还可以是图标。
eSIM管理区域733可显示eSIM中已下载安装的Profile对应的eSIM条目及添加eSIM控件733E。
添加eSIM控件733E可用于在接收到用户操作(例如触摸操作)时,与远程RSP服务器通信,可下载Profile。
示例性的,若在上述步骤S602中,电子设备确定eSIM中已下载安装了4个Profile:Profile1、Profile2、Profile3、Profile4。则会在图14c所示的用户界面73中eSIM管理区域733内对应显示4个eSIM条目:eSIM条目733A、eSIM条目733B、eSIM条目733C、eSIM条目733D。各eSIM条目中可以包括对应的Profile所属的网络运营商图标、名称、手机号码、Profile状态指示符、以及条目设置控件。当电子设备确定Profile1已激活,Profile2、Profile3、Profile4未激活时,则可以更新Profile1对应的eSIM条目733A中Profile状态指示符733A1显示为已启用,其他未激活的Profile1对应的eSIM条目733B、733C、733D中Profile状态指示符显示为已停用。在步骤S607中,若根据Profile1上建立了通信连接,检测信号后,则可以在图14a的状态栏701中显示该通信连接的信号强度指示符701A。
(二)步骤S608~S618,启用新的第二Profile的处理过程
S608、电子设备接收到用户启用第一eSIM中的第二Profile的操作;
本申请实施例中,电子设备在第一eSIM中第一Profile已启用,根据第一Profile建立的第一通信连接还未终止的情况下,还可以接收用户启用第一eSIM中第二Profile的操作。其中,该第二Profile为第一eSIM中与第一Profile不同的一个Profile。可以理解的是,该操作的目的实质即为使电子设备根据第二Profile建立通信连接。
具体的,用户启用第二Profile的操作可以为在eSIM管理区域内第二Profile对应的eSIM条目上点击条目设置控件,进入卡信息管理界面,通过对卡信息管理界面的卡信息管理区域中的是否启用控件进行操作(例如触摸操作、或点击操作等),从而将未启用的第二Profile进行启用。在另一种实现方式中,用户在eSIM管理区域内右划第二Profile对应的eSIM条目,在出现的启用/取消选择控件中,点击启用选项,从而将未启用的第二Profile进行启用。可以理解的是,根据电子设备的设置,还可以有其他接收用户启用第二Profile的操作,此处不作限定。
S609、电子设备响应于该操作,判断已启用的Profile数量是否小于预置阈值;
本申请实施例中,电子设备在第一eSIM中第一Profile已启用,根据第一Profile建立的第一通信连接还未终止的情况下,若接收到启用该第一eSIM中第二Profile的操作,即根据第二Profile建立通信连接的操作时,并不会因为第一eSIM上已经有一个已激活的Profile而直接拒绝该操作。而是会判断电子设备上当前已启用的Profile数量是否小于预置阈值,该预置阈值为上述电子设备最多能同时启用并待机的Profile数量,具体可以参与上述描述,此处不作赘述。可以理解的是,该已启用的Profile数量并不仅限于第一eSIM中已启用的Profile,而是电子设备中当前已启用的所有Profile的数量。
具体的,若预置阈值为N,N为大于等于2的正整数。当前电子设备中已启用的Profile数量为M,M为正整数。在接收到用户启用一个新的第二Profile的操作时,电子设备会判断此时N是否小于M。若小于则执行步骤S611;若不小于,则执行步骤S610。
例如,若电子设备最多支持同时启用3个Profile,当前电子设备中已经启用了插在SIM卡槽中的一张SIM卡中的Profile和eSIM中的一个Profile,则已启用了2个Profile。因此,若此时接收到用户启用eSIM中另一个Profile的操作时,电子设备确定2小于3,则会执行步骤S611。
S610、若确定不小于预置阈值,则电子设备显示超出提示;
本申请实施例中,当步骤S609中电子设备确定已启用的Profile数量不小于预置阈值时,此时若再启用新的Profile,则超出了电子设备最多能同时启用并待机的Profile的能力,电子设备可以弹出提示框,提示用户需要将已启用的Profile停用后再启用该Profile。
在一种实现方式中,电子设备可以弹出停用选项框,该停用选项框中可以包含电子设备中所有已启用的Profile对应的条目。当用户在该停用选项框选择停用其中一个条目对应的Profile后,再执行步骤S609。
S611、若确定小于预置阈值,则电子设备激活第二Profile;
本申请实施例中,当步骤S609中电子设备确定已启用的Profile数量小于预置阈值时,表明电子设备此时还能够支持新的Profile启用,则电子设备激活第二Profile。
具体的,电子设备可以通过LPA修改第二Profile中的状态字段(例如Profilestate字段)来将该第二Profile置为激活状态。
示例性的,若步骤S602中电子设备通过LPA确定第一eSIM中已下载安装了4个Profile:Profile1、Profile2、Profile3、Profile4,且分别读取4个Profile的Profilestate字段的值,得到了Profile1的Profilestate字段值为enabled(1),Profile2、Profile3、Profile4的Profilestate字段值均为disabled(0)。按照步骤S603~S607,电子设备在该Profile1上建立 通信连接。在步骤S608中接收到到用户启用Profile3的操作,在步骤S609中确定当前已启动的Profile数量1小于阈值2,则在步骤S611中,电子设备通过LPA修改Profile3中的Profilestate字段值为enabled(1),将该Profile3置为激活状态。
S612、电子设备可以通知第二RSP服务器第二Profile已激活;
激活第二Profie后,电子设备可以发送通知消息给第二RSP服务器,告知第二Profile已激活,第二RSP服务器为电子设备与第二Profile的远程管理平台通信的服务器。第二RSP服务器可以对第二Profile的状态进行同步记录。
需要说明的是,根据Profile所属运营商与远程服务提供商之间的协议,可以执行本步骤,也可以不执行本步骤,此处不作限定。
S613、电子设备更新显示第二Profile对应的eSIM条目中的状态信息;
电子设备上在eSIM管理区域中第二Profile对应的eSIM条目中可以显示该第二Profile的相关信息:例如该第二Profile所属的运营商,该第二Profile对应的手机号等。此外,还会显示该第二Profile当前的状态信息。在第二Profile未激活时,电子设备可以在eSIM管理区域中第二Profile对应的eSIM条目中显示第二Profile的状态指示符为已停用;激活第二Profile后,电子设备可以更新状态指示符为已启用。可以理解的是,此时第一Profile对应的eSIM条目中显示的第一Profile的状态指示符也为已启用。
S614、电子设备为第二Profile分配IMEI,并在Profile-IMEI对应关系中添加第二Profile的唯一标识与分配的第二IMEI的对应关系;
本申请实施例中,第二Profile激活后,电子设备会从待分配的IMEI中选择一个,分配给IMEI,建立第二Profile的唯一标识与分配的第二IMEI的对应关系,并存储在内部存储器中的Profile-IMEI对应关系中。为Profile分配IMEI的过程及Profile与IMEI对应关系的存储形式可参阅上述对Profile-IMEI对应关系的描述,此处不作赘述。S615、电子设备监听到第二Profile激活,获取到第二Profile的第二IMSI,并确定为其分配的第二IMEI;
电子设备监听到第二Profile激活后,可以通过LPA从eSIM中获取到存储在第二Profile中的第二IMSI。并根据第二Profile的唯一标识,查找存储在电子设备的内部存储器中的Profile-IMEI对应关系,确定为该第二Profile分配的第二IMEI。
可以理解的是,若在Profile-IMEI对应关系中也存储了第二Profile的唯一标识与第二IMSI的对应关系,则此时可以不需要从eSIM中再次读取第二IMSI,直接从Profile-IMEI对应关系中获取第二IMSI即可。
S616、电子设备将第二IMSI与第二IMEI发送给第二基站,根据第二Profile建立第二通信连接;
具体的入网鉴权过程可参考使用SIM卡的入网鉴权过程,此处不作赘述。
该第二基站为第二Profile的运营商下属的基站。根据第一Profile与第二Profile所属运营商是否相同以及运营商之间是否有相关协议,该第一基站与第二基站可能是同一个基站,也可能不是同一个基站,此处不作限定。
S617、电子设备监测该第二通信连接的信号强度;
电子设备根据第二Profile建立第二通信连接后,监测该第二通信连接的信号强度。若在该第一通信连接上有数据需要收发,则进行数据收发工作;若一段时间在该第二通信连 接上均无数据需要收发,则在该第二通信连接上进入待机状态。待机状态表示电子设备低功耗的监测是否在该第二通信连接上有数据需要收发。
S618、电子设备显示第二通信连接的信号强度指示符;
电子设备监测到第二通信连接的信号强度后,会在显示屏上实时显示相应的用于指示该信号强度的第二指示信息。该第二指示信息的一种表现形式可以为信号强度指示符。
下面介绍启用新的第二Profile的处理过程所涉及的示例性用户界面。
以用户要启用的第二Profile为图14c所示的用户界面73中eSIM条目733C对应的Profile为例进行示例性说明:
在一些实施例中,检测到在如图14c所示的用户界面73中eSIM条目733C上的操作(如触摸操作),电子设备可显示如图15a所示的用户界面81。
用户界面81可包括状态栏811、标题栏812、包括一个或多个管理控件的区域813。
状态栏811可包括:表示图14c所示用户界面73中eSIM条目733A对应的Profile激活后建立的通信链接的信号强度指示符811A、WIFI信号强度指示符、电池状态指示符与时间指示符。
标题栏812可包括:返回键812A、当前页面指示符812B。返回键812A为APP级返回键,可用于返回菜单上一级。用户界面81的上一级页面可以为如图14c所示的用户界面73。当前页面指示符812B可用于指示当前页面,例如文本信息“卡信息管理”可用于指示当前页面用于展示eSIM信息管理的对应内容,不限于文本信息,当前页面指示符812B还可以是图标。
区域813包括一个或多个卡信息管理控件项,该一个或多个卡信息管理控件项可包括:
是否启用控件813A:用于接受用户的操作(点击或触摸等),改变Profile的启用/通用状态。若控件813A开关状态为OFF,则表示该Profile停用;若控件813A开关状态为ON,则表示该Profile启用。
网络选择控件813B:用于表示该Profile的网络选择。一般为Profile下载安装时根据Profile的信息默认选择。
手机号码控件813C:用于表示该Profile对应的手机号码。一般为Profile下载安装时根据Profile的信息默认显示。
卡名称控件813D:用于在本机上标识该Profile的名称以方便用户识别。用户可点击该控件在弹出的文本框中输入自己命名的卡名称。
启用移动数据控件813E:用于接受用户的操作(点击或触摸等),控制在该Profile启用后,是否启用移动数据。若控件813E开关状态为OFF,则表示不启用该Profile的移动数据,则电子设备中的所有应用程序不能使用该Profile的移动数据。若控件813E开关状态为ON,则表示启用该Profile的移动数据,则电子设备中的应用程序可以选择使用该Profile的移动数据。
作为默认移动数据卡控件813F:用于接受用户的操作(点击或触摸等),控制在启用移动数据控件813E开关状态为ON的情况下,是否将该Profile作为默认移动数据卡。若控件813F开关状态为ON,则表示该将该Profile作为默认移动数据卡,在用户不主动进行 选择的情况下,移动设备中的应用程序都优先默认使用该Profile的移动数据。若控件813F开关状态为OFF,则表示不将该Profile作为默认移动数据卡,除非用户主动选择某些应用程序使用该Profile的移动数据,否则应用程序会默认使用当前默认移动数据卡的移动数据。可以理解的是,在电子设备中,只有一个Profile的控件813F的开关状态能处于ON,其他的都是OFF。例如若此时将该Profile的作为默认移动数据卡控件813F的开关状态置为ON,则电子设备上之前作为默认移动数据卡控件开关状态置为ON的那个Profile下面的作为默认移动数据卡控件的开关状态会自动置为OFF。
作为默认电话/信息卡控件813G:用于接受用户的操作(点击或触摸等),控制在该Profile启用后,是否作为默认电话/信息卡。若控件813G开关状态为ON,则表示将该Profile作为默认电话/信息卡,在用户拨打电话或发送信息时,在用户不主动进行选择的情况下,点击拨出键或发送键,会默认使用该Profile拨打电话或发送信息。若控件813G开关状态为OFF,则表示不将该Profile作为默认电话/信息卡,在用户拨打电话或发送信息时会默认使用当前默认电话/信息卡拨打电话或发送信息。可以理解的是,在电子设备中,只有一个Profile的控件813G的开关状态能处于ON,其他的都是OFF。例如若此时将该Profile的作为默认电话/信息卡控件813G的开关状态置为ON,则电子设备上之前作为默认电话/信息卡控件开关状态置为ON的那个Profile下面的作为默认电话/信息卡控件的开关状态会自动置为OFF。
出现在拨号选项中控件813H:用于接受用户的操作(点击或触摸等),控制在作为默认电话/信息卡控件813G的开关状态为OFF的情况下,是否将该Profile的对应的电话拨出控件出现在拨号选项中。若控件813H的开关状态为ON,则在用户拨打电话时,若长按拨号按键,会出现拨号选项,该Profile对应的电话拨出控件会出现在该拨号选项中,若用户点击该Profile对应的电话拨出控件,则会使用该Profile拨出该电话,而不再使用默认Profile拨出该电话。若控件813H的开关状态为OFF,则在用户拨打电话时,若长按拨号按键,若有其他Profile下的出现在拨号选项中控件的状态开关置为ON,则该其他Profile对应的电话拨出控件会出现在拨号选项中,若所有Profile下的出现在拨号选项中控件的状态开关均为OFF,则长按拨号按键时不会出现拨号选项,只能使用默认电话/信息卡拨出电话。
删除本卡控件813I:用于接受用户的操作(点击或触摸等),删除该Profile。只有当是否启用控件813A的开关状态为OFF时,该删除本卡控件813I才能被触发,否则该控件813I处于不可被触发状态。
在一些实施例中,检测到在如图15a所示的用户界面81中是否启用控件813A,以及作为默认电话/信息卡控件813G上的操作(如触摸操作),电子设备可显示如图15b所示的用户界面81。此时,由于用户点击将是否启用控件813A置为ON,电子设备执行上述步骤S608至S618,根据图14c所示的用户界面73中eSIM条目733C对应的Profile建立通信连接。如图15b所示,在用户界面81的状态栏811中显示出该新启用的eSIM条目733C对应的Profile激活后建立的通信连接的信号强度指示符811B。是否启用控件813A与作为默认电话/信息卡控件813G的开关状态均更新为ON状态,而删除本卡控件813I更新为不可触发状态。
在一些实施例中,检测到在如图15b所示的用户界面81中返回键812A上的操作(如 触摸操作),电子设备可显示如图15c所示的用户界面73。
相比于图14c所示的用户界面73,此时状态栏731中更新显示了根据eSIM条目733C对应的Profile建立的通信连接的信号强度指示符811B,且eSIM条目733C中的Profile状态指示符733C1更新显示为已启用。
在一些实施例中,用户启用新的第二Profile时,在步骤S609中,电子设备可能会判断出已启用的Profile数量不小于预置阈值,从而不能执行后续步骤S611~S618,而是执行步骤S610。下面以预置阈值为2为例,示例性展示用户在图15c所示用户界面73中已启用2个Profile的情况下,想要再次启用新的Profile时,电子设备执行步骤S610所涉及的示例性用户界面。
检测到用户在如图16a所示的用户界面73中eSIM条目733B上的操作(如触摸操作),电子设备可显示如图16b所示的用户界面91。
用户界面91中各控件的具体描述可参考图15a所示的用户界面81,此处不作赘述。
检测到用户在如图16b所示的用户界面91中是否启用控件911上的操作(如点击操作),电子设备执行步骤S609后确定,当前已启用的Profile数量为2,不小于阈值2,因此电子设备可显示如图16c所示的用户界面91,在用户界面91上弹出提示框912。该提示框912中显示有文本信息:“提示:本终端支持最大启用卡数为2,启用卡数已满,请停用其他卡再启用”以及确定控件912A。
当检测到在如图16c所示的提示框912中确定控件912A上的点击操作时,响应于该操作,电子设备回到显示如图16a所示的用户界面73。eSIM条目733B对应的Profile无法被启用,依然为已停用状态。
(三)步骤S619~S625,停用第一Profile的处理过程
S619、电子设备接收到用户停用第一eSIM中的第一Profile的操作;
S620、电子设备响应于该操作,断开第一通信连接;
S621、电子设备将第一Profile去激活;
具体的,电子设备可以通过LPA修改第一Profile中的状态字段(例如Profilestate字段)来将该第二Profile去激活。
示例性的,若第一Profile为Profile1,Profile1中的Profilestate字段值为enabled(1)。则步骤S621中,电子设备通过LPA将Profile1中的Profilestate字段值修改为disabled(0)。
S622、电子设备更新显示第一Profile对应的eSIM条目中的状态信息;
具体的,去激活第一Profile后,电子设备可以在eSIM管理区域中第一Profile对应的eSIM条目中更新状态指示符为已停用。
S623、电子设备可以通知第一RSP服务器第一Profile已去激活;
需要说明的是,根据Profile所属运营商与远程服务提供商之间的协议,可以执行本步骤,也可以不执行本步骤,此处不作限定。
具体的,去激活第一Profie后,电子设备可以发送通知消息给第一RSP服务器,告知第一Profile已激活,第一RSP服务器为电子设备与第一Profile的远程管理平台通信的服 务器。第一RSP服务器可以对第二Profile的状态进行同步记录。
可以理解的是,根据第一Profile与第二Profile的远程管理平台的服务商是否相同,以及服务商之间是否签有协议,该第一RSP服务器可能与第二RSP服务器为同一个RSP服务器,也可能与第二RSP为不同的服务器,此处不作限定。
S624、电子设备不再显示第一通信连接的信号强度指示符;
S625、电子设备更新Profile-IMEI对应关系:去除第一Profile的唯一标识。
具体的,第一Profile去激活后,电子设备可以在Profile-IMEI对应关系中去除第一Profile的唯一标识,将分配给该第一Profile的IMEI回收到未分配IMEI存储空间。
在一些实现方式中,也可以仅将Profile-IMEI对应关系中第一Profile的唯一标识去除,而不回收分配给它的IMEI,将IMEI对应的Profile唯一标识部分置空,等到有新的Profile激活需要分配IMEI时,直接将需要分配IMEI的Profile的唯一标识填写在空值部分,从而建立对应关系。具体可参阅上述对Profile-IMEI对应关系的描述,此处不再赘述。
下面介绍停用第一Profile的处理过程所涉及的示例性用户界面。
如图17a所示,以用户要停用的第一Profile为图17a所示的用户界面73中eSIM条目733A对应的Profile为例进行示例性说明:
此时图17a所示的用户界面73中,eSIM条目733A的Profile状态指示符733A1显示为已启用,eSIM条目733C的Profile状态指示符733C1显示为已启用,状态栏中有对应于这两个Profile的2个信号强度指示符。
在一些实施例中,检测到在如图17a所示的用户界面73中eSIM条目733A上的操作(如触摸操作),电子设备可显示如图17b所示的用户界面101。
如图17b所示用户界面101的状态栏101包括有eSIM条目733A对应的Profile的信号强度指示符1011A以及eSIM条目733C对应的Profile的信号强度指示符1011B。用户界面101中还包括是否启用控件1012以及删除本卡控件1013。由于该Profile当前为启用状态,因此删除本卡控件1013当前为不可激活状态。用户界面101中其他控件的具体描述可参考图15a所示的用户界面81,此处不再赘述。
检测到用户在如图17b所示的用户界面101中是否启用控件1012上的操作(如触摸操作),电子设备可显示如图17c所示的用户界面101。
响应于用户的操作,在如图17c所示的用户界面101中,是否启用控件1012的开关状态被置为OFF,电子设备执行上述步骤S619~S625。eSIM条目733A对应的Profile的信号强度指示符1011A隐藏,状态栏1011中仅显示eSIM条目733C对应的Profile的信号强度指示符1011B。由于该Profile已停用,删除本卡控件1013更新为可激活状态。
检测到用户在如图17c所示的用户界面101中返回键1014上的操作(如点击操作),电子设备可显示如图17d所示的用户界面73。
此时在如图17d所示的用户界面73中,eSIM条目733A上的Profile状态指示符733A1更新为已停用。
在本申请一些实施例中,用户可以删除已停用的Profile。下面以用户要删除图18a所 示的用户界面73中eSIM条目733C对应的Profile为例,进行示例性说明:
检测到用户在如图18a所示的用户界面73中eSIM条目733C上的操作(如触摸操作),电子设备可显示如图18b所示的用户界面81。由于该eSIM条目733C对应的Profile处于已停用状态,因此,删除本卡控件813I处于可触发状态。
检测到用户在如图18b所示的用户界面81中删除本卡控件813I上的操作(如点击操作),电子设备可显示如图18c所示的用户界面81。在该如图18c所示的用户界面81中弹出了身份验证提示框1101。该身份验证提示框1101中可以包括:
身份认证指示符1101A:用于提示用户该身份验证提示框1101用于进行身份验证;
指纹识别指示符1101B:用于提示用户当前正触发的身份验证方式为指纹识别。该指纹识别指示符1101B的指纹图标可以根据用户指纹识别的进度产生相应的变化。
密码认证控件110C:用于在接收到用户的操作后,弹出密码输入框;
人脸识别控件110D:用于在接收到用户的操作后,触发人脸识别验证方式。
在检测到用户身份认证成功后,电子设备显示如图18d所示的用户界面81。在该如图18d所示的用户界面81中弹出了认证成功提示框1102。该认证成功提示框1102中包含有文本信息:身份认证成功,本卡信息已删除。
然后,电子设备会自动跳转到如图18e所示的用户界面73。在该如图18e所示的用户界面73中,eSIM条目733C已被删除,不再显示。
应用场景2:在本申请的一些实施例中,电子设备中可以安装有不止一个eSIM,与此同时,还可以安装有卡槽。
下面以电子设备中具有2个eSIM和一个插有SIM卡的SIM卡槽,电子设备最多能同时启用并待机的Profile数量为5为例,对执行本申请实施例中通信连接的方法时其中可能涉及到的用户界面进行示例性说明:
如图19a所示的用户界面121中,包括有状态栏1201,标题栏以及设置项区域。
状态栏1201中包含有信号强度指示符1201A、信号强度指示符1201B、信号强度指示符1201C,表示电子设备中有3个Profile已启用,处于激活状态。
在设置项区域中包括SIM卡管理设置项1202。该SIM卡管理设置项用于多电子设备中所有的eSIM以及SIM卡进行管理。
检测到用户在如图19a所示的用户界面121中SIM卡管理设置项上的操作(如触摸操作),电子设备可显示如图19b所示的用户界面122。
该如图19b所示的用户界面122中包括状态栏、返回键、页面指示符、卡管理区域1203、卡管理区域1205、滑动控件1204。
该滑动控件1204用于接收用户按住后上下滑动的操作,从而显示出用户界面122中更多的区域。
检测到用户在如图19b所示的用户界面122中该滑动控件1204上的操作(如按住向下滑动操作),电子设备可显示如图19c所示的用户界面122。
该如图19c所示的用户界面122中包括卡管理区域1205剩下的部分,以及卡管理区域1206。
该卡管理区域1203中包含:区域指示符1203A、eSIM条目1203B、eSIM条目1203C、eSIM条目1203D、eSIM条目1203E以及添加eSIM控件。
其中,区域指示符1203A用于指示该区域显示的SIM/eSIM条目所属的eSIM/卡槽为eSIM1。eSIM条目1203B中Profile状态指示符显示为已启用,表示其对应的Profile为激活状态。该Profile对应的状态栏中信号强度指示符为信号强度指示符1201A。eSIM条目1203C、eSIM条目1203D、eSIM条目1203E中Profile状态指示符均显示为已停用。
该卡管理区域1205中包括:区域指示符1205A、eSIM条目1205B、eSIM条目1205C以及添加eSIM控件。
其中,区域指示符1205A用于指示该区域显示的SIM/eSIM条目所属的eSIM/卡槽为eSIM2。eSIM条目1205B中Profile状态指示符显示为已启用,表示其对应的Profile为激活状态。该Profile对应的状态栏中信号强度指示符为信号强度指示符1201B。eSIM条目1205C中Profile状态指示符显为已停用。
该卡管理区域1206中包括:区域指示符1206A、SIM卡条目1206B。
其中,区域指示符1206A用于指示该区域显示的SIM/eSIM条目所属的eSIM/卡槽为SIM卡槽1。SIM卡条目1206B中Profile状态指示符显示为已启用,表示其对应的Profile为激活状态。
检测到用户在如图20a所示的用户界面122中eSIM条目1203D上的操作(如触摸操作),电子设备可显示如图20b所示的用户界面131。
检测到用户在如图20b所示的用户界面131中是否启用控件1301上的操作(如触摸操作),电子设备可执行步骤S608~S618,并显示如图20c所示的用户界面131。此时,用户界面131中是否启用控件1301的状态开关置为ON,状态栏1201中更新显示出来根据对应于eSIM条目1203D的Profile建立的通信连接的信号强度指示符1201D。
检测到用户在如图20c所示的用户界面131中返回键上的操作(如点击操作),电子设备可显示如图20d所示的用户界面122。此时用户界面122中eSIM条目1203D的Profile状态指示符已更新显示为已启用。
检测到用户在如图21a所示的用户界面122中eSIM条目1203C上的操作(如触摸操作),电子设备可显示如图21b所示的用户界面141。
检测到用户在如图21b所示的用户界面141中是否启用控件1401上的操作(如点击操作),电子设备可执行步骤S608~S618,并显示如图21c所示的用户界面141。此时,用户界面141中是否启用控件1401的状态开关置为ON,状态栏1201中更新显示出来根据对应于eSIM条目1203C的Profile建立的通信连接的信号强度指示符1201E。
检测到用户在如图21c所示的用户界面141中返回键上的操作(如点击操作),电子设备可显示如图21d所示的用户界面122。此时用户界面122中eSIM条目1203C的Profile状态指示符已更新显示为已启用。
应用场景3:在一些实施例中,电子设备启用激活了一个eSIM的多个Profile,并根据这多个Profile分别建立通信连接,在这多个通信连接上待机后,可能会在其中一个激活的Profile对应的通信连接上进行业务处理时,接收到在另一个激活的Profile对应的通信连接 上进行业务处理的请求。
下面以电子设备100的eSIM196中已启用激活了2个Profile(ProfileA与ProfileB)为例,结合图7所示电子设备100的结构示意图以及图11所示电子设备100的软件结构框图,对电子设备100同时在一个eSIM196中两个已激活的Profile对应的两个通信连接上分别进行业务处理的过程进行示例性描述:
ProfileA激活时,CPU110通过电子设备100中应用程序框架层的LPA从eSIM196中读取了该ProfileA的IMSI-A,并查找Profile-IMEI数据表,确定为该ProfileA分配的为IMEI-A,电子设备100通过移动通信模块150将IMSI-A与IMEI-A发送给基站A,基站A为移动网络A的基站。移动网络A生产一组随机数(RADN-A)发送给电子设备100。电子设备100中的通过移动通信模块150接收到该RADN-A后,利用应用程序框架层的LPA通过CPU110发送给eSIM196。eSIM196根据RADN-A与ProfileA中存储的鉴权密钥(Ki-A)计算出鉴权结果(SENS-A)。同时,eSIM196根据RADN-A与ProfileA中存储的鉴权密钥(Ki-A)计算出通信密钥(Kc-A)。eSIM196将SENS-A与Kc-A发送给CPU110。CPU110将Kc-A保存,将SENS-A过移动通信模块150发送给基站A。移动网络A确定SENS-A与自己计算的鉴权结果相同,允许根据该ProfileA上建立通信连接A,电子设备100在通信连接A上待机。
ProfileB激活时,过程与ProfileA类似,此处不作赘述。同理,CPU110会将eSIM196根据RADN-B与ProfileB中存储的鉴权密钥(Ki-B)计算出的通信密钥(Kc-B)保存,并将计算出的鉴权结果(SENS-B)发送给基站B,基站B为移动网络B的基站。移动网络B确定SENS-B与自己计算的鉴权结果相同,允许根据该ProfileB上建立通信连接B,电子设备100在通信连接B上待机。
当用户打开了电子设备100上的在线音乐播放器APP进行在线音乐播放,该在线音乐播放器APP预设使用ProfileA的数据流量时,CPU110使用Kc-A对该数据流量进行通信加密,并通过移动通信模块150在通信连接A上与基站A进行数据的收发处理。
与此同时,当用户打开了电子设备100上的浏览器APP进行网页浏览,该浏览器APP预设使用ProfileB的数据流量时,CPU110使用Kc-B对该数据流量进行通信加密,并通过移动通信模块150在通信连接B上与基站B进行数据的收发处理。
可以理解的是,移动通信模块150可以使用时分复用技术分别与基站A和基站B进行通信。具体移动通信模块150在其中硬件收发模块数目不同的情况下对分配硬件收发模块建立和维持通信连接的描述,请参阅上述图8至图10所示的对IMEI-收发模块对应关系的描述,此处不作赘述。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确 定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (19)

  1. 一种通信连接的方法,应用于具有嵌入式用户标识模块(embedded-subscriber identification module,eSIM)的电子设备,其特征在于,包括:
    电子设备根据第一Profile建立第一通信连接,所述eSIM包含所述第一Profile;
    响应于根据第二Profile建立通信连接的操作,在不终止所述第一通信连接的情况下,所述电子设备根据所述第二Profile建立第二通信连接,所述第一Profile和所述第二profile包含在同一个eSIM中,所述第一Profile和所述第二Profile不同。
  2. 根据权利要求1所述方法,其特征在于,所述方法还包括:
    所述电子设备显示所述第二Profile的状态信息为已启用。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    所述电子设备显示第一指示信息,所述第一指示信息用于指示所述第一通信连接的信号强度;
    所述电子设备显示第二指示信息,所述第二指示信息用于指示所述第二通信连接的信号强度。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述电子设备根据所述第二Profile建立第二通信连接,具体包括:
    所述电子设备激活所述第二Profile;
    所述电子设备为所述第二Profile分配IMEI,建立第二Profile的唯一标识与分配的第二IMEI的对应关系;
    所述电子设备至少根据所述第二IMEI建立所述第二通信连接。
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备根据第一Profile建立第一通信连接,具体包括:
    所述电子设备确定所述第一Profile已激活;
    所述电子设备确定与所述第一Profile对应的第一IMEI;
    所述电子设备将所述第一IMEI与所述第一Profile中的第一IMSI发送到第一基站,建立所述第一通信连接。
  6. 根据权利要求4所述的方法,其特征在于,所述电子设备根据第一Profile建立第一通信连接,具体包括:
    所述电子设备激活所述第一Profile;
    所述电子设备为所述第一Profile分配IMEI,建立第一Profile的唯一标识与分配的第一IMEI的对应关系;
    所述电子设备将所述第一IMEI与所述第一Profile中的第一IMSI发送到第一基站,建立所述第一通信连接。
  7. 根据权利要求4至6中任一项所述的方法,其特征在于,所述电子设备激活所述第二Profile,具体包括:
    所述电子设备判断已启用的Profile数量是否小于预设阈值,所述预设阈值为所述电子设备最多能同时启用并待机的Profile数量,所述预设阈值为不小于2的正整数;
    当确定已启用的Profile数量小于预设阈值时,所述电子设备激活所述第二Profile。
  8. 根据权利要求4至7中任一项所述的方法,其特征在于,Profile的唯一标识为ICCID号或ISP-D号。
  9. 一种电子设备,其特征在于,所述电子设备包括:嵌入式用户标识模块(embedded-subscriber identification module,eSIM)、一个或多个处理器和存储器;
    所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
    根据第一Profile建立第一通信连接,所述eSIM包含所述第一Profile;
    响应于根据第二Profile建立通信连接的操作,在不终止所述第一通信连接的情况下,根据所述第二Profile建立第二通信连接,所述eSIM还包含所述第二Profile,所述第一Profile和所述第二Profile不同。
  10. 根据权利要求9所述的电子设备,其特征在于,所述电子设备还包括显示屏,所述一个或多个处理器,还用于调用所述计算机指令以使得所述电子设备执行:
    在所述显示屏上显示所述第二Profile对应的状态信息为已启用。
  11. 根据权利要求9或10所述的电子设备,其特征在于,所述一个或多个处理器,还用于调用所述计算机指令以使得所述电子设备执行:
    在所述显示屏上显示第一指示信息,所述第一指示信息用于指示所述第一通信连接的信号强度;
    在所述显示屏上显示第二指示信息,所述第二指示信息用于指示所述第二通信连接的信号强度。
  12. 根据权利要求9至11中任一项所述的电子设备,其特征在于,所述一个或多个处理器,具体用于调用所述计算机指令以使得所述电子设备执行:
    激活所述第二Profile;
    为所述第二Profile分配IMEI,建立第二Profile的唯一标识与分配的第二IMEI的对应关系;
    至少根据所述第二IMEI建立所述第二通信连接。
  13. 根据权利要求12所述的电子设备,其特征在于,所述一个或多个处理器,具体用于调用所述计算机指令以使得所述电子设备执行:
    确定所述第一Profile已激活;
    确定与所述第一Profile对应的第一IMEI;
    将所述第一IMEI与所述第一Profile中的第一IMSI发送到第一基站,建立所述第一通信连接。
  14. 根据权利要求12所述的电子设备,其特征在于,所述一个或多个处理器,具体用于调用所述计算机指令以使得所述电子设备执行:
    激活所述第一Profile;
    为所述第一Profile分配IMEI,建立第一Profile的唯一标识与分配的第一IMEI的对应关系;
    将所述第一IMEI与所述第一Profile中的第一IMSI发送到第一基站,建立所述第一通 信连接。
  15. 根据权利要求12至14中任一项所述的电子设备,其特征在于,所述一个或多个处理器,具体用于调用所述计算机指令以使得所述电子设备执行:
    判断已启用的Profile数量是否小于预设阈值,所述预设阈值为所述电子设备最多能同时启用并待机的Profile数量,所述预设阈值为不小于2的正整数;
    当确定已启用的Profile数量小于预设阈值时,所述电子设备激活所述第二Profile。
  16. 根据权利要求12至15中任一项所述的电子设备,其特征在于,Profile的唯一标识为ICCID号或ISP-D号。
  17. 一种芯片,所述芯片应用于电子设备,所述芯片包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1-8中任一项所述的方法。
  18. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-8中任一项所述的方法。
  19. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-8中任一项所述的方法。
PCT/CN2020/130384 2019-12-28 2020-11-20 一种通信连接的方法及电子设备 WO2021129264A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP20905753.8A EP4068902A4 (en) 2019-12-28 2020-11-20 COMMUNICATION CONNECTION METHOD AND ELECTRONIC DEVICE
CN202080090141.0A CN114846905A (zh) 2019-12-28 2020-11-20 一种通信连接的方法及电子设备
US17/758,050 US20230054451A1 (en) 2019-12-28 2020-11-20 Communication Connection Method and Electronic Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911384810.0A CN113055857B (zh) 2019-12-28 2019-12-28 一种通信连接的方法及电子设备
CN201911384810.0 2019-12-28

Publications (1)

Publication Number Publication Date
WO2021129264A1 true WO2021129264A1 (zh) 2021-07-01

Family

ID=76507251

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/130384 WO2021129264A1 (zh) 2019-12-28 2020-11-20 一种通信连接的方法及电子设备

Country Status (4)

Country Link
US (1) US20230054451A1 (zh)
EP (1) EP4068902A4 (zh)
CN (2) CN113055857B (zh)
WO (1) WO2021129264A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11930548B2 (en) * 2021-06-23 2024-03-12 Microsoft Technology Licensing, Llc Establishing multiple infrastructure connections to multiple access points via a single wireless network interface controller
CN113950044B (zh) * 2021-09-16 2024-03-29 深圳市优克联新技术有限公司 用户识别卡的识别方法、装置、终端设备及存储介质
CN115065965B (zh) * 2022-03-30 2024-05-31 捷德(江西)技术有限公司 信息显示方法、存储方法、装置及用户识别卡和设备
US20240251230A1 (en) * 2022-09-29 2024-07-25 Rakuten Symphony Singapore Pte. Ltd. Systems and methods enabling seamless sim profile transmission at subscription management data preparation (smdp+)
WO2024091273A1 (en) * 2022-10-28 2024-05-02 Google Llc Mobile device incognito mode with automatic reversion to default operational mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269891A1 (en) * 2015-03-11 2016-09-15 Futurewei Technologies, Inc. System and Method for Multi-SIM Profiles or Embedded SIM
CN106304024A (zh) * 2015-06-08 2017-01-04 中国移动通信集团公司 一种单卡多号的实现方法、装置及sim卡
CN108260119A (zh) * 2016-12-28 2018-07-06 展讯通信(上海)有限公司 移动终端、嵌入式sim卡及其访问方法、装置
CN108260120A (zh) * 2016-12-28 2018-07-06 展讯通信(上海)有限公司 移动终端、嵌入式sim卡及其访问方法、装置
WO2018176675A1 (zh) * 2017-03-25 2018-10-04 华为技术有限公司 一种实现双卡双待双通的通信方法及终端

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9723481B2 (en) * 2010-10-29 2017-08-01 Apple Inc. Access data provisioning apparatus and methods
CN103634791B (zh) * 2012-08-27 2018-03-09 华为终端(东莞)有限公司 切换运营商网络的方法、用户设备及远程管理平台
US9603189B2 (en) * 2013-03-08 2017-03-21 Nokia Technologies Oy Method and apparatus for multisim devices with embedded SIM functionality
WO2015180138A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Methods and apparatus to support parallel communication for multiple subscriber identities in a wireless communication device
US9351137B2 (en) * 2014-07-14 2016-05-24 Qualcomm Incorporated Simultaneous voice calls using a multi-SIM multi-active device
US10021558B2 (en) * 2016-03-29 2018-07-10 Qualcomm Incorporated System and methods for using embedded subscriber identity module (eSIM) provisioning processes to provide and activate device configuration packages on a wireless communication device
CN109155910B (zh) * 2016-05-27 2020-12-08 华为技术有限公司 一种下载签约信息的方法、相关设备及系统
CN107979835B (zh) * 2017-12-01 2020-02-14 恒宝股份有限公司 一种eSIM卡及其管理方法
CN111480350B (zh) * 2017-12-18 2022-02-01 华为技术有限公司 嵌入式sim卡的数据访问的方法和设备
KR102442706B1 (ko) * 2018-03-08 2022-09-14 삼성전자주식회사 전자 장치 및 전자 장치에서 가입자 식별 정보 기반 통신 서비스 제공 방법
CN109257740B (zh) * 2018-09-27 2022-02-22 努比亚技术有限公司 Profile下载方法、移动终端及可读存储介质
US11190933B2 (en) * 2019-02-01 2021-11-30 Teal Communications, Inc. ESIM management platform configured to be polled by an eSIM card
CN110248358B (zh) * 2019-07-03 2020-10-30 深圳杰睿联科技有限公司 基于物联网的eSIM管理方法和系统
CN110621013B (zh) * 2019-08-30 2021-07-09 华为技术有限公司 一种sim模块的管理方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269891A1 (en) * 2015-03-11 2016-09-15 Futurewei Technologies, Inc. System and Method for Multi-SIM Profiles or Embedded SIM
CN106304024A (zh) * 2015-06-08 2017-01-04 中国移动通信集团公司 一种单卡多号的实现方法、装置及sim卡
CN108260119A (zh) * 2016-12-28 2018-07-06 展讯通信(上海)有限公司 移动终端、嵌入式sim卡及其访问方法、装置
CN108260120A (zh) * 2016-12-28 2018-07-06 展讯通信(上海)有限公司 移动终端、嵌入式sim卡及其访问方法、装置
WO2018176675A1 (zh) * 2017-03-25 2018-10-04 华为技术有限公司 一种实现双卡双待双通的通信方法及终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4068902A4

Also Published As

Publication number Publication date
CN114846905A (zh) 2022-08-02
EP4068902A1 (en) 2022-10-05
EP4068902A4 (en) 2023-01-25
US20230054451A1 (en) 2023-02-23
CN113055857A (zh) 2021-06-29
CN113055857B (zh) 2022-06-28

Similar Documents

Publication Publication Date Title
WO2021129264A1 (zh) 一种通信连接的方法及电子设备
WO2020192714A1 (zh) 显示设备控制页面的方法、相关装置及系统
WO2021036809A1 (zh) 一种sim模块的管理方法及电子设备
EP3958533B1 (en) Method for accessing wireless local area network and terminal
WO2020155014A1 (zh) 智能家居设备分享系统、方法及电子设备
CN110602686B (zh) 一种使用远程sim模块的方法及电子设备
WO2020224447A1 (zh) 一种在联系人中添加智能家居设备的方法及系统
US11843712B2 (en) Address book-based device discovery method, audio and video communication method, and electronic device
CN113225423B (zh) 一种联系人的推荐方法及电子设备
CN113923611B (zh) 一种呼叫转移系统及相关装置
CN116114239B (zh) 音量管理的方法及电子设备
WO2020133467A1 (zh) 智能家居设备接入网络的方法及相关设备
CN116089358B (zh) 数据迁移方法及电子设备
CN113709720B (zh) 一种sim双模卡异常的优化方法及电子设备
WO2022052706A1 (zh) 一种服务的分享方法、系统及电子设备
CN115278642A (zh) 获取sim卡的信息的方法、电子设备及终端设备
US20240323670A1 (en) Method for Detecting Embedded Subscriber Identity Module ESIM Card and Terminal Device
CN116528182A (zh) 一种无线网络接入方法、电子设备及介质
CN117998397A (zh) 一种系统、感知电子设备下线的方法以及电子设备
CN118264709A (zh) 服务发现方法及电子设备
CN116367214A (zh) 通话状态监听方法、设备、存储介质
CN117119077A (zh) 一种通信方法和电子设备
CN116264600A (zh) 来电提醒方法、电子设备和计算机可读存储介质
CN114488961A (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: 20905753

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020905753

Country of ref document: EP

Effective date: 20220628

NENP Non-entry into the national phase

Ref country code: DE