CN111510910B - Communication module frequency band setting method and device, computer equipment and storage medium - Google Patents

Communication module frequency band setting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111510910B
CN111510910B CN202010160957.8A CN202010160957A CN111510910B CN 111510910 B CN111510910 B CN 111510910B CN 202010160957 A CN202010160957 A CN 202010160957A CN 111510910 B CN111510910 B CN 111510910B
Authority
CN
China
Prior art keywords
control command
communication module
target
information
frequency band
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
CN202010160957.8A
Other languages
Chinese (zh)
Other versions
CN111510910A (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 CN202010160957.8A priority Critical patent/CN111510910B/en
Publication of CN111510910A publication Critical patent/CN111510910A/en
Application granted granted Critical
Publication of CN111510910B publication Critical patent/CN111510910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a method and a device for setting a frequency band of a communication module, computer equipment and a storage medium. The method comprises the following steps: detecting the state information of the SIM card of the communication module through a preset interface; when the SIM card state information is in a ready state, acquiring identification information of the SIM card, and searching a target operator identification in an identification information comparison table according to the identification information; acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information; and sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information. By adopting the method, the storage resource of the communication module can be saved.

Description

Communication module frequency band setting 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 setting a frequency band of a communication module, 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 correspond to different operators, and different operators correspond to different communication frequency bands.
In the conventional technology, a configuration file carrying frequency band 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 the corresponding configuration files to acquire the frequency band information. However, the multiple configuration files occupy a large amount of storage space of the module, resulting in wasted storage resources of the module.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for setting a frequency band of a communication module, which can save storage resources of the communication module.
A method for setting a frequency band of a communication module comprises the following steps:
detecting the state information of the SIM card of the communication module through a preset interface;
when the SIM card state information is in a ready state, acquiring identification information of the SIM card, and searching a target operator identification in an identification information comparison table according to the identification information;
acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information;
and sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information.
In one embodiment, before detecting the SIM card status information of the communication module through the preset interface, the method further includes:
and establishing an identification information comparison table, wherein the identification information comparison table is used for searching the corresponding operator identification according to the identification information.
In one embodiment, establishing the identification information comparison table 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 to obtain an identification information comparison table.
In one embodiment, detecting SIM card status information of a communication module through a preset interface includes:
binding the communication module through a preset interface;
sending a query instruction to a communication module through a preset interface;
receiving a query result returned by a preset interface;
and determining the state information of the SIM card of the communication module according to the query result.
In one embodiment, obtaining a target control command corresponding to a target operator identifier includes:
acquiring a control command set, wherein the control command set comprises at least one operator identifier and a default control command corresponding to the operator identifier;
comparing the target operator identification with the operator identification in the control command set;
and determining a default control command corresponding to the target operator identifier according to the comparison result, and taking the default control command corresponding to the target operator identifier as the target control command.
In one embodiment, acquiring a target control command corresponding to a target operator identifier includes:
acquiring custom information input in a frequency band information configuration interface;
acquiring a control command template;
and importing the user-defined information into a control command template to obtain a target control command.
In one embodiment, the control commands in the set of control commands are encrypted information.
A communication module frequency band setting device comprises:
the detection module is used for detecting the SIM card state information of the communication module through a preset interface;
the acquisition module is used for acquiring the identification information of the SIM card when the SIM card state information is in a ready state, and searching the identification of the target operator in the identification information comparison table according to the identification information; acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information;
and the sending module is used for sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
detecting the state information of the SIM card of the communication module through a preset interface;
when the SIM card state information is in a ready state, acquiring identification information of the SIM card, and searching a target operator identification in an identification information comparison table according to the identification information;
acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information;
and sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
detecting the state information of the SIM card of the communication module through a preset interface;
when the SIM card state information is in a ready state, acquiring identification information of the SIM card, and searching a target operator identification in an identification information comparison table according to the identification information;
acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information;
and sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information.
The communication module frequency band setting processing method, the communication module frequency band setting processing device, the computer equipment and the storage medium detect the SIM card state information of the communication module through the preset interface; when the SIM card state information is in a ready state, acquiring identification information of the SIM card, and searching a target operator identification in an identification information comparison table according to the identification information; acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information; and sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information. Therefore, the terminal can acquire corresponding target frequency band information according to the identification information of the current SIM card, and write the target frequency band information into the communication module through the control command so as to set the forbidden condition of the communication module frequency band starting. Therefore, the communication module always stores the frequency band information of the current required operator, and the storage resource of the communication module is further effectively saved.
Drawings
Fig. 1 is an application environment diagram of a frequency band setting method of a communication module in an embodiment;
fig. 2 is a schematic flow chart illustrating a method for setting a frequency band of a communication module according to an embodiment;
FIG. 3 is a flowchart illustrating a step of detecting SIM card status information of a communication module via a predetermined interface according to an embodiment;
FIG. 4 is a flowchart illustrating a step of obtaining a target control command corresponding to a target operator identity in one embodiment;
FIG. 5 is a flowchart illustrating a step of obtaining a target control command corresponding to a target operator id in another embodiment;
fig. 6 is a block diagram showing a configuration of a communication module frequency band setting apparatus according to an embodiment;
fig. 7 is a block diagram of a frequency band setting apparatus of a communication module in another embodiment;
FIG. 8 is a diagram of an 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 method for setting the frequency band of the communication module can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the communication module 104 through the 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, the terminal detects the state information of the SIM card of the communication module through a preset interface, and when the state information of the SIM card is in a ready state, the terminal acquires the identification information of the SIM card and searches the identification of the target operator in an identification information comparison table according to the identification information. And the terminal acquires a target control command corresponding to the target operator identifier and then sends the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information.
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 method for setting a frequency band of a communication module is provided, which is described by taking the method as an example of being applied to the terminal in fig. 1, and includes the following steps:
s202, detecting the SIM card state information of the communication module through a preset interface.
The communication module is connected with the terminal in a physical connection mode. 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. IMSI can be used to distinguish 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 subscriber 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 mobile network, and the value of the MSIN may be self-assigned by the mobile network operator.
The SIM card status information includes an unplugged card status, a faulty plugged card status, a locked status, an unknown status, and a ready status.
Specifically, the terminal may bind the communication module through the preset interface, and then the terminal may send an SIM card status query instruction to the communication module through the preset interface, and receive an SIM card status query result returned by the communication module, so as to detect the SIM card status information of the communication module in real time.
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 communication module may be bound through an API (Application Programming Interface) of the windows MBIM system, so that the terminal and the communication module may perform transmission of control commands and data.
And S204, when the SIM card state information is in a ready state, acquiring the identification information of the SIM card, and searching the identification of the target operator in the identification information comparison table according to the identification information.
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. The identification information comparison table records the corresponding relation between a plurality of groups of candidate identification information and operator identification. 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. 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, when the terminal determines that the SIM card status information is in the ready status according to the query result returned by the communication module, the terminal may send an identification information query instruction to the communication module through the preset interface. And after receiving the identification information query instruction, the communication module returns the identification information of the current SIM card to the terminal through a preset interface. After the terminal acquires the identification information of the current SIM card, candidate identification information which is the same as the identification information of the current SIM card can be searched in the identification information comparison table. And acquiring the operator identifier associated with the candidate identifier information as a target operator identifier corresponding to the identifier information of the current SIM card.
S206, acquiring a target control command corresponding to the target operator identifier, wherein the target control command carries target frequency band information.
The target frequency band information comprises a target network system and a target frequency band range. The network standard refers to the type of network, for example, 2G network, 3G network, 4G network, and the like. One network type corresponds to a set of frequency band ranges. The target network type includes at least one network type. The frequency Band range can be directly represented by a frequency Band interval, or can be represented by a frequency Band number, for example, the frequency Band can be represented by 2570MHZ to 2620MHZ, or can be represented by Band 38. The frequency range and the frequency range number have unique corresponding relation. The target frequency band range includes at least one of an enabled frequency band range and a disabled frequency band range. The target control command is in the format of an AT (Attention) command. The target control command is used for writing the target frequency band information into the communication module, so that the terminal can be ensured to be connected with the network through the communication module inserted with the SIM card.
Specifically, the terminal may generate and display a frequency band information configuration interface, and select whether to start frequency band information default configuration or custom configuration through an operation acting on the frequency band information configuration interface. The frequency band information configuration interface may display a default configuration selection box and a custom configuration selection box in the form of selection boxes. And acquiring operation acting on the selection frame, starting default configuration when the default configuration selection frame is in a selection state, acquiring a default control command corresponding to the target operator identifier from the control command set, and taking the default control command as a target control command. And when the user-defined configuration selection box is in a selection state, starting user-defined configuration, acquiring target frequency band information input in the input box in the form of the input box, and generating a target control command according to the target frequency band information.
In an embodiment, the terminal may generate a default control command corresponding to each operator according to all frequency band information supported by each operator, and package the default control command into a control command set to be stored locally. The default control command and the operator identifier corresponding to each operator may be associated and stored as a set of data in the control command set. Therefore, when the terminal acquires the target operator identifier corresponding to the identifier information of the current SIM card, a default control command corresponding to the target operator identifier may be acquired from the control command set, and the default control command may be used as the target control command.
In one embodiment, one default control command in the set of control commands may correspond to multiple operator identifications. And when the frequency band information corresponding to the operator A and the operator B is completely the same, the default control commands corresponding to the operator A and the operator B are the same. Thus, the operator identities of operator a and operator B may correspond to the same default control command.
S208, sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information.
Specifically, the terminal may transmit the target control command to the communication module. And the communication module sets the enabling and disabling of the corresponding frequency band according to the received target control command.
In one embodiment, after receiving the target control command and processing the target control command, the communication module may generate a processing result of the target control command and send the processing result to the terminal, and the processing result is displayed at the terminal, so that the terminal can know the frequency band setting condition in time.
In the method for setting the frequency band of the communication module, the state information of the SIM card of the communication module is detected through a preset interface; when the SIM card state information is in a ready state, acquiring identification information of the SIM card, and searching a target operator identification in an identification information comparison table according to the identification information; acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information; and sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information. Therefore, the terminal can acquire corresponding target frequency band information according to the identification information of the current SIM card, and write the target frequency band information into the communication module through the control command so as to set the forbidden condition of the communication module frequency band starting. Therefore, the communication module always stores the frequency band information of the current required operator, and the storage resource of the communication module is further effectively saved.
In one embodiment, before S202, comprising:
and establishing an identification information comparison table, wherein the identification information comparison table is used for searching the corresponding operator identification according to the identification information.
Specifically, the terminal establishes an identification information comparison table in advance, and the identification information comparison table is used for searching for a corresponding operator identification according to the identification information. By establishing the identification information comparison table in advance, subsequent use is facilitated, and the efficiency is improved.
In one embodiment, establishing the identification information comparison table 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 to obtain an identification information comparison table.
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. 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 BDA0002405763910000091
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. 3, S202 includes:
and S302, binding the communication module through a preset interface.
S304, sending a query instruction to the communication module through a preset interface.
S306, receiving a query result returned by the preset interface.
And S308, determining the SIM card state information of the communication module according to the query result.
Specifically, the terminal may bind the communication module through the preset interface, so that the communication module may perform data transmission with the terminal through the preset interface. Furthermore, the terminal can send a query instruction to the communication module through the preset interface so as to query the SIM card state information of the communication module. And after receiving the query instruction, the communication module acquires the state information of the current SIM card according to the query instruction, generates a query result and reports the query result to the terminal through a preset interface. The terminal analyzes the query result to obtain the SIM card state information of the communication module.
In the embodiment, the communication module is bound through the preset interface, so that the SIM card state information can be acquired through the preset interface, and the efficiency of detecting the SIM card state of the communication module is improved.
In one embodiment, as shown in fig. 4, S206 includes:
s402, acquiring a control command set, wherein the control command set comprises at least one operator identifier and a default control command corresponding to the operator identifier.
S404, comparing the target operator identification with the operator identification in the control command set.
S406, determining a default control command corresponding to the target operator identifier according to the comparison result, and taking the default control command corresponding to the target operator identifier as the target control command.
Specifically, when the default configuration is selected to be turned on, a control command set may be obtained, and an operator identifier that is the same as the target operator identifier may be searched in the control command set. And when the operator identifier which is the same as the target operator identifier is found in the control command set, taking the default control command corresponding to the operator identifier as the target control command corresponding to the target operator identifier.
In one embodiment, when the operator identifier identical to the target operator identifier is not found in the control command set, the custom configuration may be automatically started. And acquiring the target frequency range information input in the input frame, and generating a target control command according to the target frequency range information. Furthermore, the target control command can be updated to the control command set as a default control command corresponding to the target operator identifier, and the control command set can be expanded for subsequent use.
In an embodiment, when the operator identifier that is the same as the target operator identifier is not found in the control command set, the prompt message may be generated according to the operator identifier, and the prompt message may be displayed on the frequency band information configuration interface in a manner of at least one of video, image, voice, and text, so as to notify the user in time.
In one embodiment, the operator identities of the same operator in the comparison table of identity information and the set of control commands are the same.
In this embodiment, the default control command pre-stored locally by the target operator is used as the target control command, so that the configuration efficiency of the frequency band information can be improved.
In one embodiment, as shown in fig. 5, S206 further includes:
and S502, acquiring the custom information input in the frequency band information configuration interface.
S504, a control command template is obtained.
S506, importing the user-defined information into a control command template to obtain a target control command.
The control command template consists of common parameters and configuration parameters and is used for generating the control command. The configuration parameters are parameters for configuring frequency band information, including a network system, an enabled frequency band range and a disabled frequency band range, and are optional filling parameters. The common parameter refers to the same parameter in all control commands for setting frequency band information, and is a fixed parameter.
Specifically, when the user-defined configuration is selected to be started, a frequency band information input box can be displayed on the frequency band information configuration interface. The frequency band information input box may include input boxes of a network system, an enabled frequency band range, and a disabled frequency band range. The user can carry out input operation in the corresponding input box according to actual requirements so as to input the custom information. And the terminal detects the input operation of the user and acquires the custom information input in the frequency band information configuration interface. And the terminal acquires the control command template, introduces the custom information into the control command template and generates a target control command.
In one embodiment, when the custom configuration is selected to be opened, user permission verification can be performed on the current user. The frequency band information can be customized only through user authority verification. The authentication of the user right may specifically be authentication of identity information of the user. Different user permissions can be allocated in advance according to the identity information of the user, for example, when the user is an operator, a user-defined configured permission can be allocated to the user; when the user is a mobile phone manufacturer, the user can be assigned with the custom configuration authority; when the user is a common citizen, the user is not assigned with the self-defined configuration authority. The common citizens cannot set the frequency band information corresponding to the operator at will. Therefore, different user authorities are distributed according to the identity information of the user, and the uniqueness and the safety of the custom configuration can be ensured.
In one embodiment, the identity information of the user may be determined according to the verification code, and the operator and the terminal manufacturer may be assigned valid verification codes in advance. When the user-defined configuration is selected to be started, the frequency band information configuration interface can display a verification code input box and indicate a user to input a verification code. And when the user inputs the valid verification code, the frequency band information configuration interface displays the frequency band information input box. When the user inputs an invalid verification code, verification failure prompt information can be generated and displayed on a frequency band information configuration interface.
In the embodiment, the target control command is generated through the user-defined information and the control command template which are input in the frequency band information configuration interface, so that the flexibility of frequency band information configuration can be achieved.
In one embodiment, the control commands in the set of control commands are encrypted information.
Specifically, the encryption algorithm can be customized, and the dynamic key algorithm can be used for encryption. The control command set can be stored in the terminal in an encrypted manner, so that the security of the control command set is ensured, and the control commands in the control command set are prevented from being maliciously tampered. And after the terminal acquires the target operator identifier, the control command set can be decrypted, and a target control command corresponding to the target operator identifier is acquired from the control command set. And after the target control command is obtained, the control command set is re-encrypted in time.
In a specific embodiment, the specific process of the communication module frequency band setting method is as follows:
1. the terminal is started, the communication module is bound through the preset interface, the query instruction is sent to the communication module through the preset interface, the query result returned by the preset interface is received, and the SIM card state information of the communication module is determined according to the query result.
2. And when the SIM card state information is in a ready state, acquiring the MCC MNC of the current SIM card, and searching the target operator identifier in the identifier information comparison table according to the MCC MNC.
3. And displaying a frequency band information configuration interface, and displaying a default configuration selection frame and a custom configuration selection frame on the frequency band information configuration interface.
4. And receiving an operation acting on the selection frame to judge whether to start default configuration, if the default configuration is started, acquiring a control command set, acquiring a target control command corresponding to the target operator identifier from the control command set, and entering the step 6. If the default configuration is not turned on, step 5 is entered.
5. And (5) displaying a verification code input frame on the frequency band information configuration interface, verifying the user authority according to the input verification code, if the user authority is successfully verified, displaying the frequency band information input frame on the frequency band information configuration interface, generating a target control command according to the input frequency band information and a control command template, and entering the step 6. And if the user permission fails to be verified, generating verification failure prompt information, and displaying the verification failure prompt information on a frequency band information configuration interface.
6. And sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information.
It should be understood that the respective steps in the flowcharts in the above 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 limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. 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. 6, there is provided a communication module frequency band setting apparatus, including: a detection module 602, an acquisition module 604, and a sending module 606, wherein:
the detection module 602 is configured to detect SIM card status information of the communication module through a preset interface;
an obtaining module 604, configured to obtain identifier information of the SIM card when the SIM card status information is in a ready status, and search for a target operator identifier in the identifier information comparison table according to the identifier information; acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information;
a sending module 606, configured to send the target control command to the communication module, so that the communication module connects to the network according to the target frequency band information.
In one embodiment, as shown in fig. 7, the communication module frequency band setting apparatus further includes:
an identification information comparison table establishing module 601, configured to establish an identification information comparison table, where the identification information comparison table is used to search for a corresponding operator identifier according to the identification information.
In one embodiment, the identification information comparison table establishing module is further configured to obtain a plurality of 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 to obtain an identification information comparison table.
In one embodiment, the detection module is further configured to bind the communication module through a preset interface; sending a query instruction to a communication module through a preset interface; receiving a query result returned by a preset interface; and determining the state information of the SIM card of the communication module according to the query result.
In one embodiment, the obtaining module is further configured to obtain a control command set, where the control command set includes at least one operator identifier and a default control command corresponding to the operator identifier; comparing the target operator identification with the operator identification in the control command set; and determining a default control command corresponding to the target operator identifier according to the comparison result, and taking the default control command corresponding to the target operator identifier as the target control command.
In one embodiment, the obtaining module is further configured to obtain custom information entered in the frequency band information configuration interface; acquiring a control command template; and importing the custom information into a control command template to obtain a target control command.
In one embodiment, the control commands in the set of control commands are encrypted information.
The communication module frequency band setting processing device detects the SIM card state information of the communication module through a preset interface; when the SIM card state information is in a ready state, acquiring identification information of the SIM card, and searching a target operator identification in an identification information comparison table according to the identification information; acquiring a target control command corresponding to a target operator identifier, wherein the target control command carries target frequency band information; and sending the target control command to the communication module so that the communication module is connected with the network according to the target frequency band information. Therefore, the terminal can acquire the corresponding target frequency band information according to the identification information of the current SIM card and write the target frequency band information into the communication module through the control command so as to set the forbidden condition of the communication module frequency band starting. Therefore, the communication module always stores the frequency band information of the current required operator, and the storage resource of the communication module is further effectively saved.
For the specific limitation of the communication module frequency band setting device, reference may be made to the above limitation of the communication module frequency band setting method, which is not described herein again. All or part of each module in the communication module frequency band setting device can be realized 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. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by 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 communicating with an external terminal in a wired or wireless manner, and the wireless manner 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 method for setting a frequency band of a communication module. 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.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices 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, which includes a memory and a processor, the memory storing a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the above-mentioned communication module frequency band setting method. Here, the steps of the communication module frequency band setting method may be steps in the communication module frequency band setting methods of the above embodiments.
In one embodiment, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the steps of the above-mentioned communication module frequency band setting method. Here, the steps of the communication module frequency band setting method may be steps in the communication module frequency band setting methods 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 storage, 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, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A method for setting a frequency band of a communication module, the method comprising:
detecting the state information of the SIM card of the communication module through a preset interface; the communication module and the terminal communicate with each other in a data format specified by an MBIM protocol;
when the SIM card state information is in a ready state, acquiring identification information of the SIM card through the preset interface based on the MBIM protocol, and searching a target operator identification in an identification information comparison table according to the identification information;
acquiring a target control command corresponding to the target operator identifier, wherein the target control command carries target frequency band information; the target control command is used for writing the target frequency band information into the communication module;
and sending the target control command to the communication module so that the communication module is connected with a network according to the target frequency band information.
2. The method according to claim 1, wherein before the detecting the SIM card status information of the communication module through the preset interface, the method further comprises:
and establishing an identification information comparison table, wherein the identification information comparison table is used for searching the corresponding operator identification according to the identification information.
3. The method of claim 2, wherein the establishing the identification information lookup table 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 to obtain the identification information comparison table.
4. The method according to claim 1, wherein the detecting the SIM card status information of the communication module through the preset interface comprises:
binding the communication module through a preset interface;
sending a query instruction to the communication module through the preset interface;
receiving a query result returned by the preset interface;
and determining the state information of the SIM card of the communication module according to the query result.
5. The method of claim 1, wherein the obtaining of the target control command corresponding to the target operator identity comprises:
acquiring a control command set, wherein the control command set comprises at least one operator identifier and a default control command corresponding to the operator identifier;
comparing the target operator identification with operator identifications in a control command set;
and determining a default control command corresponding to the target operator identification according to the comparison result, and taking the default control command corresponding to the target operator identification as the target control command.
6. The method of claim 1, wherein the obtaining the target control command corresponding to the target operator identifier comprises:
acquiring custom information input in a frequency band information configuration interface;
acquiring a control command template;
and importing the user-defined information into the control command template to obtain the target control command.
7. The method of claim 5, wherein the control commands in the set of control commands are encrypted information.
8. A communication module frequency band setting apparatus, comprising:
the detection module is used for detecting the SIM card state information of the communication module through a preset interface; the communication module and the terminal communicate with each other in a data format specified by an MBIM protocol;
the acquisition module is used for acquiring the identification information of the SIM card through the preset interface based on the MBIM protocol when the state information of the SIM card is in a ready state, and searching the identification of a target operator in an identification information comparison table according to the identification information; acquiring a target control command corresponding to the target operator identifier, wherein the target control command carries target frequency band information; the target control command is used for writing the target frequency band information into the communication module;
and the sending module is used for sending the target control command to the communication module so as to enable the communication module to be connected with a network according to the target frequency band information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
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.
CN202010160957.8A 2020-03-10 2020-03-10 Communication module frequency band setting method and device, computer equipment and storage medium Active CN111510910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010160957.8A CN111510910B (en) 2020-03-10 2020-03-10 Communication module frequency band setting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010160957.8A CN111510910B (en) 2020-03-10 2020-03-10 Communication module frequency band setting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111510910A CN111510910A (en) 2020-08-07
CN111510910B true CN111510910B (en) 2023-03-14

Family

ID=71877671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010160957.8A Active CN111510910B (en) 2020-03-10 2020-03-10 Communication module frequency band setting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111510910B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112423288B (en) * 2020-10-28 2024-03-15 深圳市广和通无线股份有限公司 Dialing analysis method, device, computer equipment and storage medium
CN112689279B (en) * 2020-12-31 2022-07-01 杭州拓深科技有限公司 Method for reducing power consumption of NB-IoT (NB-IoT) equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2473267A (en) * 2009-09-07 2011-03-09 Nokia Corp Processing audio signals to reduce noise
CN107750059A (en) * 2017-12-05 2018-03-02 宇龙计算机通信科技(深圳)有限公司 A kind of frequency band searching method and relevant device
CN108990094A (en) * 2018-07-13 2018-12-11 广州世炬网络科技有限公司 A kind of IoT Internet of Things signal contrast analytical equipment and method
CN109041083A (en) * 2018-07-26 2018-12-18 南京华苏科技有限公司 Wireless network information acquisition method and device based on NB network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102552862B1 (en) * 2016-07-19 2023-07-07 삼성전자 주식회사 Method and apparatus for communicating in a wireless communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2473267A (en) * 2009-09-07 2011-03-09 Nokia Corp Processing audio signals to reduce noise
CN107750059A (en) * 2017-12-05 2018-03-02 宇龙计算机通信科技(深圳)有限公司 A kind of frequency band searching method and relevant device
CN108990094A (en) * 2018-07-13 2018-12-11 广州世炬网络科技有限公司 A kind of IoT Internet of Things signal contrast analytical equipment and method
CN109041083A (en) * 2018-07-26 2018-12-18 南京华苏科技有限公司 Wireless network information acquisition method and device based on NB network

Also Published As

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

Similar Documents

Publication Publication Date Title
US11153746B2 (en) Method and terminal for keeping subscriber identity module card in standby state
US9485252B2 (en) Apparatuses, methods and systems for virtualizing a reprogrammable universal integrated circuit chip
CN111510909B (en) Communication module configuration processing method and device, computer equipment and storage medium
CN104967997A (en) Wireless network accessing method, Wi-Fi equipment, terminal equipment and system
US9603189B2 (en) Method and apparatus for multisim devices with embedded SIM functionality
CN111586671B (en) Embedded user identification card configuration method and device, communication equipment and storage medium
WO2020057400A1 (en) Multi-card roaming network registration method and apparatus, computer device and storage medium
KR20200017175A (en) Electronic device, external electronic device and method for managing embedded subscriber identity module of the external electronic device
CN111510910B (en) Communication module frequency band setting method and device, computer equipment and storage medium
US20200236533A1 (en) Apparatuses, methods and systems for virtualizing a reprogrammable universal integrated circuit chip
CN108430092A (en) Obtain, provide method, equipment and the medium of wireless access point access information
CN109286933B (en) Authentication method, device, system, computer equipment and storage medium
CN110475242A (en) A kind of LTE network register method, device, storage medium and computer equipment
CN107750059B (en) Frequency band searching method and related equipment
KR20140033213A (en) Method for accessing at least one service and corresponding system
KR100628048B1 (en) Method for Changing SIM Lock Information in Wireless Communication Device
AU2010288520B2 (en) A chip card, an electronic system, a method being implemented by a chip card and a computer program product
US10251122B2 (en) Method for switching from a first to a second mobile network operator and corresponding device
US10285193B2 (en) Wireless communication system and wireless apparatus
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
CN105430738A (en) Method and device for initiating registration
CN112188591B (en) Network access method, device, computer equipment and storage medium
KR20180031287A (en) User equipment to personalize the use of the service and operationg method thereof
CN108769989B (en) Wireless network connection method, wireless access device and equipment

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