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

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

Info

Publication number
CN111510318A
CN111510318A CN202010160219.3A CN202010160219A CN111510318A CN 111510318 A CN111510318 A CN 111510318A CN 202010160219 A CN202010160219 A CN 202010160219A CN 111510318 A CN111510318 A CN 111510318A
Authority
CN
China
Prior art keywords
positioning information
information
positioning
version
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010160219.3A
Other languages
Chinese (zh)
Other versions
CN111510318B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a positioning information configuration method, a positioning information configuration device, communication equipment and a storage medium. The method comprises the following steps: acquiring identification information of a current subscriber identity module 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 the priority of various configuration modes and the version information of each group of positioning information; determining target positioning information according to the priority of each configuration mode and the version information of each group of positioning information; and 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. The method can improve the flexibility and convenience of positioning information configuration.

Description

Positioning information configuration method, positioning information configuration device, communication 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 configuring positioning information, a communication device, and a storage medium.
Background
With the development of communication technology, more and more communication modules are emerging, and most of the communication modules support a positioning function. The positioning function is implemented by configuring the relevant positioning parameters within the communication module.
In the conventional method, when positioning is started, a terminal configures positioning parameters of a communication module according to configuration contents of an Extensible Markup language (XM) L file in a Global Navigation Satellite System (GNSS).
Disclosure of Invention
In view of the above, it is necessary to provide a positioning information configuring method, apparatus, communication device, and storage medium capable of improving flexibility of positioning information configuration.
A method for configuring positioning information, the method comprising:
acquiring identification information of a current subscriber identity module 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 the priority of various configuration modes and the version information of each group of positioning information;
determining target positioning information according to the priority of each configuration mode and the version information of each group of positioning information;
and 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, determining the target location information according to the priorities of the various configuration modes and the version information of the sets of location 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 a preset rule;
positioning information corresponding to the target version information is used as target positioning information;
when the comparison result is 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, the comparison of the version information of each group of positioning information is initiated after the validity of the version information of each group of positioning information is verified and the verification is passed; the validity verification includes at least one of a length verification and a version number verification of the 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, replacing the successfully matched positioning information with the updated positioning information;
and when the matching fails, adding the updated positioning information into a positioning information set corresponding to the operator identifier.
In one embodiment, when the matching is successful, replacing the successfully matched location information with the updated location information includes:
acquiring version information of successfully matched positioning information and acquiring version information of updated positioning information;
determining 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 driver configuration file configuration, where the control command configuration has the highest priority, and the driver configuration file configuration has the lowest priority.
A positioning information configuring apparatus, the apparatus comprising:
the acquisition module is used for acquiring the identification information of the current subscriber identity module 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 the priority of various configuration modes and the version information of each group of positioning information;
the target positioning information determining module is used for determining target positioning information according to the priority of 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 the working positioning information of the communication module so as to enable the communication module to start the positioning function according to the target positioning information.
In one embodiment, the target location information determining module comprises:
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 results are different; positioning information corresponding to the target version information is used as target positioning information; when the comparison result is 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, the comparison of the version information of each group of positioning information is initiated after the validity of the version information of each group of positioning information is verified and the verification is passed; the validity verification includes at least one of a length verification and a version number verification of the version information.
In one embodiment, the apparatus further comprises:
the positioning information set updating module is used for acquiring updated positioning information, and 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, replacing the successfully matched positioning information with the updated positioning information; and when the matching fails, adding the updated positioning information into a 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 the successfully matched positioning information, and obtain version information of the updated positioning information; determining 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 group 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 and a processor, the memory storing a computer program, the processor when executing the computer program implementing the steps of:
acquiring identification information of a current subscriber identity module 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 the priority of various configuration modes and the version information of each group of positioning information;
determining target positioning information according to the priority of each configuration mode and the version information of each group of positioning information;
and 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.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring identification information of a current subscriber identity module 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 the priority of various configuration modes and the version information of each group of positioning information;
determining target positioning information according to the priority of each configuration mode and the version information of each group of positioning information;
and 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.
The positioning information configuration method, the positioning information configuration device, the communication equipment and the storage medium acquire 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 the priority of various configuration modes and the version information of each group of positioning information; determining target positioning information according to the priority of each configuration mode and the version information of each group of positioning information; and 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. The positioning information can support various configuration modes and has high flexibility. And the target positioning information can be quickly determined from the positioning information configured in various configuration modes according to the priority of 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 a diagram of an embodiment of a positioning information configuration method;
FIG. 2 is a flow chart illustrating a method for configuring positioning information according to an embodiment;
FIG. 3 is a flowchart illustrating the step of determining target location information according to priorities of various configurations and version information of various sets of location information in one embodiment;
FIG. 4 is a flow diagram illustrating an embodiment of updating a set of positioning information;
FIG. 5 is a flowchart illustrating steps of replacing successfully matched location information with updated location information when matching is successful in one embodiment;
fig. 6 is a schematic flowchart illustrating a process of determining a configuration corresponding to positioning information in one embodiment;
FIG. 7 is a block diagram of a positioning information configuring apparatus according to an embodiment;
fig. 8 is an internal configuration 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 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 positioning information configuration method provided by the application can be applied to the application environment shown in fig. 1. The terminal 102 may communicate with the communication module 104 through PCIe (peripheral component interconnect express) or USB (Universal Serial Bus). The USB is, for example, USB 3.0. Of course, the terminal 102 and the communication module 104 may communicate in other manners, which is not limited herein.
The terminal can be provided with a software burning tool, and can acquire a corresponding FW (Firmware) software package through the software burning tool and burn the corresponding FW software package into a memory of the communication module.
Specifically, the terminal may configure the location information of the communication module in various configurations. The location information configured by the various configurations is stored in a memory of the communication module. The communication module includes an application program, a subscriber identity card and a memory. The application program can obtain 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 obtain the priority of various configuration modes and the version information of each group of positioning information, and determine the target positioning information according to the priority of various configuration modes and the version information of each group of positioning information. Furthermore, the application program configures the target positioning information into the working positioning information of the communication module, so that the communication module starts the positioning function according to the target positioning information. 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 2G module, a 3G module, a 4G module, and a 5G module.
In one embodiment, as shown in fig. 2, a positioning information configuring method is provided, which is described by taking the application program in fig. 1 as an example, and includes the following steps:
s202, acquiring 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 key and a security algorithm of the Mobile Subscriber, a memory space available for the Mobile Subscriber, and the like. The IMSI can be used to distinguish between mobile subscribers in a cellular network. The IMSI is a non-repeating identity in all cellular networks. The IMSI is composed of a string of decimal digits with a maximum length of 15 digits. The IMSI is formed by sequentially connecting MCC (Mobile Country Code), MNC (Mobile Network Code), and MSIN (Mobile Subscription identity Number). The MCC may uniquely identify the country to which the mobile subscriber belongs, and is 3 digits in length. The MNC may be used to distinguish the mobile network to which the mobile subscriber belongs, and the length of the MNC may be determined by the value of the MCC, and may be 2 digits (european standard) or 3 digits (north american standard). The MSIN may be used to identify a mobile subscriber in a certain mobile network, and the value of the MSIN may be self-assigned by the mobile network operator. The identification information of the current subscriber Identity card refers to an HNI (Home Network Identity) for identifying a mobile Network operator to which the mobile subscriber belongs. HNI consists 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 receiving the identification information acquisition request, the current subscriber identity card acquires identification information according to the identification information acquisition request and sends the identification information to the application program. The application may receive the identification information returned by the current subscriber identity card.
In one embodiment, the current subscriber identity card may actively send identification information to the application. When the SIM card is switched, the identifier information of the switched SIM card may be actively sent to the application program. For example, when the user identification card a is switched to the user identification card B, 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, 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 implementing a positioning function. The positioning information may comprise AGPS certificates and AGPS parameters. The AGPS certificate is an identification when the positioning function is activated, and is used to mark the identity information of the communication module. The AGPS certificate may specifically comprise a string of at least one character 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, and a version number.
The positioning information has corresponding operator identification and configuration mode. The operator identifier is an identifier 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 refers to a configuration mode of an XM L file, and a configuration mode of a series of AGPS modules corresponding to the AGPS module is issued according to configuration contents of an XM L file in a GNSS driver.
Specifically, the location information configured by the various configurations is stored in the memory of the communication module. And after the application program acquires the identification information of the current user identification card, determining the operator identification corresponding to the current user identification card according to the identification information. Furthermore, the application program acquires 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 look-up table. The identification information comparison table records the corresponding relationship between a plurality of groups of identification information and operator identifications. One operator identifier may correspond to a plurality of identifier information, one operator identifier may also correspond to one 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 46002, 46000, 46007. The application program can acquire the identification information comparison table from the terminal, compare the identification information of the current subscriber identity module card with the identification information in the identification information comparison table, and determine the operator identification corresponding to the identification information of the current subscriber identity module card.
In one embodiment, the positioning information and the operator identifier may be stored in a memory of the communication module in an associated manner, and the corresponding positioning information may be searched 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 general positioning parameters are corresponding to all operator identifications by default, so that each positioning information set comprises the same positioning parameters configured by a configuration mode of a drive configuration file.
S206, acquiring the priority of various configuration modes and the version information of each group of positioning information.
And S208, determining the target positioning information according to the priority of each configuration mode and the version information of each group of positioning information.
S210, 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.
The priorities of various configuration modes are set in the application program in advance. The version information refers to the version of each set of positioning information. The version information may consist of an operator identification and a version number, e.g. 1-001, with 1 indicating the operator identification and 001 indicating the version number. The same version information may correspond to different positioning information. Because the parameter forms in the positioning information are more and more complex, if one parameter changes, the version information is updated, and the version information is updated too much and too fast, so that the version information is disordered and complicated and is difficult to manage. Therefore, the parameters in the positioning information are classified into basic parameters and non-basic parameters in advance. And updating the version information when the basic parameters in the positioning information are changed so as to make the version information concise and easy to manage.
Specifically, the application program obtains version information of each set of positioning information, and compares the version information of each set of positioning information to use the positioning information corresponding to the latest version information as target positioning information. And when the version information of each group of positioning information is the same, selecting the positioning information configured by the configuration mode with the highest priority as the target positioning information according to the priority of the configuration modes. The application program takes the target positioning information as the working positioning parameter configuration of the communication module to take effect, 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 file configuration is next to the priority of the driver configuration file configuration is lowest. The control command configuration mode is that the user autonomously configures the positioning information according to the self requirement, and the priority of the control command configuration mode is set to be the highest, so that the requirement of the user is preferentially met, the positioning information is preferentially and dynamically set according to the actual requirement of the user, and the uniqueness of the positioning information configuration is ensured.
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 historical configuration mode priority refers to the priority corresponding to various configuration modes before modification. The modification information may include a configuration mode 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 the priority of various configuration modes and the version information of each group of positioning information; determining target positioning information according to the priority of each configuration mode and the version information of each group of positioning information; and 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. The positioning information can support various configuration modes and has high flexibility. And the target positioning information can be quickly determined from the positioning information configured in various configuration modes according to the priority of 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, the step S206 of determining the target location information according to the priorities of the various configurations and the version information of the sets of location information includes:
s302, comparing the version information of each group of positioning information to obtain a comparison result.
S304, 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.
And S306, taking the positioning information corresponding to the target version information as target positioning information.
S308, when the comparison result is the same, determining the target configuration mode according to the priorities of the various configuration modes.
And S310, taking the positioning information corresponding to the target configuration mode as target positioning information.
Specifically, the application program obtains version information of each set of positioning information, and compares the version information of each set of positioning information to use the positioning information of the latest version as target positioning information. The preset rule may be that the larger the version number value is, the newer the version is. 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. And when the version numbers of all the groups of positioning information are the same, selecting the positioning information configured by the configuration mode with the highest priority as the target positioning information according to the priority of the configuration modes. For example, there are two sets of positioning information with the same version information, the configuration mode corresponding to one set of positioning information is a control command configuration mode, and the configuration mode corresponding to one set of positioning information is a firmware configuration file configuration mode. And if the priority of the control command configuration mode is the highest, the positioning information configured by the control command is used as the target positioning information.
In this embodiment, by comparing the version information, the positioning information of the latest version can be used as the target positioning information, and it is ensured 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 the 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, the comparing of the version information of each group of positioning information is initiated after the validity verification of the version information of each group of positioning information is passed; the validity verification includes at least one of a length verification and a version number verification of the version information.
Specifically, after acquiring the version information of each group of positioning information, the application program verifies the validity of the version information of each group of positioning information, and if the verification is passed, the application program continues to compare the version information of each group of positioning information. The multiple conditions can be verified specifically during verification, and verification is passed when the multiple conditions are all satisfied.
The application program performs validity verification on the version information, specifically, it may check whether the length of the version information conforms to 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 self-defined value, for example 4.
The application program performs validity verification on the version information, specifically, checks whether the version number conforms to a preset format. For example, the predetermined version number is updated within 0 to 100, and when the version number is 200, the version information corresponding to the version number is invalid version information.
And determining the positioning information corresponding to the invalid version information as invalid positioning information, wherein the invalid positioning information cannot be configured as working positioning 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 the embodiment, the application program performs validity verification on the version information after acquiring the version information of each group of positioning information, and initiates version information comparison if the verification is passed, so that the target positioning information can be guaranteed to be valid positioning information, and the accuracy of the positioning information is guaranteed.
In one embodiment, as shown in fig. 4, the method further comprises:
s402, obtaining the 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 identifier.
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 identifier.
And S408, when the matching is successful, replacing the successfully matched positioning information with the updated positioning information.
S410, when the matching fails, the updated positioning information is added into a positioning information set corresponding to the operator identification.
The updated positioning information is the positioning information sent by the terminal to the communication module and is used for updating the historical positioning information. The historical positioning information refers to the positioning information which is currently stored by the communication module. The user can configure and update the 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 identification from the memory of the communication module. And 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, adding the updated positioning information into 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, replacing the group of positioning information with the updated positioning information, namely updating the group of positioning information by using the updated positioning information.
In the embodiment, the configuration mode and the operator identifier corresponding to the updated positioning information exist by acquiring 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, replacing the successfully matched positioning information with the 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 obtained, and the storage resource of a communication module memory is saved.
In one embodiment, as shown in fig. 5, when the matching is successful, S406, namely, replacing the successfully matched location information with the updated location information, includes:
s502, obtaining the version information of the successfully matched positioning information and obtaining the version information of the 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.
And S506, 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.
Specifically, when the configuration mode corresponding to a certain set 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 version information of the set 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, the comparing of the set of location information and the version information of the updated location information may be initiated after the validation of the set of location information and the version information of the updated location information is verified and passed. The validity verification includes at least one of a length verification and a version number verification of the version information.
In the embodiment, the version information of the updated positioning information is obtained by obtaining the version information of the successfully matched positioning information; determining 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 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 in various configuration modes.
In one embodiment, as shown in fig. 6, the method further comprises:
s602, acquiring the state information of each group of positioning information.
And S604, determining the configuration mode corresponding to each group of positioning information according to the state information.
The state information is a state mark of the positioning information and is used for marking a configuration mode corresponding to the positioning information.
In particular, the positioning information comprises status information. And the application program acquires 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 2-bit flag bit, "00" for control command configuration, "01" for firmware profile configuration, and "10" for driver profile configuration.
In this embodiment, the configuration mode corresponding to each group of positioning information can be quickly determined according to the state information, which is convenient for determining the target configuration mode according to the priority of the configuration mode in the following.
In a specific embodiment, a positioning information configuration method is provided, which mainly includes the following steps:
step 1: and 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 groups of positioning information corresponding to the operator identification from a memory of the communication module, and each group of positioning information has a corresponding configuration mode.
And step 3: and the application program reads the version information of each group of positioning information and verifies the validity of the version information.
And 4, step 4: and 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.
And 5: the application program acquires the positioning information corresponding to the configuration mode with the highest priority from all the groups of positioning information according to the priorities of all the configuration modes, and configures the positioning information corresponding to the configuration mode with the highest priority as the working positioning information of the communication module, so that the communication module starts the 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 sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts of the above embodiments may include multiple steps or multiple 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 stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 7, there is provided a positioning information configuring apparatus including: an obtaining module 702, a target location information determining module 704, and a target location information configuring 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 the priority of various configuration modes and the version information of each group of positioning information.
And an object location information determining module 704, configured to determine object location information according to the priorities of the various configuration modes and version information of the sets of location information.
And a target positioning information configuring module 706, 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 target 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 results are different; positioning information corresponding to the target version information is used as target positioning information; when the comparison result is 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, the comparing of the version information of each group of positioning information is initiated after the validity verification of the version information of each group of positioning information is passed; the validity verification includes at least one of a length verification and a version number verification of the version information.
In one embodiment, the apparatus further comprises:
the positioning information set updating module is used for acquiring updated positioning information, and 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, replacing the successfully matched positioning information with the updated positioning information; and when the matching fails, adding the updated positioning information into a 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 the successfully matched positioning information, and obtain version information of the updated positioning information; determining 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 control command configuration, firmware configuration file configuration, and driver configuration file configuration, where the control command configuration has the highest priority, and the driver 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, which is not described herein again. The modules in the positioning information configuring device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the communication device, and can also be stored in a memory in the communication device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a communication device is provided, which may be a communication module, such as a 4G module. The internal structure thereof may be as 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 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 network interface of the communication device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a positioning information configuration method. Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the communication device to which the present application applies, and that a particular communication device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In some embodiments, a communication device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the above positioning information configuring method are implemented.
In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned positioning information configuring method.
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, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for configuring positioning information, the method comprising:
acquiring identification information of a current subscriber identity module 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 the priority of various configuration modes and the version information of each group of positioning information;
determining target positioning information according to the priority of each configuration mode 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 according to claim 1, wherein the determining the target positioning information according to the priorities of the various configurations and the version information of the various sets 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;
taking positioning information corresponding to the target version information 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 according to claim 1, wherein the comparing the version information of the sets of positioning information is initiated after the version information of the sets of positioning information is validated and verified; the validity verification includes at least one of a length verification and a version number verification of the version information.
4. The method of claim 1, further comprising:
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, replacing the successfully matched positioning information with 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 according to claim 4, wherein the replacing the successfully matched positioning information with the updated positioning information when the matching is successful comprises:
acquiring version information of the successfully matched positioning information and acquiring version information of the updated positioning information;
determining 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.
6. The method of claim 1, further comprising:
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 according to claim 1, wherein the configuration mode includes at least one of a control command configuration, a firmware configuration, and a driver configuration, the control command configuration corresponds to a highest priority, and the driver configuration corresponds to a lowest priority.
8. A positioning information configuring apparatus, the apparatus comprising:
the acquisition module is used for acquiring the identification information of the current subscriber identity module 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 the priority of various configuration modes and the version information of each group of positioning information;
the target positioning information determining module is used for determining target positioning information according to the priority of each configuration mode 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 the working positioning information of the communication module so as to enable the communication module to start 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 realizes the steps of the method of any 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.
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 true CN111510318A (en) 2020-08-07
CN111510318B 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 (8)

