Operator parameter updating method, electronic equipment and storage medium
By obtaining the operator parameters issued by the cloud server and updating the terminal device's modem, the problem of operator parameter update delay in the prior art is solved, and efficient operator parameter update is achieved.
Patent Information
- Application Number
- CN202311236840.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-03-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the operator parameters of the terminal equipment can only be updated when the terminal version is updated, resulting in delays and inefficient update of the operator parameters.
By obtaining the operator parameters issued by the cloud server and directly updating the device's modem when determining that the public land mobile network PLMN corresponding to the parameter is consistent with the target PLMN corresponding to the device's user identity card.
It realizes that operator parameters can be updated without terminal version update, which reduces the delay caused by the version upgrade cycle and improves the efficiency of operator parameter update.
Smart Images

Figure CN119697024A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to an operator parameter updating method, an electronic device and a storage medium. Background Art
[0002] At present, with the maturity of mobile communication technology and the realization of the Internet of Everything, companies that produce terminal equipment need to cooperate with different operators in different countries in order to expand their business globally, and the operator parameters stored in terminal equipment are also increasing. Among them, the operator parameters are the configuration parameters of the terminal modem to meet the needs of different operators. The terminal can meet the needs of the operator by modifying the operator parameters.
[0003] Since the operator's requirements are constantly updated, the operator parameters or configuration parameters of the terminal's modem also need to be constantly updated. In the related art, the operator parameters or configuration parameters of the modem can be updated only when the terminal version is updated. For example, the operator parameters of the modem are updated by downloading a new terminal version through Over-the-Air Technology (OTA). Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides an operator parameter updating method, an electronic device and a storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an operator parameter updating method, including:
[0006] Get the operator parameters sent by the cloud server;
[0007] It is determined that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, and the modem of the device is updated using the operator parameter.
[0008] Optionally, the device includes a framework layer, a wireless interface layer, and a modem; and obtaining the operator parameters sent by the cloud server includes:
[0009] The framework layer obtains the operator parameters sent by the cloud server and sends the operator parameters to the wireless interface layer;
[0010] The determining that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, and updating the modem of the device using the operator parameter includes:
[0011] The wireless interface layer receives the operator parameter and obtains the target public land mobile network PLMN corresponding to the user identity card of the device;
[0012] When the wireless interface layer determines that the public land mobile network PLMN corresponding to the operator parameters is consistent with the target public land mobile network PLMN, the wireless interface layer sends an update message carrying the operator parameters to the modem, so that the modem of the device is updated according to the operator parameters.
[0013] Optionally, the framework layer obtains the operator parameters sent by the cloud server, and sends the operator parameters to the wireless interface layer, including:
[0014] The framework layer obtains the operator parameters sent by the cloud server, compares the operator parameters with the updated operator parameters, determines the parameters among the operator parameters that are different from the updated operator parameters as the operator parameters to be updated, and sends the operator parameters to be updated to the wireless interface layer.
[0015] Optionally, the method further comprises:
[0016] The framework layer records the operator parameters to be updated as updated operator parameters.
[0017] Optionally, when the radio interface layer determines that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN, sending an update message carrying the operator parameter to the modem includes:
[0018] When the wireless interface layer determines that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN, it determines the target category corresponding to the operator parameter and sends an update message corresponding to the target category to the modem, wherein the update message carries the operator parameter.
[0019] Optionally, the determining that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, and updating the modem of the device using the operator parameter further includes:
[0020] When receiving the operator parameters, the wireless interface layer performs integrity verification on the operator parameters, and after passing the verification, decodes the operator parameters to obtain decoded operator parameters;
[0021] Accordingly, the radio interface layer sends an update message carrying the operator parameters to the modem, including:
[0022] The radio interface layer sends an update message carrying the decoded operator parameters to the modem.
[0023] Optionally, the method further comprises:
[0024] The radio interface layer stores the operator parameters;
[0025] The wireless interface layer starts a monitoring thread to monitor whether the target public land mobile network PLMN corresponding to the user identity card of the device changes;
[0026] When a change occurs, the radio interface layer determines a target operator parameter consistent with the changed target public land mobile network PLMN from the stored operator parameters, and updates the modem of the device according to the target operator parameter.
[0027] Optionally, the operator parameter is obtained by encoding the original operator parameter; if the type corresponding to the original operator parameter is a string type, the encoding method is to add a data header identifier, a data start identifier and a data end identifier to the string; if the type corresponding to the original operator parameter is a numerical type, the encoding method is to convert the operator parameter into a string of hexadecimal numbers, and add a data header identifier, a data start identifier and a data end identifier to the string; if the type corresponding to the original operator parameter is a binary type, the encoding method is to convert the operator parameter into an ASCII code string, and add a data header identifier, a data start identifier and a data end identifier to the string.
[0028] Optionally, in each encoding method, a Public Land Mobile Network PLMN identifier corresponding to the operator parameter is also added to the character string.
[0029] According to a second aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0030] Processor, modem;
[0031] a memory for storing processor-executable instructions;
[0032] The processor is configured to execute the steps of the operator parameter updating method provided in the first aspect of the present disclosure.
[0033] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the operator parameter updating method provided in the first aspect of the present disclosure are implemented.
[0034] By adopting the above technical solution, the device can directly receive the operator parameters sent by the cloud server, and then when it is determined that the public land mobile network PLMN corresponding to the operator parameters is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, the modem of the device is updated using the operator parameters sent by the cloud server. In this way, the purpose of updating the operator parameters can be achieved without updating the device version, and the operator parameters can be updated in time, reducing the delay in updating the operator parameters caused by the version upgrade cycle, and improving the efficiency of updating the operator parameters.
[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0037] Figure 1 The figure is a schematic diagram of an application scenario of a method for updating operator parameters according to an exemplary embodiment.
[0038] Figure 2 The figure is a flowchart of a method for updating operator parameters according to an exemplary embodiment.
[0039] Figure 3 The diagram is an interaction diagram of a method for updating operator parameters according to an exemplary embodiment.
[0040] Figure 4 It is an interaction diagram showing another operator parameter updating method according to an exemplary embodiment.
[0041] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0043] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0044] As mentioned in the background art, in the related art, the operator parameters of the terminal modem are updated when the terminal version is updated, which makes the updating process of the modem operator parameters more complicated, and the modem update is delayed due to the long terminal version upgrade cycle.
[0045] In view of this, the present disclosure provides an operator parameter updating method, an electronic device and a storage medium, so as to update the operator parameters of a modem in real time and improve the operator parameter updating efficiency.
[0046] Figure 1 FIG. 1 is a schematic diagram of an application scenario of a method for updating operator parameters according to an exemplary embodiment. Figure 1 As shown, the application scenario includes a device 10, a user identity card 110, and a modem 120. The device 10 may be a terminal device, and the terminal device may include but is not limited to: a smart phone, a tablet computer, a smart wearable device, a smart voice interaction device, a smart home appliance, a personal computer, a vehicle terminal, a smart camera, a virtual reality device such as an augmented reality (AR) device, etc. In addition, the operating system of the 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 Phone 8 operating system, etc., which is not limited in the embodiment of the present application. The user identity card 110 may be a physical card inserted into the terminal device 10, and may include an embedded SIM card (Subscriber Identity Module) and a card-type SIM card. The user identity card 110 may also be an electronic SIM card in the terminal device 10.
[0047] Figure 2 is a flowchart of a method for updating operator parameters according to an exemplary embodiment. The method for updating operator parameters can be applied to Figure 1 In the device shown. Figure 2 As shown, the method includes the following steps.
[0048] In step S21, the operator parameters sent by the cloud server are obtained.
[0049] In the present disclosure, when the operator parameters of a device need to be updated, the operator or technician can send the operator parameters to the cloud server, and then the cloud server sends the operator parameters to the device. For example, the device obtains the operator parameters sent by the cloud server via a client set thereon. It should be understood that the client here is relative to the cloud server.
[0050] In step S22, it is determined that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, and the modem of the device is updated using the operator parameter.
[0051] It should be understood that updating the modem refers to updating the current operator parameters in the modem using the operator parameters.
[0052] By adopting the above technical solution, the device can directly receive the operator parameters sent by the cloud server, and then when it is determined that the public land mobile network PLMN corresponding to the operator parameters is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, the modem of the device is updated using the operator parameters sent by the cloud server. In this way, the purpose of updating the operator parameters can be achieved without updating the device version, and the operator parameters can be updated in time, reducing the delay in updating the operator parameters caused by the version upgrade cycle, and improving the efficiency of updating the operator parameters.
[0053] In this disclosure, Figure 1 The device shown includes a framework layer, a radio interface layer (Radio Interface Layer; RIL) and a modem.
[0054] Figure 2 The specific implementation of step S21 is as follows: the framework layer obtains the operator parameters sent by the cloud server and sends the operator parameters to the wireless interface layer. For example, the cloud server sends the operator parameters to the client of the device, and the framework layer obtains the operator parameters sent by the cloud server from the client and sends the operator parameters to the wireless interface layer.
[0055] Accordingly, Figure 2 The specific implementation method of step S22 is: the wireless interface layer receives the operator parameters and obtains the target public land mobile network PLMN corresponding to the user identity card of the device; when the wireless interface layer determines that the public land mobile network PLMN corresponding to the operator parameters is consistent with the target public land mobile network PLMN, the wireless interface layer sends an update message carrying the operator parameters to the modem, so that the modem of the device is updated according to the operator parameters.
[0056] For example, after receiving the operator parameters, the wireless interface layer can obtain the user identity card status from the user identity model (UIM), and when the identity card status indicates that there is a user identity card in the device, further obtain the target public land mobile network PLMN corresponding to the user identity card. For example, the wireless interface layer can send a message get_simcard_info to the UIM to obtain the target public land mobile network PLMN corresponding to the user identity card from the UIM. The UIM is mounted in the modem of the device.
[0057] By adopting the above technical solution, an underlying operation parameter update channel is established to realize the update of the operator's underlying parameters.
[0058] also, Figure 2 The specific implementation of step S22 may also be: when receiving the operator parameters, the wireless interface layer performs integrity verification on the operator parameters, and after the verification is passed, decodes the operator parameters to obtain the decoded operator parameters.
[0059] For example, after receiving the operator parameters, the wireless interface layer can use the information digest algorithm md5 to perform integrity detection on the operator parameters, and after detecting that the operator parameters are complete, decode the operator parameters to obtain decoded operator parameters. That is, the data obtained from the client is converted into operator parameter data through decoding.
[0060] In the present disclosure, the operator parameters sent by the cloud server are obtained by encoding the original operator parameters. Different encoding methods can be used for encoding different operator parameters. If the type corresponding to the original operator parameter is a string type, the encoding method is to add a data header identifier, a data start identifier, and a data end identifier to the string; if the type corresponding to the original operator parameter is a numerical type, the encoding method is to convert the operator parameter into a string of hexadecimal numbers, and add a data header identifier, a data start identifier, and a data end identifier to the string; if the type corresponding to the original operator parameter is a binary type, the encoding method is to convert the operator parameter into an ASCII code string, and add a data header identifier, a data start identifier, and a data end identifier to the string.
[0061] In addition, in order to facilitate determination of the public land mobile network PLMN corresponding to the operator parameter, a public land mobile network PLMN identifier corresponding to the operator parameter may be added to the character string.
[0062] Among them, the types of operator parameters may include string NV (non volatile, non-volatile storage) parameter type, numerical NV parameter type, string and numerical mixed NV parameter type, binary EFS (Embedded FileSystem, embedded file system) file type, string EFS file type. For example, if the original operator parameters are string NV parameters and string EFS files, that is, the type corresponding to the original operator parameters is a string type, then the encoding method is to add the public land mobile network PLMN identifier, data header identifier, data start identifier and data end identifier corresponding to the operator parameters to the string of the operator parameters. For example, the original operator parameters of the string type are encoded as shown in Table 1:
[0063] Table 1
[0064] Plmn_info Data_type Md5 Data_start_flag data Data_end_flag
[0065] Among them, Plmn_info represents the public land mobile network PLMN identifier corresponding to the operator parameter, Data_type represents the type of the original operator parameter, Md5 represents the data header identifier, Data_start_flag represents the data start identifier, Data_end_flag represents the data end identifier, and data represents the original operator parameter.
[0066] If the type corresponding to the original operator parameter is a numeric type, the numeric value is first converted to hexadecimal to obtain a hexadecimal string, and then encoded according to the encoding method of the above string type. For example, the original operator parameter is a numeric value 1234, which is converted to hexadecimal 04D2, that is, the generated string is "04D2", and finally, it is encoded according to the encoding method shown in Table 1. If the type corresponding to the original operator parameter is a mixed NV parameter type of string and numeric value, it can be encoded in segments, that is, the string is encoded in the manner shown in Table 1, and the numeric value is converted to a hexadecimal string, and then encoded in the manner shown in Table 1.
[0067] If the type corresponding to the original operator parameter is a binary EFS file type, since the binary EFS file has many non-display characters and cannot be directly transmitted, in the present disclosure, it can be considered to convert it into ASCII code, and then convert the data into a string in sequence, and finally, encode it according to the encoding method shown in Table 1. For example, the binary EFS file is converted into ASCII code as follows: 01 00 01 00 8c 00 00 00, and then the above data is converted into a string "010001008c000000" in sequence, and finally the string is encoded according to the encoding method shown in Table 1.
[0068] In this way, different types of operator parameters are converted into strings and then encoded, and then sent to the device through the cloud server. In this way, various types of operator parameters can be sent to the device through the cloud server, thereby achieving the purpose of updating the device's modem.
[0069] It should be understood that for each type of operator parameter, a predetermined encoding method is used for encoding, for example, the encoding method described above. In this way, after receiving the operator parameter, the radio interface layer can determine the corresponding encoding method according to the type of the operator parameter, and then decode it using a decoding method corresponding to the encoding method to obtain the decoded operator parameter.
[0070] Correspondingly, the radio interface layer sends an update message carrying the operator parameters to the modem, including: the radio interface layer sends an update message carrying the decoded operator parameters to the modem.
[0071] By adopting the above technical solution, the obtained operator parameters are integrity verified, decoded after verification, and the decoded operator parameters are used to update the modem, thus ensuring the accuracy of the obtained operator parameters and further improving the accuracy of the modem update.
[0072] In one embodiment, considering that different types of operator parameters need to be transmitted through different message formats, in this embodiment, according to the category of the operator parameters, an update message corresponding to the category of the operator parameters is sent to the modem to update the modem. For example, when the radio interface layer determines that the public land mobile network PLMN corresponding to the operator parameters is consistent with the target public land mobile network PLMN, sending the update message carrying the operator parameters to the modem may include: when the radio interface layer determines that the public land mobile network PLMN corresponding to the operator parameters is consistent with the target public land mobile network PLMN, determining the target category corresponding to the operator parameters, sending the update message corresponding to the target category to the modem, and carrying the operator parameters in the update message.
[0073] For example, if the target category corresponding to the operator parameter is the NV parameter category, then an update message of the write_nv type is sent to the modem. For another example, if the target category corresponding to the operator parameter is the EFS file category, then an update message of the write_efs type is sent to the modem.
[0074] In this way, different update messages are used to update the modem for different types of operator parameters, ensuring that different types of operator parameters can be sent to the modem, thereby improving the reliability of the modem update.
[0075] In one embodiment, the operator parameters sent by the cloud server may include operator parameters that do not need to be updated this time and operator parameters to be updated that need to be updated this time. Among them, the parameters that have been updated before, that is, the updated operator parameters are operator parameters that do not need to be updated this time. Therefore, in this embodiment, only the operator parameters to be updated need to be used to update the modem.
[0076] In this embodiment, the framework layer obtains the operator parameters sent by the cloud server and sends the operator parameters to the wireless interface layer, which may include: the framework layer obtains the operator parameters sent by the cloud server, compares the operator parameters with the updated operator parameters, determines the operator parameters that are different from the updated operator parameters as the operator parameters to be updated, and sends the operator parameters to be updated to the wireless interface layer. The updated operator parameters are recorded when the modem is updated before this update.
[0077] For example, a new operator parameter update service module (LWOTA service) can be added to the Telephony module in the framework layer. The module can start a timing mechanism to obtain the operator parameters in the current period from the client on the device at preset intervals. After that, the operator parameters are compared with the previously recorded updated operator parameters, and the parameters in the obtained operator parameters that are repeated with the updated operator parameters are removed. The remaining parameters, i.e., the parameters in the operator parameters that are different from the updated operator parameters, are recorded as operator parameters to be updated, and the operator parameters to be updated are sent to the wireless interface layer.
[0078] It should be understood that the operator parameters may include: frequency band parameters, parameters combining the bandwidth of the subcarrier signal, network standards, etc. The parameters in the operator parameters that are repeated with the updated operator parameters refer to the numerical values represented by the parameters being the same as the data represented by the updated operator parameters. For example, the frequency band parameter in the acquired operator parameters is a, if the updated operator parameters also include the frequency band parameters, and the frequency band parameters are also a, then the frequency band parameters in the acquired operator parameters are determined as repeated parameters. For another example, the frequency band parameter in the acquired operator parameters is a, if the updated operator parameters also include the frequency band parameters, but the frequency band parameters are b, and a and b are different, then the frequency band parameters in the acquired operator parameters are determined as the operator parameters to be updated.
[0079] In this embodiment, after determining the operator parameters to be updated, in addition to sending the operator parameters to be updated to the wireless interface layer to update the modem, in order to facilitate the subsequent removal of duplicate parameters to determine the operator parameters to be updated, the operator parameters to be updated also need to be recorded as updated operator parameters.
[0080] In addition, the framework layer may further include a storage unit, which is used to store updated operator parameters. That is, the framework layer compares the operator parameters with the updated operator parameters stored in the storage unit, removes the parameters in the acquired operator parameters that are repeated with the updated operator parameters, determines the remaining parameters as the operator parameters to be updated, and sends the operator parameters to be updated to the wireless interface layer. In addition, the framework layer also stores the operator parameters to be updated in the storage unit.
[0081] It should be understood that in the present disclosure, the operator parameters to be updated are sent to the wireless interface layer, after which the wireless interface layer will update the modem according to the operator parameters to be updated. Therefore, the framework layer can store the above-determined operator parameters to be updated as updated operator parameters in the storage unit.
[0082] After determining the operator parameters to be updated in the above manner, the specific method of sending the operator parameters to be updated to the wireless interface layer can be: sending the operator parameters to be updated to the wireless interface layer through the newly created HOOK interface message operatorparameterupdate. For example, a new operator parameter update core module (LWOTA core) is added to the wireless interface layer, and the HOOK interface message operatorparameterupdate carrying the operator parameters to be updated is sent to the operator parameter update core module (LWOTA core) in the wireless interface layer.
[0083] Correspondingly, after receiving the message operator parameter update, the operator parameter update core module (LWOTA core) in the wireless interface layer obtains the operator parameter to be updated from the message, and then uses md5 to perform integrity detection on the operator parameter to be updated. When the detection passes, that is, when it is determined that the obtained operator parameter to be updated is a complete parameter, it decodes it to obtain the decoded operator parameter to be updated, and then determines the type of the decoded operator parameter to be updated, and stores and manages the operator parameter to be updated according to the type. Among them, different types of operator parameters to be updated are stored and managed in different ways.
[0084] Then, LWOTA core obtains the PLMN of the SIM card, i.e., the target PLMN, from UIM through the message get_simcard_info. It determines whether the PLMN corresponding to the operator parameters to be updated is consistent with the target PLMN. If the two are consistent, it sends an update message corresponding to the target category of the operator parameters to be updated to the modem to implement the update of the modem.
[0085] Figure 3 FIG. 1 is an interactive diagram of a method for updating operator parameters according to an exemplary embodiment. Figure 3 As shown, the method may include the following steps.
[0086] In step S31, the cloud server sends operator parameters to the client on the device.
[0087] In step S32, the framework layer starts a timer when the device starts.
[0088] In step S33, the framework layer periodically obtains operator parameters from the client according to a timer.
[0089] In step S34, the framework layer compares the operator parameters with the updated operator parameters to obtain the operator parameters to be updated.
[0090] In step S35, the framework layer stores the operator parameters to be updated.
[0091] In step S36, the framework layer sends the operator parameters to be updated to the radio interface layer.
[0092] In step S37, the radio interface layer performs an integrity check on the received operator parameters to be updated, and decodes the operator parameters to be updated if the check passes.
[0093] In step S38, the radio interface layer stores the decoded operator parameters to be updated.
[0094] In step S39, the radio interface layer obtains the target public land mobile network PLMN corresponding to the user identity card of the device from the modem.
[0095] In step S310, the radio interface layer determines that the PLMN corresponding to the operator parameter decoding to be updated is consistent with the target PLMN of the device.
[0096] In step S311, the radio interface layer sends an update message carrying operator parameters to be updated to the modem.
[0097] In step S312, the modem is updated according to the operator parameters to be updated carried in the update information.
[0098] about Figure 3 The specific methods of each step in the above embodiment have been described in detail, and will not be elaborated here.
[0099] In addition, considering that in actual applications, the user identity card on the device may be replaced, that is, the target public land mobile network PLMN corresponding to the user identity card of the device may change, which will lead to the problem of being unable to update the device's modem. Therefore, in the present disclosure, it is also possible to monitor whether the target public land mobile network PLMN corresponding to the user identity card of the device has changed, and then update the device's modem according to whether the target PLMN has changed.
[0100] For example, the method may further include:
[0101] First, the radio interface layer stores operator parameters, wherein the stored operator parameters may be operator parameters received by the radio interface layer from the framework layer, or may be operator parameters to be updated and received from the framework layer.
[0102] Next, the radio interface layer starts a monitoring thread to monitor whether the target public land mobile network PLMN corresponding to the user identity card of the device changes.
[0103] It should be understood that, when the operator parameters are stored in the radio interface layer, a monitoring thread may be started to monitor whether the SIM card of the device has changed.
[0104] Finally, when a change occurs, the radio interface layer determines the target operator parameters that are consistent with the changed target public land mobile network PLMN from the stored operator parameters, and updates the modem of the device according to the target operator parameters.
[0105] If the target public land mobile network PLMN corresponding to the user identity card of the device changes, the PLMN corresponding to the current operator parameters representing the modem is inconsistent with the current target PLMN of the device, and normal communication is impossible. At this time, in order to restore device communication in time, the wireless interface layer can determine the target operator parameters that are consistent with the changed target public land mobile network PLMN from the operator parameters stored in itself, and update the device's modem according to the target operator parameters.
[0106] The specific method of updating the modem of the device according to the target operator parameters is as described in the above embodiment and will not be described in detail here.
[0107] Figure 4 FIG. 1 is an interaction diagram of another operator parameter updating method according to an exemplary embodiment. Figure 4 As shown, this method includes Figure 3 In addition to the steps S31 to S312 shown in FIG. 1 , steps S313 to S317 may also be performed. Figure 4 Not shown Figure 3 Steps S31 to S312 in .
[0108] In step S313, the wireless interface layer starts a monitoring thread.
[0109] In step S314, the radio interface layer monitors whether the SIM card has changed from the modem.
[0110] In step S315, if there is a change, the radio interface layer determines the target operator parameters that are consistent with the target PLMN corresponding to the changed SIM card from the stored operator parameters.
[0111] In step S316, the radio interface layer sends an update message carrying the target operator parameters to the modem.
[0112] In step S317, the modem is updated according to the target operator parameters carried in the update information.
[0113] about Figure 4 The specific methods of each step in the above embodiment have been described in detail, and will not be elaborated here.
[0114] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the operator parameter updating method provided by the present disclosure are implemented.
[0115] The present disclosure also provides an electronic device, which may include a processor, a modem, and a memory for storing processor-executable instructions; wherein the processor is configured to execute the steps of the operator parameter updating method provided by the present disclosure.
[0116] Figure 5 8 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0117] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output interface 812, a sensor component 814, and a communication component 816. In addition, the electronic device may also include a framework layer, a wireless interface layer, and a modem. The electronic device may also be equipped with a user identification card, such as a SIM card.
[0118] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0119] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0120] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0121] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0122] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0123] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0124] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0125] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0126] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0127] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0128] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above operator parameter updating method when executed by the programmable device.
[0129] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0130] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for updating operator parameters, characterized in that: include: Get the operator parameters sent by the cloud server; It is determined that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, and the modem of the device is updated using the operator parameter.
2. The method according to claim 1, characterized in that The device includes a framework layer, a wireless interface layer and a modem; the obtaining of operator parameters sent by a cloud server includes: The framework layer obtains the operator parameters sent by the cloud server and sends the operator parameters to the wireless interface layer; The determining that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, and updating the modem of the device using the operator parameter includes: The wireless interface layer receives the operator parameter and obtains the target public land mobile network PLMN corresponding to the user identity card of the device; When the wireless interface layer determines that the public land mobile network PLMN corresponding to the operator parameters is consistent with the target public land mobile network PLMN, the wireless interface layer sends an update message carrying the operator parameters to the modem, so that the modem of the device is updated according to the operator parameters.
3. The method according to claim 2, characterized in that The framework layer obtains the operator parameters sent by the cloud server and sends the operator parameters to the wireless interface layer, including: The framework layer obtains the operator parameters sent by the cloud server, compares the operator parameters with the updated operator parameters, determines the parameters among the operator parameters that are different from the updated operator parameters as the operator parameters to be updated, and sends the operator parameters to be updated to the wireless interface layer.
4. The method according to claim 3, characterized in that The method further comprises: The framework layer records the operator parameters to be updated as updated operator parameters.
5. The method according to claim 2, characterized in that: When the radio interface layer determines that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN, sending an update message carrying the operator parameter to the modem includes: When the wireless interface layer determines that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN, it determines the target category corresponding to the operator parameter and sends an update message corresponding to the target category to the modem, wherein the update message carries the operator parameter.
6. The method according to claim 2, characterized in that The determining that the public land mobile network PLMN corresponding to the operator parameter is consistent with the target public land mobile network PLMN corresponding to the user identity card of the device, and updating the modem of the device using the operator parameter also includes: When receiving the operator parameters, the wireless interface layer performs integrity verification on the operator parameters, and after the verification passes, decodes the operator parameters to obtain decoded operator parameters; Accordingly, the radio interface layer sends an update message carrying the operator parameters to the modem, including: The radio interface layer sends an update message carrying the decoded operator parameters to the modem.
7. The method according to claim 2, characterized in that The method further comprises: The radio interface layer stores the operator parameters; The wireless interface layer starts a monitoring thread to monitor whether the target public land mobile network PLMN corresponding to the user identity card of the device changes; When a change occurs, the radio interface layer determines a target operator parameter consistent with the changed target public land mobile network PLMN from the stored operator parameters, and updates the modem of the device according to the target operator parameter.
8. The method according to any one of claims 1 to 7, characterized in that The operator parameter is obtained by encoding the original operator parameter; if the type corresponding to the original operator parameter is a string type, the encoding method is to add a data header identifier, a data start identifier and a data end identifier to the string; if the type corresponding to the original operator parameter is a numerical type, the encoding method is to convert the operator parameter into a string of hexadecimal numbers, and add a data header identifier, a data start identifier and a data end identifier to the string; if the type corresponding to the original operator parameter is a binary type, the encoding method is to convert the operator parameter into an ASCII code string, and add a data header identifier, a data start identifier and a data end identifier to the string.
9. The method according to claim 8, characterized in that In each encoding method, the public land mobile network PLMN identifier corresponding to the operator parameter is also added to the character string.
10. An electronic device, characterized in that: include: Processor, modem; a memory for storing processor-executable instructions; The processor is configured to execute the steps of the operator parameter updating method according to any one of claims 1 to 9.
11. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Parameter updating method and system, terminal equipment and chip system
CN115002747A
Parameter configuration method and device, terminal equipment and storage medium
CN115767509A