Data processing method, terminal device, server and storage medium
By loading the general configuration file and card configuration file after OTA upgrade in the second partition of the terminal device, the problem of abnormal configuration file loading after OTA upgrade is solved, and the user experience of the terminal device is improved.
Patent Information
- Application Number
- CN202311290740.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2043-09-27
AI Technical Summary
After the terminal device undergoes OTA upgrade, the modem configuration file may be loaded abnormally, which seriously affects the user experience.
In response to the OTA upgrade completion event, a plurality of general configuration files and card configuration files corresponding to the terminal device are obtained in the configuration file of the first partition, loaded into the second partition, and accessed to the wireless communication network according to these configuration files.
This reduces the loading of modem profiles of terminal devices after OTA upgrade, ensures that the second partition has enough memory space to load the modem profile, and improves the user experience.
Smart Images

Figure CN117528490B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a data processing method, a terminal device, a server, and a storage medium. Background Art
[0002] At present, most terminal devices are equipped with software system update function. The way that terminal devices update software systems through wireless communication can be called Over The Air (OTA) upgrade, or online upgrade. Through OTA technology, terminal devices can get rid of the constraints of manual upgrade methods in terms of time and location, and update the software system anytime and anywhere. In this way, terminal devices can provide users with a better user experience through the latest software system.
[0003] However, in some cases, after the terminal device is upgraded via OTA, some modem configuration files may be loaded abnormally, which will seriously affect the user experience. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, a terminal device, a server, and a storage medium, which are used to reduce the situation where a modem configuration file of a terminal device is loaded abnormally after an OTA upgrade.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a data processing method is provided, the method comprising: in response to an over-the-air OTA upgrade completion event, obtaining multiple general configuration files and a card-attached configuration file corresponding to a terminal device from multiple card-attached configuration files in a configuration file of a first partition. The card-attached configuration file corresponding to the terminal device includes network configuration information corresponding to a network operator where the terminal device is located. Multiple general configuration files and a card-attached configuration file corresponding to the terminal device are loaded in a second partition, and a wireless communication network is accessed according to the multiple general configuration files and the card-attached configuration file corresponding to the terminal device.
[0007] In the method, the memory space of the terminal device includes a first partition and a second partition, the first partition is used to store the modem configuration file, and the second partition is used to load the modem configuration file. The modem configuration file includes multiple general configuration files and multiple card-attached configuration files provided for different devices. At least one general configuration file among the multiple general configuration files in the modem configuration file is obtained based on at least one general configuration file that has not been updated, and the card-attached configuration file corresponding to the terminal device includes part of the configuration information in the at least one general configuration file that has not been updated. The card-attached configuration file corresponding to the terminal device is obtained by splitting part of the configuration information in the general configuration file that has not been updated. The general configuration file loaded by the terminal device has a greatly reduced data volume compared to the general configuration file that has not been updated. The card-attached configuration file corresponding to the terminal device only accounts for a small part of the card-attached configuration files corresponding to multiple devices, so that the data volume of the card-attached configuration file loaded by the terminal device is also relatively low. In this way, the total data volume loaded by the terminal device in the second partition can be reduced, so that the second partition of the terminal device has enough memory space to load the modem configuration file, and the situation that some configuration information is not loaded due to insufficient space in the second partition is reduced. The terminal device can connect to the wireless communication network through the loaded modem configuration file to provide users with functions such as calling and surfing the Internet.
[0008] In a possible implementation of the first aspect, a first file is stored in the first partition, a first file is stored in the second partition, and the content of the first file in the second partition is different from that of the first file in the first partition. The above method also includes: in the process of loading multiple general configuration files and card-attached configuration files corresponding to the terminal device in the second partition, if the first file in the first partition is different from the first file in the second partition, the first file in the second partition is copied in the second partition to obtain a first temporary file, and the first temporary file is modified based on the first file in the first partition to obtain a modified first temporary file. The first file in the second partition is replaced with the modified first temporary file.
[0009] In this implementation, the first file is one of a plurality of general configuration files and a card-attached configuration file corresponding to the terminal device. If the first file is a general configuration file, the first file loaded by the terminal device in the second partition has a greatly reduced data volume compared to the unupdated general configuration file. If the first file is a card-attached configuration file, the card-attached configuration file has a small data volume change compared to the unupdated card-attached configuration file. In this way, when the terminal device loads the first file in the second partition, the probability of causing insufficient space in the second partition is small.
[0010] In another possible implementation manner of the first aspect, a card-attached configuration file corresponding to the terminal device is determined from a plurality of card-attached configuration files in the first partition according to the international mobile subscriber identity code of the terminal device.
[0011] In this implementation, the terminal device can quickly determine the card-attached configuration file that it needs to load through the IMSI of the SIM card.
[0012] In another possible implementation manner of the first aspect, the network configuration information corresponding to the location to which the terminal device belongs includes carrier aggregation information.
[0013] In this implementation, the carrier aggregation information loaded by the terminal device is in the card configuration file corresponding to the terminal device rather than the general configuration file. In this way, the terminal device only needs to load its own carrier aggregation information, thereby greatly reducing the amount of data loaded by the terminal device in the second partition.
[0014] In another possible implementation manner of the first aspect, the method further includes: communicating with a wireless communication network using a carrier combination indicated by the carrier aggregation information.
[0015] In this implementation, the terminal device may communicate with the wireless communication network using the carrier combination indicated by the carrier aggregation information, thereby increasing the communication rate between the terminal device and the wireless communication network.
[0016] In another possible implementation of the first aspect, the card configuration file corresponding to the terminal device also includes a non-volatile memory NV parameter, and the NV parameter is used to indicate whether to access the wireless communication network through the circuit switching domain or the packet switching domain. The above method also includes: preferentially accessing the wireless communication network through the circuit switching domain or the packet switching domain indicated by the NV parameter.
[0017] In this implementation, the terminal device can load the NV parameters normally, and preferentially access the wireless communication network through the circuit switching domain or packet switching domain indicated by the NV parameters to provide users with services such as calls and Internet access.
[0018] In another possible implementation manner of the first aspect, a total data volume of the multiple common configuration files and the card-attached configuration file corresponding to the terminal device is less than a preset data volume.
[0019] In this implementation, the total amount of data loaded by the terminal device is less than the preset amount of data, thereby reducing the situation where the remaining space of the second partition is insufficient.
[0020] In another possible implementation manner of the first aspect, the method further includes: receiving an OTA upgrade data packet sent by the server, obtaining a modem configuration file in the OTA upgrade data packet, and saving the modem configuration file in the first partition.
[0021] In this implementation, the terminal device can obtain the modem configuration file in the OTA upgrade data packet, update the software system of the terminal device, and update the modem configuration file.
[0022] In another possible implementation of the first aspect, the method further includes: if the remaining space of the second partition is less than a preset capacity, deleting a temporary file in the second partition. The ending mark of the file name of the temporary file is a preset mark.
[0023] In this implementation, if the remaining space in the second partition is insufficient, the terminal device can also release the memory space of the second partition by deleting temporary files in the second partition, so that the terminal device can continue to load the modem configuration file in the second partition and achieve normal access to the wireless communication network.
[0024] In a second aspect, the present application provides a data processing method, applied to a server, the method comprising: in response to a configuration operation of a user, configuring a modem configuration file, the modem configuration file comprising a plurality of general configuration files and a plurality of accompanying card configuration files provided for different devices, the accompanying card configuration file corresponding to each device comprising network configuration information corresponding to a network operator where the device is located. Sending the modem configuration file to a terminal device.
[0025] In a possible implementation manner of the second aspect, the modem configuration file is carried in an OTA upgrade data packet, and the OTA upgrade data packet is sent to the terminal device.
[0026] In a possible implementation manner of the second aspect, in the above-mentioned modem configuration file, the card-attached configuration files corresponding to different devices respectively include carrier aggregation information.
[0027] In a third aspect, the present application provides a terminal device, comprising: a memory and one or more processors. The memory comprises a first partition and a second partition, the first partition is used to store a modem configuration file, and the second partition is used to load a modem configuration file. The modem configuration file comprises a plurality of general configuration files and a plurality of card-attached configuration files provided for different devices. The memory is coupled to the processor, and a computer program code is stored in the memory, and the computer program code comprises a computer instruction, and when the computer instruction is executed by the processor, the terminal device performs the following steps: in response to an event of an over-the-air OTA upgrade completion, a plurality of general configuration files and a card-attached configuration file corresponding to the terminal device in a plurality of card-attached configuration files are obtained in a configuration file of the first partition; wherein the card-attached configuration file corresponding to the terminal device comprises the network configuration information corresponding to the network operator where the terminal device is located; a plurality of general configuration files and a card-attached configuration file corresponding to the terminal device are loaded in the second partition; and a wireless communication network is accessed according to the plurality of general configuration files and the card-attached configuration files corresponding to the terminal device.
[0028] In a possible implementation of the third aspect, a first partition stores a first file, which is one of multiple general configuration files and a card configuration file corresponding to a terminal device; a second partition stores a first file, and the content of the first file of the second partition is different from that of the first file of the first partition; when the above-mentioned computer instructions are executed by the processor, the terminal device further performs the following steps: in the process of loading multiple general configuration files and the card configuration files corresponding to the terminal device in the second partition, if the first file of the first partition is different from the first file of the second partition, copying the first file in the second partition to obtain a first temporary file; modifying the first temporary file based on the first file in the first partition to obtain a modified first temporary file; replacing the first file in the second partition with the modified first temporary file.
[0029] In another possible implementation manner of the third aspect, when the above-mentioned computer instructions are executed by the processor, the terminal device further performs the following steps: determining, according to the international mobile user identity code of the terminal device, a card-attached profile corresponding to the terminal device from multiple card-attached profiles in the first partition.
[0030] In another possible implementation manner of the third aspect, the network configuration information corresponding to the location to which the terminal device belongs includes carrier aggregation information.
[0031] In another possible implementation manner of the third aspect, when the above-mentioned computer instructions are executed by the processor, the terminal device further performs the following steps: communicating with the wireless communication network using the carrier combination indicated by the carrier aggregation information.
[0032] In another possible implementation of the third aspect, the card configuration file corresponding to the terminal device also includes a non-volatile memory NV parameter; the NV parameter is used to indicate that the wireless communication network is accessed preferentially through a circuit switching domain or preferentially through a packet switching domain; when the above-mentioned computer instructions are executed by the processor, the terminal device also performs the following steps: preferentially accessing the wireless communication network through the circuit switching domain or the packet switching domain indicated by the NV parameter.
[0033] In another possible implementation manner of the third aspect, a total data volume of the multiple common configuration files and the card-attached configuration file corresponding to the terminal device is less than a preset data volume.
[0034] In another possible implementation of the third aspect, when the above-mentioned computer instructions are executed by the processor, the terminal device further performs the following steps: receiving an OTA upgrade data packet sent by the server; obtaining a modem configuration file in the OTA upgrade data packet; and saving the modem configuration file in the first partition.
[0035] In another possible implementation of the third aspect, when the above-mentioned computer instructions are executed by the processor, the terminal device also performs the following steps: if the remaining space of the second partition is less than the preset capacity, the temporary files in the second partition are deleted; wherein the ending identifier of the file name of the temporary file is a preset identifier.
[0036] In a fourth aspect, the present application provides a server, comprising: a communication module, a memory and one or more processors; the communication module and the memory are respectively coupled to the processor; wherein the communication module is used to transmit data or signaling with a terminal device; the memory stores computer program code, the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the server performs the following steps: in response to the user's configuration operation, configure a modem configuration file; wherein the modem configuration file includes multiple general configuration files and multiple card-attached configuration files provided for different devices, and the card-attached configuration file corresponding to each device includes network configuration information corresponding to the network operator where the device is located; and sending the modem configuration file to the terminal device.
[0037] In a possible implementation manner of the fourth aspect, when the computer instruction is executed by the processor, the server performs the following steps: carrying the modem configuration file in an OTA upgrade data packet, and sending the OTA upgrade data packet to the terminal device.
[0038] In another possible implementation manner of the fourth aspect, in the modem configuration file, the card-attached configuration files corresponding to different devices respectively include carrier aggregation information.
[0039] In a fifth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on a terminal device, causes the terminal device to execute the method described in the first aspect and any possible implementation thereof; or, when executed on a server, causes the server to execute the method described in the second aspect and any possible implementation thereof.
[0040] In a sixth aspect, the present application provides a computer program product comprising program instructions, and when the computer program product is run on a computer, the computer can execute the method described in the first aspect and any possible implementation thereof. For example, the computer can be the terminal device described above. Alternatively, when the computer program product is run on a computer, the computer can execute the method described in the second aspect and any possible implementation thereof. For example, the computer can be the server described above.
[0041] In a seventh aspect, the present application provides a chip system, which is applied to the above-mentioned terminal device or server. The chip system includes an interface circuit and a processor. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from a memory and send a signal to the processor, and the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the terminal device executes the method described in the above-mentioned first aspect and any possible implementation thereof. Alternatively, when the processor executes the computer instruction, the server executes the method described in the above-mentioned second aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of the interaction between a server and a terminal device provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of an EFS partition example provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of an example of modifying a modem configuration file provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of another example of modifying a modem configuration file provided in an embodiment of the present application;
[0046] Figure 5 A hardware structure block diagram of a mobile phone 100, an example of a terminal device provided in an embodiment of the present application;
[0047] Figure 6 A hardware structure block diagram of an example cloud server 200 provided by an embodiment of the present application;
[0048] Figure 7 A flowchart of an example of a data processing method provided in an embodiment of the present application;
[0049] Figure 8 A schematic diagram of an example of a first general configuration file provided in an embodiment of the present application;
[0050] Fig. 9 A flowchart of an example of accessing a wireless communication network provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] At present, most terminal devices will use OTA technology to upgrade the software system to add or modify some software functions. Figure 1 As shown, the server can send a data packet for software system upgrade to the terminal device through OTA technology (which can be called OTA upgrade data packet). The terminal device can update the software system according to the received data packet in response to the user's update operation. Alternatively, the terminal device can automatically update the software system according to the received data packet during the idle period when the user does not use the terminal device (such as 1 am to 3 am).
[0052] The terminal device includes a modem. The modem is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal, and demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The modem is a key component for the terminal device to perform wireless communication. During the OTA upgrade process of the terminal device, the modem configuration file (which may be called the modem configuration file) may be changed. The modem configuration file is usually stored in a specific memory area of the terminal device, which may be called the modem configuration framework (MCFG) partition. The MCFG partition is a memory space specially set up by the terminal device for the modem configuration file, which is used to store all modem configuration files. The modem configuration file can be a binary file, which can be called an MBN (Modem Configuration Binary) file. The MBN file is used to provide the configuration information required for the terminal device to access the wireless communication network. For example, the MBN file can provide information such as the network allowed to be registered by the terminal device and the antenna switch status.
[0053] If the OTA upgrade involves the update of the MBN file in the MCFG partition, the terminal device loads the MBN file in the MCFG partition after booting to access the wireless communication network. The memory area used to load the MBN file can be called an Encrypting File System (EFS) partition. The terminal device reads the MBN file in the MCFG partition into the EFS partition to load the MBN file. The EFS partition is an independent memory space in the terminal device, similar to a cache. The terminal device can directly run the MBN file in the EFS partition. For example, the terminal device can access the wireless communication network based on the wireless communication network allowed for registration indicated by the MBN file in the EFS partition.
[0054] Exemplarily, taking file 1 among multiple MBN files as an example, the process of a terminal device reading an MBN file in the MCFG partition to the EFS partition is introduced. The updated file 1 is stored in the MCFG partition. The unupdated file 1 is stored in the EFS partition. The terminal device will copy the unupdated file 1 in the EFS partition to obtain a temporary file 1. The terminal device further modifies the temporary file 1 in the EFS partition according to the updated file 1 in the MCFG partition. After the modification is completed, the terminal device replaces the temporary file with file 1 (such as renaming the temporary file to file 1). In this way, the terminal device can read the latest file 1 in the MCFG partition into the EFS partition to load the latest file 1.
[0055] When the terminal device is reading file 1, there may be other MBN files being read and written in the EFS partition. However, the memory space corresponding to the EFS partition is limited. If the remaining space of the EFS partition is insufficient, the terminal device will terminate the loading process, resulting in redundant temporary files in the EFS partition, which occupy the memory space of the EFS partition.
[0056] For example, taking the above-mentioned file 1 as an example, Figure 2 As shown in (1), if the terminal device loads the MBN file normally in the EFS partition, the temporary file 1 of file 1 does not exist in the EFS partition. If the terminal device does not load the MBN file normally in the EFS partition, such as Figure 2 As shown in (2), in addition to file 1, there is also a temporary file 1 in the EFS partition of the terminal device. The content of temporary file 1 is consistent with that of file 1, and the file size of temporary file 1 is the same as that of file 1. It can be seen that temporary file 1 is completely redundant and will occupy the memory space of the EFS partition. If the remaining space of the EFS partition is too small, it will be difficult for the terminal device to continue to read the MBN file from the MCFG partition, resulting in some MBN files not being loaded normally, thereby affecting the terminal device's access to the wireless network.
[0057] The following example shows that the terminal device is a mobile phone, and a non-volatile memory (NV) parameter in the MBN file of the mobile phone is not loaded normally. After the OTA upgrade, the mobile phone updates the software system by restarting. After the mobile phone restarts, the mobile phone reads the updated MBN file in the MCFG partition to access the wireless communication network.
[0058] During the process of the mobile phone loading the MBN file in the MCFG partition into the EFS partition, the mobile phone terminates the loading of the MBN file due to insufficient remaining space in the EFS partition. For example, when the remaining space in the EFS partition is only 222 kilobytes, the amount of data to be loaded by the mobile phone is 280 kilobytes. The EFS partition of the mobile phone cannot load 280 kilobytes of data, so the current loading process is terminated. At this time, an NV parameter (such as NV66048) in the MBN file is not loaded normally. The NV parameter is used to indicate whether to access the wireless communication network through the Circuit Switching Domain (CS domain for short) or through the Packet Switching Domain (PS domain for short).
[0059] Since the mobile phone has not completed the loading of NV parameters, the mobile phone will by default apply to the base station to access the wireless communication network through the CS domain first. However, when the communication network signal in the PS domain is stronger than the communication network signal in the CS domain, the base station will give priority to registering the wireless communication network in the PS domain for the mobile phone. In this case, the base station may refuse the terminal device to connect to the wireless communication network in the CS domain. The mobile phone may not be able to access the wireless communication network due to the failure to load NV parameters normally, which will seriously affect the user experience.
[0060] In view of this, an embodiment of the present application provides a method. In this method, the service end can configure a modem configuration file (i.e., the above-mentioned MBN file) in response to the user's configuration operation, and send the modem configuration file to the terminal device. The modem configuration file includes multiple general configuration files and multiple card-attached configuration files provided for different devices. In the modem configuration file received by the terminal device, at least one general configuration file shared by different devices no longer includes some device-specific configuration information (such as the network configuration information corresponding to the network operator where the device is located), and the configuration information specific to these devices is moved to the card-attached configuration files corresponding to these devices. In this way, the terminal device obtains multiple general configuration files and the card-attached configuration files corresponding to the terminal device in the modem configuration file of the first partition (i.e., the MCFG partition) in response to the OTA upgrade completion event. Furthermore, the terminal device loads the obtained multiple general configuration files and the card-attached configuration files corresponding to the terminal device in the second partition (i.e., the EFS partition), so that it can access the wireless communication network according to the loaded multiple general configuration files and the card-attached configuration files corresponding to the terminal device.
[0061] In this way, the amount of MBN files loaded by the terminal device in the EFS partition can be reduced, so that the EFS partition of the terminal device has enough memory space to load the MBN files, and the situation where some configuration information is not loaded due to insufficient space in the EFS partition can be reduced. In this way, the terminal device can connect to the wireless communication network through the loaded MBN files to provide users with functions such as calling and surfing the Internet.
[0062] It is understandable that the MBN file stored in the MCFG partition of the terminal device may include multiple general configuration files and multiple card-attached configuration files. The general configuration file includes general configuration information. The general configuration files corresponding to different devices may be the same. For example, the general configuration file may include dynamic spectrum sharing information, the waiting time for discarding network congestion timeout packets, etc. The terminal device will load all general configuration files. The card-attached configuration file includes the network configuration information corresponding to the terminal device. The card-attached configuration file includes the network configuration information corresponding to the subscriber identification module (Subscriber Identity Module, SIM) (or SIM card) configured by the terminal device, such as the network configuration information corresponding to the network operator of the SIM card. The card-attached configuration file may also include the network configuration information corresponding to the network operator where the SIM card is located. Depending on the different wireless communication networks corresponding to the SIM cards configured by different devices, the card-attached configuration files corresponding to different devices are usually different. For example, the card-attached configuration file may include carrier frequencies corresponding to different regions, carrier aggregation combination information corresponding to different regions, etc. The MCFG partition of the terminal device stores multiple card-attached configuration files corresponding to multiple devices. The terminal device selects to load the card-attached configuration file corresponding to the terminal device from the multiple card-attached configuration files.
[0063] In an embodiment of the present application, a terminal device may receive an OTA upgrade data packet sent by a server, thereby obtaining a modem configuration file in the OTA upgrade data packet. The server may update at least one common configuration file and multiple card-attached configuration files in the modem configuration file in response to the user's configuration operation, and send the updated modem configuration file to the terminal device. In the updated modem configuration file, at least one common configuration file no longer includes some device-specific configuration information, such as no longer including the network configuration information corresponding to the network operator where each device is located. The configuration information specific to these devices is moved to the card-attached configuration files corresponding to these devices.
[0064] In some implementations, the server moves the configuration information corresponding to the multiple devices in the unupdated modem configuration file to the existing card-attached configuration file to obtain an updated modem configuration file. Alternatively, the server moves the configuration information corresponding to the multiple devices in the unupdated modem configuration file to the newly created card-attached configuration file to obtain an updated modem configuration file.
[0065] In one example, if Figure 3As shown, take the unupdated modem configuration file in the server as an example, including 1 general configuration file and 5 card-attached configuration files. The 1 general configuration file includes 10 configuration information. The 10 configuration information are configuration information 1, configuration information 2, configuration information 3, configuration information 4, configuration information 5, ..., configuration information 10. Among the 10 configuration information, configuration information 1 to configuration information 5 are configuration information specific to the devices in regions 1 to 5, respectively. The 5 card-attached configuration files are card-attached configuration file 1, card-attached configuration file 2, card-attached configuration file 3, card-attached configuration file 4, and card-attached configuration file 5, respectively. Card-attached configuration file 1 to card-attached configuration file 5 are card-attached configuration files corresponding to the devices in regions 1 to 5, respectively.
[0066] The server moves the configuration information corresponding to multiple devices in the unupdated modem configuration file to the existing card-attached configuration file. Specifically, the server moves the configuration information specific to the devices in region 1 in the general configuration file (i.e., configuration information 1) to card-attached configuration file 1, moves the configuration information specific to the devices in region 2 in the general configuration file (i.e., configuration information 2) to card-attached configuration file 2, moves the configuration information specific to the devices in region 3 in the general configuration file (i.e., configuration information 3) to card-attached configuration file 3, moves the configuration information specific to the devices in region 4 in the general configuration file (i.e., configuration information 4) to card-attached configuration file 4, and moves the configuration information specific to the devices in region 5 in the general configuration file (i.e., configuration information 5) to card-attached configuration file 5, thereby obtaining an updated general configuration file and card-attached configuration files 1 to 5.
[0067] The updated general configuration file includes configuration information 6 to configuration information 10, and no longer includes configuration information 1 to configuration information 5. The updated card-attached configuration file 1 adds configuration information 1, the updated card-attached configuration file 2 adds configuration information 2, the updated card-attached configuration file 3 adds configuration information 3, the updated card-attached configuration file 4 adds configuration information 4, and the updated card-attached configuration file 5 adds configuration information 5.
[0068] It can be seen that the updated general configuration file reduces 5 configuration information, while only 1 configuration information is added to each updated card configuration file. The server sends the updated modem configuration file to the terminal device. Among the configuration files received by the terminal device, the data volume of the general configuration file will be greatly reduced, and the data volume loaded by the terminal device (such as loading 1 general configuration file and 1 card configuration file) will also be greatly reduced, thereby reducing the memory space occupied by the EFS partition when loading the MBN file.
[0069] In another example, Figure 4As shown, the unupdated modem configuration file in the server includes 1 general configuration file and card configuration file 6 as an example. The general configuration file includes 10 configuration information. The 10 configuration information are configuration information 1, configuration information 2, configuration information 3, configuration information 4, configuration information 5, ..., configuration information 10. Among the 10 configuration information, part of the information in configuration information 1 to configuration information 5 is the configuration information specific to the devices in regions 1 to 5.
[0070] The server moves the configuration information corresponding to multiple devices in the unupdated modem configuration file to the newly created card-attached configuration file. Specifically, the server cuts out the configuration information specific to the devices in region 1 from the configuration information 1 of the general configuration file to generate the card-attached configuration file 1. The server cuts out the configuration information specific to the devices in region 2 from the configuration information 2 of the general configuration file to generate the card-attached configuration file 2. The server cuts out the configuration information specific to the devices in region 3 from the configuration information 3 of the general configuration file to generate the card-attached configuration file 3. The server cuts out the configuration information specific to the devices in region 4 from the configuration information 4 of the general configuration file to generate the card-attached configuration file 4. The server cuts out the configuration information specific to the devices in region 5 from the configuration information 5 of the general configuration file to generate the card-attached configuration file 5. After the trimming, the configuration information 1 to the configuration information 5 of the general configuration file no longer include the configuration information specific to the devices in region 1 to region 5. After the trimming, the card-attached configuration files 1 to 5 are added.
[0071] It can be seen that some information is reduced in configuration information 1 to configuration information 5 of the cropped general configuration file, and 5 card-attached configuration files are added to the modem configuration file. The server further sends the updated modem configuration file to the terminal device. In the modem configuration file received by the terminal device, the data volume of the general configuration file will be greatly reduced, and the data volume loaded by the terminal device (such as loading 1 general configuration file and 1 card-attached configuration file) will also be greatly reduced, thereby reducing the memory space occupied by the EFS partition when loading the MBN file.
[0072] In some possible implementations, the total data volume of multiple general configuration files and the card-attached configuration file corresponding to the terminal device in the modem configuration file received by the terminal device is less than the preset data volume. For example, the data volume of the multiple general configuration files is less than 2 megabytes. The preset data volume can be set according to the capacity of the second partition. For example, the preset data volume is equal to 75% of the capacity of the second partition. If the second partition is 2.5 megabytes, the preset data volume can be equal to 75%×2.5 megabytes. In this way, the terminal device can reserve a part of the remaining space in the second partition (such as reserving 15% of the capacity) to reduce the situation where the capacity of the second partition is exceeded during the process of the terminal device loading the modem configuration file.
[0073] Exemplarily, the terminal device described in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, a media player, a wearable device, etc. The server described in the embodiments of the present application may be a cloud server, a supercomputer, etc.
[0074] In the embodiment of the present application, the terminal device is a mobile phone 100 as an example, and the hardware structure of the terminal device is introduced through the mobile phone 100. Figure 5 As shown, the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0075] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), a driver processor, etc. Different processing units may be independent devices or integrated into one or more processors. The processor 110 may be the nerve center and command center of the mobile phone 100. The processor 110 may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0076] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0077] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0078] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may execute the instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area.
[0079] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), a configuration file of the motor 191, etc. The data storage area may store data created during the use of the mobile phone 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The internal memory 121 may include the above-mentioned first partition and second partition.
[0080] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also power the mobile phone 100 through the power management module 141.
[0081] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. In some embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0082] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor. In some embodiments, the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
[0083] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0084] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
[0085] The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 can be set in the same device as at least some modules of the processor 110.
[0086] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0087] The wireless communication module 160 can provide wireless communication solutions for application in the mobile phone 100, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.
[0088] The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna 2.
[0089] In the embodiment of the present application, the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE) technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0090] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), MiniLED, MicroLED, Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0091] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the mobile phone 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The mobile phone 100 can support one or more SIM card interfaces. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
[0092] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation on the terminal device. In other embodiments, the terminal device may also include more or fewer modules than those provided in the above embodiment, and the modules may also adopt different interface connection methods in the above embodiment, or a combination of multiple interface connection methods.
[0093] In the embodiment of the present application, the server is as follows Figure 6 Taking the cloud server 200 shown as an example, the hardware structure of the server is introduced. Figure 6 This is a hardware structure diagram of a server example provided in an embodiment of the present application. Figure 6 As shown, the cloud server 200 includes a processor 222, which further includes one or more processors, and a memory resource represented by a memory 232 for storing instructions executable by the processor 222, such as an application. The application stored in the memory 232 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 222 is configured to execute instructions to perform the above method.
[0094] The cloud server 200 may further include a power supply component 226 configured to perform power management of the cloud server 200, a wired or wireless network interface 250 configured to connect the cloud server 200 to a network, and an input / output interface 258. The cloud server 200 may operate based on an operating system stored in the memory 232.
[0095] The methods in the following embodiments can all be implemented in a terminal device and a server having the above hardware structure. The following takes the terminal device as a mobile phone, the server as a cloud server, and the network configuration information corresponding to the network operator where the mobile phone is located as an example, including carrier aggregation information, to exemplify the methods provided in the embodiments of the present application. Figure 7 As shown, the method provided in the embodiment of the present application may include S701-S705.
[0096] S701, the cloud server configures a modem configuration file in response to a configuration operation of a user.
[0097] The cloud server configures the modem configuration file in response to the user's configuration operation. The configuration operation is used to instruct to configure the modem configuration file, such as the configuration operation of the user clicking a configuration button.
[0098] For example, in response to the user's configuration operation, the cloud server updates the unupdated modem configuration files including multiple unupdated general configuration files and multiple unupdated card-attached configuration files. Taking the first general configuration file among the multiple unupdated general configuration files in the unupdated modem configuration files as an example, the first general configuration file (such as lte_feature_ca.xml) includes carrier aggregation information corresponding to devices in multiple regions. In the unupdated modem configuration file, the data volume (or file size) of the first general configuration file is the first data volume, such as equal to 250 kilobytes. Carrier aggregation information is used to indicate the carrier combination of available frequency bands for wireless communication. Figure 8 As shown, the first general configuration file includes carrier aggregation information corresponding to devices in regions 1 to 5. Taking the carrier aggregation information corresponding to region 1 as an example, the carrier aggregation information indicates that devices in region 1 can use a combination of carriers in frequency bands 1, 2, and 3 to achieve wireless communication.
[0099] The cloud server modifies the first general configuration file in the unupdated modem configuration file to obtain an updated modem configuration file. For example, the cloud server can cut out the carrier aggregation information corresponding to the devices in multiple regions from the first general configuration file, and generate a first accompanying card configuration file corresponding to the devices in each region of the multiple regions. The accompanying card configuration file corresponding to the devices in each region includes the carrier aggregation information corresponding to the devices in that region.
[0100] The updated modem configuration file includes the first general configuration file after trimming and the first card-attached configuration files corresponding to the devices in the newly added multiple regions. The data volume of the first general configuration file after trimming is the second data volume, which is less than the first data volume. For example, the second data volume is equal to 100 kilobytes.
[0101] Of course, the updated modem configuration file may also include other general configuration files besides the first general configuration file, and other card-attached configuration files besides the first card-attached configuration file.
[0102] S702, the cloud server sends an OTA upgrade data packet to the mobile phone, and the OTA upgrade data packet includes a modem configuration file.
[0103] After configuring the modem configuration file, the cloud server carries the modem configuration file in the OTA upgrade data packet and sends the OTA upgrade data packet to the mobile phone. In the modem configuration file included in the OTA upgrade data packet sent by the cloud server to the mobile phone, the first general configuration file no longer includes the carrier aggregation information corresponding to devices in multiple regions. The first card-attached configuration file corresponding to the devices in each region includes the carrier aggregation information corresponding to the devices in that region.
[0104] S703, the mobile phone obtains a modem configuration file in the OTA upgrade data packet, and saves the modem configuration file in the first partition.
[0105] After the mobile phone receives the OTA upgrade data packet sent by the cloud server, the software system of the mobile phone is upgraded according to the OTA upgrade data packet. For example, after the mobile phone receives the OTA upgrade data packet sent by the cloud server, it can display a prompt message to the user in the display interface, and prompt the user to upgrade the software system of the mobile phone through the prompt message. In response to the user's update operation, the mobile phone updates the software system according to the received OTA upgrade data packet. Alternatively, the mobile phone automatically updates the software system according to the received OTA upgrade data packet during the idle time when the user is resting (such as 1 am to 3 am).
[0106] When the mobile phone is updating the software system, the mobile phone parses the OTA upgrade data packet to obtain the modem configuration file. Further, the mobile phone saves the modem configuration file in the first partition. The first partition is a storage area in the mobile phone specifically storing the modem configuration file, and the first partition is the above-mentioned MCFG partition.
[0107] S704, the mobile phone automatically restarts, and during the restarting process, multiple common configuration files in the modem configuration file and the card-attached configuration file corresponding to the mobile phone are loaded into the second partition.
[0108] After the update is completed, the phone will automatically restart to load the new configuration. During the restart process, the phone reads multiple common configuration files in the modem configuration file and the corresponding card configuration file of the phone from the first partition to the second partition to load the modem configuration file. The second partition is the storage area in the phone for loading the modem configuration file, and the second partition is the above-mentioned EFS partition.
[0109] When loading the modem configuration file, the mobile phone may first load multiple common configuration files in the modem configuration file. For example, the multiple common configuration files in the modem configuration file are stored in a preset folder. For example, the preset folder is the Default folder. The mobile phone may determine a first preset folder among the multiple folders storing the modem configuration files, and further read multiple common configuration files in the first preset folder.
[0110] If the mobile phone recognizes that the mobile phone is equipped with a SIM card during the restart process, the International Mobile Subscriber Identity (IMSI) of the SIM card can be obtained. According to the IMSI of the SIM card, the mobile phone can determine the folder where the corresponding card configuration file of the mobile phone is stored in the multiple folders where the modem configuration file is stored in the first partition, and read the corresponding card configuration file of the mobile phone in the folder. Furthermore, the mobile phone loads the corresponding card configuration file of the terminal device in the EFS partition.
[0111] For example, the IMSI of a SIM card includes a Mobile Country Code (MCC) and a Mobile Network Code (MNC). The folder where the card configuration file is located corresponds to the MCC and MNC. The mobile phone can obtain the card configuration file corresponding to the region where the mobile phone is located in the corresponding folder. Furthermore, the mobile phone loads the card configuration file corresponding to the terminal device in the EFS partition.
[0112] In the process of loading multiple general configuration files and the card-attached configuration files corresponding to the mobile phone in the second partition, if the first file in the first partition is different from the first file in the second partition, the first file in the second partition is copied in the second partition to obtain a first temporary file. The mobile phone further modifies the first temporary file based on the first file in the first partition to obtain a modified first temporary file. Then the mobile phone replaces the first file in the second partition with the modified first temporary file. In this way, the loading of the first file in the multiple general configuration files and the card-attached configuration files corresponding to the mobile phone is realized.
[0113] It is understandable that the total data volume of the modem configuration file received by the mobile phone is not much different from that of the unupdated modem configuration file. Since the mobile phone only needs to load multiple common configuration files in the modem configuration file and the card-attached configuration files corresponding to the mobile phone, it is not necessary to load all the card-attached configuration files. The common configuration files in the modem configuration file have a much smaller data volume than those in the unupdated modem configuration file. Therefore, the data volume loaded by the mobile phone is also reduced.
[0114] S705: The mobile phone accesses the wireless communication network according to the general configuration file and the card-attached configuration file loaded in the second partition.
[0115] After the mobile phone loads the general configuration file and the configuration file provided with the card into the second partition, the mobile phone can connect to the wireless communication network according to the loaded general configuration file and the configuration file provided with the card.
[0116] For example, taking the case where the carrier aggregation information is included in the card configuration file, the mobile phone can use the carrier combination indicated by the carrier aggregation information to connect to the wireless communication network and communicate with the wireless communication network.
[0117] The following uses the example of the NV parameter included in the mobile phone card configuration file to illustrate the process of the mobile phone accessing the wireless communication network. The NV parameter is used to indicate that the wireless communication network is accessed through the CS domain or the PS domain first. After the mobile phone loads the NV parameter, it can access the wireless communication network. Fig. 9 As shown, the process of a mobile phone accessing a wireless communication network includes the following S901-S917.
[0118] S901, the mobile phone sends a random access message to the base station.
[0119] The random access message sent by the mobile phone to the base station can be recorded as MSG1. The mobile phone requests to connect to the base station through the random access message.
[0120] S902: In response to the random access message, the base station returns a random access response message to the mobile phone.
[0121] The random access response message returned by the base station to the mobile phone can be recorded as MSG2. The base station notifies the mobile phone through the random access response message that the random access message of the mobile phone has been received.
[0122] S903, the mobile phone sends an RRC connection request to the base station in response to the random access response message.
[0123] The radio resource control (RRC) connection request sent by the mobile phone to the base station can be recorded as MSG3. The mobile phone requests the base station to establish an RRC connection through the RRC connection request.
[0124] S904: The base station returns an RRC connection establishment message to the mobile phone in response to the RRC connection request.
[0125] The RRC connection establishment message sent by the base station to the mobile phone can be recorded as MSG4. The base station notifies the mobile phone of the completion of random access through the RRC connection establishment message, and the mobile phone can communicate with the base station.
[0126] S905 , the mobile phone sends an RRC connection establishment completion message to the base station in response to the RRC connection establishment message.
[0127] After receiving the RRC connection establishment message, the base station can configure the wireless resources. After the configuration is completed, the mobile phone sends an RRC connection establishment completion message to the base station, notifying the base station through the RRC connection establishment completion message that the wireless resources have been configured.
[0128] S906: The base station sends an initial message to the MME in response to the RRC connection establishment completion message.
[0129] Mobility Management Entity (MME) is a key control node in the core network and can be used for network access control, mobility management, session management, and routing selection. The base station sends an attachment request to the MME through an initial message (which can be recorded as INITIAL UE MESSAGE), requesting the mobile phone to attach to the core network.
[0130] S907: The MME sends an initial context establishment message to the base station.
[0131] In response to the initial message, the MME authenticates and securely establishes a connection with the mobile phone. Then, the MME sends an initial context setup message to the base station, which can be recorded as INITIAL CONTEXT SETUP REQUEST. The MME requests to establish a default bearer with the mobile phone through the initial context setup message and provides the mobile phone with the Internet Protocol (IP) address for the first connection.
[0132] S908: In response to the initial context establishment message, the base station sends a capability query message to the mobile phone.
[0133] The capability query message sent by the base station to the mobile phone can be recorded as UE Capacity Enquiry. The base station queries the mobile phone for supported frequency bands, bandwidths, carrier combinations and other information through the capability query message.
[0134] S909: The mobile phone returns capability information to the base station in response to the capability query message.
[0135] The mobile phone can obtain the supported frequency band, bandwidth and other capability information from the loaded modem configuration information, and return the queried capability information to the base station. The capability information can be recorded as UE Capacity Information.
[0136] S910. The base station sends a capability information indication message to the MME.
[0137] After receiving the capability information of the mobile phone, the base station reports the capability information of the mobile phone to the MME through a capability information indication message. The capability information indication message can be recorded as UE Capacity Info Indication. The MME can update the capability information of the mobile phone.
[0138] S911, the base station sends a security mode command to the mobile phone.
[0139] In order to provide security for mobile phone communications, the base station instructs the mobile phone to start the security mode through a security mode command to encrypt the data or signaling to be sent. The security mode command can be recorded as Security Mode Command.
[0140] S912: The mobile phone responds to the safety mode command, activates the safety mode, and returns a safety mode completion message to the base station.
[0141] The security mode complete message sent by the mobile phone to the base station can be recorded as Security Mode Complete. The mobile phone notifies the base station to activate the security mode through the security mode complete message.
[0142] S913, the base station sends an RRC connection reconfiguration message to the mobile phone.
[0143] The RRC connection reconfiguration message sent by the base station to the mobile phone can be recorded as RRC ConnectionReconfiguration. The base station instructs the mobile phone to reconfigure the RRC connection through the RRC connection reconfiguration message. The base station carries an attach accept message (which can be recorded as Attach Accept) in the RRC connection reconfiguration message to notify the mobile phone that it agrees to access the wireless communication network. The mobile phone can preferentially choose the CS domain or PS domain to connect to the wireless communication network based on the loaded NV parameters.
[0144] S914, the mobile phone sends an RRC connection reconfiguration completion message to the base station in response to the RRC connection reconfiguration message.
[0145] The mobile phone reconfigures the RRC connection in response to the RRC connection reconfiguration message. After the RRC connection reconfiguration is completed, the mobile phone returns an RRC connection reconfiguration complete message to the base station, notifying the base station of the completion of the RRC connection configuration through the RRC connection reconfiguration complete message. The RRC connection reconfiguration complete message can be recorded as RRC Connection Reconfiguration Complete.
[0146] S915 : The base station sends an initial context establishment response message to the MME in response to the RRC connection reconfiguration complete message.
[0147] The initial context setup response message sent by the base station to the MME may be recorded as Initial Context Setup Response. The mobile phone notifies the MME of the completion of the mobile phone context setup through the initial context setup response message.
[0148] S916: The mobile phone sends an uplink direct transmission message to the base station.
[0149] The uplink direct transfer message sent by the mobile phone to the base station can be recorded as UL direct transfer. The mobile phone notifies the MME through the uplink direct transfer message that the registration of this network has been completed and the network attachment is completed.
[0150] S917: The base station sends an uplink transmission message to the MME in response to the uplink direct transmission message.
[0151] The uplink transmission message sent by the base station to the MME can be recorded as UL NAS transport. The base station notifies the mobile phone through the uplink transmission message that the registration of this network has been completed and the network attachment is completed. After that, the mobile phone can communicate with the wireless communication network through the base station.
[0152] If the mobile phone does not load the NV parameters normally in the second partition, the mobile phone will use the CS domain to connect to the wireless communication network by default. However, if in the above S913, the base station indicates that the PS domain allows access through the RRC connection reconfiguration message, the mobile phone cannot access the wireless communication network in this case. In the above example, since the general configuration file in the modem configuration file received by the mobile phone has been trimmed, the amount of data loaded by the mobile phone in the second partition is greatly reduced, so that the mobile phone can load the NV parameters corresponding to the mobile phone. In this way, the mobile phone can access the wireless communication network and realize communication with the wireless communication network.
[0153] In some implementations, if the mobile phone detects that the remaining space of the second partition is insufficient during the process of loading the modem configuration file, the mobile phone deletes the temporary files in the second partition.
[0154] For example, when the mobile phone is loading the modem configuration file in the second partition, it is detected that the amount of data to be loaded in the first partition is greater than the remaining space of the second partition, or the remaining space of the second partition is less than the preset capacity, such as less than 15% of the total capacity of the second partition. In this case, the mobile phone considers that the remaining space of the second partition is insufficient. If the remaining space of the second partition is insufficient, a temporary file carrying a preset identifier (such as a temporary file carrying a preset identifier "$") is determined in the second partition, and the temporary file carrying the preset identifier is further deleted in the second partition.
[0155] In this way, when the remaining space in the second partition is insufficient, the mobile phone can release the memory space of the second partition by deleting temporary files, so that there is memory space in the second partition for loading the modem configuration file, reducing the situation of mobile phone error reporting and improving user experience.
[0156] In some other embodiments of the present application, a terminal device is also provided, including: a memory and one or more processors. The memory includes a first partition and a second partition, the first partition is used to store a modem configuration file, and the second partition is used to load the modem configuration file; the modem configuration file includes multiple general configuration files and multiple card configuration files provided for different devices. The memory is coupled to the processor. Computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the terminal device can execute each function or step in the above method embodiment. Of course, the terminal device can also include other hardware structures such as other antennas for receiving signals. For example, the terminal device also includes hardware structures such as sensors and display screens. The structure of the terminal device can refer to Figure 5 The structure of the mobile phone 100 is shown.
[0157] Some other embodiments of the present application provide a server, which includes: a communication module, a memory and one or more processors. The communication module and the memory are coupled to the processor respectively. The communication module is used to transmit data or signaling with the terminal device. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the server can execute each function or step in the above method embodiment. Of course, the server may include other hardware structures. For example, the server also includes hardware structures such as a network interface and a power supply component. The structure of the cloud device can refer to Figure 6 The structure of the cloud server 200 is shown.
[0158] The embodiment of the present application also provides a chip system, which is applied to a terminal device or a server. The chip system includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected by lines. For example, the interface circuit can be used to receive signals from other devices (such as memories). For another example, the interface circuit can be used to send signals to other devices (such as processors). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instruction is executed by the processor, the terminal device or the server can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
[0159] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned terminal device or the above-mentioned server, the terminal device or the server executes each function or step in the above-mentioned method embodiment.
[0160] The present application also provides a computer program product, which, when executed on a computer, enables the computer to perform various functions or steps in the above method embodiment. For example, the computer may be the above terminal device or server.
[0161] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0162] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0163] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0165] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0166] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A data processing method, characterized in that: Applied to a terminal device, the memory space of the terminal device includes a first partition and a second partition, the first partition is used to store a modem configuration file, and the second partition is used to load the modem configuration file; The modem configuration file includes a plurality of general configuration files and a plurality of card-attached configuration files provided for different devices, wherein the plurality of general configuration files provided for different devices are stored in a first preset folder; the method includes: In response to an OTA upgrade completion event, obtaining, from the configuration files of the first partition, the plurality of general configuration files and the card-attached configuration files corresponding to the terminal device from the plurality of card-attached configuration files; wherein the card-attached configuration files corresponding to the terminal device include network configuration information corresponding to the network operator where the terminal device is located; The acquiring, from the configuration files of the first partition, the plurality of common configuration files and the card-attached configuration files corresponding to the terminal device from the plurality of card-attached configuration files comprises: Determine the first preset folder among the multiple folders storing configuration files in the first partition, and read the multiple common configuration files in the first preset folder; determine a second folder storing the card-attached configuration file corresponding to the terminal device among the multiple folders storing configuration files in the first partition, and read the card-attached configuration file corresponding to the terminal device in the second folder; Loading the plurality of common configuration files and the card-attached configuration file corresponding to the terminal device in the second partition; wherein, in the process of loading the plurality of general configuration files and the card-attached configuration files corresponding to the terminal device in the second partition, the plurality of general configuration files are loaded first, and then the card-attached configuration files corresponding to the terminal device are loaded; when it is detected that the amount of data to be loaded in the first partition is greater than the remaining space of the second partition, or the remaining space of the second partition is less than the preset capacity, the temporary files in the second partition are deleted; wherein the ending mark of the file name of the temporary file is the preset mark; Accessing a wireless communication network according to the plurality of general configuration files and the card-attached configuration files corresponding to the terminal device; Among them, the multiple general configuration files obtained in the configuration file of the first partition and the card-attached configuration files corresponding to the terminal device in the multiple card-attached configuration files are the updated multiple general configuration files and the card-attached configuration files corresponding to the terminal device in the multiple card-attached configuration files obtained from the server; wherein the updated multiple general configuration files and the card-attached configuration files corresponding to the terminal device in the multiple card-attached configuration files are obtained by the server by moving the configuration information corresponding to multiple devices in the unupdated modem configuration file to the existing card-attached configuration files corresponding to the multiple devices, or by moving the configuration information corresponding to multiple devices in the unupdated modem configuration file to the newly created card-attached configuration files.
2. The method according to claim 1, characterized in that The first partition stores a first file, which is one of the plurality of common configuration files and a card-attached configuration file corresponding to the terminal device; The first file is stored in the second partition, and the content of the first file in the second partition is different from the content of the first file in the first partition; The method further comprises: In the process of loading the plurality of common configuration files and the card-attached configuration file corresponding to the terminal device in the second partition, if the first file in the first partition is different from the first file in the second partition, copying the first file in the second partition in the second partition to obtain a first temporary file; Modify the first temporary file based on the first file in the first partition to obtain a modified first temporary file; The first file in the second partition is replaced by the modified first temporary file.
3. The method according to claim 1, characterized in that Determining a second folder storing a card-attached configuration file corresponding to the terminal device from among the multiple folders storing configuration files in the first partition comprises: According to the international mobile subscriber identity code of the terminal device, a card-attached configuration file corresponding to the terminal device is determined from a plurality of card-attached configuration files in the first partition.
4. The method according to any one of claims 1 to 3, characterized in that The network configuration information corresponding to the location to which the terminal device belongs includes carrier aggregation information.
5. The method according to claim 4, characterized in that The method further comprises: The wireless communication network is communicated using the carrier combination indicated by the carrier aggregation information.
6. The method according to claim 5, characterized in that The card configuration file corresponding to the terminal device also includes a non-volatile memory NV parameter; the NV parameter is used to indicate whether to access the wireless communication network through the circuit switching domain or the packet switching domain first; The step of accessing a wireless communication network according to the plurality of general configuration files and a card-attached configuration file corresponding to the terminal device includes: The wireless communication network is preferentially accessed through the circuit switching domain or the packet switching domain indicated by the NV parameter.
7. The method according to any one of claims 5 to 6, characterized in that: The total data volume of the multiple common configuration files and the card-attached configuration file corresponding to the terminal device is less than a preset data volume.
8. The method according to claim 7, characterized in that The method further comprises: Receive OTA upgrade data packets sent by the server; Retrieve the modem configuration file in the OTA upgrade data packet; Save the modem configuration file in the first partition.
9. A terminal device, characterized in that: include: A memory and one or more processors; the memory includes a first partition and a second partition, the first partition is used to store a modem configuration file, and the second partition is used to load the modem configuration file; the modem configuration file includes a plurality of general configuration files provided for different devices and a plurality of card-attached configuration files, and the plurality of general configuration files provided for different devices are stored in a first preset folder; the memory is coupled to the processor; The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the terminal device executes the method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on a terminal device, the terminal device executes the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Methods and apparatus for updating a device configuration
CN104838637A
Configuration method, and device
CN106102083A
Configuring an electronic device for wireless communications
CN107005835A
Enhanced modem based carrier auto-selection algorithm
US20190036562A1