* 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
WO2013139283A1 (en) * 2012-03-22 2013-09-26 华为终端有限公司 Method and terminal for loading configuration information of mobile network operator
CN105933869A (en) * 2016-06-30 2016-09-07 北京小米移动软件有限公司 Terminal positioning method and device, as well as terminal server
CN107124710A (en) * 2017-03-30 2017-09-01 天津泰岳小漫科技有限公司 Identification card distribution method and device
CN107172610A (en) * 2017-05-25 2017-09-15 宇龙计算机通信科技(深圳)有限公司 GSM network is from adaptation method, device and electronic equipment
CN107295503A (en) * 2017-07-14 2017-10-24 惠州Tcl移动通信有限公司 Determine method, storage medium and the mobile terminal of mobile terminal access way
EP3490279A1 (en) * 2017-11-24 2019-05-29 Bittium Wireless Oy User equipment and method of controlling subscriptions
CN110072226A (en) * 2019-04-11 2019-07-30 北京小米移动软件有限公司 A kind of card writing method and device

Patent Citations (8)

* 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
WO2013139283A1 (en) * 2012-03-22 2013-09-26 华为终端有限公司 Method and terminal for loading configuration information of mobile network operator
CN105933869A (en) * 2016-06-30 2016-09-07 北京小米移动软件有限公司 Terminal positioning method and device, as well as terminal server
CN107124710A (en) * 2017-03-30 2017-09-01 天津泰岳小漫科技有限公司 Identification card distribution method and device
CN107172610A (en) * 2017-05-25 2017-09-15 宇龙计算机通信科技(深圳)有限公司 GSM network is from adaptation method, device and electronic equipment
CN107295503A (en) * 2017-07-14 2017-10-24 惠州Tcl移动通信有限公司 Determine method, storage medium and the mobile terminal of mobile terminal access way
EP3490279A1 (en) * 2017-11-24 2019-05-29 Bittium Wireless Oy User equipment and method of controlling subscriptions
CN110072226A (en) * 2019-04-11 2019-07-30 北京小米移动软件有限公司 A kind of card writing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卢军等: "基于贴片机视觉系统的SIM芯片识别定位算法", 《包装工程》 *

