Communication processing method, device, terminal equipment and computer-readable storage medium
By matching and replacing access point name parameters in terminal devices, the problem of large storage space occupied by modem MBN files is solved, more efficient communication processing is achieved, and communication performance of small memory devices is improved.
Patent Information
- Application Number
- CN202210168515.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-02-23
AI Technical Summary
In the prior art, the MBN file of the modem occupies a large amount of storage space, resulting in a reduction in the number of operators that can be supported by devices with small memory.
By obtaining the card identification information of the user identification card in the terminal device, matching the access point name parameters, and replacing them in the modem configuration binary file, the consistency of the access point name parameters is ensured, thereby eliminating the need to create a new MBN file and directly updating the modem configuration.
This reduces the memory usage of the modem, increases the number of operator configuration files that the modem can store, and improves the communication performance of the terminal device.
Smart Images

Figure CN114585002B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication processing method, apparatus, device and medium. Background Art
[0002] Typically, a modem configures operator parameters through a modem configuration binary file (MBN). Each operator corresponds to a specific MBN. A mobile terminal needs to store the corresponding MBN file in order to support communication processing of the operator.
[0003] In related technologies, operators deploy different subnet brands to carry out different services, and each subnet separately produces corresponding MBN files.
[0004] However, creating a new MBN file takes up more modem storage space and reduces the number of supported operators, which has a greater impact on devices with small memory. Summary of the Invention
[0005] Based on this, it is necessary to provide a communication processing method, device, terminal equipment and computer-readable storage medium that can reduce the memory occupied by MBN files on the modem to address the above technical problems.
[0006] An embodiment of the present application provides a communication processing method, the method comprising: obtaining card identification information of a user identification card in a terminal device; obtaining a first access point name parameter that matches the card identification information; obtaining a second access point name parameter corresponding to a modem configuration binary file in the terminal device; determining whether the first access point name parameter is consistent with the second access point name parameter; if inconsistent with the second access point name parameter, replacing the second access point name parameter with the first access point name parameter to obtain an updated modem configuration binary file; and performing communication processing according to the updated modem configuration binary file.
[0007] In one embodiment, obtaining the first access point name parameter matching the card identification information includes: sending a query request carrying the card identification information to a preset server; and obtaining the first access point name parameter fed back by the preset server.
[0008] In one embodiment, obtaining the second access point name parameter corresponding to the modem configuration binary file in the terminal device includes: reading the modem configuration binary file in the corresponding modem; and extracting the second access point name parameter from the modem configuration binary file.
[0009] In one embodiment, the method further includes: sending a network connection request to a modem corresponding to the modem configuration binary file, so that the modem performs network connection processing according to the first access point name parameter.
[0010] In one embodiment, when there are multiple card identification information, before obtaining the second access point name parameter corresponding to the modem configuration binary file in the terminal device, it includes: obtaining the card slot identification information of each user identification card; determining the modem configuration binary file corresponding to each card slot identification information in the terminal device.
[0011] In one embodiment, before acquiring the card identification information of the user identification card in the terminal device, the method further includes: monitoring a report message of a modem in the terminal device; and determining that a report message indicating successful loading of the user identification card is detected.
[0012] An embodiment of the present application provides a communication processing device, the device comprising: a first acquisition module for acquiring card identification information of a user identification card in a terminal device; a second acquisition module for acquiring a first access point name parameter matching the card identification information; a third acquisition module for acquiring a second access point name parameter corresponding to a modem configuration binary file in the terminal device; a determination module for determining whether the first access point name parameter is consistent with the second access point name parameter; a file processing module for replacing the second access point name parameter with the first access point name parameter to obtain an updated modem configuration binary file if the second access point name parameter is inconsistent with the second access point name parameter; and a communication processing module for performing communication processing according to the updated modem configuration binary file.
[0013] In one embodiment, the method further includes: a sending module configured to send a network connection request to a modem corresponding to the modem configuration binary file, so that the modem performs network connection processing according to the first access point name parameter.
[0014] An embodiment of the present application provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the communication processing method provided in any embodiment of the present application are implemented.
[0015] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the communication processing method provided in any embodiment of the present application are implemented.
[0016] The communication processing method, apparatus, terminal device, and computer-readable storage medium provided in the embodiments of the present application enable, when a first access point name parameter of a user identification card of a terminal device is inconsistent with a second access point name parameter in a modem, obtaining the modem configuration binary file of the user identification card can be achieved by changing the second access point name parameter in the corresponding modem configuration binary file to the first access point name parameter, without creating a new modem configuration binary file. For user identification cards of different subnets, simply changing the access point name parameter in the modem configuration binary file is sufficient, thereby reducing the memory usage of the modem and improving the communication performance of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of a communication processing method in one embodiment;
[0018] Figure 2 is a flowchart of a communication processing method in another embodiment;
[0019] Figure 3 is a structural block diagram of a communication processing device in one embodiment;
[0020] Figure 4 2 is a diagram showing the internal structure of a terminal device in one embodiment. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0022] In one embodiment, Figure 1 As shown, a communication processing method is provided. This embodiment mainly applies this method to Figure 1 Let's take the application processor of a terminal device as an example. A terminal device can be any mobile terminal with communication capabilities that uses wireless technology to connect to a carrier's mobile network, including but not limited to mobile phones and tablets. The application processor (AP) is relative to the modem in a terminal device.
[0023] like Figure 1 As shown, the communication processing method includes:
[0024] Step 101: Obtain card identification information of a user identification card in a terminal device.
[0025] Among them, the Subscriber Identity Module (SIM) is an IC card held by a mobile user. The SIM is the key for the terminal device to access the network. In addition, card identification information includes but is not limited to the International Mobile Subscriber Identity (IMSI) code in the SIM card, the Integrated Circuit Card Identity (ICCID), and the GID value, among others. The GID value corresponds to the different subnets of the SIM card.
[0026] In this embodiment, the card identification information of the subscriber identity card in the terminal device is obtained, that is, the card identification information of the SIM card is read. The card identification information uniquely corresponds to the subnet type.
[0027] In one embodiment of the present application, before obtaining the card identification information of the user identification card in the terminal device, the reporting message of the modem in the terminal device can also be monitored to determine the monitoring of the successful loading reporting message of the user identification card, for example, obtaining the SIM card ready event reported by the modem.
[0028] Step 102: Acquire a first access point name parameter that matches the card identification information.
[0029] The Access Point Name (APN) parameter in this embodiment is a wireless network access technology and is a parameter that must be configured when accessing the Internet through a terminal. It determines the access method used by the terminal device to access the network.
[0030] In this embodiment, different subnets of a SIM card belonging to the same operator have different APN parameters in the MBN file corresponding to them. Therefore, in order to determine whether the MBN file stored in the modem of the current terminal device can meet the communication needs of the SIM card, a first access point name parameter that matches the card identification information is required, so as to further determine whether the MBN file stored in the modem of the current terminal device can meet the subnet needs of the SIM card based on the first access point name parameter.
[0031] It should be noted that, in different application scenarios, the method for obtaining the first access point name parameter that matches the card identification information is different, as shown below:
[0032] In some possible embodiments, to reduce memory usage on the terminal device, the correspondence between card identification information and access point name parameters is pre-stored on a server. This server can be a local server or a cloud server, without limitation. Thus, in this embodiment, a query request carrying the card identification information is sent to a preset server to obtain the first access point name parameter fed back by the preset server.
[0033] In other possible embodiments, to avoid unstable communication with the preset server when the network is unstable, identification information of the corresponding first access point name parameter may be pre-stored in the SIM card, and the identification information may be calculated according to a pre-agreed calculation rule to obtain the corresponding first access point name parameter. In this way, the corresponding first access point name parameter can be obtained locally.
[0034] Step 103: Obtain a second access point name parameter corresponding to the modem configuration binary file in the terminal device.
[0035] In this embodiment, the second access point name parameter corresponding to the modem configuration binary file in the terminal device is obtained, and the second access point name parameter attached to the MBN file of the modem is read through the AP.
[0036] Of course, in some possible embodiments, multiple SIM cards may be installed on the terminal device. In this case, the corresponding terminal device contains corresponding multiple modems. In this embodiment, the card slot identification information of the user identification card can be obtained, and then the modem configuration binary file corresponding to the card slot identification information in the terminal device can be determined to read the attached APN.
[0037] Step 104: Determine whether the first access point name parameter is consistent with the second access point name parameter.
[0038] After obtaining the second access point name parameter, it is determined whether the first access point name parameter is consistent with the second access point name parameter, that is, whether the APNs corresponding to the AP side and the modem side of the terminal device are the same subnet under the same operator.
[0039] Step 105: If the second access point name parameter is inconsistent with the second access point name parameter, the second access point name parameter is replaced with the first access point name parameter to obtain an updated modem configuration binary file.
[0040] In this embodiment, if the first access point name parameter and the second access point name parameter are inconsistent, it indicates that a modem configuration binary file corresponding to the current first access point name parameter of the SIM card needs to be created. At this time, the MBN file in the modem cannot provide network access services for the SIM card.
[0041] Therefore, in this embodiment, the second access point name parameter is replaced with the first access point name parameter to obtain an updated modem configuration binary file, that is, the corresponding first access point name parameter is set in the modem through the AP, and there is no need to re-produce the MBN file corresponding to the first access point name parameter, which reduces the memory usage of the modem and ensures the communication performance of the terminal device.
[0042] In one embodiment of the present application, in order to avoid a short loading period of the SIM card in some cases, before replacing the second access point name parameter with the first access point name parameter to obtain the updated modem configuration binary file, the duration after the loading of the SIM card system is completed is further counted to determine whether the duration is greater than a preset threshold.
[0043] Step 106: Perform communication processing according to the updated modem configuration binary file.
[0044] In this embodiment, communication processing is performed according to the updated modem configuration binary file to connect the SIM card to the corresponding subnet for communication service.
[0045] In one embodiment of the present application, after the updated modem configuration binary file, in order to ensure that the SIM card is connected to the corresponding subnet, a network connection request is sent to the modem corresponding to the modem configuration binary file, so that the modem performs network connection processing according to the first access point name parameter, for example, sending a request to the modem to disconnect from the network or to re-establish network connection.
[0046] In order to enable those skilled in the art to more clearly understand the communication processing method of the embodiment of the present application, it is described below in conjunction with a specific application scenario. In this example, the card identification information includes IMSI, ICCID and GID.
[0047] like Figure 2 As shown, in this scenario, the AP waits for the Modem to report a SIM card ready event. If the Modem reports a SIM card ready event, it proves that the SIM card is loaded successfully. After obtaining the SIM card ready event reported by the Modem, the AP reads the identification information of the SIM card, such as IMSI, ICCID, and GID, and queries the APN stored in the AP-side file corresponding to the SIM card according to the IMSI / ICCID and GID. For example, an APN query request carrying IMSI / ICCID and GID is sent to the preset server to obtain the APN stored in the corresponding AP-side file fed back by the preset server. Then, the AP reads the attached APN stored in the MBN on the Modem side, that is, reads the MBN file on the Modem side to extract the corresponding APN.
[0048] After obtaining the APNs on the AP and modem sides, in order to determine whether the current APN on the modem side supports the terminal's network connection, the AP side and modem side APNs are compared to see if they are the same. If they are different, it indicates that the current APN on the modem side does not support the terminal's network connection. Therefore, the AP sets the queried AP side APN to the modem, making the modem side APN the corresponding APN on the AP side, so that the terminal can support network services. Of course, to ensure network access, after setting the queried AP side APN to the modem, the AP sends a disconnection and re-networking request to the modem, so that the modem connects to the network corresponding to the APN to ensure network access for the terminal device.
[0049] In summary, according to the communication processing method of the embodiment of the present application, a user identification card with different card identification information of the same operator only needs one modem configuration binary file, which reduces the storage space of the modem occupied by the modem configuration binary file, can increase the number of modem configuration binary files of the operator stored in the modem, improves the storage utilization rate of the modem configuration binary files of small memory terminal devices, and improves the communication performance of the terminal devices.
[0050] It should be understood that although Figure 1-2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 1-2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0051] In one embodiment, Figure 3 As shown, a communication processing device is provided, including: a first acquisition module 310, a second acquisition module 320, a third acquisition module 330, a judgment module 340, a file processing module 350 and a communication processing module 360, wherein:
[0052] A first acquisition module 310 is configured to acquire card identification information of a user identification card in a terminal device;
[0053] The second acquisition module 320 is used to obtain a first access point name parameter that matches the card identification information;
[0054] A third acquisition module 330 is configured to acquire a second access point name parameter corresponding to a modem configuration binary file in a terminal device;
[0055] A determination module 340 is configured to determine whether the first access point name parameter is consistent with the second access point name parameter;
[0056] a file processing module 350 for replacing the second access point name parameter with the first access point name parameter when the parameter is inconsistent with the second access point name parameter to obtain an updated modem configuration binary file;
[0057] The communication processing module 360 is configured to perform communication processing according to the updated modem configuration binary file.
[0058] In one embodiment of the present application, the communication processing device further includes: a sending module, which is configured to send a network connection request to a modem corresponding to the modem configuration binary file, so that the modem performs network connection processing according to the first access point name parameter.
[0059] For the specific definition of the communication processing device, please refer to the definition of the communication processing method above, which will not be repeated here. The various modules in the above-mentioned communication processing device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the terminal device in hardware form, which is an application processor relative to the modem, or can be stored in the memory of the terminal device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0060] In one embodiment, a terminal device is provided. The terminal device may be a communication terminal such as a mobile phone, and its internal structure diagram may be as follows: Figure 4As shown. The terminal device includes a processor, memory, communication interface, display, modem and input device connected via a system bus. Among them, the processor of the terminal device is used to provide computing and control capabilities. The processor is an application processor that can set APN parameters, etc. in the modem. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the terminal device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be achieved through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a communication processing method is implemented. The display screen of the computer device can be a liquid crystal display or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0061] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal device to which the solution of the present application is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0062] In one embodiment, the communication processing device provided by the present application can be implemented in the form of a computer program, which can be used in the above-mentioned Figure 4 The terminal device's memory may store various program modules that constitute the communication processing device, such as: Figure 3 The first acquisition module 310, the second acquisition module 320, the third acquisition module 330, the judgment module 340, the file processing module 350 and the communication processing module 360 are shown. The computer program composed of each program module enables the processor to execute the steps of the communication processing method of each embodiment of the present application described in this specification.
[0063] For example, Figure 4 The terminal device shown can be Figure 3The communication processing device shown in the figure obtains card identification information of a user identification card in a terminal device through a first acquisition module; obtains a first access point name parameter matching the card identification information through a second acquisition module; obtains a second access point name parameter corresponding to a modem configuration binary file in the terminal device through a third acquisition module; determines whether the first access point name parameter is consistent with the second access point name parameter through a judgment module; replaces the second access point name parameter with the first access point name parameter to obtain an updated modem configuration binary file if the parameter is inconsistent with the second access point name parameter through a file processing module; and performs communication processing according to the updated modem configuration binary file through a communication processing module.
[0064] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0065] Obtaining card identification information of a user identification card in a terminal device;
[0066] Acquire a first access point name parameter that matches the card identification information;
[0067] Obtaining a second access point name parameter corresponding to a modem configuration binary file in the terminal device;
[0068] Determining whether the first access point name parameter is consistent with the second access point name parameter;
[0069] If the second access point name parameter is inconsistent with the first access point name parameter, replacing the second access point name parameter with the first access point name parameter to obtain an updated modem configuration binary file;
[0070] Communication processing is performed according to the updated modem configuration binary file.
[0071] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0072] Sending a query request carrying the card identification information to a preset server;
[0073] Acquire the first access point name parameter fed back by the preset server.
[0074] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when there are multiple card identification information, obtaining the card slot identification information of each user identification card;
[0075] Determine a modem configuration binary file corresponding to each card slot identification information in the terminal device.
[0076] In one embodiment, when the computer program is executed by a processor, the computer program further implements the following steps: reading a modem configuration binary file in a corresponding modem;
[0077] The second access point name parameter in the modem configuration binary file is extracted.
[0078] In one embodiment, when the computer program is executed by the processor, the computer program further implements the following steps: sending a network connection request to a modem corresponding to the modem configuration binary file, so that the modem performs network connection processing according to the first access point name parameter.
[0079] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: monitoring a report message of a modem in the terminal device;
[0080] Determine that the monitoring detects a report message that the user identification card has been successfully loaded.
[0081] Therefore, a user identification card with different card identification information of the same operator only needs one modem configuration binary file, which reduces the storage space of the modem occupied by the modem configuration binary file, can increase the number of modem configuration binary files of operators stored in the modem, improves the storage utilization rate of the modem configuration binary files of small memory terminal devices, and improves the communication performance of the terminal devices.
[0082] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).
[0083] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0084] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A communication processing method, the method comprising: Obtaining card identification information of a user identification card in a terminal device; Obtain identification information of a first access point name parameter stored in the subscriber identity card and a pre-agreed calculation rule, and calculate the identification information according to the calculation rule to obtain the first access point name parameter; Obtaining a second access point name parameter corresponding to a modem configuration binary file in the terminal device; Determining whether the first access point name parameter is consistent with the second access point name parameter; If the parameter of the second access point name is inconsistent with the parameter of the second access point name, determining whether the loading time of the subscriber identity card is greater than a preset time threshold; When the time is greater than the preset time threshold, replacing the second access point name parameter with the first access point name parameter to obtain an updated modem configuration binary file; Communication processing is performed according to the updated modem configuration binary file.
2. The method according to claim 1, wherein The obtaining of a second access point name parameter corresponding to the modem configuration binary file in the terminal device includes: Read the modem configuration binary file in the corresponding modem; The second access point name parameter in the modem configuration binary file is extracted.
3. The method according to claim 2, wherein Also includes: A network connection request is sent to a modem corresponding to the modem configuration binary file, so that the modem performs network connection processing according to the first access point name parameter.
4. The method according to any one of claims 1 to 3, characterized in that: When there are multiple pieces of card identification information, before obtaining the second access point name parameter corresponding to the modem configuration binary file in the terminal device, the method includes: Obtaining card slot identification information of each user identification card; Determine a modem configuration binary file corresponding to each card slot identification information in the terminal device.
5. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the card identification information of the user identification card in the terminal device, the method further includes: monitoring a report message from a modem in the terminal device; Determine that the monitoring detects a report message that the user identification card has been successfully loaded.
6. A communication processing device, characterized in that: The device comprises: A first acquisition module is used to obtain card identification information of a user identification card in a terminal device; a second acquiring module, configured to acquire identification information of a first access point name parameter stored in the subscriber identity card and a pre-agreed calculation rule, and calculate the identification information according to the calculation rule to acquire the first access point name parameter; A third acquisition module is used to obtain a second access point name parameter corresponding to the modem configuration binary file in the terminal device; a determination module, configured to determine whether the first access point name parameter is consistent with the second access point name parameter; a file processing module, configured to, when the second access point name parameter is inconsistent with the second access point name parameter, determine whether a loading time of the subscriber identity card is greater than a preset time threshold, and, when the loading time threshold is greater than the preset time threshold, replace the second access point name parameter with the first access point name parameter to obtain an updated modem configuration binary file; A communication processing module is used to perform communication processing according to the updated modem configuration binary file.
7. The device according to claim 6, characterized in that Also includes: The sending module is configured to send a network connection request to a modem corresponding to the modem configuration binary file, so that the modem performs network connection processing according to the first access point name parameter.
8. A terminal device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Terminal network registration method, device and computer readable storage medium
CN107094303A
Data network connection method and device, storage medium and terminal equipment
CN110493771A