Configuration file downloading method, communication device and computer equipment
By shielding the firmware switching instructions during the eSIM card download process and repeatedly trying or restarting the device when it fails, the problem of eSIM card configuration file download failure is solved, the download success rate is improved and the IoT service activation of electronic devices is ensured.
Patent Information
- Application Number
- CN202410801684.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-11
AI Technical Summary
Failure to download the eSIM card configuration file often results in the electronic device being unable to use the services provided by the operator. In the existing technology, firmware switching during the download process is more likely to cause download failure.
During the eSIM card downloading configuration file process, the firmware switching command is blocked to prevent the firmware switching process from interrupting the download process. If the download fails, try again or restart the device to improve the success rate.
The success rate of eSIM card configuration file downloading is improved, ensuring that electronic devices can activate IoT services normally and ensure the normal use of the device.
Smart Images

Figure CN118764476A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a configuration file downloading method, a communication device and a computer equipment. Background Art
[0002] With the development of the Internet of Things (IoT), embedded subscriber identity module (eSIM) cards are widely used in electronic devices such as IoT devices. An eSIM card is a virtual SIM card that does not require a physical SIM card to be inserted into an electronic device. Instead, it consists of an eSIM chip built into the electronic device and an activated profile. In this way, the eSIM card can provide network connection capabilities for electronic devices, allowing electronic devices to achieve functions such as data transmission, remote control, and status detection. In addition, there is no need to replace the physical SIM card, and operators or service packages can be flexibly changed based on the eSIM card.
[0003] In one implementation, the configuration file of the eSIM card can be an independent file. When using an electronic device equipped with an eSIM chip, the corresponding configuration file is downloaded from the operator (or third-party service provider) to the eSIM chip and activated. However, in this way, the possibility of configuration file download failure is relatively high. Once the configuration file download fails, the electronic device will be unable to use the services provided by the operator. Summary of the invention
[0004] The embodiments of the present application provide a configuration file downloading method, a communication device, and a computer device, which are conducive to improving the success rate of electronic devices downloading configuration files.
[0005] In a first aspect, an embodiment of the present application provides a configuration file downloading method, which is applied to an electronic device, the electronic device including a communication module, the communication module including a first card slot and a second card slot, the first card slot being configured with a plug-in SIM card, and the second card slot being configured with a plug-in subscriber identity module SIM card, the second card slot being configured with an embedded subscriber identity module eSIM chip and a first configuration file, the first configuration file being in an activated state, the eSIM chip and the first configuration file forming a first eSIM card; the method comprising: in response to a download instruction for a second configuration file, during the download of the second configuration file, shielding a firmware switching instruction, the firmware switching instruction being used to switch the firmware of the communication module from a first firmware to a second firmware, wherein the first firmware is a firmware corresponding to the plug-in SIM card, and the second firmware is a firmware corresponding to the first eSIM card; downloading the second configuration file through the first eSIM card; and in a case where the download of the second configuration file is successful, activating the second configuration file in the eSIM chip, the eSIM chip and the second configuration file forming a second eSIM card, and the second eSIM card supporting Internet of Things services.
[0006] During the download process of the second configuration file, if the firmware is switched, it is necessary to stop downloading the second configuration file and switch the firmware of the communication module from the first firmware to the second firmware. After the firmware switch is completed, the communication module will switch from the second card slot back to the first card slot to work. In this way, the download process of the second configuration file will be interrupted, resulting in the failure of downloading the second configuration file. Through this application, the firmware switching instruction can be shielded during the download process of the second configuration file, so that the firmware switch (from the first firmware to the second firmware) will not be performed, which can avoid the firmware switching process affecting the download of the second configuration file, which is beneficial to improve the success rate of downloading the second configuration file and facilitate electronic devices to use Internet of Things services through the second eSIM card.
[0007] In a possible implementation, the method may further include: when the second configuration file is downloaded successfully, unblocking the firmware switching instruction.
[0008] It can be seen that after the second configuration file is successfully downloaded, unblocking the firmware switching instruction is beneficial to restoring the original use state of the electronic device and ensuring that the normal use of the electronic device is not affected.
[0009] In a possible implementation, the method for downloading the second configuration file through the first eSIM card may include: in response to a confirmation instruction for the shielded firmware switching instruction, downloading the second configuration file through the first eSIM card.
[0010] It can be seen that, when it is determined that the firmware switching instruction has been blocked, downloading the second configuration file through the first eSIM card is conducive to improving the success rate of downloading the second configuration file and improving the reliability of the configuration file downloading method.
[0011] In a possible implementation, the method may further include: when downloading of the second configuration file fails, repeatedly executing the step of downloading the second configuration file through the first eSIM card.
[0012] It can be seen that if the downloading of the second configuration file fails, the electronic device can re-download the second configuration file multiple times, which is conducive to improving the success rate of downloading the second configuration file.
[0013] In a possible implementation, the method may further include: when downloading of the second configuration file fails, restarting the electronic device.
[0014] It can be seen that if the download of the second configuration file fails, by restarting the electronic device, the hardware or software status of the electronic device can be reset or adjusted to eliminate some of the causes of the failure, so as to facilitate downloading the second configuration file again, thereby facilitating the success rate of downloading the second configuration file.
[0015] In a possible implementation, the method may further include: generating the firmware switching instruction when the firmware corresponding to the plug-in SIM card is different from the firmware corresponding to the first eSIM card.
[0016] It can be seen that when the firmware corresponding to the plug-in SIM card is different from the firmware corresponding to the first eSIM card, the firmware switching instruction needs to be shielded, which is conducive to avoiding the impact of firmware switching during the process of downloading the second configuration file.
[0017] In a possible implementation, the method may further include: when the communication module is working in the first card slot, in response to an Internet of Things service switching instruction, restarting the communication module; after restarting the communication module, the communication module switches from the first card slot to the second card slot to work; when the second configuration file is successfully activated, the communication module switches from the second card slot to the first card slot to work.
[0018] It can be seen that when the communication module receives an IoT service switching instruction while working in the first card slot, it can switch to the second card slot to download and activate the second configuration file, thereby successfully activating the IoT service. After successfully activating the second configuration file, the communication module can switch back to the first card slot to work, which is beneficial to avoid affecting the service in the first card slot and ensure the normal use of the electronic device.
[0019] In a second aspect, an embodiment of the present application provides a communication device, including a communication module, the communication module including a first card slot and a second card slot, the first card slot is configured with a plug-in SIM card, the second card slot is configured with an eSIM chip and a first configuration file, the first configuration file is in an activated state, and the eSIM chip and the first configuration file constitute a first eSIM card; the communication device also includes: a transceiver unit, used to receive a download instruction for a second configuration file; a processing unit, used to shield a firmware switching instruction during the download of the second configuration file, the firmware switching instruction is used to switch the firmware of the communication module from a first firmware to a second firmware, wherein the first firmware is the firmware corresponding to the plug-in SIM card, and the second firmware is the firmware corresponding to the first eSIM card; the transceiver unit is also used to download the second configuration file through the first eSIM card; the processing unit is also used to activate the second configuration file in the eSIM chip when the second configuration file is downloaded successfully, the eSIM chip and the second configuration file constitute a second eSIM card, and the second eSIM card supports Internet of Things services.
[0020] In a possible implementation, the processing unit is further configured to unblock the firmware switching instruction when the second configuration file is downloaded successfully.
[0021] In a possible implementation, the transceiver unit is further configured to receive a confirmation instruction for shielding the firmware switching instruction; and the processing unit is further configured to download the second configuration file through the first eSIM card in response to the confirmation instruction for shielding the firmware switching instruction.
[0022] In a possible implementation, the processing unit is further configured to, when downloading of the second configuration file fails, repeatedly execute the step of downloading the second configuration file through the first eSIM card.
[0023] In a possible implementation, the processing unit is further configured to restart the electronic device when downloading of the second configuration file fails.
[0024] In a possible implementation manner, the firmware switching instruction is generated when the firmware corresponding to the plug-in SIM card is different from the firmware corresponding to the first eSIM card.
[0025] In a possible implementation, the processing unit is further configured to, when working in the first card slot, respond to an Internet of Things service switching instruction to restart the communication module; after restarting the communication module, the communication module switches from the first card slot to the second card slot to work; when the second configuration file is successfully activated, the communication module switches from the second card slot to the first card slot to work.
[0026] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing programs; a processor for executing the programs stored in the memory, and when the programs are executed by the processor, the processor executes the method in the first aspect and any possible implementation of the first aspect.
[0027] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the method in the first aspect and any possible implementation of the first aspect.
[0028] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes: instructions or computer programs; when the instructions or the computer programs are executed, the method in the first aspect and any possible implementation method in the first aspect is implemented.
[0029] In a sixth aspect, an embodiment of the present application provides a chip, the chip includes a processor, the processor is used to execute instructions, when the processor executes the instructions, the chip executes the method in the first aspect and any possible implementation of the first aspect. Optionally, the chip also includes an input / output interface, the input / output interface is used to receive or send signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of a network architecture provided in an embodiment of the present application;
[0031] Figure 2 A flowchart of a configuration file download method provided in an embodiment of the present application;
[0032] Figure 3 A flowchart of another configuration file downloading method provided in an embodiment of the present application;
[0033] Figure 4 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0036] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0037] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0038] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0039] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0040] First, some terms in this application are explained to facilitate understanding by those skilled in the art.
[0041] 1. Internet of things (IoT) devices
[0042] IoT devices refer to various electronic devices connected to the Internet of Things through communication technology. For example, IoT devices may include smartphones, computer equipment, laptops, industrial robots, monitoring equipment, smart home devices (such as smart switches, smart speakers, sweeping robots, etc.) and other devices. IoT devices can be wirelessly connected to the network and have the ability to transmit data, which can realize functions such as data transmission, remote control, and status detection.
[0043] Among them, IoT devices can be managed and connected through the IoT cloud platform. The IoT cloud platform is a platform based on cloud computing technology and IoT technology. By connecting IoT devices with cloud servers, data interaction, remote monitoring and control between IoT devices can be achieved.
[0044] 2. Communication module of IoT devices
[0045] The communication module of an IoT device refers to a component with signal transmission function, which is responsible for collecting signals on one side of the IoT device and completing signal transmission between devices. Various intelligent electronic devices can connect to each other and transmit data through their respective communication modules, thereby realizing the interconnection of people, machines and objects.
[0046] According to different communication technologies, communication modules can be divided into two types: cellular and non-cellular. Cellular communication modules may include communication modules based on technologies such as the 4th generation mobile communication technology (4G), the 5th generation mobile communication technology (5G) and narrowband Internet of Things (NB-IoT), as well as future communication technologies such as the 6th generation mobile communication technology (6G) and the 7th generation mobile communication technology (7G). Cellular communication modules support mobile communication networks around the world and provide high-speed and stable data transmission services. Non-cellular communication modules are communication modules that use non-cellular mobile communication technologies, such as communication modules based on wireless fidelity (WiFi), Bluetooth, etc. Non-cellular communication modules are suitable for short-range wireless communications and data transmission in specific scenarios.
[0047] In the present application, the communication module of the IoT device is generally a cellular communication module.
[0048] 3. Subscriber identity module (SIM) card
[0049] SIM card is a personal information card for global digital mobile phones. SIM card is made by encryption method, and stores user information such as user data, authentication method and key, which can be used by mobile network to identify user identity. At the same time, the operator corresponding to SIM card can provide network services for electronic devices equipped with SIM card. For example, when electronic devices such as smart phones, tablets, and laptops are equipped with SIM cards, the mobile network will use the user information on the SIM card to verify the user's identity to ensure that network services are provided to electronic devices that have passed the identity verification.
[0050] Currently commonly used SIM cards include plug-in SIM cards and embedded subscriber identity module (eSIM) cards.
[0051] (1) Insertable SIM card
[0052] A plug-in SIM card, also known as an external SIM card, is a physical SIM card. When in use, the plug-in subscriber identity card needs to be inserted into a physical card slot. Usually, a card slot of an electronic device can only insert one physical SIM card.
[0053] Among them, commonly used plug-in subscriber identification cards may include universal subscriber identity module (uSIM) cards.
[0054] (2) eSIM card
[0055] An eSIM card, also known as an embedded universal integrated circuit card (eUICC), is a virtual SIM card that consists of an embedded subscriber identity module (eSIM) chip in an electronic device and an activated profile.
[0056] One or more operator configuration files can be downloaded to the eSIM chip. For example, if configuration file 1 of operator 1 is activated on the eSIM chip, the eSIM chip and the activated configuration file 1 can form eSIM card 1, which can also be described as, activating configuration file 1 on the eSIM chip to obtain eSIM card 1. If the configuration file of operator 2 is activated on the eSIM chip, the eSIM chip and the activated configuration file 2 can form eSIM card 2, which can also be described as, activating configuration file 2 on the eSIM chip to obtain eSIM card 2. Optionally, only one configuration file can be activated on the eSIM chip at the same time.
[0057] Different from plug-in user identification cards, eSIM cards can read and write identity data remotely, and can switch numbers, packages, operators, etc. over the air without replacing the physical SIM card.
[0058] 4. User Identity Card Profile
[0059] The configuration file of a SIM card can usually be understood as a data configuration file or a personal information file of a SIM card. The configuration file may include some key information of the SIM card, such as the international mobile equipment identity (IMSI), the authentication key (Ki), service provider information, network parameters, preference settings and other information. When an electronic device is configured with a SIM card, the electronic device will read the configuration file on the SIM card to establish a connection with the mobile network so that the SIM card can provide services to the electronic device. If the SIM card on the electronic device lacks a configuration file or the configuration file is damaged, the SIM card needs to be reconfigured or replaced before the related services of the mobile network can be used normally.
[0060] Among them, IMSI is a number that uniquely identifies a SIM card. Each SIM card has its own unique IMSI. IMSI consists of the mobile country code (MCC), mobile network code (MNC) and mobile subscription identification number (MSIN). Ki is a key used to verify the identity of the SIM card and the user, and is used to establish a secure connection between the network and the SIM card. Service provider information includes information about the mobile network operator, such as the operator name, network code, etc.
[0061] For plug-in SIM cards such as uSIM cards, usually, the configuration file of the uSIM card is directly stored on the physical chip of the uSIM card. When the uSIM card is inserted into the physical card slot of an electronic device, the configuration file of the uSIM card and the uSIM card take effect at the same time, and can provide corresponding services for the electronic device.
[0062] For an eSIM card, its configuration file can be pre-set on the eSIM chip of an electronic device. In addition, the configuration file of an eSIM card can also be an independent file. Instead of pre-setting its configuration file on the eSIM chip, when using an electronic device equipped with an eSIM chip, the corresponding configuration file can be downloaded from the operator (or third-party service provider) to the eSIM chip. When the configuration file is downloaded to the eSIM chip and activated, the configuration file and the eSIM chip can form a virtual SIM card, which can also be called an eSIM card.
[0063] Optionally, multiple configuration files can be downloaded to the eSIM chip, but during use, only one configuration file provided by an operator can be used at the same time. In other words, when there are multiple configuration files of eSIM cards, only one configuration file of the eSIM card can be activated at the same time.
[0064] The contents of the SIM card configuration files may differ depending on factors such as different operators, networks, or authentication methods. In this way, users can change operators or packages by downloading configuration files provided by different operators to the eSIM chip without changing the physical SIM card.
[0065] In some application scenarios, the electronic device may include dual card slots, that is, it is configured with two card slots. One card slot in the electronic device can be inserted with a plug-in SIM card such as a uSIM card, and the other card slot can be configured with an eSIM chip. The eSIM chip can be downloaded with configuration files provided by one or more operators. In this way, the electronic device can realize dual-network or dual-card functions, can provide users with services of two different operators at the same time, improve the compatibility and flexibility of the SIM card, and provide users with a more comprehensive and efficient communication experience. Optionally, the communication module of the electronic device may also include three, four or more card slots, which is not limited in this application.
[0066] For electronic devices that support IoT services, such as complete devices that support IoT services (referred to as PC-IoT), a configuration file for supporting IoT services can be pre-downloaded in the eSIM chip of its communication module. After the configuration file is downloaded to the eSIM chip and activated, it can ensure that the electronic device can normally use the IoT function of the communication module. The above-mentioned configuration file that can support IoT services can be called an IoT configuration file, or a provisoning profile.
[0067] If the electronic device is an IoT device, it is no longer necessary to pre-download the IoT configuration file to the eSIM chip of its communication module when it leaves the factory. Instead, when the electronic device detects that the user has started the relevant operation of the IoT service, it downloads the required IoT configuration file and activates the IoT configuration file on the eSIM chip. In this way, it can also ensure that the electronic device can use the IoT function of its communication module. For example, the electronic device can use the communication module to achieve IoT functions such as establishing a communication connection with the IoT platform. It should be noted that the configuration file for the IoT needs to be downloaded through the eSIM card.
[0068] 5. Firmware corresponding to the SIM card
[0069] Firmware is a program that is usually written into an electrically erasable programmable read only memory (EEPROM) or flash chip. Firmware can usually be upgraded through a specific refresh program. Firmware upgrade, also known as firmware refresh, firmware flash, firmware rewrite or firmware burning, refers to the process of writing new firmware into the chip to replace the original firmware.
[0070] The firmware corresponding to the SIM card is a program code used to ensure the normal operation of the SIM card on the communication module. The firmware corresponding to the SIM card may include a driver for interacting with the communication module of an electronic device or other device, a management program for managing the life cycle of the SIM card (such as activation, deactivation, update, etc.), and a software module for storing and processing SIM card data.
[0071] Different operators and their public land mobile networks (PLMN) have their own customization requirements, such as different network parameters, authentication algorithms, and service requirements. To meet these different requirements, the firmware corresponding to the SIM cards provided by different operators is usually different. With the continuous development of technology and the changes in operator requirements, the firmware corresponding to the SIM card can also be updated and upgraded to provide better performance, higher security or new functions.
[0072] Therefore, the electronic device can select the appropriate firmware according to the PLMN of the target operator and bind it to the SIM card. Specifically, if the user needs to use the services provided by operator A, the user can choose to use the SIM card provided by operator A in the communication module of the electronic device. When the electronic device uses the SIM card, its communication module needs to burn the firmware corresponding to the SIM card. In other words, the communication module needs to burn the firmware corresponding to the SIM card currently in use. Moreover, on the same communication module, only the firmware corresponding to one SIM card can be burned at the same time.
[0073] In one implementation, if the communication module of the electronic device includes a physical card slot, which is recorded as the first card slot, the first card slot is configured with a uSIM card. The communication module also includes a card slot configured with an eSIM chip, which is recorded as the second card slot. On the eSIM chip, a configuration file of an operator has been downloaded and activated, which can be called the first configuration file. The eSIM chip and the first configuration file can constitute a virtual eSIM card, which can be called the first eSIM card. When the communication module of the electronic device works in the first card slot, the firmware of the communication module is the firmware corresponding to the uSIM card. For the electronic device, when the Internet of Things configuration file (which can be called the second configuration file) is successfully downloaded and the second configuration file is activated on the eSIM chip, it can be regarded as a successful activation of the Internet of Things service. It can also be said that the eSIM chip and the activated second configuration file are a virtual eSIM card, which can be recorded as the second eSIM card. The second eSIM card can be used to support the Internet of Things service. Since there is no second configuration file in the current eSIM chip, when the Internet of Things service needs to be activated, the electronic device needs to download the second configuration file.
[0074] Before downloading the second configuration file, the communication module switches from working in the first card slot to working in the second card slot. After the communication module switches to working in the second card slot, the electronic device can download the second configuration file through the first eSIM card. In the download process of the second configuration file, since the firmware corresponding to the uSIM card is different from the firmware corresponding to the first eSIM card, the communication module will trigger the firmware switch (firmware switch, fwSwitch) function. When the firmware switching function is triggered, the communication module will stop downloading the second configuration file and switch the firmware of the communication module from the firmware corresponding to the uSIM card to the firmware corresponding to the first eSIM card. After the firmware switching is completed, the communication module will switch from the second card slot back to the first card slot to work. In this way, the download process of the second configuration file is interrupted, resulting in the failure of downloading the second configuration file, which in turn causes the failure of activating the Internet of Things service, making it impossible for the electronic device to use the Internet of Things service.
[0075] In view of this, the embodiments of the present application provide a configuration file downloading method, a communication device and an electronic device, which are applied to an electronic device and are conducive to improving the success rate of the electronic device downloading the configuration file.
[0076] Next, a network architecture applicable to an embodiment of the present application is introduced.
[0077] See also Figure 1 , Figure 1 A schematic diagram of a network architecture provided in an embodiment of the present application. Figure 1 As shown, the network architecture includes an electronic device 110, a communication module 120 and a network device 130. The communication module 120 is a communication module in the electronic device 110. The electronic device 110 can be referred to as a complete device of the communication module 120. The electronic device 110 can access the network through the communication module 120, thereby establishing a network connection with the network device 130. Among them, the network device 130 can be a gateway, a server or a base station, such as a 4G gateway, a 5G gateway, an operator's server, an Internet of Things platform and other devices. It should be noted that Figure 1 The device form and device quantity shown in are for example only and do not constitute a limitation of the present application.
[0078] The electronic device 110 may be a smart phone, a tablet computer, a laptop computer, etc. The electronic device 110 includes a communication module 120 .
[0079] The communication module 120 may be a cellular communication module. The communication module 120 includes a first card slot and a second card slot. The first card slot is configured with a plug-in SIM card, such as a uSIM card. The second card slot is configured with an eSIM chip, and a first configuration file is downloaded on the eSIM chip. The first configuration file is in an activated state, so that the eSIM chip and the first configuration file form an eSIM card, which can be called a first eSIM card. Optionally, one or more configuration files can be downloaded on the eSIM chip, but only one configuration file can be activated on the eSIM chip at the same time.
[0080] The electronic device 110 can use the mobile network service provided by the operator corresponding to the SIM card on the communication module 120. For example, if the electronic device 110 wants to use the Internet of Things service, the communication module 120 can use the SIM card provided by the operator of the Internet of Things service to establish a communication connection with the Internet of Things platform.
[0081] Exemplarily, if the IoT configuration file is not downloaded or activated in the communication module 120, the electronic device 110 cannot use the IoT service. If a SIM card such as a uSIM card is configured in the communication module 120, the electronic device 110 can use the mobile network service provided by the operator corresponding to the SIM card through the SIM card such as the uSIM card.
[0082] Exemplarily, if the IoT configuration file has been downloaded and activated in the communication module 120, the electronic device 110 can use the IoT service through the communication module 120. For example, if the network device 130 is an IoT platform, the electronic device 110 can establish a communication connection with the network device 130 through the communication module 120, and the IoT platform can achieve remote management of the electronic device 110 through means such as device connection and registration, remote configuration and monitoring, firmware upgrade and maintenance, and data management and analysis. For example, the electronic device 110 can request registration from the network device 130 through the communication module 120 based on the unique device identity or serial number of the electronic device 110. The network device 130 can receive the request of the electronic device 110, and authenticate the electronic device 110 based on the device identity or serial number, digital certificate or other security mechanism. When the identity of the electronic device 110 is verified, the registration and access of the electronic device 110 are allowed.
[0083] The following describes a method for downloading a configuration file provided in an embodiment of the present application.
[0084] See also Figure 2 , Figure 2 The following is a flow chart of a configuration file downloading method provided in an embodiment of the present application. The configuration file downloading method can be executed by an electronic device including a communication module, or can be executed by a computer. Figure 2 As shown, the configuration file download method may include but is not limited to the following steps:
[0085] S201: In response to detecting an Internet of Things service activation operation, generate a download instruction for a second configuration file.
[0086] Among them, S201 is an optional step, that is, the electronic device may not execute S201. Figure 2 The dashed lines in the figure indicate optional steps.
[0087] Electronic equipment, such as Figure 1 The electronic device 110 shown. The electronic device includes a communication module, which can be Figure 1 The communication module 120 is shown.
[0088] In response to the IoT service activation operation, the electronic device may initiate a process of activating the IoT service.
[0089] The second configuration file is a configuration file (profile), which can also be called an IoT configuration file or a provisoning profile. When the second configuration file is successfully downloaded to the eSIM chip of the communication module and activated, the eSIM chip and the second configuration file can form a virtual eSIM card, which can be called a second eSIM card. The second eSIM card supports IoT services.
[0090] When the IoT service needs to be activated, since the second configuration file is not pre-set on the eSIM chip, that is, the IoT service is not activated, or the IoT function is described as not activated. Then the communication module can send a download instruction of the second configuration file to the electronic device to request the electronic device to download the second configuration file. Only when the second configuration file is successfully downloaded and activated on the eSIM chip can the IoT service be considered to have been activated, or the IoT function can be considered to have been activated.
[0091] Optionally, the IoT service activation operation may be an operation detected by the electronic device and triggered by the user on the electronic device, indicating that the user needs to activate the IoT service. Activating the IoT service may also be described as activating the IoT function. After successfully activating the IoT, the electronic device may use the IoT service. For example, the electronic device may access the IoT and communicate with the IoT platform or other IoT devices.
[0092] In a possible implementation, in the process of activating the IoT service of the electronic device, the communication module needs to be switched to the IoT mode. In order to switch the communication module to the IoT mode, the electronic device may send an IoT service switching instruction to the electronic device. When the communication module is switched to the IoT mode, the electronic device may also be referred to as being in the IoT mode.
[0093] Optionally, the IoT service switching instruction may be an inter-integrated circuit (I2C) instruction sent by an embedded controller (EC) in the electronic device to the communication module.
[0094] Optionally, the communication module may be restarted after receiving the IoT service switching instruction. The communication module is restarted after switching to IoT mode to ensure that the configuration and initialization of the communication module are correct, thereby avoiding potential problems and conflicts, thereby ensuring that the communication module can successfully switch from the first card slot to the second card slot to work and establish a stable communication connection.
[0095] Optionally, before the electronic device activates the IoT service, the communication module defaults to MBB mode, that is, using the service provided by the mobile communication network (such as 4G, 5G, 6G, etc.). It can also be said that the electronic device is in MBB mode. Optionally, the communication module can switch from MBB service to IoT service in response to the IoT service switching instruction, which can also be described as switching from MBB mode to IoT mode.
[0096] Optionally, both the uSIM card and the eSIM card in the communication module can be used to support the MBB mode, that is, the uSIM card and the eSIM card can be used to support the electronic device to use MBB services. Among them, the uSIM card does not support the IoT mode, while the eSIM card can support the IoT mode of the electronic device, that is, support the electronic device to use the Internet of Things service, when the second configuration file has been downloaded and activated.
[0097] In a possible implementation, the electronic device may be configured with an activation tool for activating the Internet of Things service, and the activation tool may be used to start the process of activating the Internet of Things service. Exemplarily, the activation tool may be an application installed on the electronic device, which may provide the user with an operation control for activating the Internet of Things service. When the activation tool detects an activation operation on the operation control, such as a click operation, the corresponding instruction information may be generated and sent to the electronic device, thereby instructing the electronic device to activate the Internet of Things service.
[0098] In a possible implementation, the communication module may send a download instruction of the second configuration file to an agent service in the electronic device to notify the agent service to enter a process of downloading the second configuration file. The agent service is a service provided by the electronic device, which is used to call an Internet of Things operator download interface to download the second configuration file. The Internet of Things operator refers to an operator that provides the second configuration file.
[0099] S202: In response to a download instruction of a second configuration file, during the download process of the second configuration file, shielding a firmware switching instruction.
[0100] In the process of downloading the second configuration file, which can also be described as the process of downloading the second configuration file, the electronic device can shield the firmware switching instruction. The firmware switching instruction is used to instruct to switch the firmware of the communication module from the first firmware to the second firmware, which can also be described as burning the firmware of the communication module to the second firmware to replace the original first firmware.
[0101] In the present application, when the communication module receives the download instruction of the second configuration file, it works in the first card slot. The first card slot is configured with an inserted SIM card, such as a uSIM card, so the firmware of the current communication module is the firmware corresponding to the first eSIM card (such as called the first firmware).
[0102] When the electronic device needs to download the second configuration file, it needs to use the first eSIM card configured in the second card slot to download it. In this case, the communication module needs to switch from the first card slot to work in the second card slot. When the communication module switches to work in the second card slot, if the operator of the uSIM card is A, and the operator of the first eSIM card configured in the second card slot is B, and the operator information such as PLMN of A and B is different, then the firmware corresponding to the uSIM card (first firmware) and the firmware corresponding to the first eSIM card (second firmware) are different, and the firmware switching (fwSwitch) function in the communication module will be triggered and a firmware switching instruction will be generated. The firmware switching instruction is used to switch the firmware of the communication module from the first firmware to the second firmware, that is, the firmware of the communication module needs to be burned to the second firmware to replace the original first firmware. After the burning is completed, the communication module will automatically switch from the second card slot back to the first card slot to work. When the communication module works in the first card slot, the second configuration file cannot be downloaded. It can be seen that the firmware switching process will interrupt the download process of the second configuration file, which may cause the download of the second configuration file to fail.
[0103] In view of this, during the downloading process of the second configuration file, shielding the firmware switching instruction can prevent the firmware switching process from interrupting the downloading process of the second configuration file, thereby facilitating improving the success rate of downloading the second configuration file.
[0104] Optionally, after the fwSwitch function in the communication module is triggered, the communication module can report the firmware switching instruction to the electronic device, and the electronic device decides whether to perform the firmware switching. Optionally, after receiving the firmware switching instruction, the electronic device can send a firmware switching confirmation instruction to the communication module to instruct the communication module to perform the firmware switching.
[0105] The firmware corresponding to the SIM card in the communication module, including the firmware corresponding to the plug-in SIM card and the firmware corresponding to the first eSIM card, can be stored in the memory of the electronic device. When the communication module switches to using a certain SIM card, such as using the first eSIM card, the firmware corresponding to the first eSIM card can be obtained from the memory of the electronic device, and the firmware of the communication module can be burned as the firmware corresponding to the first eSIM card.
[0106] Optionally, the electronic device may store one or more of the following information: firmware corresponding to the SIM card, identification information of the SIM card, operator information of the SIM card (such as the operator's PLMN), and a mapping relationship among the identification information of the SIM card, the operator information of the SIM card, and the firmware corresponding to the SIM card. For example, the mapping relationship may be stored in the form of a mapping table. When the communication module is switched from the uSIM card to the first eSIM card, the operator information of the first eSIM card and the firmware corresponding to the first eSIM card may be found from the mapping table based on the identification information of the first eSIM card, and the firmware of the communication module may be burned to the firmware corresponding to the first eSIM card.
[0107] In a possible implementation, a filter driver is configured in the electronic device. The electronic device can shield the firmware switching instruction through the filter driver. In this way, when the communication module reports the firmware switching instruction to the electronic device, the filter driver can shield the firmware switching instruction, so that the electronic device will not receive the firmware switching instruction and will not perform the firmware switching (i.e., the firmware of the communication module is switched from the first firmware to the second firmware).
[0108] S203: Download a second configuration file through the first eSIM card.
[0109] The electronic device can download the second configuration file from the network side through the first eSIM card. The first configuration file of the first eSIM card is the only activated configuration file in the second card slot. The first configuration file can be a configuration file pre-downloaded to the eSIM chip. The first eSIM card is used to support the electronic device to use MBB services, and the first eSIM card does not support IoT services, or it can be said that the first configuration file does not support IoT services. When the second configuration file is successfully downloaded and activated on the eSIM chip, the eSIM chip and the second configuration file form a virtual SIM card, which can be called a second eSIM card, and the second eSIM card supports IoT services. It can also be said that the activated second configuration file supports IoT services.
[0110] Optionally, the second configuration file may be downloaded from a server of an operator that provides the second configuration file. Optionally, the electronic device may download the second configuration file to an eSIM chip of the communication module.
[0111] In a possible implementation, the electronic device may send a download request for the second configuration file to a network device such as a server of an operator that provides the second configuration file through the first eSIM card. After receiving the download request, the operator's server may authenticate the first eSIM card. When the first eSIM card passes the authentication, the operator's server may allow the electronic device to download the second configuration file.
[0112] Optionally, the operator's server can implement identity authentication for the first eSIM card by sending information in various forms such as confirmation codes and verification codes. Exemplarily, when the operator's server receives a download request for the second configuration file, it can generate a specific original verification code and send the original verification code to the electronic device. After the electronic device receives the original verification code, it can prompt the user to enter the verification code in a specified area. Further, in response to the user having entered the verification code, the electronic device can send the verification code entered by the user to the operator's server. The operator's server can compare the received verification code with the original verification code it generated. If the received verification code matches the original verification code, the operator's server can confirm that the first eSIM card has passed the identity authentication.
[0113] Optionally, the proxy service of the electronic device may call a download interface of the operator that provides the second configuration file, and the electronic device may download the second configuration file through the first eSIM card based on the download port.
[0114] Optionally, before downloading the second configuration file, it may be confirmed whether the firmware switching instruction has been successfully shielded. The electronic device may download the second configuration file through the first eSIM card when it is confirmed that the firmware switching instruction has been successfully shielded. This is conducive to improving the success rate of downloading the second configuration file, thereby facilitating the reliability of the configuration file download method of the present application.
[0115] S204: When the second configuration file is downloaded successfully, activate the second configuration file in the eSIM chip.
[0116] After the second configuration file is activated on the eSIM chip in the second card slot, the eSIM chip and the second configuration file form a second eSIM card, and the second eSIM card supports the Internet of Things service. In this way, the Internet of Things service can be regarded as activated, and the electronic device can establish a communication connection with the Internet of Things to realize various Internet of Things functions.
[0117] Optionally, the process of activating the second configuration file on the eSIM chip may include but is not limited to the following steps: First, detailed information of the second eSIM card, such as the integrated circuit card identity (ICCID) and activation code of the second eSIM card, may be obtained from the second configuration file. Then, in the setting program of the electronic device, the detailed information of the second eSIM card is added. When the detailed information of the second eSIM card matches the information stored in the operator corresponding to the second eSIM card, the activation process of the second configuration file can be completed.
[0118] In one possible implementation, after the second configuration file is successfully activated, the firmware switching instruction can be unblocked. This is conducive to ensuring the normal operation of the communication module. For example, after the second configuration file is successfully activated, if the electronic device switches from using a uSIM card to using a first eSIM card, a firmware switching instruction will be issued at this time to switch the firmware of the communication module from the first firmware to the second firmware. If the firmware switching instruction is not unblocked at this time, the communication module cannot perform firmware switching, which will affect the electronic device to implement other functions through the first eSIM card, such as functions other than downloading the second configuration file. If the firmware switching instruction has been unblocked at this time, the electronic device will receive the firmware switching instruction and send a firmware switching confirmation instruction to the communication module, so that the communication module can execute the firmware switch, that is, switch the firmware from the first firmware to the second firmware, so that the electronic device can implement the corresponding function through the first eSIM card.
[0119] In a possible implementation, after the second configuration file is successfully activated, the communication module may switch from operating in the second card slot to operating in the first card slot, so as to avoid affecting the data service originally performed in the first card slot.
[0120] In a possible implementation, if the download of the second configuration file fails, the electronic device may repeat the step of downloading the second configuration file through the first eSIM card, such as step S203. Optionally, the number of times the electronic device repeats the download may not be limited. Optionally, the electronic device may repeat the download step until the second configuration file is successfully downloaded. Optionally, a download count threshold may be set (for example, it may be set to 5 times). When the number of times the electronic device repeats the download step exceeds the download count threshold, the electronic device may stop repeating the download step and detect the operating status of the communication module and / or the operating status of the electronic device to determine the cause of the download failure. After determining the cause of the download failure, the electronic device may adjust itself and continue to repeat the download step after the adjustment. Optionally, if the second configuration file still fails to download, the electronic device may generate a download failure notification message to inform the user that the download of the second configuration file has failed, and remind the user to check the operating status of the electronic device and / or the communication module and other information.
[0121] Optionally, if the download of the second configuration file fails, the electronic device may be restarted. After the electronic device is restarted, S203 may be executed, so that the second configuration file can be downloaded again. For example, restarting the electronic device may reset its internal state and clear possible communication errors or abnormal conditions. For another example, if the failure to download the second configuration file is caused by a network connection problem, restarting the electronic device may help disconnect and re-establish the network connection. This helps to solve problems such as network disconnection, unstable connection, or network configuration errors, and provides a reliable network environment for downloading the second configuration file.
[0122] Optionally, if the download of the second configuration file fails, the communication module can be restarted. After the communication module is restarted, it can be switched to the second card slot again, so that the electronic device can download the second configuration file through the first eSIM card again, which is conducive to increasing the possibility of successfully downloading the second configuration file. Among them, restarting the communication module can release resources, rebuild network connections, reset the software state of the communication module, and restore the hardware state, thereby increasing the possibility of successful download again.
[0123] Optionally, if the eSIM chip includes configuration files of other operators in addition to the first configuration file, such as a third configuration file, the electronic device can download the second configuration file through the third eSIM card after activating the third configuration file. Among them, the third eSIM card consists of an eSIM chip and a third configuration file. Exemplarily, when the download of the second configuration file fails, the activation state of the first configuration file can be deactivated and the third configuration file can be activated. If the third eSIM card supports mobile network services such as 4G and 5G, the electronic device can try to download the second configuration file through the third eSIM card. It should be noted that in the process of downloading the second configuration file through the third eSIM card, it is necessary to shield the firmware switching instruction for switching the first firmware of the communication module to the third firmware. Among them, the third firmware refers to the firmware corresponding to the third eSIM card.
[0124] It can be seen that through the configuration file downloading method provided in the embodiment of the present application, the firmware switching instruction can be shielded during the downloading process of the second configuration file to prevent the firmware switching process of the communication module from interrupting the process of downloading the second configuration file, thereby ensuring the smooth progress of the second configuration file downloading process and improving the download success rate of the second configuration file.
[0125] Another configuration file downloading method provided by an embodiment of the present application is described below, which can be applied to an electronic device including a communication module. Through the configuration file downloading method, the firmware switching instruction can be shielded during the process of downloading the second configuration file, which can effectively prevent the firmware switching process from affecting the download of the second configuration file. If the download of the second configuration file fails, the present application can adopt an effective method to re-download the second configuration file, which is conducive to improving the success rate of downloading the second configuration file.
[0126] See also Figure 3 , is a flow chart of another configuration file downloading method provided in an embodiment of the present application. The method may include but is not limited to the following steps:
[0127] S301, in response to an Internet of Things service activation operation, generating a download instruction for a second configuration file.
[0128] For details, please refer to the description in S201, which will not be repeated here.
[0129] S302, in response to the download instruction of the second configuration file, entering the download process of the second configuration file, and in the download process of the second configuration file, shielding the firmware switching instruction.
[0130] When the electronic device receives the download instruction of the second configuration file, it can enter the download process of the second configuration file.
[0131] Optionally, the download instruction of the second configuration file can also be used to request the proxy service in the electronic device to enter the download process of the second configuration file. The proxy service can notify the filter driver that the download process of the second configuration file has been entered, and in the download process, the firmware switching instruction needs to be shielded. The filter driver is a driver service in the electronic device, which is used to filter unnecessary mobile broadband interface model (MBIM) messages.
[0132] Optionally, the firmware switching instruction is an MBIM message. Optionally, the firmware switching instruction is generated after the communication module switches to work in the second card slot because the first firmware is different from the second firmware. For details, please refer to the description in S202, which will not be repeated here.
[0133] S303: When the firmware switching instruction is blocked, download the second configuration file through the first eSIM card.
[0134] In the case where the firmware switching instruction is blocked, when the communication module reports the firmware switching instruction to the electronic device, the electronic device will not receive the firmware switching instruction and will not perform the firmware switching. The electronic device can download the second configuration file through the first eSIM card. In this way, the download process of the second configuration file will proceed smoothly and will not be interrupted by the process of burning the second firmware by the communication module.
[0135] S304, determining whether the second configuration file is downloaded successfully, if the second configuration file is downloaded successfully, executing S308; otherwise, executing S305.
[0136] S305: Download the second configuration file through the first eSIM card.
[0137] After the download of the second configuration file fails, the electronic device may try to download the second configuration file again.
[0138] This step can also be described as repeatedly executing the step of downloading the second configuration file through the first eSIM card. Specifically, reference may be made to the description in S203, which will not be repeated here.
[0139] S306, determining whether the second configuration file is downloaded successfully; if the second configuration file is downloaded successfully, executing S308; otherwise, executing S307.
[0140] S307, restart the electronic device and execute S303.
[0141] If the second configuration file fails to be downloaded again, the electronic device may be restarted, and after the electronic device is restarted, S303 is executed.
[0142] Among them, restarting the electronic device can reset its internal state and clear possible communication errors or abnormal conditions. When an electronic device runs for a long time or encounters problems, it may accumulate some error states or residual data, which may cause the failure to download the second configuration file. By restarting the electronic device, these error states and data can be cleared, and the electronic device can be returned to an initial, clean state, thereby increasing the success rate of downloading the second configuration file. For example, if the failure to download the second configuration file is caused by a network connection problem, restarting the electronic device can help disconnect and re-establish the network connection. This helps to solve problems such as network disconnection, unstable connection, or network configuration errors, and provides a reliable network environment for the process of downloading the second configuration file.
[0143] S308: Activate the second configuration file on the eSIM chip.
[0144] If the second configuration file is downloaded successfully, the electronic device activates the second configuration file on the eSIM chip. The activated second configuration file supports the Internet of Things service.
[0145] The specific implementation process of activating the second configuration file may be referred to in S204 and will not be described in detail here.
[0146] S309, exit the download process of the second configuration file.
[0147] When the second configuration file is successfully activated on the eSIM chip, the communication module may send download process exit information to the electronic device. Accordingly, the electronic device receives the download process exit information. In response to the download process exit information, the electronic device may exit the download process of the second configuration file.
[0148] Optionally, the communication module may send download process exit information to the proxy service in the electronic device to notify the proxy service that the download process of the second configuration file may be exited.
[0149] 310, unblocking the firmware switching instruction.
[0150] Optionally, when the second configuration file is successfully activated, the communication module may send download process exit information to the proxy service in the electronic device, and when the proxy service receives the download process exit information, it may send an unblocking instruction for the firmware switching instruction to the filter driver in the electronic device. Accordingly, the filter driver may unblock the firmware switching instruction in response to the received unblocking instruction.
[0151] Optionally, when the second configuration file is successfully activated, the communication module can switch from the second card slot to the first card slot to work, thereby restoring the working state before downloading the second configuration file. This is conducive to ensuring that the data service originally performed in the first card slot can operate normally.
[0152] It can be seen that, through the configuration file downloading method provided in the embodiment of the present application, when the download of the second configuration file fails, the step of downloading the second configuration file can be re-executed, which is conducive to improving the success rate of downloading the second configuration file. In addition, by restarting the electronic device, it is helpful to eliminate some factors that may cause the failure of downloading the second configuration file, effectively improve the success rate of downloading the second configuration file, and thus facilitate the successful activation of the Internet of Things service by the electronic device.
[0153] The communication module provided in the embodiments of the present application is introduced below.
[0154] Please refer to Figure 4 , is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. The communication device includes a communication module, the communication module includes a first card slot and a second card slot, the first card slot is configured with an inserted SIM card, the second card slot is configured with an eSIM chip and a first configuration file, the first configuration file is in an activated state, and the eSIM chip and the first configuration file constitute a first eSIM card.
[0155] like Figure 4 As shown, the communication device 400 includes a transceiver unit 410 and a processing unit 420 .
[0156] The transceiver unit 410 is used to receive a download instruction for a second configuration file;
[0157] The processing unit 420 is used to shield the firmware switching instruction during the download process of the second configuration file, where the firmware switching instruction is used to switch the firmware of the communication module from the first firmware to the second firmware, wherein the first firmware is the firmware corresponding to the plug-in SIM card, and the second firmware is the firmware corresponding to the first eSIM card;
[0158] The transceiver unit 410 is further configured to download a second configuration file via the first eSIM card;
[0159] The processing unit 420 is further configured to activate the second configuration file in the eSIM chip if the second configuration file is downloaded successfully, and the eSIM chip and the second configuration file form a second eSIM card, and the second eSIM card supports the Internet of Things service.
[0160] In a possible implementation, the processing unit 420 is further configured to unblock the firmware switching instruction when the second configuration file is downloaded successfully.
[0161] In a possible implementation, the transceiver unit 410 is further configured to receive a confirmation instruction for shielding the firmware switching instruction; and the processing unit 420 is further configured to download the second configuration file through the first eSIM card in response to the confirmation instruction for shielding the firmware switching instruction.
[0162] In a possible implementation, the processing unit 420 is further configured to, when downloading of the second configuration file fails, repeatedly execute the step of downloading the second configuration file through the first eSIM card.
[0163] In a possible implementation, the processing unit 420 is further configured to restart the electronic device when downloading of the second configuration file fails.
[0164] In a possible implementation manner, the firmware switching instruction is generated when the firmware corresponding to the plug-in SIM card is different from the firmware corresponding to the first eSIM card.
[0165] In a possible implementation, the processing unit 420 is further configured to, when working in the first card slot, respond to an Internet of Things service switching instruction to restart the communication module; after restarting the communication module, the communication module switches from the first card slot to the second card slot to work; when the second configuration file is successfully activated, the communication module switches from the second card slot to the first card slot to work.
[0166] For the introduction of the technical effects brought about by the communication device 400 and any possible implementation thereof, reference may be made to the introduction of the technical effects of the aforementioned method embodiment, which will not be repeated here.
[0167] According to the embodiment of the present application, Figure 4 The various units in the device shown in can be separately or all combined into one or more other units to constitute, or one (some) of the units can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit.
[0168] The present application also provides a computer device. Figure 5 , is a structural diagram of a computer device provided in an embodiment of the present application.
[0169] like Figure 5As shown, the computer device 500 may include: one or more processors 510, one or more memories 520, one or more communication interfaces 530 and a bus 540, wherein the processors 510, memories 520 and communication interfaces 530 are connected via the bus 540. The computer device may be the communication device 400 in the above description.
[0170] The memory 520 is used to store programs; the processor 510 is used to execute the programs stored in the memory. When the programs are executed, the processor 510 executes a method in any possible implementation of the communication method.
[0171] It should be understood that in the embodiment of the present application, the above-mentioned memory 520 includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or portable read-only memory (CDROM), as well as external memory other than computer memory and processor cache. A part of the above-mentioned memory 520 may also include a non-volatile random access memory. For example, the memory 520 may also store information about the device type.
[0172] The processor 510 may be one or more central processing units (CPUs). When the processor 510 is a CPU, the CPU may be a single-core CPU or a multi-core CPU. The processor 510 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0173] The steps performed in the above embodiments can be based on the above Figure 5The structure of the computer device 500 shown in the figure is implemented, and the processor 510 can execute the implementation described in any optional embodiment of the communication method provided in the embodiment of the present application, and can also execute the implementation of the communication device 400 described in the embodiment of the present application. Specifically, the processor 510 can implement Figure 4 The communication interface 530 can implement the functions of the transceiver unit 410 in the communication device 400 shown in the figure. The memory 520 can provide a cache when the processor 510 executes the implementation of the communication device 400 described in the embodiment of the present application, and can also store the computer program required for the processor 510 to execute the implementation of the communication device 400 described in the embodiment of the present application.
[0174] The embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor can implement the above Figure 2 or Figure 3 The method shown in .
[0175] The present application also provides a computer program product, which includes: instructions or computer programs; when the instructions or computer programs are executed, the above-mentioned Figure 2 or Figure 3 The method shown in .
[0176] The embodiment of the present application further provides a chip, the chip includes a processor, the processor is used to execute instructions, when the processor executes the instructions, the chip can achieve the above Figure 2 or Figure 3 Optionally, the chip further comprises a communication interface, and the communication interface is used to receive a signal or send a signal.
[0177] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by hardware related to the computer program, and the above-mentioned computer program can be stored in a computer storage medium. When the above-mentioned computer program is executed, the processes in the above-mentioned method embodiments can be implemented. The aforementioned computer storage medium includes: a read-only memory ROM or a random access memory RAM, a magnetic disk or an optical disk, and other media that can store computer program codes.
Claims
1. A configuration file downloading method, characterized in that: Applied to an electronic device, the electronic device includes a communication module, the communication module includes a first card slot and a second card slot, the first card slot is configured with a plug-in subscriber identity module SIM card, the second card slot is configured with an embedded subscriber identity module eSIM chip and a first configuration file, the first configuration file is in an activated state, and the eSIM chip and the first configuration file constitute a first eSIM card; The method comprises: In response to a download instruction for a second configuration file, during the download process of the second configuration file, shielding a firmware switching instruction, the firmware switching instruction being used to switch the firmware of the communication module from a first firmware to a second firmware, wherein the first firmware is firmware corresponding to the plug-in SIM card, and the second firmware is firmware corresponding to the first eSIM card; Downloading the second configuration file through the first eSIM card; When the second configuration file is downloaded successfully, the second configuration file is activated in the eSIM chip, the eSIM chip and the second configuration file form a second eSIM card, and the second eSIM card supports Internet of Things services.
2. The method according to claim 1, characterized in that The method further comprises: When the second configuration file is downloaded successfully, the firmware switching instruction is unblocked.
3. The method according to claim 1 or 2, characterized in that: The downloading the second configuration file through the first eSIM card includes: In response to a confirmation instruction for the shielded firmware switching instruction, the second configuration file is downloaded through the first eSIM card.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: If downloading of the second configuration file fails, the step of downloading the second configuration file through the first eSIM card is repeated.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the downloading of the second configuration file fails, restart the electronic device.
6. The method according to any one of claims 1 to 5, characterized in that: The firmware switching instruction is generated when the firmware corresponding to the plug-in SIM card is different from the firmware corresponding to the first eSIM card.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the communication module is working in the first card slot, in response to an Internet of Things service switching instruction, restarting the communication module; After the communication module is restarted, the communication module switches from the first card slot to the second card slot to work; When the second configuration file is successfully activated, the communication module switches from the second card slot to the first card slot to operate.
8. A communication device, characterized in that: The communication device includes a communication module, the communication module includes a first card slot and a second card slot, the first card slot is configured with an inserted SIM card, the second card slot is configured with an eSIM chip and a first configuration file, the first configuration file is in an activated state, and the eSIM chip and the first configuration file constitute a first eSIM card; the communication device also includes: A transceiver unit, configured to receive a download instruction for a second configuration file; a processing unit, configured to shield a firmware switching instruction during downloading of the second configuration file, wherein the firmware switching instruction is used to switch the firmware of the communication module from a first firmware to a second firmware, wherein the first firmware is firmware corresponding to the plug-in SIM card, and the second firmware is firmware corresponding to the first eSIM card; The transceiver unit is further configured to download the second configuration file through the first eSIM card; The processing unit is further configured to activate the second configuration file in the eSIM chip when the second configuration file is downloaded successfully, wherein the eSIM chip and the second configuration file constitute a second eSIM card, and the second eSIM card supports Internet of Things services.
9. A computer device, characterized in that: include: Memory, processor; wherein: The memory is used to store a computer program, wherein the computer program includes program instructions; The processor is used to call the program instructions so that the computer device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Storage area allocation method and device, equipment and storage medium
CN119781691A
Memory area allocation method, apparatus, device, and storage medium
CN119781691B
