Processing method and device for off-the-air number based on positioning information
By using GNSS positioning information to select numbers in the air lower number process, the problems of low efficiency and poor balance in complex environments of traditional random number selection methods are solved, efficient number selection and down number process is realized, and the uneven use of seed numbers is reduced. .
Patent Information
- Application Number
- CN202411308137.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-19
AI Technical Summary
In environments with complex network and operator conditions, the random number selection method in the traditional air down-number process can easily lead to high number selection failure rate and low number efficiency, and it is difficult to balance the use of seed numbers.
The number selection method based on GNSS positioning information is adopted. By identifying the status of the ESIM module when the device is started, and using the GNSS positioning module to obtain the latitude and longitude of the seed number to select the appropriate seed number from the seed number library for card writing operation, providing the maximum number selection mode and the minimum number selection Mode and center number selection mode to optimize number selection process.
Ensure that one-time selection improves the efficiency of number selection and lower number, and takes into account the balanced use of seed numbers, reducing the waste of traffic packages.
Smart Images

Figure CN119277361A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for processing air number placement based on positioning information. Background Art
[0002] Most communication devices with ESIM modules support the "over-the-air number download" function. When a communication device that supports this function is turned on for the first time, it first randomly selects a number from the local preset seed number library to write the card to the ESIM module, and then logs in to the network through the mobile communication module + ESIM module. After the network login is successful, the PLMN+APN information of the local login number is sent to the remote card number management server (referred to as the remote server) for service number selection, and then the ESIM module is written a second time based on the service number sent by the remote server and the device is restarted when the card writing is completed. In the above-mentioned conventional "over-the-air number download" process, the reason for randomly selecting the seed number is to balance the frequency of use of the seed number and reduce the idle consumption of the traffic package, but it is also easy to increase the number selection failure rate and reduce the efficiency of number download in an environment where the network / operator conditions are relatively complex.
[0003] To solve this problem, we have improved the "over-the-air numbering" process of communication devices deployed in complex network / operator environments through the technical solution of the present invention, and changed the random number selection method in the process to a positioning number selection method, that is, selecting a suitable seed number from the seed number library through GNSS positioning information to initialize the ESIM module. This can ensure a one-time selection and take into account the balanced use of seed numbers. Summary of the invention
[0004] The purpose of the present invention is to provide a method and device for processing air number download based on positioning information in view of the defects of the prior art. The present invention identifies whether the ESIM module is in an empty card state when the device is started, and when it is confirmed that it is in an empty card state, the number selection operation is performed based on the latitude and longitude fed back by the GNSS positioning module and the local seed number library to obtain the corresponding seed number writing script and PLMN+APN information, and after the ESIM module successfully runs the seed number writing script, the network is logged in through the mobile communication module + ESIM module, and after the network is successfully logged in, the corresponding service number writing script is obtained by sending an air number download request with PLMN+APN information to the remote server, and the device is restarted after the ESIM module successfully runs the service number writing script. The present invention improves the traditional "air number download" process, changes the random number selection method in the traditional process into a positioning number selection method, and also provides three optional modes for the positioning number selection method (maximum number selection mode, minimum number selection mode and center number selection mode); through the present invention, not only can one-time selection be ensured, but also the balanced use of the seed number can be taken into account.
[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present invention provides a method for processing air number placement based on positioning information, the method comprising:
[0006] The main control module of the first device sends a status reading instruction to the ESIM module in the device when the device is started; and receives the first status sent back by the ESIM module; the first device has the main control module, the ESIM module, the mobile communication module and the seed number library built in, and is externally or internally connected to a GNSS positioning module; the first status includes an empty card and a non-empty card;
[0007] When the first state is an empty card, sending a positioning read instruction to the GNSS positioning module; and receiving the first longitude and latitude sent back by the GNSS positioning module;
[0008] and performing number selection processing according to the first longitude and latitude and the seed number library to obtain a corresponding first card writing script, first PLMN information and first APN information;
[0009] and sending a card writing instruction carrying the first card writing script to the ESIM module; and sending a network login instruction to the mobile communication module when the card writing status sent back by the ESIM module is that the card writing is successful; and sending an air number download request carrying the first PLMN information and the first APN information to the remote server when the network login status sent back by the mobile communication module is that the network login is successful; and receiving a second card writing script sent back by the remote server;
[0010] The card writing instruction carrying the second card writing script is sent to the ESIM module; and when the card writing status sent back by the ESIM module indicates that the card writing is successful, a device restart operation is performed.
[0011] Preferably, the ESIM module is used to set the built-in card number loading state to empty card when no telecommunications card data is loaded;
[0012] The ESIM module is further configured to send the card number loading status as the corresponding first status back to the main control module upon receiving the status reading instruction sent by the main control module;
[0013] The ESIM module is also used to extract the corresponding current card writing script from the current card writing instruction when receiving the card writing instruction sent by the main control module; and complete the corresponding telecommunications card data loading by running the current card writing script; and when the telecommunications card data is loaded successfully, set the card number loading status to a non-empty card, and simulate a corresponding telecommunications card based on the loaded telecommunications card data, and send the card writing status specifically set to successful card writing back to the main control module.
[0014] Preferably, the GNSS positioning module is used to refresh the real-time positioning information of the module after the module is powered on; the GNSS positioning module is also used to extract the longitude and latitude information in the latest positioning information and send it back to the main control module as the corresponding first longitude and latitude when receiving the positioning read instruction sent by the main control module.
[0015] Preferably, the seed number library is used to store multiple first seed number records; each of the first seed number records corresponds to a preset seed card number; the first seed number record includes a first longitude range field, a first latitude range field, a first PLMN field, a first APN field, a first ICC ID field and a first script field; the first longitude range field is composed of two longitude range thresholds, which is the maximum longitude range of the available region for the current seed card number; the first latitude range field is composed of two latitude range thresholds, which is the maximum latitude range of the available region for the current seed card number; the first PLMN field and the first APN field are the PLMN and APN information of the telecommunications operator to which the current seed card number belongs; the first ICC ID field is the ICC ID information of the current seed card number; the first script field is the card writing script of the current seed card number.
[0016] Preferably, the number selection process according to the first longitude and latitude and the seed number library to obtain the corresponding first card writing script, first PLMN information and first APN information specifically includes:
[0017] The main control module extracts the first longitude range field and the first latitude range field of each first seed number record in the seed number library to form a corresponding first longitude and latitude range; and records the first longitude and latitude range covering the first longitude and latitude as the corresponding second longitude and latitude range;
[0018] and identifying a preset number selection mode; if the number selection mode is a maximum or minimum number selection mode, estimating the coverage area of each second longitude and latitude range to obtain a corresponding first estimated area, and taking the first seed number record corresponding to the largest or smallest first estimated area as the corresponding current record; if the number selection mode is a center number selection mode, estimating the center point longitude and latitude of each second longitude and latitude range to obtain a corresponding first center point longitude and latitude, and calculating the straight-line distance between each first center longitude and longitude and the first longitude and longitude to obtain a corresponding first straight-line distance, and taking the first seed number record corresponding to the shortest first straight-line distance as the corresponding current record; the number selection mode includes a maximum number selection mode, a minimum number selection mode and a center number selection mode;
[0019] And the first PLMN field, the first APN field and the first script field of the current record are extracted as the corresponding first PLMN information, the first APN information and the first card writing script.
[0020] Preferably, the mobile communication module is used to call the ESIM module to perform a login operation on the corresponding mobile communication network when receiving the login instruction sent by the main control module, and when the login is successful, the login status specifically set as successful login is sent back to the main control module.
[0021] Preferably, the remote server is used to extract the corresponding first PLMN information and the first APN information as the corresponding current PLMN and current APN when receiving the over-the-air number request sent by the main control module; and based on the preset card number optimization rules, perform an optimal card number script search on the card number resource library preset locally on the server to obtain the corresponding second card writing script and send it back to the main control module.
[0022] A second aspect of an embodiment of the present invention provides a processing device for air number placement based on positioning information, the device comprising: a main control module, a GNSS positioning module, a seed number library, an ESIM module and a mobile communication module;
[0023] The main control module is connected to the GNSS positioning module, the seed number library, the ESIM module and the mobile communication module respectively; the mobile communication module is connected to the ESIM module; after the device successfully logs on to the network, the main control module is connected to the remote server through the mobile communication network successfully logged on by the mobile communication module;
[0024] The main control module is used to send a status reading instruction to the ESIM module when the device is started; and receive the first status sent back by the ESIM module; and when the first status is an empty card, send a positioning reading instruction to the GNSS positioning module; and receive the first longitude and latitude sent back by the GNSS positioning module; and perform number selection processing according to the first longitude and latitude and the seed number library to obtain the corresponding first card writing script, first PLMN information and first APN information; and send the card writing instruction carrying the first card writing script to the ESIM module; and send a login instruction to the mobile communication module when the card writing status sent back by the ESIM module is a successful card writing; and when the login status sent back by the mobile communication module is a successful login, send an air number request carrying the first PLMN information and the first APN information to the remote server; and receive a second card writing script sent back by the remote server; and send the card writing instruction carrying the second card writing script to the ESIM module; and restart the device when the card writing status sent back by the ESIM module is a successful card writing; the first state includes an empty card and a non-empty card;
[0025] The GNSS positioning module is used to refresh the real-time positioning information of the module after the module is powered on; the GNSS positioning module is also used to extract the longitude and latitude information in the latest positioning information as the corresponding first longitude and latitude and send it back to the main control module when receiving the positioning reading instruction sent by the main control module;
[0026] The seed number library is used to store a plurality of first seed number records; each of the first seed number records corresponds to a preset seed card number;
[0027] The ESIM module is used to set the built-in card number loading state to an empty card when no telecom card data is loaded; the ESIM module is also used to send the card number loading state as the corresponding first state to the main control module when receiving the state reading instruction sent by the main control module; the ESIM module is also used to extract the corresponding current card writing script from the current card writing instruction when receiving the card writing instruction sent by the main control module; and complete the corresponding telecom card data loading by running the current card writing script; and when the telecom card data is loaded successfully, set the card number loading state to a non-empty card, simulate a corresponding telecom card based on the loaded telecom card data, and send the card writing state specifically set to a successful card writing back to the main control module;
[0028] The mobile communication module is used to call the ESIM module to perform a login operation on the corresponding mobile communication network when receiving the login instruction sent by the main control module, and when the login is successful, send the login status specifically set as successful login back to the main control module.
[0029] Preferably, the first seed number record includes a first longitude range field, a first latitude range field, a first PLMN field, a first APN field, a first ICC ID field and a first script field; the first longitude range field is composed of two longitude range thresholds, which is the maximum longitude range of the available area of the current seed card number; the first latitude range field is composed of two latitude range thresholds, which is the maximum latitude range of the available area of the current seed card number; the first PLMN field and the first APN field are the PLMN and APN information of the telecommunications operator to which the current seed card number belongs; the first ICC ID field is the ICC ID information of the current seed card number; and the first script field is the card writing script of the current seed card number.
[0030] Preferably, the main control module is specifically used to extract the first longitude range field and the first latitude range field of each of the first seed number records in the seed number library to form a corresponding first longitude and latitude range when the number selection processing is performed according to the first longitude and latitude and the seed number library to obtain the corresponding first card writing script, the first PLMN information and the first APN information; and record the first longitude and longitude ranges covering the first longitude and longitude as corresponding second longitude and longitude ranges; and identify the preset number selection mode; if the number selection mode is the maximum or minimum number selection mode, estimate the coverage area of each of the second longitude and longitude ranges to obtain the corresponding first estimated area, and record the first estimated area corresponding to the largest or smallest first estimated area. A sub-number record is used as the corresponding current record; if the number selection mode is the center number selection mode, the longitude and latitude of the center point of each of the second longitude and latitude ranges are estimated to obtain the corresponding first center point longitude and latitude, and the straight-line distance between each of the first center longitude and latitude and the first longitude and latitude is calculated to obtain the corresponding first straight-line distance, and the first sub-number record corresponding to the shortest first straight-line distance is used as the corresponding current record; and the first PLMN field, the first APN field and the first script field of the current record are extracted as the corresponding first PLMN information, the first APN information and the first card writing script; wherein the number selection modes include a maximum number selection mode, a minimum number selection mode and a center number selection mode.
[0031] Preferably, the remote server is used to extract the corresponding first PLMN information and the first APN information as the corresponding current PLMN and current APN when receiving the over-the-air number request sent by the main control module; and based on the preset card number optimization rules, perform an optimal card number script search on the card number resource library preset locally on the server to obtain the corresponding second card writing script and send it back to the main control module.
[0032] The embodiment of the present invention provides a method and device for processing air number download based on positioning information. As can be seen from the above content, the embodiment of the present invention identifies whether the ESIM module is in an empty card state when the device is started, and when it is confirmed that it is in an empty card state, the number selection operation is performed based on the latitude and longitude fed back by the GNSS positioning module and the local seed number library to obtain the corresponding seed number writing script and PLMN+APN information, and after the ESIM module successfully runs the seed number writing script, the network is logged in through the mobile communication module+ESIM module, and after the network is successfully logged in, the corresponding service number writing script is obtained by sending an air number download request with PLMN+APN information to the remote server, and the device is restarted after the ESIM module successfully runs the service number writing script. The embodiment of the present invention improves the traditional "air number download" process, changes the random number selection method in the traditional process to the positioning number selection method, and also provides three optional modes for the positioning number selection method (maximum number selection mode, minimum number selection mode and center number selection mode). Through the embodiments of the present invention, on the one hand, one-time selection can be ensured, thereby improving the efficiency of selecting / downloading numbers; on the other hand, balanced use of seed numbers can be taken into account, thereby reducing the waste of traffic packages. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of a method for processing air number placement based on positioning information provided in Embodiment 1 of the present invention;
[0034] Figure 2 A module structure diagram of a processing device for performing air number placement based on positioning information provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] Embodiment 1 of the present invention provides a method for processing air number placement based on positioning information, such as Figure 1 As shown in the schematic diagram of a method for processing air number placement based on positioning information provided in the first embodiment of the present invention, the method mainly includes the following steps:
[0037] Step 1: When the device is started, the main control module of the first device sends a status reading instruction to the ESIM module in the device; and receives the first status sent back by the ESIM module.
[0038] The first state includes an empty card and a non-empty card.
[0039] Here, the first device of the embodiment of the present invention has built-in main control module, ESIM module, mobile communication module and seed number library, and an external or built-in GNSS positioning module; wherein the main control module is respectively connected to the ESIM module, mobile communication module, seed number library and GNSS positioning module; the mobile communication module is connected to the ESIM module.
[0040] It should be noted that the ESIM module of the embodiment of the present invention is used to set the built-in card number loading state to an empty card when no telecommunications card data is loaded. The ESIM module is also used to send the card number loading state as the corresponding first state to the main control module when receiving a state read instruction sent by the main control module. The ESIM module is also used to extract the corresponding current card writing script from the current card writing instruction when receiving a card writing instruction sent by the main control module; and complete the corresponding telecommunications card data loading by running the current card writing script; and when the telecommunications card data is loaded successfully, set the card number loading state to a non-empty card, and simulate a corresponding telecommunications card based on the loaded telecommunications card data, and send the card writing state specifically set to a successful card writing back to the main control module.
[0041] Step 2: When the first state is an empty card, a positioning read instruction is sent to the GNSS positioning module; and the first longitude and latitude sent back by the GNSS positioning module are received.
[0042] Here, after the main control module of the embodiment of the present invention confirms that the ESIM module is in the empty card state through the first state, it obtains the real-time positioning information of the device, that is, the first longitude and latitude, by calling the GNSS positioning module.
[0043] It should be noted that the GNSS positioning module of the embodiment of the present invention is used to refresh the real-time positioning information of the module after the module is powered on. The GNSS positioning module is also used to extract the longitude and latitude information in the latest positioning information as the corresponding first longitude and latitude and send it back to the main control module when receiving the positioning read instruction sent by the main control module.
[0044] Step 3, performing number selection processing according to the first longitude and latitude and the seed number library to obtain the corresponding first card writing script, first PLMN information and first APN information;
[0045] Here, the seed number library of the implementation example of the present invention is used to store multiple first seed number records; each first seed number record corresponds to a preset seed card number; the first seed number record includes a first longitude range field, a first latitude range field, a first PLMN field, a first APN field, a first ICC ID field and a first script field; the first longitude range field is composed of two longitude range thresholds, which is the maximum longitude range of the available region of the current seed card number; the first latitude range field is composed of two latitude range thresholds, which is the maximum latitude range of the available region of the current seed card number; the first PLMN field and the first APN field are the PLMN and APN information of the telecommunications operator to which the current seed card number belongs; the first ICC ID field is the ICC ID information of the current seed card number; the first script field is the card writing script of the current seed card number;
[0046] The current step 3 specifically includes:
[0047] Step 31, the main control module extracts the first longitude range field and the first latitude range field of each first seed number record in the seed number library to form a corresponding first longitude and latitude range; and records the first longitude and latitude range covering the first longitude and latitude as the corresponding second longitude and latitude range;
[0048] Step 32, and identify the preset number selection mode; if the number selection mode is the maximum or minimum number selection mode, the coverage area of each second longitude and latitude range is estimated to obtain the corresponding first estimated area, and the first seed number record corresponding to the largest or smallest first estimated area is used as the corresponding current record; if the number selection mode is the center number selection mode, the center longitude and latitude of each second longitude and latitude range is estimated to obtain the corresponding first center longitude and longitude, and the straight-line distance between each first center longitude and longitude and the first longitude and longitude is calculated to obtain the corresponding first straight-line distance, and the first seed number record corresponding to the shortest first straight-line distance is used as the corresponding current record;
[0049] Among them, the number selection mode includes the maximum number selection mode, the minimum number selection mode and the center number selection mode;
[0050] Here, the three types of modes (maximum, minimum, and center) provided by the number selection mode in the embodiment of the present invention can be configured specifically for areas with complex distribution of networks (mobile communication networks) / operators (telecom operators of mobile communication networks):
[0051] 1) If there are one or more mobile communication networks of one or more communication standards in a certain area, and there are one or more telecom operators under each mobile communication network of each standard, and there is no obvious difference in the communication quality of each telecom operator, then it is preferred to set the number selection mode to the maximum number selection mode, that is, the telecom card number of the telecom operator with the largest signal coverage range is used as the current seed number; in the embodiment of the present invention, the coverage area of the second latitude and longitude range, that is, the first estimated area, is used as the scalar of the signal coverage range, then when the number selection mode = the maximum number selection mode, the first seed number record with the largest first estimated area will be used as the corresponding current record;
[0052] 2) If a region has one or more mobile communication networks of one or more communication standards, and each mobile communication network of one or more standards has one or more telecom operators, and there are differences in the roles of national and local operators among the telecom operators, and the communication quality of each local operator is better than that of the national operator, then it is preferred to set the number selection mode to the minimum number selection mode, that is, the telecom card number of the telecom operator with the smallest signal coverage range is used as the current seed number, because the signal coverage range of the local operator is usually smaller than or much smaller than that of the national operator; in the embodiment of the present invention, the first estimated area is used as a scalar of the signal coverage range, then when the number selection mode = the minimum number selection mode, the first seed number record with the smallest first estimated area will be used as the corresponding current record;
[0053] 3) If there are one or more mobile communication networks of one or more communication standards in a certain area, and there are one or more telecom operators under each mobile communication network of each standard, and the base station deployment rules of each operator network in the current area are to deploy base stations in a way that radiates outward from a central area and there is a deployment problem of central concentration and sparse edge, then it is preferred to set the number selection mode to the central number selection mode, that is, the telecom card number of the telecom operator with the closest distance between the network center and the current device location is used as the current seed number; in the embodiment of the present invention, the longitude and latitude of the first center point are used as the central position scalar of each operator network, and the first straight-line distance is used as the distance scalar between the current device and the center of each operator network. Then, when the number selection mode = the central number selection mode, the first seed number record with the shortest first straight-line distance will be used as the corresponding current record;
[0054] It should be noted that the above-mentioned maximum, minimum and center number selection modes are three number selection strategy modes summarized based on the scene characteristics of various types of networks / operators with complex distribution conditions. If there are other types of scene characteristics, the corresponding number selection strategy mode can be added to the number selection mode, and the corresponding number selection strategy processing steps can be added to the current device for the main control module to call and execute;
[0055] Step 33, extract the first PLMN field, the first APN field and the first script field of the current record as the corresponding first PLMN information, the first APN information and the first card writing script.
[0056] Here, the first card writing script in the embodiment of the present invention is actually a corresponding seed number card writing script.
[0057] Step 4: Send the card writing instruction carrying the first card writing script to the ESIM module; send the network login instruction to the mobile communication module when the card writing status sent back by the ESIM module is that the card writing is successful; send the air number creation request carrying the first PLMN information and the first APN information to the remote server when the network login status sent back by the mobile communication module is that the network login is successful; and receive the second card writing script sent back by the remote server.
[0058] Here, the main control module of the embodiment of the present invention will log in to the network instantly through the mobile communication module + ESIM module after successfully writing the card to the ESIM module through the seed number card writing script, and obtain the corresponding service number card writing script, i.e., the second card writing script, by sending an air number request with PLMN+APN information to the remote server after the successful login.
[0059] It should be noted that the mobile communication module of the embodiment of the present invention is used to call the ESIM module to perform a login operation on the corresponding mobile communication network when receiving a login instruction sent by the main control module, and when the login is successful, the login status specifically set to successful login is sent back to the main control module.
[0060] It should also be noted that the remote server of the embodiment of the present invention is used to extract the corresponding first PLMN information and first APN information as the corresponding current PLMN and current APN when receiving the air number request sent by the main control module; and based on the preset card number preference rule, perform the optimal card number script search on the card number resource library preset locally on the server to obtain the corresponding second card writing script and send it back to the main control module. The card number preference rule here is the number selection rule pre-set on the server side, which is irrelevant to the device side processing flow of the embodiment of the present invention and will not be described in detail here.
[0061] Step 5, a card writing instruction carrying a second card writing script is sent to the ESIM module; and when the card writing status sent back by the ESIM module is that the card writing is successful, a device restart operation is performed.
[0062] Here, the main control module of the embodiment of the present invention will immediately restart the device after successfully writing the card to the ESIM module through the business number card writing script. After the restart, the main control module will send a status reading instruction to the ESIM module again, and receive the first status sent back by the ESIM module again (the first status at this time should be a non-empty card); the main control module of the embodiment of the present invention will no longer execute steps 2-5 of the embodiment of the present invention when the first status is a non-empty card, but will instead execute other device processing steps. These other steps are not related to the air number download process of the embodiment of the present invention and will not be explained in detail here.
[0063] Figure 2 The module structure diagram of a processing device for air-based numbering based on positioning information provided in the second embodiment of the present invention, the device is a terminal device or server that implements the aforementioned method embodiment, and can also be a device that enables the aforementioned terminal device or server to implement the aforementioned method embodiment, for example, the device can be a device or chip system of the aforementioned terminal device or server. Figure 2 As shown, the device 100 includes: a main control module 1001, a GNSS positioning module 1002, a seed number library 1003, an ESIM module 1004 and a mobile communication module 1005.
[0064] The main control module 1001 of the embodiment of the present invention is respectively connected to the GNSS positioning module 1002, the seed number library 1003, the ESIM module 1004 and the mobile communication module 1005; the mobile communication module 1005 is connected to the ESIM module 1004; after the main control module 1001 successfully logs on to the network, it is connected to the remote server 101 through the mobile communication network successfully logged on by the mobile communication module 1005.
[0065] The main control module 1001 of the embodiment of the present invention is used to send a status reading instruction to the ESIM module 1004 when the device is started; and receive the first status sent back by the ESIM module 1004; and when the first status is an empty card, send a positioning reading instruction to the GNSS positioning module 1002; and receive the first longitude and latitude sent back by the GNSS positioning module 1002; and perform number selection processing according to the first longitude and latitude and the seed number library 1003 to obtain the corresponding first card writing script, first PLMN information and first APN information; and send the card writing instruction carrying the first card writing script to the ESIM module 1004; and When the card writing status sent back by the ESIM module 1004 is that the card writing is successful, the ESIM module 1004 sends a network login instruction to the mobile communication module 1005; and when the network login status sent back by the mobile communication module 1005 is that the network login is successful, the ESIM module 1004 sends an air number request carrying the first PLMN information and the first APN information to the remote server 101; and receives the second card writing script sent back by the remote server 101; and sends the card writing instruction carrying the second card writing script to the ESIM module 1004; and when the card writing status sent back by the ESIM module 1004 is that the card writing is successful, the device restarts; wherein, the first state includes an empty card and a non-empty card.
[0066] In a specific implementation of an embodiment of the present invention, the main control module 1001 is specifically used to extract the first longitude range field and the first latitude range field of each first seed number record of the seed number library 1003 to form a corresponding first longitude and latitude range when performing number selection processing according to the first longitude and latitude and the seed number library 1003 to obtain the corresponding first card writing script, the first PLMN information and the first APN information; and record the first longitude and latitude range covering the first longitude and latitude as the corresponding second longitude and latitude range; and identify the preset number selection mode; if the number selection mode is the maximum or minimum number selection mode, the coverage area of each second longitude and latitude range is estimated to obtain the corresponding first longitude and latitude range. The first estimated area is calculated, and the first seed number record corresponding to the largest or smallest first estimated area is used as the corresponding current record; if the number selection mode is the center number selection mode, the longitude and latitude of the center point of each second longitude and latitude range is estimated to obtain the corresponding first center point longitude and latitude, and the straight-line distance between each first center longitude and latitude and the first longitude and latitude is calculated to obtain the corresponding first straight-line distance, and the first seed number record corresponding to the shortest first straight-line distance is used as the corresponding current record; and the first PLMN field, the first APN field and the first script field of the current record are extracted as the corresponding first PLMN information, the first APN information and the first card writing script;
[0067] Among them, the number selection modes include maximum number selection mode, minimum number selection mode and center number selection mode.
[0068] It should be noted that the remote server 101 of the embodiment of the present invention is used to extract the corresponding first PLMN information and the first APN information as the corresponding current PLMN and current APN when receiving the over-the-air number request sent by the main control module 1001; and based on the preset card number optimization rule, perform an optimal card number script search on the card number resource library preset locally on the server to obtain the corresponding second card writing script and send it back to the main control module 1001.
[0069] The GNSS positioning module 1002 of the embodiment of the present invention is used to refresh the real-time positioning information of the module after the module is powered on. The GNSS positioning module 1002 is also used to extract the longitude and latitude information in the latest positioning information as the corresponding first longitude and latitude and send it back to the main control module 1001 when receiving the positioning read instruction sent by the main control module 1001.
[0070] The seed number library 1003 of the embodiment of the present invention is used to store multiple first seed number records. Each first seed number record corresponds to a preset seed card number; the first seed number record includes a first longitude range field, a first latitude range field, a first PLMN field, a first APN field, a first ICC ID field and a first script field; the first longitude range field is composed of two longitude range thresholds, which is the maximum longitude range of the available region of the current seed card number; the first latitude range field is composed of two latitude range thresholds, which is the maximum latitude range of the available region of the current seed card number; the first PLMN field and the first APN field are the PLMN and APN information of the telecommunications operator to which the current seed card number belongs; the first ICC ID field is the ICC ID information of the current seed card number; the first script field is the card writing script of the current seed card number.
[0071] The ESIM module 1004 of the embodiment of the present invention is used to set the built-in card number loading state to an empty card when no telecommunications card data is loaded. The ESIM module 1004 is also used to send the card number loading state as the corresponding first state to the main control module 1001 when receiving the state reading instruction sent by the main control module 1001. The ESIM module 1004 is also used to extract the corresponding current card writing script from the current card writing instruction when receiving the card writing instruction sent by the main control module 1001; and complete the corresponding telecommunications card data loading by running the current card writing script; and when the telecommunications card data is loaded successfully, set the card number loading state to a non-empty card, and simulate a corresponding telecommunications card based on the loaded telecommunications card data, and send the card writing state specifically set to a successful card writing back to the main control module 1001.
[0072] The mobile communication module 1005 of the embodiment of the present invention is used to call the ESIM module 1004 to perform a login operation on the corresponding mobile communication network when receiving a login instruction sent by the main control module 1001, and when the login is successful, send the login status set to successful login back to the main control module 1001.
[0073] An embodiment of the present invention provides a processing device for performing air number placement based on positioning information, which can execute the method steps in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0074] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the main control module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above-mentioned module is determined. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0075] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0076] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the above method embodiments are generated. The above computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, Bluetooth, microwave, etc.) methods. The above-mentioned computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The above-mentioned available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0077] The embodiment of the present invention provides a method and device for processing air number download based on positioning information. As can be seen from the above content, the embodiment of the present invention identifies whether the ESIM module is in an empty card state when the device is started, and when it is confirmed that it is in an empty card state, the number selection operation is performed based on the latitude and longitude fed back by the GNSS positioning module and the local seed number library to obtain the corresponding seed number writing script and PLMN+APN information, and after the ESIM module successfully runs the seed number writing script, the network is logged in through the mobile communication module+ESIM module, and after the network is successfully logged in, the corresponding service number writing script is obtained by sending an air number download request with PLMN+APN information to the remote server, and the device is restarted after the ESIM module successfully runs the service number writing script. The embodiment of the present invention improves the traditional "air number download" process, changes the random number selection method in the traditional process to the positioning number selection method, and also provides three optional modes for the positioning number selection method (maximum number selection mode, minimum number selection mode and center number selection mode). Through the embodiments of the present invention, on the one hand, one-time selection can be ensured, thereby improving the efficiency of selecting / downloading numbers; on the other hand, balanced use of seed numbers can be taken into account, thereby reducing the waste of traffic packages.
[0078] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0079] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0080] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for processing air number placement based on positioning information, characterized in that: The method comprises: The main control module of the first device sends a status reading instruction to the ESIM module in the device when the device is started; and receives the first status sent back by the ESIM module; the first device has the main control module, the ESIM module, the mobile communication module and the seed number library built in, and is externally or internally connected to a GNSS positioning module; the first status includes an empty card and a non-empty card; When the first state is an empty card, sending a positioning read instruction to the GNSS positioning module; and receiving the first longitude and latitude sent back by the GNSS positioning module; and performing number selection processing according to the first longitude and latitude and the seed number library to obtain a corresponding first card writing script, first PLMN information and first APN information; and sending a card writing instruction carrying the first card writing script to the ESIM module; and sending a network login instruction to the mobile communication module when the card writing status sent back by the ESIM module is that the card writing is successful; and sending an air number download request carrying the first PLMN information and the first APN information to the remote server when the network login status sent back by the mobile communication module is that the network login is successful; and receiving a second card writing script sent back by the remote server; The card writing instruction carrying the second card writing script is sent to the ESIM module; and when the card writing status sent back by the ESIM module indicates that the card writing is successful, a device restart operation is performed.
2. The method for processing air number placement based on positioning information according to claim 1, characterized in that: The ESIM module is used to set the built-in card number loading state to empty card when no telecom card data is loaded; The ESIM module is further configured to send the card number loading status as the corresponding first status back to the main control module upon receiving the status reading instruction sent by the main control module; The ESIM module is also used to extract the corresponding current card writing script from the current card writing instruction when receiving the card writing instruction sent by the main control module; The corresponding telecommunications card data loading is completed by running the current card writing script; and when the telecommunications card data is loaded successfully, the card number loading status is set to a non-empty card, and a corresponding telecommunications card is simulated based on the loaded telecommunications card data, and the card writing status specifically set to successful card writing is sent back to the main control module.
3. The method for processing air number placement based on positioning information according to claim 1, characterized in that: The GNSS positioning module is used to refresh the real-time positioning information of the module after the module is powered on; the GNSS positioning module is also used to extract the longitude and latitude information in the latest positioning information as the corresponding first longitude and latitude and send it back to the main control module when receiving the positioning read instruction sent by the main control module.
4. The method for processing air number placement based on positioning information according to claim 1, characterized in that: The seed number library is used to store multiple first seed number records; each of the first seed number records corresponds to a preset seed card number; the first seed number record includes a first longitude range field, a first latitude range field, a first PLMN field, a first APN field, a first ICC ID field and a first script field; The first longitude range field is composed of two longitude range thresholds, which are the maximum longitude range of the available region of the current seed card number; The first latitude range field is composed of two latitude range thresholds, which is the maximum latitude range of the available area of the current seed card number; the first PLMN field and the first APN field are the PLMN and APN information of the telecom operator to which the current seed card number belongs; the first ICC ID field is the ICC ID information of the current seed card number; and the first script field is the card writing script of the current seed card number.
5. The method for processing air number placement based on positioning information according to claim 4, characterized in that: The step of performing number selection processing according to the first longitude and latitude and the seed number library to obtain the corresponding first card writing script, first PLMN information and first APN information specifically includes: The main control module extracts the first longitude range field and the first latitude range field of each first seed number record in the seed number library to form a corresponding first longitude and latitude range; and records the first longitude and latitude range covering the first longitude and latitude as the corresponding second longitude and latitude range; and identifying a preset number selection mode; if the number selection mode is a maximum or minimum number selection mode, estimating the coverage area of each second longitude and latitude range to obtain a corresponding first estimated area, and taking the first seed number record corresponding to the largest or smallest first estimated area as the corresponding current record; if the number selection mode is a center number selection mode, estimating the center point longitude and latitude of each second longitude and latitude range to obtain a corresponding first center point longitude and latitude, and calculating the straight-line distance between each first center longitude and longitude and the first longitude and longitude to obtain a corresponding first straight-line distance, and taking the first seed number record corresponding to the shortest first straight-line distance as the corresponding current record; the number selection mode includes a maximum number selection mode, a minimum number selection mode and a center number selection mode; And the first PLMN field, the first APN field and the first script field of the current record are extracted as the corresponding first PLMN information, the first APN information and the first card writing script.
6. The method for processing air number placement based on positioning information according to claim 1, characterized in that: The mobile communication module is used to call the ESIM module to perform a login operation on the corresponding mobile communication network when receiving the login instruction sent by the main control module, and when the login is successful, send the login status specifically set as successful login back to the main control module.
7. The method for processing air number placement based on positioning information according to claim 1, characterized in that: The remote server is used to extract the corresponding first PLMN information and the first APN information as the corresponding current PLMN and current APN when receiving the over-the-air number request sent by the main control module; and based on the preset card number optimization rule, perform an optimal card number script search on the card number resource library preset locally on the server to obtain the corresponding second card writing script and send it back to the main control module.
8. A processing device for performing air number placement based on positioning information, characterized in that: The device comprises: a main control module, a GNSS positioning module, a seed number library, an ESIM module and a mobile communication module; The main control module is connected to the GNSS positioning module, the seed number library, the ESIM module and the mobile communication module respectively; the mobile communication module is connected to the ESIM module; after the device successfully logs on to the network, the main control module is connected to the remote server through the mobile communication network successfully logged on by the mobile communication module; The main control module is used to send a status reading instruction to the ESIM module when the device is started; and receive the first status sent back by the ESIM module; and when the first status is an empty card, send a positioning reading instruction to the GNSS positioning module; and receive the first longitude and latitude sent back by the GNSS positioning module; and perform number selection processing according to the first longitude and latitude and the seed number library to obtain the corresponding first card writing script, first PLMN information and first APN information; and send the card writing instruction carrying the first card writing script to the ESIM module; and send a login instruction to the mobile communication module when the card writing status sent back by the ESIM module is a successful card writing; and when the login status sent back by the mobile communication module is a successful login, send an air number request carrying the first PLMN information and the first APN information to the remote server; and receive a second card writing script sent back by the remote server; and send the card writing instruction carrying the second card writing script to the ESIM module; and restart the device when the card writing status sent back by the ESIM module is a successful card writing; the first state includes an empty card and a non-empty card; The GNSS positioning module is used to refresh the real-time positioning information of the module after the module is powered on; the GNSS positioning module is also used to extract the longitude and latitude information in the latest positioning information as the corresponding first longitude and latitude and send it back to the main control module when receiving the positioning reading instruction sent by the main control module; The seed number library is used to store a plurality of first seed number records; each of the first seed number records corresponds to a preset seed card number; The ESIM module is used to set the built-in card number loading state to an empty card when no telecom card data is loaded; the ESIM module is also used to send the card number loading state as the corresponding first state to the main control module when receiving the state reading instruction sent by the main control module; the ESIM module is also used to extract the corresponding current card writing script from the current card writing instruction when receiving the card writing instruction sent by the main control module; and complete the corresponding telecom card data loading by running the current card writing script; and when the telecom card data is loaded successfully, set the card number loading state to a non-empty card, simulate a corresponding telecom card based on the loaded telecom card data, and send the card writing state specifically set to a successful card writing back to the main control module; The mobile communication module is used to call the ESIM module to perform a login operation on the corresponding mobile communication network when receiving the login instruction sent by the main control module, and when the login is successful, send the login status specifically set as successful login back to the main control module.
9. The processing device for performing air number placement based on positioning information according to claim 8, characterized in that: The first seed number record includes a first longitude range field, a first latitude range field, a first PLMN field, a first APN field, a first ICC ID field and a first script field; The first longitude range field is composed of two longitude range thresholds, which are the maximum longitude range of the available region of the current seed card number; The first latitude range field is composed of two latitude range thresholds, which is the maximum latitude range of the available area of the current seed card number; the first PLMN field and the first APN field are the PLMN and APN information of the telecom operator to which the current seed card number belongs; the first ICC ID field is the ICC ID information of the current seed card number; and the first script field is the card writing script of the current seed card number.
10. The processing device for performing air number placement based on positioning information according to claim 9, characterized in that: The main control module is specifically used for extracting the first longitude range field and the first latitude range field of each of the first seed number records in the seed number library to form a corresponding first longitude and latitude range when the corresponding first card writing script, first PLMN information and first APN information are obtained by performing number selection processing according to the first longitude and latitude and the seed number library; and recording the first longitude and latitude range covering the first longitude and latitude as the corresponding second longitude and latitude range; and identifying the preset number selection mode; if the number selection mode is the maximum or minimum number selection mode, estimating the coverage area of each of the second longitude and latitude ranges to obtain the corresponding first estimated area, and recording the first type of the largest or smallest first estimated area corresponding to the first type of the first estimated area The sub-number record is used as the corresponding current record; if the number selection mode is the center number selection mode, the longitude and latitude of the center point of each of the second longitude and latitude ranges are estimated to obtain the corresponding first center point longitude and longitude, and the straight-line distance between each of the first center longitude and longitude and the first longitude and longitude is calculated to obtain the corresponding first straight-line distance, and the first seed number record corresponding to the shortest first straight-line distance is used as the corresponding current record; and the first PLMN field, the first APN field and the first script field of the current record are extracted as the corresponding first PLMN information, the first APN information and the first card writing script; wherein the number selection modes include a maximum number selection mode, a minimum number selection mode and a center number selection mode.
11. The processing device for performing air number placement based on positioning information according to claim 8, characterized in that: The remote server is used to extract the corresponding first PLMN information and the first APN information as the corresponding current PLMN and current APN when receiving the over-the-air number request sent by the main control module; and based on the preset card number optimization rule, perform an optimal card number script search on the card number resource library preset locally on the server to obtain the corresponding second card writing script and send it back to the main control module.
Citation Information
Patent Citations
Processing method and device for responding to equipment number changing instruction
CN112437429A
Processing method for data downloading terminal to update eSIM card data
CN115567912A
Processing method for remote number writing of vSIM (Virtual Subscriber Identity Module)
CN117915309A