CN111510318B - Positioning information configuration method, device, communication equipment and storage medium - Google Patents

Positioning information configuration method, device, communication equipment and storage medium Download PDF

Info

Publication number
CN111510318B
CN111510318B CN202010160219.3A CN202010160219A CN111510318B CN 111510318 B CN111510318 B CN 111510318B CN 202010160219 A CN202010160219 A CN 202010160219A CN 111510318 B CN111510318 B CN 111510318B
Authority
CN
China
Prior art keywords
positioning information
information
positioning
configuration
version
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
CN202010160219.3A
Other languages
Chinese (zh)
Other versions
CN111510318A (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 CN202010160219.3A priority Critical patent/CN111510318B/en
Publication of CN111510318A publication Critical patent/CN111510318A/en
Application granted granted Critical
Publication of CN111510318B publication Critical patent/CN111510318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • 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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • 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 positioning information configuration method, a positioning information configuration device, a communication device and a storage medium. The method comprises the following steps: acquiring the identification information of the current user identification card; acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode; acquiring priorities of various configuration modes and version information of each group of positioning information; determining target positioning information according to the priorities of various configuration modes and version information of each group of positioning information; and configuring the target positioning information as working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information. The method can improve the flexibility and convenience of positioning information configuration.

Description

Positioning information configuration method, device, communication equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a positioning information configuration method, a positioning information configuration device, a communication device, and a storage medium.
Background
With the development of communication technology, more and more communication modules are presented, and most of the communication modules support a positioning function. The positioning function is implemented by configuring relevant positioning parameters within the communication module.
In the traditional method, when positioning is started, the terminal configures positioning parameters of the communication module according to configuration contents of an XML (Extensible Markup Language extensible markup language) file in a GNSS (Global Navigation Satellite System, global satellite navigation system) driver. However, the configuration content of the XML file in the GNSS driver is single and fixed, and is only suitable for configuring the general positioning parameters, and the flexibility is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a positioning information configuration method, apparatus, communication device, and storage medium that can improve flexibility in positioning information configuration.
A positioning information configuration method, the method comprising:
acquiring the identification information of the current user identification card;
acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode;
acquiring priorities of various configuration modes and version information of each group of positioning information;
determining target positioning information according to the priorities of various configuration modes and version information of each group of positioning information;
and configuring the target positioning information as working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information.
In one embodiment, determining the target positioning information according to the priorities of the various configuration modes and the version information of each set of positioning information includes:
comparing the version information of each group of positioning information to obtain a comparison result;
when the comparison results are different, determining target version information from the version information of each group of positioning information according to preset rules;
positioning information corresponding to the target version information is used as target positioning information;
when the comparison results are the same, determining a target configuration mode according to the priorities of various configuration modes;
and taking the positioning information corresponding to the target configuration mode as target positioning information.
In one embodiment, comparing the version information of each set of positioning information is initiated after validity verification is performed on the version information of each set of positioning information and verification is passed; validity verification includes at least one of length verification and version number verification of version information.
In one embodiment, the method further comprises:
acquiring updated positioning information, wherein the updated positioning information has a corresponding configuration mode and an operator identifier;
acquiring a positioning information set corresponding to an operator identifier;
matching the configuration mode corresponding to the updated positioning information with the configuration mode corresponding to each group of positioning information in the positioning information set corresponding to the operator identifier;
When the matching is successful, the positioning information which is successfully matched is replaced by updated positioning information;
and when the matching fails, adding the updated positioning information into the positioning information set corresponding to the operator identifier.
In one embodiment, when the matching is successful, replacing the positioning information of the successful matching with the updated positioning information includes:
the method comprises the steps of obtaining version information of positioning information successfully matched, and obtaining version information of updated positioning information;
determining the latest version information from the version information of the updated positioning information and the version information of the successfully matched positioning information according to a preset rule;
and when the latest version information is the version information corresponding to the updated positioning information, replacing the successfully matched positioning information with the updated positioning information.
In one embodiment, the method further comprises:
acquiring state information of each group of positioning information;
and determining the configuration mode corresponding to each group of positioning information according to the state information.
In one embodiment, the configuration mode includes at least one of control command configuration, firmware configuration file configuration and drive configuration file configuration, the priority corresponding to the control command configuration is highest, and the priority corresponding to the drive configuration file configuration is lowest.
A positioning information configuration apparatus, the apparatus comprising:
the acquisition module is used for acquiring the identification information of the current user identification card; acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode; acquiring priorities of various configuration modes and version information of each group of positioning information;
the target positioning information determining module is used for determining target positioning information according to the priorities of various configuration modes and the version information of each group of positioning information;
the target positioning information configuration module is used for configuring the target positioning information into working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information.
In one embodiment, the object positioning information determining module includes:
the version information comparison unit is used for comparing the version information of each group of positioning information to obtain a comparison result;
the target positioning information determining unit is used for determining target version information from the version information of each group of positioning information according to a preset rule when the comparison result is different; positioning information corresponding to the target version information is used as target positioning information; when the comparison results are the same, determining a target configuration mode according to the priorities of various configuration modes; and taking the positioning information corresponding to the target configuration mode as target positioning information.
In one embodiment, comparing the version information of each set of positioning information is initiated after validity verification is performed on the version information of each set of positioning information and verification is passed; validity verification includes at least one of length verification and version number verification of version information.
In one embodiment, the apparatus further comprises:
the positioning information set updating module is used for acquiring updated positioning information, wherein the updated positioning information has a corresponding configuration mode and an operator identifier; acquiring a positioning information set corresponding to an operator identifier; matching the configuration mode corresponding to the updated positioning information with the configuration mode corresponding to each group of positioning information in the positioning information set corresponding to the operator identifier; when the matching is successful, the positioning information which is successfully matched is replaced by updated positioning information; and when the matching fails, adding the updated positioning information into the positioning information set corresponding to the operator identifier.
In one embodiment, the positioning information set updating module is further configured to obtain version information of positioning information successfully matched, and obtain version information of updated positioning information; determining the latest version information from the version information of the updated positioning information and the version information of the successfully matched positioning information according to a preset rule; and when the latest version information is the version information corresponding to the updated positioning information, replacing the successfully matched positioning information with the updated positioning information.
In one embodiment, the obtaining module is further configured to obtain status information of each set of positioning information; and determining the configuration mode corresponding to each group of positioning information according to the state information.
A communication device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring the identification information of the current user identification card;
acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode;
acquiring priorities of various configuration modes and version information of each group of positioning information;
determining target positioning information according to the priorities of various configuration modes and version information of each group of positioning information;
and configuring the target positioning information as working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring the identification information of the current user identification card;
acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode;
Acquiring priorities of various configuration modes and version information of each group of positioning information;
determining target positioning information according to the priorities of various configuration modes and version information of each group of positioning information;
and configuring the target positioning information as working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information.
The positioning information configuration method, the positioning information configuration device, the communication equipment and the storage medium are used for acquiring the identification information of the current user identification card; acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode; acquiring priorities of various configuration modes and version information of each group of positioning information; determining target positioning information according to the priorities of various configuration modes and version information of each group of positioning information; and configuring the target positioning information as working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information. The positioning information can support configuration in various configuration modes, and the flexibility is high. And the target positioning information can be rapidly determined from the positioning information configured in various configuration modes according to the priorities of the various configuration modes and the version information of each group of positioning information, so that the convenience of positioning information configuration is improved.
Drawings
FIG. 1 is an application environment diagram of a positioning information configuration method in one embodiment;
FIG. 2 is a flow chart of a positioning information configuration method according to an embodiment;
FIG. 3 is a flowchart illustrating steps for determining target location information according to priorities of various configuration modes and version information of various sets of location information in one embodiment;
FIG. 4 is a flow diagram of updating a set of positioning information in one embodiment;
FIG. 5 is a flowchart illustrating a step of replacing the successfully matched location information with updated location information when the matching is successful in one embodiment;
FIG. 6 is a flowchart illustrating a configuration method for determining positioning information according to an embodiment;
FIG. 7 is a block diagram of a positioning information configuration device in one embodiment;
fig. 8 is an internal structural diagram of a communication 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 will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The positioning information configuration method provided by the application can be applied to an application environment shown in fig. 1. The terminal 102 may communicate with the communication module 104 via PCIe (peripheral component interconnect express, high speed serial computer expansion bus standard) or USB (Universal Serial Bus ). Wherein USB is, for example, USB3.0. Of course, the terminal 102 and the communication module 104 may also communicate by other means, which is not limited herein.
The terminal may send an AT (Attention) command to the communication module to configure the positioning information. The terminal may be provided with a software burning tool, and the corresponding FW (Firmware) software package may be obtained by the software burning tool and burned into the memory of the communication module. The communication module reads FW package configuration location information from the memory. The memory may be an internal memory such as flash memory. The terminal can be provided with a GNSS driver, and sends an AT command to the communication module for configuring positioning information according to the configuration content of the XML file in the GNSS driver.
Specifically, the terminal may configure the positioning information of the communication module in various configuration manners. Positioning information configured in various configurations is stored in a memory of the communication module. The communication module includes an application program, a user identification card, and a memory. The application program can acquire the identification information of the current user identification card and a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode. The application program can acquire the priorities of the various configuration modes and the version information of each group of positioning information, and determine the target positioning information according to the priorities of the various configuration modes and the version information of each group of positioning information. Furthermore, the application program configures the target positioning information as working positioning information of the communication module, so that the communication module starts a positioning function according to the target positioning information. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the communication module may be, but not limited to, a 2G module, a 3G module, a 4G module, and a 5G module.
In one embodiment, as shown in fig. 2, a positioning information configuration method is provided, and an application of the method in fig. 1 is taken as an example for explanation, and the method includes the following steps:
s202, obtaining the identification information of the current user identification card.
The current user identification card refers to a user identification card currently used in the communication module. The communication module refers to a module having a communication function and a positioning function, such as a 4G module. The subscriber identity card refers to various types of SIM (Subscriber Identity Module) cards, such as a conventional SIM card or an eSIM (Embedded SIM) card. The SIM card includes an IMSI (International Mobile Subscriber Identity ), a mobile subscriber's key and privacy algorithm, memory space available to the mobile subscriber, etc. IMSI may be used to distinguish mobile subscribers in a cellular network. The IMSI is a non-duplicate identity in all cellular networks. The IMSI is made up of a string of decimal numbers, with a maximum length of 15 digits. The IMSI is formed by connecting MCC (Mobile Country Code ), MNC (Mobile Network Code, mobile network code) and MSIN (Mobile Subscription Identification Number, mobile subscriber identity code) in order. The MCC may uniquely identify the country to which the mobile subscriber belongs, the MCC being 3 digits in length. MNC may be used to distinguish the mobile network to which the mobile subscriber belongs, and MNC length may be determined by the value of MCC, which 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 identification information of the current subscriber identity card refers to HNI (Home Network Identity, home network identification code) for identifying the mobile network operator to which the mobile subscriber belongs. HNI is composed of MCC and MNC.
In one embodiment, the application program may send an identification information acquisition request to the current subscriber identity card, and after the current subscriber identity card receives the identification information acquisition request, the application program may acquire identification information according to the identification information acquisition request and send the identification information to the application program. The application program can receive the identification information returned by the current user identification card.
In one embodiment, the current subscriber identity card may actively send identification information to the application. When the SIM card is switched, the identification information of the switched SIM card can be actively sent to the application program. For example, the user identification card a is switched to the user identification card B, and the user identification card B actively transmits the identification information to the application program.
S204, a positioning information set corresponding to the identification information is obtained, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode.
The positioning information refers to parameter information for realizing a positioning function. The positioning information may include AGPS certificates and AGPS parameters. The AGPS certificate is an identification at the time of starting the positioning function and is used for marking the identity information of the communication module. The AGPS certificate may specifically include a character string of at least one of letters, numbers, and symbols. The AGPS parameters refer to parameters for implementing a positioning function, and include parameters such as an AGPS function switch, an AGPS certificate switch, an AGPS server address, a type, a port number, a version number, and the like.
The positioning information has corresponding operator identification and configuration modes. The operator identifier is an identifier, and is used for uniquely identifying an operator corresponding to the positioning information, and may specifically include a character string of at least one character of letters, numbers and symbols.
The configuration mode is a method for configuring positioning information, and comprises control command configuration, firmware configuration file configuration and drive configuration file configuration. The control command configuration refers to an AT (Attention) command configuration mode. The user can configure the AGPS certificate and the AT command of AGPS parameters according to the standard AT command interface and the document manual in a self-defined way, thereby achieving the configuration uniqueness. Firmware profile configuration refers to a FW profile configuration mode, in which a configuration file integrated with an AGPS certificate and an AGPS parameter-related command is converted into an upgradeable FW image (FW software package), and the FW image is imported into the memory of the communication module through an upgrade tool (software burning tool). Because of the difference of network parameters of different operators in each country, the situation that different operator environments need to configure different AGPS certificates and AGPS parameters can occur, and the FW configuration file configuration scheme can be used under the scene to meet the requirement of the difference of the environment parameters of different operators. Different operators correspond to different FW software packages, and the configuration of the driving configuration file refers to the configuration mode of the driving XML file. And issuing a series of AT commands to configure AGPS certificates and AGPS parameters in the module according to the configuration content of the XML file in the GNSS driver. One set of positioning information corresponds to one configuration mode. Positioning information corresponding to the same operator identifier forms a positioning information set.
Specifically, the positioning information configured in various configurations is stored in the memory of the communication module. After the application program obtains the identification information of the current user identification card, the application program determines the operator identification corresponding to the current user identification card according to the identification information. Furthermore, the application program obtains the positioning information corresponding to the operator identifier from the memory of the communication module to form a positioning information set.
In one embodiment, the terminal stores an identification information lookup table. The identification information comparison table records the corresponding relation between a plurality of groups of identification information and the operator identification. One operator identifier may correspond to a plurality of identifier information, one operator identifier may also correspond to one identifier information, and a specific correspondence may be determined according to actual situations of each operator. For example, MCC MNC corresponding to chinese movement includes 460 02, 460 00, 460 07. The application program can acquire the identification information comparison table from the terminal, compare the identification information of the current user identification card with the identification information in the identification information comparison table, and determine the operator identification corresponding to the identification information of the current user identification card.
In one embodiment, the positioning information and the operator identifier may be stored in association in a memory of the communication module, and the corresponding positioning information may be found according to the operator identifier, to form a positioning information set.
In one embodiment, the location parameters configured by the driver profile configuration may default to general location parameters. The universal positioning parameters correspond to all the operator identifiers by default, so that each positioning information set comprises the same positioning parameters configured by the configuration mode of the driving configuration file.
S206, acquiring priorities of various configuration modes and version information of each group of positioning information.
S208, determining target positioning information according to the priorities of various configuration modes and the version information of each group of positioning information.
S210, configuring the target positioning information as working positioning information of the communication module, so that the communication module starts a positioning function according to the target positioning information.
The priorities of the various configuration modes are preset in the application program. Version information refers to versions of respective sets of positioning information. The version information may consist of an operator identity and a version number, e.g. 1-001,1 for the operator identity and 001 for the version number. The same version information may correspond to different positioning information. Because the number of parameter forms in the positioning information is relatively large and the positioning information is relatively complex, if one parameter is changed, the version information is updated too quickly, and further the version information is messy and is difficult to manage. Therefore, parameters in the positioning information are classified in advance into basic parameters and non-basic parameters. When basic parameters in the positioning information change, version information is updated, so that the version information is concise and easy to manage.
Specifically, the application program obtains version information of each set of positioning information, and uses positioning information corresponding to the latest version information as target positioning information through comparison of the version information of each set of positioning information. When the version information of each group of positioning information is the same, the positioning information configured in the configuration mode with the highest priority is selected as the target positioning information according to the priority of the configuration mode. The application program takes the target positioning information into effect as the working positioning parameter configuration of the communication module, so that the communication module starts the positioning function according to the target positioning information.
In one embodiment, the priority of the control command configuration is highest, the priority of the firmware configuration is next highest, and the priority of the drive configuration is lowest. Because the control command configuration mode is to autonomously configure the positioning information according to the self requirement of the user, the priority of the control command configuration mode is set to be the highest, thereby preferentially meeting the requirement of the user, preferentially dynamically setting the positioning information according to the actual requirement of the user, and ensuring the uniqueness of the positioning information configuration.
In one embodiment, the terminal may send a configuration mode priority modification request to the application program, where the configuration mode priority modification request carries modification information, and the application program modifies the historical configuration mode priority according to the modification information. The priority of the historical configuration mode refers to the priority corresponding to various configuration modes before modification. The modification information may include a configuration to be modified and a corresponding priority to be modified.
In the positioning information configuration method, the identification information of the current user identification card is obtained; acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode; acquiring priorities of various configuration modes and version information of each group of positioning information; determining target positioning information according to the priorities of various configuration modes and version information of each group of positioning information; and configuring the target positioning information as working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information. The positioning information can support configuration in various configuration modes, and the flexibility is high. And the target positioning information can be rapidly determined from the positioning information configured in various configuration modes according to the priorities of the various configuration modes and the version information of each group of positioning information, so that the convenience of positioning information configuration is improved.
In one embodiment, as shown in fig. 3, S206, determining the target positioning information according to the priorities of the various configurations and the version information of each set of positioning information includes:
s302, comparing version information of each group of positioning information to obtain a comparison result.
And S304, when the comparison result is different, determining target version information from the version information of each group of positioning information according to a preset rule.
S306, positioning information corresponding to the target version information is used as target positioning information.
And S308, when the comparison results are the same, determining a target configuration mode according to the priorities of the various configuration modes.
S310, positioning information corresponding to the target configuration mode is used as target positioning information.
Specifically, the application program obtains version information of each set of positioning information, and the latest version of positioning information is used as target positioning information through comparison of the version information of each set of positioning information. The preset rule may be that the larger the version number value, the newer the version. Therefore, the positioning information corresponding to the version number with the largest value is used as the target positioning information through the numerical comparison of the version numbers in the version information. When the version numbers of the positioning information of each group are the same, the positioning information configured in the configuration mode with the highest priority is selected as the target positioning information according to the priority of the configuration mode. For example, there are two sets of positioning information with the same version information, one set of positioning information corresponds to a control command configuration mode, and the other set of positioning information corresponds to a firmware configuration file configuration mode. And if the priority of the control command configuration mode is highest, taking the positioning information configured by the control command as target positioning information.
In this embodiment, by comparing the version information, the latest version of positioning information can be used as the target positioning information, so as to ensure that the communication module starts the positioning function according to the latest positioning information. When the version information is the same, the positioning information with the highest priority is used as target positioning information, so that the communication module automatically determines the target positioning information according to the priority, and the convenience of positioning information configuration is improved.
In one embodiment, comparing the version information of each set of positioning information is initiated after validity verification is performed on the version information of each set of positioning information and verification is passed; the validity verification includes at least one of a length verification and a version number verification of the version information.
Specifically, after the application program obtains the version information of each set of positioning information, validity verification is performed on the version information of each set of positioning information, and if the verification is passed, comparison of the version information of each set of positioning information is continued. In particular, a plurality of conditions may be verified at the time of verification, and verification is passed when the plurality of conditions are all satisfied.
The application program performs validity verification on the version information, specifically, may check whether the length of the version information accords with a preset length. For example, when the length of the version information exceeds a preset length threshold, the version information is invalid version information. The preset length threshold may be a custom value, for example 4.
The application program performs validity verification on the version information, specifically, may check whether the version number accords with a preset format. For example, when the version number is 200, the version information corresponding to the version number is invalid version information.
The location information corresponding to the invalid version information is determined as invalid location information, and the invalid location information cannot be configured as working location information of the communication module. The application program can delete the invalid positioning information, and the effective utilization rate of the storage resources of the communication module is improved.
In this embodiment, after the application program obtains the version information of each group of positioning information, validity verification is performed on the version information, and if the verification is passed, version information comparison is initiated, so that the target positioning information can be ensured to be effective positioning information, and accuracy of the positioning information is ensured.
In one embodiment, as shown in fig. 4, the method further comprises:
s402, obtaining updated positioning information, wherein the updated positioning information has a corresponding configuration mode and an operator identifier.
S404, acquiring a positioning information set corresponding to the operator identification.
And S406, matching the configuration mode corresponding to the updated positioning information with the configuration mode corresponding to each group of positioning information in the positioning information set corresponding to the operator identification.
And S408, when the matching is successful, replacing the positioning information which is successfully matched with the updated positioning information.
And S410, when the matching fails, adding the updated positioning information into the positioning information set corresponding to the operator identifier.
The updated positioning information is the positioning information sent to the communication module by the terminal and is used for updating the historical positioning information. The historical positioning information refers to the positioning information stored in the communication module in the prior art. The user can configure the updated positioning information in any configuration mode.
Specifically, the application program obtains updated positioning information sent by the terminal, and obtains an operator identifier corresponding to the updated positioning information. The application program obtains the positioning information set corresponding to the operator identifier from the memory of the communication module. And adding the updated positioning information into the positioning information set when the configuration mode corresponding to the updated positioning information is different from the configuration modes corresponding to all the positioning information in the positioning information set. When the configuration mode corresponding to a certain group of positioning information in the positioning information set is the same as the configuration mode corresponding to the updated positioning information, the group of positioning information is replaced by the updated positioning information, namely the updated positioning information is utilized to update the group of positioning information.
In this embodiment, by acquiring updated positioning information, a corresponding configuration mode and an operator identifier exist in the updated positioning information; acquiring a positioning information set corresponding to an operator identifier; matching the configuration mode corresponding to the updated positioning information with the configuration mode corresponding to each group of positioning information in the positioning information set corresponding to the operator identifier; when the matching is successful, the positioning information which is successfully matched is replaced by updated positioning information; when the matching fails, the updated positioning information is added into the positioning information set corresponding to the updated positioning information, so that only one group of positioning information corresponding to one configuration mode in the positioning information set can be achieved, and the storage resources of the communication module memory are saved.
In one embodiment, as shown in fig. 5, S406, that is, when the matching is successful, replaces the positioning information that is successfully matched with the updated positioning information, includes:
s502, acquiring version information of positioning information successfully matched, and acquiring version information of updated positioning information.
S504, determining the latest version information from the version information of the updated positioning information and the version information of the successfully matched positioning information according to a preset rule.
S506, when the latest version information is the version information corresponding to the updated positioning information, the successfully matched positioning information is replaced by the updated positioning information.
Specifically, when the configuration mode corresponding to a certain group of positioning information in the positioning information set is the same as the configuration mode corresponding to the updated positioning information, the application program may compare the group of positioning information with the version information of the updated positioning information. When the version information of the updated positioning information is newer than the version information of the set of positioning information, the set of positioning information may be replaced with the updated positioning information. When the version information of the set of positioning information is newer than the version information of the updated positioning information, the updated positioning information is deleted.
In one embodiment, comparing the set of location information with version information of the updated location information may be initiated after validity verification of the set of location information and version information of the updated location information is verified and passed. Validity verification includes at least one of length verification and version number verification of version information.
In this embodiment, version information of updated positioning information is obtained by obtaining version information of positioning information successfully matched; determining the latest version information from the version information of the updated positioning information and the version information of the successfully matched positioning information according to a preset rule; when the latest version information is the version information corresponding to the updated positioning information, the successfully matched positioning information is replaced by the updated positioning information, so that the positioning information stored in the communication module can be ensured to be the latest version positioning information under various configuration modes.
In one embodiment, as shown in fig. 6, the method further comprises:
s602, acquiring state information of each group of positioning information.
S604, determining the configuration mode corresponding to each group of positioning information according to the state information.
The state information is a state flag of the positioning information and is used for marking a configuration mode corresponding to the positioning information.
Specifically, the positioning information includes status information. The application program obtains the state information of each group of positioning information, and determines the configuration mode corresponding to each group of positioning information according to the state information.
In one embodiment, the status information may be a 2bit flag bit, "00" for control command configuration, "01" for firmware profile configuration, and "10" for drive profile configuration.
In this embodiment, the configuration mode corresponding to each set of positioning information may be quickly determined according to the state information, so that the target configuration mode is conveniently determined according to the priority of the configuration mode.
In a specific embodiment, a positioning information configuration method is provided, which mainly includes the following steps:
step 1: the application program reads the identification information corresponding to the current SIM card, and determines the operator identification corresponding to the current SIM card according to the identification information.
Step 2: the application program reads a plurality of sets of positioning information corresponding to the operator identification from a memory of the communication module, and each set of positioning information has a corresponding configuration mode.
Step 3: and the application program reads the version information of each group of positioning information and performs validity verification of the version information.
Step 4: after the validity verification is passed, the application program compares the version information, and configures the positioning information of the latest version as the working positioning information of the communication module, so that the communication module starts the positioning function according to the positioning information. When the version information of each set of positioning information is the same, step 5 is performed.
Step 5: the application program obtains positioning information corresponding to the configuration mode with the highest priority from each group of positioning information according to the priorities of the configuration modes, and configures the positioning information corresponding to the configuration mode with the highest priority as working positioning information of the communication module, so that the communication module starts a positioning function according to the positioning information.
It should be understood that, although the steps in the flowcharts of the above embodiments are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments 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 the steps or stages performed is not necessarily sequential, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 7, there is provided a positioning information configuration apparatus including: an acquisition module 702, a target location information determination module 704, and a target location information configuration module 706, wherein:
an obtaining module 702, configured to obtain identification information of a current subscriber identity module; acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode; and acquiring priorities of various configuration modes and version information of each group of positioning information.
The target positioning information determining module 704 is configured to determine target positioning information according to priorities of various configuration modes and version information of each set of positioning information.
The target positioning information configuration module 706 is configured to configure the target positioning information as working positioning information of the communication module, so that the communication module starts a positioning function according to the target positioning information.
In one embodiment, the object location information determination module 704 includes:
and the version information comparison unit is used for comparing the version information of each group of positioning information to obtain a comparison result.
The target positioning information determining unit is used for determining target version information from the version information of each group of positioning information according to a preset rule when the comparison result is different; positioning information corresponding to the target version information is used as target positioning information; when the comparison results are the same, determining a target configuration mode according to the priorities of various configuration modes; and taking the positioning information corresponding to the target configuration mode as target positioning information.
In one embodiment, comparing the version information of each set of positioning information is initiated after validity verification is performed on the version information of each set of positioning information and verification is passed; validity verification includes at least one of length verification and version number verification of version information.
In one embodiment, the apparatus further comprises:
the positioning information set updating module is used for acquiring updated positioning information, wherein the updated positioning information has a corresponding configuration mode and an operator identifier; acquiring a positioning information set corresponding to an operator identifier; matching the configuration mode corresponding to the updated positioning information with the configuration mode corresponding to each group of positioning information in the positioning information set corresponding to the operator identifier; when the matching is successful, the positioning information which is successfully matched is replaced by updated positioning information; and when the matching fails, adding the updated positioning information into the positioning information set corresponding to the operator identifier.
In one embodiment, the positioning information set updating module is further configured to obtain version information of positioning information that is successfully matched, and obtain version information of updated positioning information; determining the latest version information from the version information of the updated positioning information and the version information of the successfully matched positioning information according to a preset rule; and when the latest version information is the version information corresponding to the updated positioning information, replacing the successfully matched positioning information with the updated positioning information.
In one embodiment, the obtaining module 702 is further configured to obtain status information of each set of positioning information; and determining the configuration mode corresponding to each group of positioning information according to the state information.
In one embodiment, the configuration mode includes at least one of a control command configuration, a firmware configuration file configuration, and a drive configuration file configuration, where the control command configuration has the highest priority and the drive configuration file configuration has the lowest priority.
For specific limitations of the positioning information configuring apparatus, reference may be made to the above limitations of the positioning information configuring method, and no further description is given here. The above-described respective modules in the positioning information configuring apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the communication device, or may be stored in software in a memory in the communication device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a communication device is provided, which may be a communication module, such as a 4G module. The internal structure thereof can be shown in fig. 8. The communication device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the communication device is configured to provide computing and control capabilities. The memory of the communication device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the communication device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a positioning information configuration method. It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the communication device to which the present application is applied, and that a particular communication device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, a communication device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the positioning information configuration method described above when executing the computer program.
In some embodiments, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the positioning information configuration method described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile 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 (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A positioning information configuration method, the method comprising:
acquiring the identification information of the current user identification card;
acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode;
acquiring priorities of various configuration modes and version information of each group of positioning information;
Determining target positioning information according to the priorities of the various configuration modes and the version information of each group of positioning information;
and configuring the target positioning information into working positioning information of a communication module so that the communication module starts a positioning function according to the target positioning information.
2. The method of claim 1, wherein determining the target positioning information according to the priorities of the various configurations and the version information of each set of positioning information comprises:
comparing the version information of each group of positioning information to obtain a comparison result;
when the comparison results are different, determining target version information from the version information of each group of positioning information according to a preset rule;
positioning information corresponding to the target version information is used as the target positioning information;
when the comparison results are the same, determining a target configuration mode according to the priorities of the various configuration modes;
and taking the positioning information corresponding to the target configuration mode as the target positioning information.
3. The method of claim 2, wherein the comparing the version information of the sets of positioning information is initiated after validity verification of the version information of the sets of positioning information and verification passes; the validity verification includes at least one of a length verification and a version number verification of the version information.
4. The method according to claim 1, wherein the method further comprises:
acquiring updated positioning information, wherein the updated positioning information has a corresponding configuration mode and an operator identifier;
acquiring a positioning information set corresponding to the operator identifier;
matching the configuration mode corresponding to the updated positioning information with the configuration mode corresponding to each group of positioning information in the positioning information set corresponding to the operator identifier;
when the matching is successful, the positioning information which is successfully matched is replaced by the updated positioning information;
and when the matching fails, adding the updated positioning information into a positioning information set corresponding to the operator identifier.
5. The method of claim 4, wherein said replacing successfully matched location information with said updated location information when a match is successful comprises:
the version information of the successfully matched positioning information is obtained, and the version information of the updated positioning information is obtained;
determining the latest version information from the version information of the updated positioning information and the version information of the positioning information successfully matched according to a preset rule;
and when the latest version information is the version information corresponding to the updated positioning information, replacing the successfully matched positioning information with the updated positioning information.
6. The method according to claim 1, wherein the method further comprises:
acquiring state information of each group of positioning information;
and determining the configuration mode corresponding to each group of positioning information according to the state information.
7. The method of claim 1, wherein the configuration comprises at least one of a control command configuration, a firmware configuration, and a driver configuration, the control command configuration having a highest priority and the driver configuration having a lowest priority.
8. A positioning information configuration apparatus, the apparatus comprising:
the acquisition module is used for acquiring the identification information of the current user identification card; acquiring a positioning information set corresponding to the identification information, wherein the positioning information set comprises a plurality of groups of positioning information, and each group of positioning information has a corresponding configuration mode; acquiring priorities of various configuration modes and version information of each group of positioning information;
the target positioning information determining module is used for determining target positioning information according to the priorities of the various configuration modes and the version information of each group of positioning information;
and the target positioning information configuration module is used for configuring the target positioning information into working positioning information of the communication module so that the communication module starts a positioning function according to the target positioning information.
9. A communication device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202010160219.3A 2020-03-10 2020-03-10 Positioning information configuration method, device, communication equipment and storage medium Active CN111510318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010160219.3A CN111510318B (en) 2020-03-10 2020-03-10 Positioning information configuration method, device, communication equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010160219.3A CN111510318B (en) 2020-03-10 2020-03-10 Positioning information configuration method, device, communication equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111510318A CN111510318A (en) 2020-08-07
CN111510318B true CN111510318B (en) 2023-05-09

Family

ID=71863969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010160219.3A Active CN111510318B (en) 2020-03-10 2020-03-10 Positioning information configuration method, device, communication equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111510318B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933869A (en) * 2016-06-30 2016-09-07 北京小米移动软件有限公司 Terminal positioning method and device, as well as terminal server

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068161A (en) * 2007-06-26 2007-11-07 中兴通讯股份有限公司 Method for dynamic generating network equipment configuration strategic group
CN102630081B (en) * 2012-03-22 2015-03-11 华为终端有限公司 Operator configuration information loading method and terminal
CN107124710A (en) * 2017-03-30 2017-09-01 天津泰岳小漫科技有限公司 Identification card distribution method and device
CN107172610B (en) * 2017-05-25 2020-08-14 宇龙计算机通信科技(深圳)有限公司 GSM network self-adaption method and device and electronic equipment
CN107295503B (en) * 2017-07-14 2020-06-02 惠州Tcl移动通信有限公司 Method for determining access mode of mobile terminal, storage medium and mobile terminal
EP3490279B1 (en) * 2017-11-24 2023-08-30 Bittium Wireless Oy User equipment and method of controlling subscriptions
CN110072226B (en) * 2019-04-11 2022-05-06 北京小米移动软件有限公司 Card writing method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933869A (en) * 2016-06-30 2016-09-07 北京小米移动软件有限公司 Terminal positioning method and device, as well as terminal server

Also Published As

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

Similar Documents

Publication Publication Date Title
US9391836B2 (en) Method and terminal for loading operator configuration information
US10498731B2 (en) Apparatus and method for controlling wireless network access and wireless data traffic
CN110769442B (en) Method and device for accessing router and Internet of things equipment
CN113676896B (en) Communication method and related equipment
CN111510909A (en) Communication module configuration processing method and device, computer equipment and storage medium
KR102487943B1 (en) Implicit file creation in apdu scripts
CN105162748A (en) Electronic subscriber identity module application identifier handling
CN107295503B (en) Method for determining access mode of mobile terminal, storage medium and mobile terminal
CN105472585A (en) Network setting method and mobile terminal
CN111510910B (en) Communication module frequency band setting method and device, computer equipment and storage medium
CN110392012B (en) Method and apparatus for rebooting in lightweight machine-to-machine systems
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN111510318B (en) Positioning information configuration method, device, communication equipment and storage medium
CN105357771A (en) Connection establishing method and user terminal
JP2016213743A (en) Radio communication system
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium
CN110401934B (en) Method for managing equipment, management equipment and computer readable storage medium
CN105323373A (en) Mobile terminal, and method and device for initializing subscriber identity module card of mobile terminal
CN113194477B (en) Intelligent equipment networking method and device, electronic equipment and storage medium
WO2023274582A1 (en) Flexible remote sim provisioning
CN112188591A (en) Network access method, device, computer equipment and storage medium
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
US9973921B2 (en) Conflict detection
CN117014860B (en) Method and device for downloading configuration file, ESIM card and storage medium
EP4161173A1 (en) Terminal registration processing method and device

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