CN115767509A - Parameter configuration method and device, terminal equipment and storage medium - Google Patents

Parameter configuration method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115767509A
CN115767509A CN202211452984.8A CN202211452984A CN115767509A CN 115767509 A CN115767509 A CN 115767509A CN 202211452984 A CN202211452984 A CN 202211452984A CN 115767509 A CN115767509 A CN 115767509A
Authority
CN
China
Prior art keywords
parameter file
target
parameter
modem
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211452984.8A
Other languages
Chinese (zh)
Inventor
曹凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202211452984.8A priority Critical patent/CN115767509A/en
Publication of CN115767509A publication Critical patent/CN115767509A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a parameter configuration method, a parameter configuration device, terminal equipment and a storage medium, wherein the method comprises the following steps: determining a target parameter file corresponding to a user identity identification card, wherein the target parameter file is a parameter file loaded when a modem of the terminal equipment operates according to operator parameters corresponding to an operator to which the user identity identification card belongs; judging whether the target parameter file is the same as the current parameter file of the modem; and if the target parameter file is different from the current parameter file, configuring the modem according to the target parameter file. By implementing the embodiment, the accuracy of configuring the operator parameters by the terminal equipment is improved.

Description

Parameter configuration method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a parameter configuration method and apparatus, a terminal device, and a storage medium.
Background
At present, with the maturity of mobile communication technology and the realization of the interconnection of everything, a company producing terminal devices needs to cooperate with different operators in different countries for global business expansion, and under the condition that more and more countries for delivering the terminal devices and more operators for cooperation, the operator parameters stored in the terminal devices are continuously increased. In the case of shipment of different operators in multiple countries, the terminal device cannot load operator parameters of all operators in the world, and the terminal device cannot meet the requirement of loading operator parameters in a part of regions.
Disclosure of Invention
The embodiment of the application discloses a parameter configuration method, a parameter configuration device, terminal equipment and a storage medium, and improves the accuracy of configuring operator parameters by the terminal equipment.
The embodiment of the application discloses a parameter configuration method, which is applied to terminal equipment and comprises the following steps:
determining a target parameter file corresponding to a user identity identification card, wherein the target parameter file is a parameter file loaded when a modem of the terminal equipment operates according to operator parameters corresponding to an operator to which the user identity identification card belongs;
judging whether the target parameter file is the same as the current parameter file of the modem;
and if the target parameter file is different from the current parameter file, configuring the modem according to the target parameter file.
In one embodiment, the determining the target parameter file corresponding to the user identification card includes:
if the user identity identification card is detected to be electrically connected with the terminal equipment, determining a target parameter file corresponding to the user identity identification card;
or the like, or, alternatively,
and if the change of the public land mobile network number corresponding to the user identity identification card is detected, determining a target parameter file corresponding to the user identity identification card.
In one embodiment, the terminal device includes a plurality of parameter files, each parameter file corresponds to at least one public land mobile network number, and the determining a target parameter file corresponding to the subscriber identity card includes:
acquiring a target public land mobile network number corresponding to a user identity identification card;
and determining a target parameter file corresponding to the target public land mobile network number from the plurality of parameter files.
In one embodiment, the determining whether the target profile is the same as the current profile of the modem includes:
acquiring an encryption parameter in an EFS (encrypted file system) of the terminal equipment;
and judging whether the target parameter file is the same as the current parameter file of the modem or not according to the encryption parameters and the target parameter file.
In one embodiment, the determining whether the target parameter file is the same as the current parameter file of the modem according to the encryption parameter and the target parameter file includes:
determining a target value of the encryption parameter according to the preset corresponding relation and the target parameter file;
judging whether the current value of the encryption parameter is the same as the target value or not, and obtaining a judgment result;
determining whether the target parameter file is the same as the current parameter file of the modem or not according to the judgment result, wherein the target parameter file is the same as the current parameter file when the judgment result indicates that the current value is the same as the target value; and when the judgment result indicates that the current value is different from the target value, the target parameter file is different from the current parameter file.
In one embodiment, each parameter file includes operator parameters corresponding to the at least one operator, and the at least one operator numbers the operator corresponding to the at least one public land mobile network;
the configuring the modem using the target parameter file includes:
setting the encryption parameter as the target value;
and controlling the modem to restart so that the modem loads the target parameter file according to the encryption parameter set as the target value and the target public land mobile network number when restarting.
In one embodiment, the plurality of profiles includes a primary profile and a secondary profile, the primary profile corresponding to a greater number of plmn codes than the secondary profile, the method further comprising:
and if the modem fails to load the encryption parameters during restarting, controlling the modem to load the main parameter file.
The embodiment of the application discloses parameter configuration device is applied to terminal equipment, the device includes:
a determining module, configured to determine a target parameter file corresponding to a user identity card, where the target parameter file is a parameter file loaded when a modem of the terminal device operates according to an operator parameter corresponding to an operator to which the user identity card belongs;
the judging module is used for judging whether the target parameter file is the same as the current parameter file of the modem;
and the configuration module is used for configuring the modem according to the target parameter file if the target parameter file is different from the current parameter file.
In one embodiment, the determining module is further configured to determine a target parameter file corresponding to the user identification card if it is detected that the user identification card is electrically connected to the terminal device; or, if the change of the public land mobile network number corresponding to the user identity card is detected, determining a target parameter file corresponding to the user identity card.
In one embodiment, the terminal device includes a plurality of parameter files, each of which corresponds to at least one public land mobile network number, and the determining module is further configured to obtain a target public land mobile network number corresponding to the subscriber identity card; and determining a target parameter file corresponding to the target public land mobile network number from the plurality of parameter files.
In one embodiment, the determining module is further configured to obtain an encryption parameter in an EFS of the encrypted file system of the terminal device; and judging whether the target parameter file is the same as the current parameter file of the modem or not according to the encryption parameters and the target parameter file.
In one embodiment, the encryption parameter includes a plurality of different values, the plurality of different values and the plurality of parameter files are in a preset corresponding relationship, and the determining module is further configured to determine a target value of the encryption parameter according to the preset corresponding relationship and the target parameter file; judging whether the current value of the encryption parameter is the same as the target value or not, and obtaining a judgment result; determining whether the target parameter file is the same as the current parameter file of the modem or not according to the judgment result, wherein the target parameter file is the same as the current parameter file when the judgment result indicates that the current value is the same as the target value; and when the judgment result indicates that the current value is different from the target value, the target parameter file is different from the current parameter file.
In one embodiment, each parameter file includes operator parameters corresponding to the at least one operator, and the at least one operator numbers the operator corresponding to the at least one public land mobile network; the configuration module is also used for setting the encryption parameters as the target values; and controlling the modem to restart so that the modem loads the target parameter file according to the encryption parameter set as the target value and the target public land mobile network number when restarting.
In an embodiment, the plurality of parameter files include a primary parameter file and a secondary parameter file, where the number of public land mobile network numbers corresponding to the primary parameter file is greater than the number of public land mobile network numbers corresponding to the secondary parameter file, and the configuration module is further configured to control the modem to load the primary parameter file if loading of the encryption parameter by the modem fails during a reboot.
The embodiment of the application discloses a terminal device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method of any of the above embodiments.
The embodiment of the application discloses a computer-readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, causes the processor to execute the method of any one of the above embodiments.
By the parameter configuration method, the parameter configuration device, the terminal device and the storage medium disclosed by the embodiment of the application, the terminal device can determine a target parameter file corresponding to a user identity identification card, wherein the target parameter file is a parameter file loaded when a modem of the terminal device operates according to operator parameters corresponding to an operator to which the user identity identification card belongs, and then judges whether the target parameter file is the same as a current parameter file of the modem, and when the target parameter file is not the same as the current parameter file, the target parameter file is used for configuring the modem. By implementing the embodiment, a plurality of parameter files can be set in the terminal equipment, the terminal equipment can determine the target parameter file corresponding to the user identity identification card, and when the current parameter file is not applied to the user identity identification card, the modem is configured through the operator parameters in the target parameter file, so that the modem in the terminal equipment operates according to the operator parameters corresponding to the operator to which the user identity identification card belongs, and the accuracy of configuring the operator parameters by the terminal equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a parameter configuration method disclosed in an embodiment of the present application;
fig. 2 is a schematic flow chart of a parameter configuration method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart illustrating another parameter configuration method disclosed in an embodiment of the present application;
FIG. 4 is a block diagram of a parameter configuration apparatus according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the embodiments of the present application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first value can be referred to as a second value, and similarly, a second value can be referred to as a first value, without departing from the scope of the present application. The first value and the second value are both values, but they are not the same value.
The embodiment of the application discloses a parameter configuration method, a parameter configuration device, terminal equipment and a storage medium, and improves the accuracy of configuring operator parameters by the terminal equipment.
The following detailed description is made with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a schematic application scenario diagram of a parameter configuration method disclosed in an embodiment of the present application, where the schematic application scenario diagram includes a terminal device 10, a subscriber identity module card 110, and a modem 120, and the terminal device 10 may include, but is not limited to, a mobile phone, a tablet Computer, a wearable device, a notebook Computer, a PC (Personal Computer), and the like. In addition, the operating system of the terminal device 10 may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a Windows Phone8 operating system, and the like, and the embodiment of the present application is not limited thereto. The user identification card 110 may be a physical card inserted into the terminal device 10, and may include an embedded SIM (Subscriber Identity Module) card and a card SIM card, and the user identification card 110 may also be an electronic SIM card in the terminal device 10.
The terminal device 10 may determine a target parameter file corresponding to the user id card 110, where the target parameter file is a parameter file loaded by the modem 120 of the terminal device 10 when running according to an operator parameter corresponding to an operator to which the user id card 110 belongs, and then determine whether the target parameter file is the same as a current parameter file of the modem 120, and if the target parameter file is not the same as the current parameter file, configure the modem 120 using the target parameter file.
As shown in fig. 2, fig. 2 is a schematic flow chart of a parameter configuration method disclosed in an embodiment of the present application, where the parameter configuration method may be applied to a terminal device in the foregoing embodiment, and the parameter configuration method may include the following steps:
step 210, determining a target parameter file corresponding to the user identification card.
The terminal equipment can determine a target parameter file corresponding to the user identity identification card every target time, wherein the target parameter file is a parameter file loaded by a modem of the terminal equipment when the modem runs according to operator parameters corresponding to an operator to which the user identity identification card belongs. Optionally, the modem may load a parameter file when starting, where the parameter file may only include operator parameters corresponding to an operator to which the user id card belongs, or may also include operator parameters corresponding to each of a plurality of operators, and the modem may load the parameter file and select the operator parameters corresponding to the operator to which the user id card belongs from among the operator parameters corresponding to each of the plurality of operators to operate.
The user identity card may correspond to a Public Land Mobile Network (PLMN) number, the terminal device may obtain the PLMN number corresponding to the user identity card, and the terminal device may determine an operator to which the user identity card belongs according to the PLMN number. The public land Mobile Network number may include a Mobile Country Code (MCC) and a Mobile Network Code (MNC), and the terminal device may determine a Country to which the user id card belongs according to the Mobile Country Code in the public land Mobile Network number, and then determine an operator to which the user id card belongs in the Country according to the Mobile Network Code in the public land Mobile Network number. For example, an operator may correspond to public land mobile network number 46000, mobile country code 460, and mobile network code 00.
As an optional implementation manner, the modem of the terminal device operates according to an operator parameter corresponding to an operator to which the user identification card belongs, and may include: the parameter file may include operator parameters corresponding to a plurality of operators, and may further include public land mobile network numbers corresponding to the plurality of operators, the terminal device may detect the public land mobile network number corresponding to the user identification card, and then determine, according to the public land mobile network number corresponding to the user identification card, the operator parameter corresponding to the operator to which the user identification card belongs in the target parameter file, and then control the modem to operate according to the operator parameter. By implementing the embodiment, the accuracy of determining the operator parameters by the terminal equipment can be improved.
In one embodiment, if a terminal device detects that a user identification card is electrically connected with the terminal device, determining a target parameter file corresponding to the user identification card; or, if the terminal device detects that the public land mobile network number corresponding to the user identity card changes, determining a target parameter file corresponding to the user identity card.
The terminal equipment can be provided with an entity card slot, the user identity identification card can be inserted into the entity card slot, when the user identity identification card is inserted into a target position in the entity card slot, the terminal equipment can be electrically connected with the user identity identification card in a detection mode, the terminal equipment can detect that the user identity identification card is electrically connected with the terminal equipment, and then a target parameter file corresponding to the user identity identification card is determined. The chip of the terminal device may include an electronic version of the subscriber identity card, and the terminal device may determine the target parameter file corresponding to the subscriber identity card when detecting that the public land mobile network number corresponding to the electronic version of the subscriber identity card changes.
In this embodiment, the terminal device may determine the target parameter file corresponding to the user identification card when detecting that the user identification card is electrically connected to the terminal device or when detecting that the public land mobile network number corresponding to the user identification card changes, thereby improving timeliness of updating the operator parameter.
Step 220, determining whether the target parameter file is the same as the current parameter file of the modem.
The terminal device may determine whether the target profile is the same as the current profile of the modem. Wherein the current parameter file may be a parameter file loaded by the modem when the modem is last started. Optionally, a plurality of parameter files may be stored in the terminal device, and the public land mobile network numbers corresponding to the parameter files are different, that is, the operator parameter corresponding to any operator is stored in only one parameter file, but not in a plurality of parameter files, and the terminal device may determine the corresponding parameter file according to the public land mobile network number of the user identification card.
Optionally, the terminal device may determine whether the target parameter file is the same as the current parameter file according to the file content. The terminal device can detect the operator parameters in the target parameter file and the current parameter file, if the operator parameters in the target parameter file are different from the operator parameters in the current parameter file, the target parameter file is different from the current parameter file, and if the operator parameters in the target parameter file are the same as the operator parameters in the current parameter file, the target parameter file is the same as the current parameter file. Optionally, the terminal device may also determine whether the target parameter file is the same as the current parameter file by using the file name. The file names of the parameter files in the terminal equipment are different.
Step 230, if the target parameter file is different from the current parameter file, configuring the modem according to the target parameter file.
If the terminal equipment judges that the target parameter file is different from the current parameter file of the modem, the modem can be configured according to the target parameter file. If the target parameter file only includes the operator parameter corresponding to one operator, the operator parameter corresponding to the one operator can be acquired, and the modem is controlled to operate according to the operator parameter corresponding to the one operator. When the target parameter file is the same as the current parameter file, the terminal device may end the parameter configuration method and continue to operate normally.
If the target parameter file comprises operator parameters corresponding to a plurality of operators, the operator parameters corresponding to the user identification card can be determined from the target parameter file, and then the modem is controlled to operate according to the operator parameters corresponding to the user identification card. Optionally, the terminal device determines an operator to which the user id card belongs first, and then determines an operator parameter corresponding to the operator to which the user id card belongs. Alternatively, the operator parameter may have a one-to-one correspondence with the plmn code, and the terminal device may obtain the plmn code corresponding to the subscriber identity card, and then determine the operator parameter corresponding to the plmn code.
In this embodiment, a terminal device may determine a target parameter file corresponding to a user identity card, where the target parameter file is a parameter file loaded by a modem of the terminal device when the modem runs according to an operator parameter corresponding to an operator to which the user identity card belongs, determine whether the target parameter file is the same as a current parameter file of the modem, and configure the modem using the target parameter file when the target parameter file is different from the current parameter file. By implementing the embodiment, a plurality of parameter files can be set in the terminal equipment, the terminal equipment can determine the target parameter file corresponding to the user identity identification card, and when the current parameter file is not applied to the user identity identification card, the modem is configured through the operator parameter in the target parameter file, so that the modem in the terminal equipment operates according to the operator parameter corresponding to the operator to which the user identity identification card belongs, and the accuracy of configuring the operator parameter by the terminal equipment is improved.
As shown in fig. 3, fig. 3 is a schematic flowchart of another parameter configuration method disclosed in an embodiment of the present application, where the parameter configuration method may be applied to a terminal device in the foregoing embodiment, and the parameter configuration method may include the following steps:
and 310, acquiring a target public land mobile network number corresponding to the user identity card.
The terminal equipment can obtain the target public land mobile network number corresponding to the user identity identification card. The target public land mobile network number corresponding to the subscriber identity card may include, but is not limited to, an RPLMN (Registered PLMN, registered public land mobile network number), an EPLMN (Equivalent PLMN, equivalent public land mobile network number), an EHPLMN (Equivalent Home PLMN, equivalent local public land mobile network number), an HPLMN (Home PLMN, home public land mobile network number), a VPLMN (Visited PLMN, visited public land mobile network number), an upln (User Controlled PLMN, user Controlled public land mobile network number), an OPLMN (Operator Controlled PLMN ), an FPLMN (Forbidden PLMN), an APLMN (applicable PLMN, capturable PLMN). Optionally, the terminal device may determine the storage location corresponding to the target public land mobile network number according to the category to which the target public land mobile network number belongs. For example, the storage location of the OPLMN may be in a subscriber identity card.
As an optional implementation manner, the terminal device may include a plurality of user identification cards and a plurality of entity card slots, the terminal device may obtain a target public land mobile network number and a corresponding entity card slot corresponding to each user identification card, may determine a modem corresponding to each user identification card according to the entity card slot corresponding to each user identification card, and may obtain the target public land mobile network number corresponding to each user identification card through the modem corresponding to each user identification card. By implementing the embodiment, the accuracy of acquiring the number of the target public land mobile network can be improved.
Step 320, determining a target parameter file corresponding to the target public land mobile network number from the plurality of parameter files.
The terminal device may include a plurality of parameter files, each parameter file corresponds to at least one plmn number, but each plmn number can only correspond to one parameter file, that is, the parameter file and the plmn number are in a one-to-many relationship, the file content of each parameter file may be preset, and the relationship between each parameter file and the plmn number may be determined according to the file content of each parameter file or may be preset. The terminal device may determine a target profile corresponding to the target public land mobile network number from the plurality of profiles.
Optionally, the file content of each parameter file may include at least one corresponding public land mobile network number, and the terminal device may search the file content of each parameter file, query whether each parameter file includes the target public land mobile network number, and use the parameter file including the target public land mobile network number as the target parameter file. Alternatively, the terminal device may store each parameter file in correspondence with at least one corresponding plmn code, and the terminal device may determine a target parameter file corresponding to a target plmn code according to the correspondence stored.
And step 330, acquiring the encryption parameters in the EFS of the terminal equipment.
The terminal device can obtain the encryption parameters in the encrypted File System EFS (encryption File System). The encrypted file system may include core file encryption techniques for storing encrypted files on the file system volume. The encryption parameter may refer to a parameter file in the encrypted file system, or may refer to a parameter in a file in the encrypted file system, which is not limited.
Step 340, according to the encryption parameters and the target parameter file, determining whether the target parameter file is the same as the current parameter file of the modem.
The terminal equipment can judge whether the target parameter file is the same as the current parameter file of the modem or not according to the encryption parameters and the target parameter file. The encryption parameter and the current parameter file have a corresponding relation, the terminal equipment can determine the current parameter file of the modem from the encryption file system according to the encryption parameter, and then the terminal equipment judges whether the target parameter file is the same as the current parameter file. When the target parameter file is the same as the current parameter file, the terminal device may end the parameter configuration method and continue to operate normally.
In an embodiment, the encryption parameter may include a plurality of different values, where the plurality of different values and the plurality of parameter files are in a preset correspondence, and the terminal device may determine a target value of the encryption parameter according to the preset correspondence and the target parameter file; judging whether the current value of the encryption parameter is the same as the target value or not, and obtaining a judgment result; determining whether the target parameter file is the same as the current parameter file of the modem or not according to the judgment result, wherein the target parameter file is the same as the current parameter file when the judgment result indicates that the current value is the same as the target value; and when the judgment result indicates that the current value is different from the target value, the target parameter file is different from the current parameter file.
The terminal device may preset the encryption parameter, where the encryption parameter includes a plurality of different values, the plurality of different values are also in a preset correspondence with the plurality of parameter files, and the values are in one-to-one correspondence with the parameter files, for example, the plurality of different values may include a first value, a second value, and a third value, the plurality of parameter files include a parameter file a, a parameter file B, and a parameter file C, and when the preset correspondence is set, the first value may correspond to the parameter file a, the second value may correspond to the parameter file B, and the third value may correspond to the parameter file C. The terminal device determines, according to the preset correspondence and the target parameter file, a target value of the encryption parameter corresponding to the target parameter file, for example, if the target parameter file is the parameter file B, the terminal device may determine, according to the preset correspondence, that the target value of the encryption parameter corresponding to the parameter file B is the second value.
The step of obtaining the encryption parameter in the encryption file system of the terminal device may include obtaining a current value of the encryption parameter in the encryption file system of the terminal device, and the terminal device may determine whether the target value and the current value are the same, and obtain a determination result, thereby determining whether the target parameter file is the same as the current parameter file of the modem according to the determination result. That is to say, when the terminal device determines that the target value is the same as the current value, it determines that the target parameter file is the same as the current parameter file, and when the target value is not the same as the current value, it determines that the target parameter file is not the same as the current parameter file.
Step 350, if the target parameter file is different from the current parameter file, setting the encryption parameter as the target value.
And if the terminal equipment judges that the target parameter file is different from the current parameter file, setting the encryption parameter as a target value.
As an optional implementation manner, the plurality of parameter files may include a first parameter file and a first parameter file, and the plurality of different values may include a first value and a second value, where the first value may correspond to the first parameter file and the second value may correspond to the second parameter file. When the plurality of parameter files only include two and the plurality of different values only include two, the terminal device may not perform the step of determining the target value of the encryption parameter, but determine whether the target parameter file is the same as the current parameter file according to the file content of the target parameter file and the file content of the current parameter file, and if the target parameter file is not the same as the current parameter file, the terminal device may change the current value of the encryption parameter to another value. That is, when the current value is the first value, the encryption parameter may be set to the second value, and when the current value is the second value, the encryption parameter may be set to the first value. By implementing the implementation method, the calculation amount of the terminal equipment can be reduced.
And 360, controlling the modem to restart so that the modem loads the target parameter file according to the encryption parameter set as the target value and the target public land mobile network number when restarting.
Each parameter file comprises at least one operator parameter corresponding to each operator, and the operator parameter corresponding to each operator is only included in one parameter file, namely the inclusion relationship between the parameter file and the operators is one-to-one or one-to-many. For example, the first parameter file may include an operator parameter corresponding to a first operator, an operator parameter corresponding to a second operator, and an operator parameter corresponding to a third operator, and the second parameter file may include an operator parameter corresponding to a fourth operator. It is understood that the sum of the operators included in the plurality of parameter files may include all operators in the current operation, so that the terminal device may load the parameter file corresponding to the subscriber identity card.
The end device may control the modem restart, and optionally, the end device may cause the modem to restart by triggering an SSR (System Services responsive). When the modem is started, the modem can load the encryption parameters in the encryption file system and the target public land mobile network number, so that the loaded target parameter file is determined according to the encryption parameters, and then the target operator parameters in the target parameter file are determined according to the target public land mobile network number.
In one embodiment, the parameter files include a primary parameter file and a secondary parameter file, the number of public land mobile network numbers corresponding to the primary parameter file is greater than the number of public land mobile network numbers corresponding to the secondary parameter file, that is, the number of operators corresponding to the operator parameters included in the primary parameter file is greater than the number of operators corresponding to the operator parameters included in the secondary parameter file, and the secondary parameter file may be an extension file of the primary parameter file. If loading of the encryption parameters fails when the modem is restarted, the terminal device can control the modem to load the main parameter file, so that the probability that the modem determines the operator parameters corresponding to the user identity identification card is improved.
In this embodiment, a terminal device may obtain a target plmn code corresponding to a subscriber identity card, determine a target parameter file corresponding to the target plmn code from the plurality of parameter files, and obtain an encryption parameter in an encryption file system of the terminal device, so as to determine whether the target parameter file is the same as a current parameter file of the modem according to the encryption parameter and the target parameter file, set the encryption parameter as the target value when the target parameter file is different from the current parameter file, and control the modem to restart, so that the modem loads the target parameter file according to the encryption parameter set as the target value and the target plmn code when restarting. The target parameter file is determined through the target public land mobile network number and the current parameter file is determined through the encryption parameter in the encryption file system, so that whether the target parameter file is the same as the current parameter file or not is judged, the accuracy of a judgment result can be improved, the modem can automatically configure the operator parameters according to the encryption parameter, the accuracy of configuring the operator parameters is improved, the complexity of user operation is reduced due to the automatic configuration of the operator parameters, and the user experience is improved.
As shown in fig. 4, fig. 4 is a schematic block diagram of a parameter configuration apparatus disclosed in an embodiment of the present application, where the parameter configuration apparatus 400 includes a determining module 410, a determining module 420, and a configuring module 430, where:
a determining module 410, configured to determine a target parameter file corresponding to a user identity card, where the target parameter file is a parameter file loaded when a modem of the terminal device runs according to an operator parameter corresponding to an operator to which the user identity card belongs;
a determining module 420, configured to determine whether the target parameter file is the same as the current parameter file of the modem;
a configuration module 430, configured to configure the modem according to the target parameter file if the target parameter file is different from the current parameter file.
In an embodiment, the determining module 410 is further configured to determine, if it is detected that the user identification card is electrically connected to the terminal device, a target parameter file corresponding to the user identification card; or if the change of the public land mobile network number corresponding to the user identity identification card is detected, determining a target parameter file corresponding to the user identity identification card.
In one embodiment, the terminal device includes a plurality of parameter files, each of the parameter files corresponds to at least one public land mobile network number, and the determining module 410 is further configured to obtain a target public land mobile network number corresponding to the subscriber identity card; and determining a target parameter file corresponding to the target public land mobile network number from the plurality of parameter files.
In an embodiment, the determining module 420 is further configured to obtain an encryption parameter in an encrypted file system EFS of the terminal device; and judging whether the target parameter file is the same as the current parameter file of the modem or not according to the encryption parameters and the target parameter file.
In an embodiment, the encryption parameter includes a plurality of different values, where the plurality of different values and the plurality of parameter files are in a preset corresponding relationship, and the determining module 420 is further configured to determine a target value of the encryption parameter according to the preset corresponding relationship and the target parameter file; judging whether the current value of the encryption parameter is the same as the target value or not, and obtaining a judgment result; determining whether the target parameter file is the same as the current parameter file of the modem according to the judgment result, wherein the target parameter file is the same as the current parameter file when the judgment result indicates that the current value is the same as the target value; and when the judgment result indicates that the current value is different from the target value, the target parameter file is different from the current parameter file.
In one embodiment, each parameter file includes operator parameters corresponding to the at least one operator, and the at least one operator numbers the operator corresponding to the at least one public land mobile network; a configuration module 430, configured to set the encryption parameter as the target value; and controlling the modem to restart so that the modem loads the target parameter file according to the encryption parameter set as the target value and the target public land mobile network number when restarting.
In an embodiment, the parameter files include a primary parameter file and a secondary parameter file, where the number of public land mobile network numbers corresponding to the primary parameter file is greater than the number of public land mobile network numbers corresponding to the secondary parameter file, and the configuration module 430 is further configured to control the modem to load the primary parameter file if loading of the encryption parameters by the modem fails during a reboot.
In this embodiment, a terminal device may determine a target parameter file corresponding to a user identity card, where the target parameter file is a parameter file loaded by a modem of the terminal device when the modem runs according to an operator parameter corresponding to an operator to which the user identity card belongs, determine whether the target parameter file is the same as a current parameter file of the modem, and configure the modem using the target parameter file when the target parameter file is different from the current parameter file. By implementing the embodiment, a plurality of parameter files can be set in the terminal equipment, the terminal equipment can determine the target parameter file corresponding to the user identity identification card, and when the current parameter file is not applied to the user identity identification card, the modem is configured through the operator parameter in the target parameter file, so that the modem in the terminal equipment operates according to the operator parameter corresponding to the operator to which the user identity identification card belongs, and the accuracy of configuring the operator parameter by the terminal equipment is improved.
As shown in fig. 5, in one embodiment, a terminal device is provided, which may include:
a memory 510 storing executable program code;
a processor 520 coupled to the memory 510;
processor 520 calls executable program code stored in memory 510 to implement the parameter configuration methods provided in the various embodiments described above.
The Memory 510 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 510 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 510 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the terminal device in use, and the like.
Processor 520 may include one or more processing cores. The processor 520 connects various parts within the overall terminal device using various interfaces and lines, performs various functions of the terminal device and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 510, and calling data stored in the memory 510. Alternatively, the processor 520 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 520 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 520, but may be implemented by a communication chip.
It is understood that the terminal device may include more or less structural elements than those shown in the above structural block diagrams, for example, a power module, a physical button, a WiFi (Wireless Fidelity) module, a speaker, a bluetooth module, a sensor, etc., and is not limited herein.
The embodiment of the application discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute the method described in each embodiment.
In addition, the embodiments of the present application further disclose a computer program product, which, when running on a computer, enables the computer to perform all or part of the steps of any one of the parameter configuration methods described in the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the embodiments described above may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, including Read-Only Memory (ROM), random Access Memory (RAM), programmable Read-Only Memory (PROM), erasable Programmable Read-Only Memory (EPROM), one-time Programmable Read-Only Memory (OTPROM), electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM) or other Memory capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
The above detailed description is given to a parameter configuration method, apparatus, terminal device and storage medium disclosed in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and implementation manner of the present application, and the description of the above embodiments is only used to help understanding the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A parameter configuration method is applied to terminal equipment, and the method comprises the following steps:
determining a target parameter file corresponding to a user identity identification card, wherein the target parameter file is a parameter file loaded when a modem of the terminal equipment operates according to operator parameters corresponding to an operator to which the user identity identification card belongs;
judging whether the target parameter file is the same as the current parameter file of the modem;
and if the target parameter file is different from the current parameter file, configuring the modem according to the target parameter file.
2. The method of claim 1, wherein determining the target parameter file corresponding to the subscriber identity card comprises:
if the user identity identification card is detected to be electrically connected with the terminal equipment, determining a target parameter file corresponding to the user identity identification card;
or the like, or, alternatively,
and if the change of the public land mobile network number corresponding to the user identity identification card is detected, determining a target parameter file corresponding to the user identity identification card.
3. The method as claimed in claim 1 or 2, wherein the terminal device comprises a plurality of parameter files, each parameter file corresponding to at least one public land mobile network number, and the determining the target parameter file corresponding to the subscriber identity card comprises:
acquiring a target public land mobile network number corresponding to a user identity identification card;
and determining a target parameter file corresponding to the target public land mobile network number from the plurality of parameter files.
4. The method of claim 3, wherein determining whether the target profile is the same as a current profile of the modem comprises:
acquiring an encryption parameter in an EFS (encrypted file system) of the terminal equipment;
and judging whether the target parameter file is the same as the current parameter file of the modem or not according to the encryption parameters and the target parameter file.
5. The method of claim 4, wherein the encryption parameter includes a plurality of different values, the plurality of different values and the plurality of parameter files are in a preset correspondence, and determining whether the target parameter file is the same as the current parameter file of the modem according to the encryption parameter and the target parameter file comprises:
determining a target value of the encryption parameter according to the preset corresponding relation and the target parameter file;
judging whether the current value of the encryption parameter is the same as the target value or not, and obtaining a judgment result;
determining whether the target parameter file is the same as the current parameter file of the modem according to the judgment result, wherein the target parameter file is the same as the current parameter file when the judgment result indicates that the current value is the same as the target value; and when the judgment result indicates that the current value is different from the target value, the target parameter file is different from the current parameter file.
6. The method according to claim 5, wherein each parameter file comprises operator parameters corresponding to the at least one operator, and the at least one operator is an operator corresponding to the at least one public land mobile network number;
the configuring the modem using the target parameter file includes:
setting the encryption parameter as the target value;
and controlling the modem to restart so that the modem loads the target parameter file according to the encryption parameter set as the target value and the target public land mobile network number when restarting.
7. The method of claim 6, wherein the parameter files comprise a primary parameter file and a secondary parameter file, and wherein the primary parameter file corresponds to a greater number of public land mobile network numbers than the secondary parameter file, the method further comprising:
and if the modem fails to load the encryption parameters during restarting, controlling the modem to load the main parameter file.
8. An apparatus for parameter configuration, applied to a terminal device, the apparatus comprising:
a determining module, configured to determine a target parameter file corresponding to a user identity card, where the target parameter file is a parameter file loaded when a modem of the terminal device operates according to an operator parameter corresponding to an operator to which the user identity card belongs;
the judging module is used for judging whether the target parameter file is the same as the current parameter file of the modem;
and the configuration module is used for configuring the modem according to the target parameter file if the target parameter file is different from the current parameter file.
9. A terminal device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the method of any of claims 1 to 7.
CN202211452984.8A 2022-11-18 2022-11-18 Parameter configuration method and device, terminal equipment and storage medium Pending CN115767509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211452984.8A CN115767509A (en) 2022-11-18 2022-11-18 Parameter configuration method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211452984.8A CN115767509A (en) 2022-11-18 2022-11-18 Parameter configuration method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115767509A true CN115767509A (en) 2023-03-07