Also Published As

Publication number Publication date
CN111510318B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
US9391836B2 (en) Method and terminal for loading operator configuration information
US10104700B2 (en) Message processing method, MME selection method, and apparatuses
CN110769442B (en) Method and device for accessing router and Internet of things equipment
CN106937273B (en) HD icon display control method and device
CN114731497B (en) Network connectivity
CN104967997A (en) Wireless network accessing method, Wi-Fi equipment, terminal equipment and system
CN110475242B (en) LTE network registration method, device, storage medium and computer equipment
CN107371234B (en) Registration method, device and terminal
CN107295503B (en) Method for determining access mode of mobile terminal, storage medium and mobile terminal
CN111586671B (en) Embedded user identification card configuration method and device, communication equipment and storage medium
CN110650516A (en) Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
CN106211132B (en) Virtual SIM card identification method and terminal
CN111988824A (en) Network switching method and device, electronic equipment and storage medium
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
CN106658503B (en) Registration method and device for mobile terminal to access LTE data network
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium
CN111510318A (en) Positioning information configuration method, positioning information configuration device, communication equipment and storage medium
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
CN112784318A (en) Method, device and storage medium for generating unique identification code of equipment
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
CN105828316A (en) Method for adapting subscriber identification module card and mobile terminal
EP3758396B1 (en) Communication control device, communication setting method, communication setting program, and communication system
KR20180031287A (en) User equipment to personalize the use of the service and operationg method thereof

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