CN111510909B - Communication module configuration processing method and device, computer equipment and storage medium - Google Patents

Communication module configuration processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111510909B
CN111510909B CN202010160821.7A CN202010160821A CN111510909B CN 111510909 B CN111510909 B CN 111510909B CN 202010160821 A CN202010160821 A CN 202010160821A CN 111510909 B CN111510909 B CN 111510909B
Authority
CN
China
Prior art keywords
firmware
configuration file
communication module
current
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010160821.7A
Other languages
Chinese (zh)
Other versions
CN111510909A (en
Inventor
何鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202010160821.7A priority Critical patent/CN111510909B/en
Publication of CN111510909A publication Critical patent/CN111510909A/en
Application granted granted Critical
Publication of CN111510909B publication Critical patent/CN111510909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier

Abstract

The application relates to a communication module configuration processing method, a communication module configuration processing device, computer equipment and a storage medium. The method comprises the following steps: when the SIM card of the communication module is detected to be switched, acquiring the identification information of the switched SIM card; determining an operator identifier corresponding to the identifier information; acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to an operator identifier from the firmware package; the method comprises the steps of obtaining a current firmware and a current configuration file of a communication module, comparing the current firmware with a target firmware, updating the current firmware according to a comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result. By adopting the method, the storage resource of the communication module can be saved.

Description

Communication module configuration processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a communication module configuration, a computer device, and a storage medium.
Background
With the development of communication technology, more and more modules can realize communication by inserting SIM cards. The single module can also replace the SIM card at will. However, different SIM cards may correspond to different operators, and the communication functions provided by different operators are different. Therefore, when the module switches SIM cards of different operators, the module needs to replace configuration information according to the operator.
In the conventional technology, configuration information corresponding to a plurality of operators is burned into a module at one time. And then, when the SIM cards of different operators are switched by the module, automatically switching corresponding configuration information. However, the configuration information corresponding to a plurality of operators occupies a large module storage resource in an accumulated manner, which results in a waste of module storage resources.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a communication module configuration processing method, apparatus, computer device and storage medium capable of saving module storage resources.
A communication module configuration processing method, the method comprising:
when the SIM card of the communication module is detected to be switched, acquiring the identification information of the switched SIM card;
determining an operator identifier corresponding to the identifier information;
acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to an operator identifier from the firmware package;
the method comprises the steps of obtaining a current firmware and a current configuration file of a communication module, comparing the current firmware with a target firmware, updating the current firmware according to a comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result.
In one embodiment, when it is detected that the SIM card of the communication module is switched, before the identification information of the switched SIM card is acquired, the method further includes:
acquiring a plurality of candidate identification information and operators corresponding to the candidate identification information;
forming an identification information set by the candidate identification information corresponding to the same operator to obtain identification information sets corresponding to a plurality of different operators;
and associating the operator identification of each operator with the identification information set corresponding to each operator.
In one embodiment, determining the operator identifier corresponding to the identification information includes:
matching the identification information with candidate identification information in each identification information set;
and when the matching is successful, acquiring the operator identification associated with the identification information set corresponding to the successfully matched candidate identification information as the operator identification corresponding to the identification information.
In one embodiment, obtaining the current firmware and the current configuration file of the communication module comprises:
sending a configuration query instruction to a communication module;
and acquiring a configuration query result returned by the communication module according to the configuration query instruction, wherein the configuration query result comprises the current firmware and the current configuration file.
In one embodiment, comparing the current firmware with the target firmware, updating the current firmware according to the comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result includes:
acquiring version information of a current firmware, version information of a current configuration file, version information of a target firmware and version information of a target configuration file;
when the version information of the current firmware is inconsistent with the version information of the target firmware, replacing the current firmware with the target firmware;
and when the version information of the current configuration file is inconsistent with the version information of the target configuration file, replacing the current configuration file with the target configuration file.
In one embodiment, the method further comprises:
acquiring an operator identifier to be added, and acquiring a firmware to be added and a configuration file to be added corresponding to the operator identifier to be added;
matching the operator identification to be added with each operator identification in the firmware package;
when the matching is successful, replacing the firmware and the configuration file corresponding to the operator identifier which is successfully matched with the operator identifier with the firmware to be added and the configuration file to be added;
and when the matching fails, adding the operator identifier to be added, the firmware to be added and the configuration file to be added into the firmware package.
In one embodiment, the method further comprises:
and when the firmware package does not have the target firmware and the target configuration file corresponding to the operator identification, generating prompt information according to the operator identification, wherein the prompt information comprises at least one of video, image and voice.
A communication module configuration processing apparatus, the apparatus comprising:
the identification information acquisition module is used for acquiring the identification information of the SIM card after switching when the SIM card of the communication module is detected to be switched;
the operator identification determining module is used for determining the operator identification corresponding to the identification information;
the firmware package acquisition module is used for acquiring a firmware package and acquiring a target firmware and a target configuration file corresponding to the operator identifier from the firmware package;
and the updating module is used for acquiring the current firmware and the current configuration file of the communication module, comparing the current firmware with the target firmware, updating the current firmware according to the comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result.
A computer device comprising a memory storing a computer program and a processor implementing the following steps when the computer program is executed:
when the SIM card of the communication module is detected to be switched, acquiring the identification information of the switched SIM card;
determining an operator identifier corresponding to the identifier information;
acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to an operator identifier from the firmware package;
the method comprises the steps of obtaining a current firmware and a current configuration file of a communication module, comparing the current firmware with a target firmware, updating the current firmware according to a comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when the SIM card of the communication module is detected to be switched, acquiring the identification information of the switched SIM card;
determining an operator identifier corresponding to the identifier information;
acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to an operator identifier from the firmware package;
the method comprises the steps of obtaining a current firmware and a current configuration file of a communication module, comparing the current firmware with a target firmware, updating the current firmware according to a comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result.
According to the communication module configuration processing method and device, the computer equipment and the storage medium, when the SIM card of the communication module is detected to be switched, the identification information of the switched SIM card is acquired; determining an operator identifier corresponding to the identifier information; acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to an operator identifier from the firmware package; the method comprises the steps of obtaining a current firmware and a current configuration file of a communication module, comparing the current firmware with a target firmware, updating the current firmware according to a comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result. Thus, the firmware package includes firmware and configuration files corresponding to a plurality of operators and is stored in the terminal. The communication module can acquire the corresponding target firmware and target configuration file from the terminal according to the identification information of the current SIM card, and burn the target firmware and the target configuration file into the communication module so as to update the old firmware and configuration file. Therefore, the communication module always stores the firmware and the configuration file of one operator, and the storage resource of the communication module is further effectively saved.
Drawings
FIG. 1 is a diagram of an application environment for a communication module configuration processing method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for processing a communication module configuration according to one embodiment;
FIG. 3 is a flow diagram that illustrates associating operator identifications and sets of identification information, according to an embodiment;
fig. 4 is a flowchart illustrating an operator identification step for determining identification information according to an embodiment;
FIG. 5 is a flowchart illustrating the steps of obtaining the current firmware and current configuration file for a communication module in one embodiment;
FIG. 6 is a schematic diagram of a process for updating current firmware and current configuration files in one embodiment;
FIG. 7 is a flow diagram illustrating updating of a firmware package in one embodiment;
FIG. 8 is a flowchart illustrating a method for processing a communication module configuration according to another embodiment;
FIG. 9 is a block diagram showing a configuration processing means of a communication module in one embodiment;
fig. 10 is a block diagram showing a configuration processing means of a communication module in another embodiment;
FIG. 11 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The communication module configuration processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the communication module 104 through a communication interface. The communication module 104 may be embedded in the terminal 102 through a communication interface, so that the terminal 102 may communicate with other terminals through the communication module 104. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the communication module may be, but is not limited to, a 4G module, a 5G module, and a bluetooth module. The communication interface includes, but is not limited to, a Universal Serial Bus (USB) interface and a high-speed serial computer expansion bus (PCI-Express) interface.
Specifically, when detecting that the SIM card of the communication module is switched, the terminal 102 acquires the identification information of the switched SIM card. And then, the terminal determines the operator identifier according to the identifier information. The terminal stores the firmware package locally, so that the terminal can acquire the target firmware and the target configuration file corresponding to the operator identifier from the firmware package. The terminal can obtain the current firmware and the current configuration file of the communication module, and if the current firmware is inconsistent with the target firmware, the terminal burns the target firmware into the communication module. And if the current configuration file is inconsistent with the target configuration file, burning the target configuration file into the communication module by the terminal.
Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
In an embodiment, as shown in fig. 2, a communication module configuration processing method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
s202, when the SIM card of the communication module is detected to be switched, the identification information of the switched SIM card is obtained.
Wherein, the communication module is connected with the terminal. The communication module is provided with a card slot for inserting the SIM card. The communication module can realize dial-up networking by inserting the SIM card, so that the terminal can carry out network communication with other terminals. The SIM card is a kind of subscriber identity card. The SIM card includes an IMSI (International Mobile Subscriber Identity), a key and a security algorithm of the Mobile Subscriber, a memory space available for the Mobile Subscriber, and the like. The IMSI can be used to distinguish between mobile subscribers in a cellular network. The IMSI is a non-repeating identity in all cellular networks. The IMSI is composed of a string of decimal digits with a maximum length of 15 digits. The IMSI is formed by sequentially connecting MCC (Mobile Country Code), MNC (Mobile Network Code), and MSIN (Mobile Subscription identity Number). The MCC may uniquely identify the country to which the mobile subscriber belongs, and is 3 digits in length. The MNC may be used to distinguish the mobile network to which the mobile subscriber belongs, and the length of the MNC may be determined by the value of the MCC, and may be 2 digits (european standard) or 3 digits (north american standard). The MSIN may be used to identify a mobile subscriber in a certain mobile network, and the value of the MSIN may be self-assigned by the mobile network operator.
The identification information of the SIM card refers to an HNI (Home Network Identity), which is used to identify a mobile Network operator to which the mobile subscriber belongs. HNI consists of MCC and MNC.
Specifically, the terminal may receive a notification message transmitted from a preset interface in real time. The notification message may be used to determine status information of the SIM card. The state information of the SIM card includes an unplugged state, a faulty plugged-in state, a locked state, an unknown state, and a ready state. And when the state information of the SIM card is converted into the ready state from any state except the ready state, determining that the SIM card of the communication module is switched. For example, the state information of the SIM card is determined to be in a ready state according to the notification message received by the terminal last time, and the state information of the SIM card is determined to be in an unplugged state according to the notification message received by the terminal last time, and it is determined that the SIM card of the communication module is switched. When the SIM card of the communication module is switched, the terminal can send an identification information acquisition instruction to the communication module through the preset interface. And after receiving the identification information acquisition instruction, the communication module returns the identification information of the switched SIM card to the terminal through a preset interface.
In one embodiment, the terminal is installed with an operating system supporting the MBIM (Mobile Broadband Interface Model) protocol, such as a windows operating system. The MBIM protocol is a device interface specification of a network adapter, and the communication module and the terminal can communicate in a data format specified by the MBIM protocol through a USB channel.
In one embodiment, the terminal and the communication module may be bound through an API (Application Programming Interface) of the windows MBIM system. The terminal can send an SIM card state query instruction to the communication module through the API so as to query the SIM card state information of the communication module. And after receiving the SIM card state query instruction, the communication module reports the SIM card state information according to the SIM card state query instruction. When the SIM card of the communication module is determined to be switched according to the state information of the SIM card, the terminal can send an identification information query instruction to the communication module through the interface so as to query the MCC and MNC of the SIM card. And after receiving the identification information query instruction, the communication module reports the MCC and MNC of the SIM card according to the identification information query instruction.
And S204, determining the operator identifier corresponding to the identifier information.
The operator identifier is an identifier for uniquely identifying the mobile network operator, and may specifically include a character string of at least one character of letters, numbers, and symbols. The operator identity can be customized, for example, china mobile identity 001, china unicom identity 002, china telecom identity 003, and wilson (Verizon) in the united states identity 101.
Specifically, the terminal stores an identification information comparison table. The identification information comparison table records the corresponding relation between a plurality of groups of candidate identification information and operator identifications. One operator identifier may correspond to a plurality of candidate identifier information, one operator identifier may also correspond to one candidate identifier information, and the specific correspondence may be determined according to the actual conditions of the respective operators. For example, MCC MNC corresponding to china mobile includes 460 02, 460 00, 460 07. MCC MNC corresponding to chinese telecommunications includes 460, 460 05. The MCC MNC corresponding to golombia Movistar (spanish telecom carrier) includes 732 123. And the terminal matches the identification information of the switched SIM card with the candidate identification information in the identification information comparison table, and when the matching is successful, the operator identification corresponding to the candidate identification information which is successfully matched is used as the operator identification corresponding to the identification information of the switched SIM card.
S206, acquiring the firmware package, and acquiring the target firmware and the target configuration file corresponding to the operator identifier from the firmware package.
The firmware package is a collection package including data required for communication module configuration update. The data required for the communication module configuration update includes firmware and configuration files. Firmware (Firmware) is a program written in a memory of a communication module, is a basic program supporting the operation of the communication module, and determines the function and performance of the communication module. If the functions provided by different operators are different, the corresponding firmware of different operators is different. The configuration file is a file written in the memory of the communication module and comprises parameters corresponding to various configuration items. For example, the specific frequency band corresponding to the frequency band configuration item, the specific port configuration corresponding to the port configuration item, and the specific power corresponding to the power configuration item. The configuration information corresponding to different operators is different, so the configuration files corresponding to different operators are different. In addition, the firmware and configuration files are in a one-to-one correspondence. The terminal can obtain the firmware and the configuration file corresponding to each operator from the communication module developer, and the firmware and the configuration file are packaged and stored locally.
The firmware package comprises a firmware package configuration file, firmware and a configuration file corresponding to each candidate operator. The firmware package configuration file records the candidate operator identification, the firmware information corresponding to the candidate operator identification and the configuration file information. The firmware information includes a firmware identification and firmware version information. The profile information includes a profile identification and profile version information. The firmware identifier is an identifier for uniquely identifying the firmware, and may specifically include a character string of at least one character of letters, numbers and symbols. The profile identifier is an identifier for uniquely identifying the profile, and may specifically include a character string of at least one character of letters, numbers and symbols. The corresponding firmware can be found in the firmware package according to the firmware identification. The corresponding configuration file can be found in the firmware package according to the configuration file identifier.
Specifically, the terminal searches a candidate operator identifier matched with the operator identifier in the firmware package configuration file according to the operator identifier corresponding to the switched SIM card. And when the candidate operator identification is consistent with the operator identification corresponding to the switched SIM card, the candidate operator identification and the operator identification are matched with each other. And when the candidate operator identification matched with the operator identification is found, acquiring the firmware information and the configuration file information corresponding to the candidate operator identification from the firmware package configuration file. And searching corresponding firmware in the firmware package according to the firmware information to be used as target firmware corresponding to the operator identifier. And searching a corresponding configuration file in the firmware package according to the configuration file information to be used as a target configuration file corresponding to the operator identifier.
In one embodiment, one firmware in the firmware package may correspond to multiple candidate operator identifications. When the functions provided by the operator a and the operator B are identical, the corresponding firmware of the operator a and the operator B is identical. Thus, the operator identities of operator a and operator B may correspond to the same firmware.
S208, acquiring the current firmware and the current configuration file of the communication module, comparing the current firmware with the target firmware, updating the current firmware according to the comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result.
The current firmware refers to firmware stored in the memory of the communication module at the current time. The current profile refers to the profile stored in the memory of the communication module at the current time.
Specifically, the terminal may send a configuration query instruction to the communication module to query the current firmware of the communication module and version information of the current configuration file. And comparing the version information of the current firmware with the version information of the target firmware, and burning the target firmware into a memory of the communication module by a burning tool to update the current firmware if the version information of the current firmware is inconsistent with the version information of the target firmware. And comparing the version information of the current configuration file with the version information of the target configuration file, and burning the target configuration file into a memory of the communication module by a burning tool to update the current configuration file if the version information of the current configuration file is inconsistent with the version information of the target configuration file. Therefore, at most one firmware and one configuration file are burned at a time, and the time consumption is short.
In one embodiment, the terminal may send the configuration query command via an AT (Attention) command.
In the communication module configuration processing method, when the SIM card of the communication module is detected to be switched, the identification information of the switched SIM card is acquired; determining an operator identifier corresponding to the identifier information; acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to an operator identifier from the firmware package; the method comprises the steps of obtaining a current firmware and a current configuration file of a communication module, comparing the current firmware with a target firmware, updating the current firmware according to a comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result. Thus, the firmware package includes firmware and configuration files corresponding to a plurality of operators and is stored in the terminal. The communication module can acquire the corresponding target firmware and target configuration file from the terminal according to the identification information of the current SIM card, and burn the target firmware and the target configuration file into the communication module so as to update the old firmware and configuration file. Therefore, the communication module always stores the firmware and the configuration file of one operator, and the storage resource of the communication module is further effectively saved. In addition, because the communication module always stores the firmware and the configuration file of one operator, the communication module does not need a memory with large storage capacity, thereby reducing the cost.
In one embodiment, as shown in fig. 3, before S202, the method includes:
s302, a plurality of candidate identification information and operators corresponding to the candidate identification information are obtained.
S304, forming the candidate identification information corresponding to the same operator into an identification information set to obtain a plurality of identification information sets corresponding to different operators.
S306, the operator identification of each operator is associated with the identification information set corresponding to each operator.
Specifically, the terminal may obtain MCC MNCs corresponding to respective operators from the respective operators as candidate identification information. And forming an identification information set by a plurality of MCC MNCs corresponding to the same operator, and further obtaining the identification information sets corresponding to a plurality of different operators. Each operator may be assigned a string of characters, i.e. an operator identification, for uniquely identifying each operator. And associating the identification information set corresponding to the same operator with the operator identification, so as to generate an identification information comparison table.
In one embodiment, the identification information look-up table may be as shown in table 1 below:
TABLE 1
Figure BDA0002405718710000101
In the above embodiment, each candidate identification information is classified according to the operator corresponding to the candidate identification information, so as to obtain a plurality of identification information sets. The identification information in the same identification information set corresponds to the same operator. And an identification information comparison table is generated according to each identification information set, and the operator identification corresponding to certain identification information can be quickly searched according to the identification information comparison table, so that the searching efficiency is improved.
In one embodiment, as shown in fig. 4, S204 includes:
s402, matching the identification information with the candidate identification information in each identification information set.
S404, when the matching is successful, acquiring the operator identification associated with the identification information set corresponding to the successfully matched candidate identification information as the operator identification corresponding to the identification information.
Specifically, the terminal obtains the identification information of the SIM card after switching, and may match the identification information with candidate identification information in each identification information set, and search for candidate identification information that is the same as the identification information. That is, the candidate identification information identical to the identification information is searched for in the identification information lookup table. When the candidate identification information identical to the identification information is found, that is, when the matching is successful, the operator identification associated with the candidate identification information is obtained and used as the operator identification corresponding to the identification information of the switched SIM card.
In one embodiment, as shown in fig. 5, obtaining the current firmware and the current configuration file of the communication module includes:
s502, sending a configuration query instruction to the communication module.
S504, obtaining a configuration query result returned by the communication module according to the configuration query instruction, wherein the configuration query result comprises the current firmware and the current configuration file.
The configuration query instruction is used for querying the current firmware information and the current configuration file information of the communication module. The configuration query command may be an AT command.
Specifically, the terminal may send an AT instruction to the communication module, the AT instruction being used to query the communication module for current firmware information and current profile information. And after receiving the AT instruction, the communication module reports the current firmware information and the current configuration file information of the communication module to the terminal.
In one embodiment, the current firmware information includes, but is not limited to, version information of the current firmware, a memory address of the current firmware. The current configuration file information includes, but is not limited to, version information of the current configuration file, and a storage address of the current configuration file.
In the above embodiment, the configuration query instruction is sent to the communication module, and the current firmware information and the current configuration file information returned by the communication module according to the configuration query instruction are acquired, so that the current firmware and the current configuration file which are not matched with the switched SIM card can be updated conveniently in the following process.
In one embodiment, as shown in fig. 6, comparing the current firmware with the target firmware, updating the current firmware according to the comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result includes:
s602, acquiring the version information of the current firmware, the version information of the current configuration file, the version information of the target firmware and the version information of the target configuration file.
S604, when the version information of the current firmware is inconsistent with the version information of the target firmware, replacing the current firmware with the target firmware.
S606, when the version information of the current configuration file is inconsistent with the version information of the target configuration file, replacing the current configuration file with the target configuration file.
Specifically, if the version information of the current firmware is inconsistent with the version information of the target firmware, the terminal may obtain a storage address of the current firmware in the communication module, burn the target firmware into the storage address, and use the target firmware to cover the current firmware, that is, replace the current firmware with the target firmware. If the version information of the current configuration file is inconsistent with the version information of the target configuration file, the terminal can acquire a storage address of the current configuration file in the communication module, burn the target configuration file into the storage address, and cover the current configuration file with the target configuration file, that is, replace the current configuration file with the target configuration file. Therefore, the communication module switched with the SIM card can realize various functions supported by an operator corresponding to the SIM card through the target firmware and the target configuration file. And if the version information of the current firmware is consistent with the version information of the target firmware, the burning operation is not executed. And if the version information of the current configuration file is consistent with the version information of the target configuration file, the burning operation is not executed.
In one embodiment, the version information may be a version number. To distinguish between different operators, the version number may include an operator identification. For example, verizon, USA, identified as 101, may have version information of the configuration file corresponding to Verizon, USA, 101.004. 004 shows that the configuration file is the 4 th version corresponding to Verizon, and the configuration file is updated from the 1 st version to the 4 th version after 3 iterations. The identifier of china movement is 001, and the version information of the configuration file corresponding to china movement may be 001.004. Since the version number includes the operator identification, even if the two profiles are both the 4 th versions corresponding to the respective operators, they can be distinguished quickly and efficiently.
In the above embodiment, the comparison between the current firmware and the target firmware and the comparison between the current configuration file and the target configuration file are realized through comparison between the version information. Because the firmware and the configuration file comprise complex data, the comparison mode can be simplified and the comparison efficiency can be improved through the comparison of the version information.
In one embodiment, further comprising: and when the firmware package does not have the target firmware and the target configuration file corresponding to the operator identification, generating prompt information according to the operator identification, wherein the prompt information comprises at least one of video, image and voice.
Specifically, when the operator identifier of the SIM card after switching cannot be found in the firmware package, that is, when the firmware and the configuration file corresponding to the operator identifier cannot be found in the firmware package, the terminal may generate a prompt message according to the operator identifier to notify the user. The prompt message can be displayed on the terminal in a mode of at least one of video, image and voice. The operator identifier can be marked in the output image, and the operator name corresponding to the operator identifier enables a user to quickly acquire the firmware and the configuration file of the operator corresponding to the operator identifier through other channels and further add the firmware and the configuration file into the firmware package.
In one embodiment, as shown in fig. 7, further includes:
s702, acquiring the identifier of the operator to be added, and acquiring the firmware to be added and the configuration file to be added corresponding to the identifier of the operator to be added.
S704, matching the operator identification to be added with each operator identification in the firmware package.
S706, when the matching is successful, replacing the firmware and the configuration file corresponding to the operator identifier successfully matched with the firmware to be added and the configuration file to be added.
S708, when the matching fails, adding the operator identifier to be added, the firmware to be added and the configuration file to be added into the firmware package.
Specifically, firmware and configuration files for different operators may be added or updated to the firmware package at any stage. When the firmware and the configuration file of the operator are to be added or updated to the firmware package, the terminal needs to first obtain the operator identifier of the operator to be added, and compare the operator identifier to be added with the existing operator identifier in the firmware package. When the firmware package does not have the existing operator identifier which is the same as the added operator identifier, the firmware to be added and the configuration file to be added corresponding to the operator identifier to be added can be added into the firmware package. When the existing operator identifier identical to the added operator identifier exists in the firmware package, the firmware and the configuration file corresponding to the existing operator identifier may be updated, the firmware corresponding to the existing operator identifier is replaced with the to-be-added firmware corresponding to the to-be-added operator identifier, and the configuration file corresponding to the existing operator identifier is replaced with the to-be-added configuration file corresponding to the to-be-added operator identifier.
In the embodiment, the firmware and the configuration file in the firmware package can be updated and supplemented at any stage, so that the applicability and the flexibility of the firmware package are improved. In addition, the firmware package has uniqueness, that is, only one firmware and configuration file are corresponding to a certain operator, thereby avoiding the situation that a plurality of firmware and configuration files are found according to the operator identification.
In a specific embodiment, as shown in fig. 8, a flow chart of a processing method for communication module configuration is illustrated.
The terminal stores an MCC MNC comparison table and a firmware package. The MCC MNC comparison table records the corresponding relation between each MCC MNC and the operator identifier. The firmware package comprises a firmware package configuration file, firmware corresponding to each operator identification and a configuration file.
And detecting whether the SIM card of the communication module is switched. And when the SIM card is switched, acquiring the MCC and MNC of the switched SIM card. And searching the operator identifier corresponding to the MCC MNC in a locally stored MCC MNC comparison table according to the MCC and MNC of the switched SIM card. And searching the firmware information and the configuration file information corresponding to the operator identifier from the firmware package configuration file of the locally stored firmware package according to the operator identifier corresponding to the MCC MNC. And searching corresponding target firmware in the firmware package according to the firmware information, and searching corresponding target configuration files in the firmware package according to the configuration file information. Further, the terminal acquires the version information of the current firmware and the current configuration file of the communication module. And comparing the version information of the target firmware with the version information of the current firmware, and burning the target firmware into the communication module by the terminal through the burning tool to replace the current firmware when the version information of the target firmware is inconsistent with the version information of the current firmware. When the version information of the two is consistent, the current firmware does not need to be updated. And comparing the version information of the target configuration file with the version information of the current configuration file, and burning the target configuration file into the communication module by the terminal through a burning tool to replace the current configuration file when the version information of the target configuration file is inconsistent with the version information of the current configuration file. When the version information of the current configuration file is consistent with that of the current configuration file, the current configuration file does not need to be updated.
In the above embodiment, the firmware and the configuration file in the communication module can be automatically updated in real time according to the switching condition of the SIM card, so as to ensure that the network connection function of the communication module can be smoothly started.
It should be understood that the steps in the above-described flowcharts are shown in order as indicated by the arrows, but the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
In one embodiment, as shown in fig. 9, there is provided a communication module configuration processing apparatus including: an identification information acquisition module 902, an operator identification determination module 904, a firmware package acquisition module 906, and an update module 908, wherein:
an identification information obtaining module 902, configured to obtain identification information of a SIM card after switching when it is detected that the SIM card of the communication module is switched;
an operator identifier determining module 904, configured to determine an operator identifier corresponding to the identifier information;
a firmware package obtaining module 906, configured to obtain a firmware package, and obtain a target firmware and a target configuration file corresponding to an operator identifier from the firmware package;
the updating module 908 is configured to obtain a current firmware and a current configuration file of the communication module, compare the current firmware with the target firmware, update the current firmware according to a comparison result, compare the current configuration file with the target configuration file, and update the current configuration file according to the comparison result.
In one embodiment, as shown in fig. 10, the communication module configuration processing apparatus further includes:
an association module 901, configured to obtain multiple candidate identification information and an operator corresponding to each candidate identification information; forming an identification information set by the candidate identification information corresponding to the same operator to obtain identification information sets corresponding to a plurality of different operators; and associating the operator identification of each operator with the identification information set corresponding to each operator.
In one embodiment, the operator identification determination module is further configured to match the identification information with candidate identification information in each identification information set; and when the matching is successful, acquiring the operator identification associated with the identification information set corresponding to the successfully matched candidate identification information as the operator identification corresponding to the identification information.
In one embodiment, the update module is further configured to send a configuration query instruction to the communication module; and acquiring a configuration query result returned by the communication module according to the configuration query instruction, wherein the configuration query result comprises the current firmware and the current configuration file.
In one embodiment, the update module is further configured to obtain version information of the current firmware, version information of the current configuration file, version information of the target firmware, and version information of the target configuration file; when the version information of the current firmware is inconsistent with the version information of the target firmware, replacing the current firmware with the target firmware; and when the version information of the current configuration file is inconsistent with the version information of the target configuration file, replacing the current configuration file with the target configuration file.
In one embodiment, as shown in fig. 10, the communication module configuration processing apparatus further includes:
and a prompt module 909, configured to generate prompt information according to the operator identifier when the target firmware and the target configuration file corresponding to the operator identifier do not exist in the firmware package, where the prompt information includes at least one of video, image, and voice.
In one embodiment, as shown in fig. 10, the communication module configuration processing apparatus further includes:
an adding module 910, configured to obtain an identifier of an operator to be added, and obtain a firmware to be added and a configuration file to be added that correspond to the identifier of the operator to be added; matching the operator identification to be added with each operator identification in the firmware package; when the matching is successful, replacing the firmware and the configuration file corresponding to the operator identifier which is successfully matched with the operator identifier with the firmware to be added and the configuration file to be added; and when the matching fails, adding the operator identifier to be added, the firmware to be added and the configuration file to be added into the firmware package.
The communication module configuration processing device is used for acquiring the identification information of the SIM card after switching when the SIM card of the communication module is detected to be switched; determining an operator identifier corresponding to the identifier information; acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to an operator identifier from the firmware package; the method comprises the steps of obtaining a current firmware and a current configuration file of a communication module, comparing the current firmware with a target firmware, updating the current firmware according to a comparison result, comparing the current configuration file with the target configuration file, and updating the current configuration file according to the comparison result. Thus, the firmware package includes firmware and configuration files corresponding to a plurality of operators and is stored in the terminal. The communication module can acquire the corresponding target firmware and target configuration file from the terminal according to the identification information of the current SIM card, and burn the target firmware and the target configuration file into the communication module so as to update the old firmware and configuration file. Therefore, the communication module always stores the firmware and the configuration file of one operator, and the storage resource of the communication module is further effectively saved.
For the specific definition of the communication module configuration processing device, reference may be made to the above definition of the communication module configuration processing method, which is not described herein again. The respective modules in the communication module configuration processing apparatus described above may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a communication module configuration processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 11 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described communication module configuration processing method. Here, the steps of the communication module configuration processing method may be steps in the communication module configuration processing method of each of the above embodiments.
In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, causes the processor to carry out the steps of the above-described communication module configuration processing method. Here, the steps of the communication module configuration processing method may be steps in the communication module configuration processing method of each of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can 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, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A communication module configuration processing method, the method comprising:
when the SIM card of the communication module is detected to be switched, acquiring the identification information of the switched SIM card;
determining an operator identifier corresponding to the identifier information;
acquiring a firmware package, and acquiring a target firmware and a target configuration file corresponding to the operator identifier from the firmware package; the target firmware is a program for writing to a memory of the communication module to support operation of the communication module;
acquiring the current firmware and the current configuration file of the communication module, and the version information of the current firmware, the version information of the current configuration file, the version information of the target firmware and the version information of the target configuration file;
when the version information of the current firmware is inconsistent with the version information of the target firmware, replacing the current firmware with the target firmware;
and when the version information of the current configuration file is inconsistent with the version information of the target configuration file, replacing the current configuration file with the target configuration file.
2. The method according to claim 1, wherein before acquiring the identification information of the SIM card after switching when detecting that the SIM card of the communication module is switched, the method further comprises:
acquiring a plurality of candidate identification information and operators corresponding to the candidate identification information;
forming an identification information set by the candidate identification information corresponding to the same operator to obtain identification information sets corresponding to a plurality of different operators;
and associating the operator identification of each operator with the identification information set corresponding to each operator.
3. The method of claim 2, wherein the determining an operator identifier corresponding to the identification information comprises:
matching the identification information with candidate identification information in each identification information set;
and when the matching is successful, acquiring the operator identification associated with the identification information set corresponding to the successfully matched candidate identification information as the operator identification corresponding to the identification information.
4. The method of claim 1, wherein obtaining the current firmware and the current configuration file of the communication module comprises:
sending a configuration query instruction to the communication module;
and acquiring a configuration query result returned by the communication module according to the configuration query instruction, wherein the configuration query result comprises the current firmware and the current configuration file.
5. The method according to claim 1, wherein when it is detected that the SIM card of the communication module is switched, acquiring the identification information of the switched SIM card comprises:
when the SIM card of the communication module is detected to be converted into the ready state from any state except the ready state, the SIM card of the communication module is determined to be switched, and the identification information of the switched SIM card is obtained.
6. The method of claim 1, further comprising:
acquiring an operator identifier to be added, and acquiring a firmware to be added and a configuration file to be added corresponding to the operator identifier to be added;
matching the operator identification to be added with each operator identification in the firmware package;
when the matching is successful, replacing the firmware and the configuration file corresponding to the operator identifier which is successfully matched with the operator identifier with the firmware to be added and the configuration file to be added;
and when the matching fails, adding the operator identifier to be added, the firmware to be added and the configuration file to be added into the firmware package.
7. The method of claim 1, further comprising:
and when the firmware package does not have the target firmware and the target configuration file corresponding to the operator identifier, generating prompt information according to the operator identifier, wherein the prompt information comprises at least one of video, image and voice.
8. A communication module configuration processing apparatus, characterized in that the apparatus comprises:
the identification information acquisition module is used for acquiring the identification information of the SIM card after switching when the SIM card of the communication module is detected to be switched;
an operator identifier determining module, configured to determine an operator identifier corresponding to the identifier information;
the firmware package acquisition module is used for acquiring a firmware package and acquiring a target firmware and a target configuration file corresponding to the operator identifier from the firmware package; the target firmware is a program for writing to a memory of the communication module to support operation of the communication module;
the updating module is used for acquiring the current firmware and the current configuration file of the communication module, and the version information of the current firmware, the version information of the current configuration file, the version information of the target firmware and the version information of the target configuration file; when the version information of the current firmware is inconsistent with the version information of the target firmware, replacing the current firmware with the target firmware; and when the version information of the current configuration file is inconsistent with the version information of the target configuration file, replacing the current configuration file with the target configuration file.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010160821.7A 2020-03-10 2020-03-10 Communication module configuration processing method and device, computer equipment and storage medium Active CN111510909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010160821.7A CN111510909B (en) 2020-03-10 2020-03-10 Communication module configuration processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010160821.7A CN111510909B (en) 2020-03-10 2020-03-10 Communication module configuration processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111510909A CN111510909A (en) 2020-08-07
CN111510909B true CN111510909B (en) 2023-03-10

Family

ID=71874063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010160821.7A Active CN111510909B (en) 2020-03-10 2020-03-10 Communication module configuration processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111510909B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153676B (en) * 2020-09-03 2023-07-21 深圳市广和通无线股份有限公司 Radio frequency parameter configuration method, device, computer equipment and storage medium
CN112261640B (en) * 2020-09-29 2024-03-15 深圳市广和通无线股份有限公司 Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium
CN112214353A (en) * 2020-10-16 2021-01-12 深圳市广和通无线股份有限公司 Firmware recovery method and device, computer equipment and storage medium
CN112464048A (en) * 2020-12-08 2021-03-09 深圳市广和通无线股份有限公司 Configuration parameter updating and loading method and device, computer equipment and storage medium
CN113595771A (en) * 2021-07-12 2021-11-02 合肥移瑞通信技术有限公司 Method, device and storage medium for updating data based on MBIM (multimedia broadcast multicast service) interface
CN114185609A (en) * 2021-11-04 2022-03-15 深圳市德明利技术股份有限公司 Method and device for processing equipment configuration information, storage medium and processor
CN114996162B (en) * 2022-07-15 2022-12-23 荣耀终端有限公司 Test method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789164A (en) * 2016-11-24 2017-05-31 努比亚技术有限公司 A kind of network parameter update method, the network equipment and mobile terminal
CN106899966A (en) * 2017-03-25 2017-06-27 努比亚技术有限公司 network mode automatic selecting method and device
CN106973162A (en) * 2017-03-28 2017-07-21 上海与德科技有限公司 A kind of intelligent terminal system version-switching method and device
CN107148010A (en) * 2017-04-20 2017-09-08 深圳市广和通无线股份有限公司 Multi-operator implementation method, device, storage medium and computer equipment
CN108112010A (en) * 2017-12-28 2018-06-01 宇龙计算机通信科技(深圳)有限公司 Access method, apparatus, terminal and the computer readable storage medium of network
EP3337219A1 (en) * 2015-08-14 2018-06-20 ZTE Corporation Carrier configuration processing method, device and system, and computer storage medium
CN110119280A (en) * 2018-02-06 2019-08-13 深圳市帝迈生物技术有限公司 The method and device of more firmware upgrades
CN110225510A (en) * 2019-06-11 2019-09-10 三星电子(中国)研发中心 Method and apparatus for burning embedded SIM card
CN110856225A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3337219A1 (en) * 2015-08-14 2018-06-20 ZTE Corporation Carrier configuration processing method, device and system, and computer storage medium
CN106789164A (en) * 2016-11-24 2017-05-31 努比亚技术有限公司 A kind of network parameter update method, the network equipment and mobile terminal
CN106899966A (en) * 2017-03-25 2017-06-27 努比亚技术有限公司 network mode automatic selecting method and device
CN106973162A (en) * 2017-03-28 2017-07-21 上海与德科技有限公司 A kind of intelligent terminal system version-switching method and device
CN107148010A (en) * 2017-04-20 2017-09-08 深圳市广和通无线股份有限公司 Multi-operator implementation method, device, storage medium and computer equipment
CN108112010A (en) * 2017-12-28 2018-06-01 宇龙计算机通信科技(深圳)有限公司 Access method, apparatus, terminal and the computer readable storage medium of network
CN110119280A (en) * 2018-02-06 2019-08-13 深圳市帝迈生物技术有限公司 The method and device of more firmware upgrades
CN110856225A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium
CN110225510A (en) * 2019-06-11 2019-09-10 三星电子(中国)研发中心 Method and apparatus for burning embedded SIM card

Also Published As

Publication number Publication date
CN111510909A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN111510909B (en) Communication module configuration processing method and device, computer equipment and storage medium
US10187798B2 (en) Terminal device having subscriber identity device and method for selecting profile thereof
CN112074011B (en) Network registration method, device, computer equipment and storage medium
US9603189B2 (en) Method and apparatus for multisim devices with embedded SIM functionality
US20150011202A1 (en) Method and Terminal for Loading Operator Configuration Information
CN110769442B (en) Method and device for accessing router and Internet of things equipment
WO2020057400A1 (en) Multi-card roaming network registration method and apparatus, computer device and storage medium
CN110475242B (en) LTE network registration method, device, storage medium and computer equipment
WO2023020187A1 (en) Data obtaining methods and apparatuses, electronic device and storage medium
CN111510910B (en) Communication module frequency band setting method and device, computer equipment and storage medium
CN113691609B (en) Data acquisition method and device, electronic equipment and storage medium
CN102811272A (en) Updating method, updating apparatus and communication terminal
CN108134999B (en) WiFi connection method, connection device, terminal equipment and computer-readable storage medium
CN113242542B (en) Network searching control method and device of mobile terminal and mobile terminal
CN109525629A (en) Information-pushing method, device and storage medium
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium
CN112188591B (en) Network access method, device, computer equipment and storage medium
CN111567073B (en) Terminal configuration method and device
US10341844B2 (en) Method and apparatus for implementing virtual communication card
CN111510318B (en) Positioning information configuration method, device, communication equipment and storage medium
US10075839B2 (en) Information processing method and electronic device
CN105813061B (en) A kind of multi-card terminal resource acquiring method and multi-card terminal
CN105959935B (en) A kind of multi-card terminal resource acquiring method and multi-card terminal
CN113242541B (en) Network registration method and device, electronic equipment and storage medium

Legal Events

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