Family

ID=85333113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211452984.8A Pending CN115767509A (en) 2022-11-18 2022-11-18 Parameter configuration method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115767509A (en)

Similar Documents

Publication Publication Date Title
US8130738B2 (en) Mobile device services acquisition
CN106937273B (en) HD icon display control method and device
EP3197213B1 (en) Network access method and mobile communication terminal
WO2016173337A1 (en) Network access method and mobile communications terminal
CN111163503A (en) Network searching method of mobile terminal and mobile terminal
WO2016173336A1 (en) Network access method and mobile communication terminal
CN109996315B (en) Network searching method and device of multi-card multi-standby terminal, storage medium and electronic equipment
CN116029719B (en) Payment service recommendation method, electronic device and storage medium
CN112926710A (en) NFC analog card switching method, mobile terminal and computer readable storage medium
CN109195197B (en) Network selection method and device for dual-card dual-standby terminal, terminal equipment and storage medium
CN104853410A (en) Network access method and mobile communication terminal
CN103813439A (en) Method for terminal register and terminal
CN110933657A (en) Dialing method and device in emergency state, storage medium and electronic equipment
CN112469092A (en) Multi-card mobile terminal optimal network selection method and device, computer equipment and storage medium
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN106686587B (en) Wireless fidelity Wi-Fi connection method, mobile terminal and medium
CN111135581B (en) Game updating method and device
CN112970276B (en) Communication processing method, device, mobile terminal and storage medium
CN105979552B (en) Method and system for using manual PLMN selection mode
CN115767509A (en) Parameter configuration method and device, terminal equipment and storage medium
CN111372299B (en) Network searching list generation method, network searching method and corresponding devices
CN107466087B (en) Network searching method and mobile terminal
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
CN112738789B (en) SIM card locking method and device, storage medium and electronic equipment
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium

Legal Events

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