A positioning trigger-based eSIM local intelligent switching method and system
By establishing a basic communication link and comprehensively judging the location and cell location, and filtering and verifying the eSIM configuration file, the problems of misjudgment and communication instability in eSIM handover were solved, and reliable communication handover of the terminal was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN XIAOBEN INFORMATION TECHNOLOGY CO LTD
- Filing Date
- 2026-05-06
- Publication Date
- 2026-07-31
AI Technical Summary
Existing eSIM handover methods are susceptible to location drift, boundary errors, and overlapping network coverage when determining location, leading to misjudgments and communication instability. Furthermore, the benefits of link migration have not been fully verified, which may cause the terminal to lose connection.
By establishing a basic communication link, generating a handover observation group, comprehensively judging the location, cell location and positioning accuracy, screening candidate configuration files, selecting the target configuration file based on the link migration margin, and switching the link when the actual measurement meets the conditions; otherwise, restoring the basic configuration.
This reduces the risk of misjudging the location, improves the reliability of configuration file screening, ensures communication continuity, and avoids terminal disconnection due to misjudgment.
Smart Images

Figure CN122496885A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, specifically to a location-triggered eSIM location-based intelligent handover method and system. Background Technology
[0002] With the increasing number of IoT terminals, vehicle-mounted terminals, shared devices, industrial data acquisition devices, and remote monitoring devices deployed across regions, it is often difficult to determine the final usage location of the terminals in advance during the manufacturing, warehousing, transportation, or sales stages. Traditional methods typically use pre-installed physical SIM cards or nationwide universal communication configurations to achieve network connectivity. However, when the actual deployment location of the terminal differs from the pre-installed communication configuration location, problems such as high costs for remote access, insufficient network coverage adaptability, unstable communication quality, and complex subsequent operation and maintenance management can easily arise. For scenarios requiring communication resource management based on provinces, cities, or operator locations, manually replacing physical SIM cards necessitates advance card sorting, warehousing, distribution, and on-site card replacement, which is difficult to adapt to the application requirements of batch deployment and cross-regional allocation.
[0003] eSIM technology enables remote downloading, installation, and activation of communication profiles, allowing for communication configuration after the terminal arrives at the actual usage area. In existing technologies, the appropriate eSIM profile is typically selected based on the terminal's location, operator resources, or network status, and the configuration is updated remotely via SIM card writing. However, in practical use, relying solely on a single location result to determine the location and trigger eSIM writing is susceptible to factors such as location drift, errors near administrative boundaries, brief stops during transport, and overlapping base station coverage, leading to misjudgment of the target location and thus triggering incorrect SIM card writing or unnecessary configuration switching.
[0004] Furthermore, current eSIM handover processes primarily focus on whether the target profile can be downloaded or installed, while neglecting to consider the benefits of link migration and service carrying capacity before and after the handover. Even if the target eSIM profile matches the target region, it may fail to effectively carry current services after installation due to insufficient registration success rate, data carrying capacity, message confirmation capability, or online stability of the corresponding network in the current area. Directly switching the primary communication link without sufficient verification of the target link may also cause terminal disconnection, especially for IoT devices that rely solely on remote management, increasing recovery difficulty and maintenance costs.
[0005] Therefore, it is necessary to provide a location-triggered eSIM location-based intelligent handover method. Under the premise of maintaining the availability of the basic communication link, this method comprehensively judges the location, cell location, location error, and location boundary relationship, reducing the risk of misjudgment of location caused by boundary areas and location drift. At the same time, during the target configuration file screening and main link switching process, the method combines the carrying differences between candidate links and basic links to avoid switching the terminal to the target eSIM link that does not have effective service carrying capacity, thereby improving the reliability and communication continuity of cross-regional terminal eSIM location handover. Summary of the Invention
[0006] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a location-triggered eSIM location-based intelligent handover method and system to solve the above-mentioned technical problems.
[0007] To achieve the above objectives, the present invention provides the following technical solution: a location-triggered eSIM smart handover method, comprising: A basic communication link is established through a pre-configured index communication system. A handover session identifier is generated based on the terminal access request uploaded through the basic communication link. The collected location data, wireless network measurement data, and eSIM status data are associated and encapsulated according to the handover session identifier to generate a handover observation group. Based on the switching observation group within a continuous time window, the location, cell location, positioning accuracy, and boundary distance from the location to the location boundary are obtained; the location spillover risk is generated based on the spillover of positioning accuracy relative to the boundary distance, the consistency between the location and cell locations, and the acquisition time; when the location spillover risk is lower than the target location confirmation risk requirement, the target location result is generated. Extract candidate configuration files from the eSIM configuration file pool that match the target location; eliminate unusable configuration files based on configuration admission criteria; generate link migration margin based on the network access records, current service communication requirements, and basic communication link status of the remaining candidate configuration files; and filter the target configuration file based on the link migration margin. The system requests authorization writing parameters based on the target configuration file, encapsulates the writing task based on the authorization writing parameters, and sends it to the terminal through the basic communication link. After the terminal verifies the writing task, it installs the target configuration file into the eSIM unit. After installing the target configuration file, activate the target configuration file and perform target mobile network search, network registration, data bearer establishment and test message return. Generate the measured link migration net margin based on the execution results. When the measured net migration margin meets the conditions for switching to the primary link, the target eSIM link will be switched to the primary communication link; otherwise, the preset index communication configuration will be restored and the failure phase will be reported through the basic communication link.
[0008] The present invention is further configured such that the step of performing correlation encapsulation to generate a switching observation group includes: Observation data records are created based on the switching session identifier as an index, and the acquisition time, location items, network measurement items, and card status items are preset in the observation data records; Positioning data is collected through the positioning unit, including the positioning location and positioning accuracy; the positioning location and positioning accuracy are then written into the positioning item in the switching observation group. Wireless network measurement data is collected through the communication unit. The wireless network measurement data includes the Public Land Mobile Network Identifier and the Cell Identifier. The Public Land Mobile Network Identifier and the Cell Identifier are then written into the network measurement items in the handover observation group. The eSIM status data is read through the eSIM management unit. The eSIM status data includes the currently enabled profile identifier, the preset index communication configuration identifier, the eSIM unit writable status, and the installed profile status. The eSIM status data is then written to the card status item in the handover observation group. The location items, network measurement items, and card status items are time-aligned according to the acquisition time, and encapsulated together with the handover session identifier to generate a single-frame handover observation group; multiple consecutively generated single-frame handover observation groups are sorted according to the acquisition time to form a continuous time window for location determination.
[0009] The present invention is further configured such that the generation of the territorial spillover risk quantity includes: The location is generated by matching the location with the pre-stored boundary data, and the boundary distance from the location to the boundary of the location is calculated. The cell location is generated by querying the cell location mapping table based on the public terrestrial mobile network identifier and the cell identifier; A location spillover component is generated based on the degree of deviation of the positioning accuracy from the boundary distance, and a location conflict component is generated based on the consistency or conflict between the positioning location and the cell location. Based on the collection time, the location spillover component and the local conflict component within a continuous time window are accumulated to generate the local spillover risk quantity.
[0010] The present invention is further configured such that generating the target territory result based on the territory spillover risk includes: When the location and the community location point to the same location within a preset time period, and the risk of location spillover is lower than the risk requirement for the target location confirmation, the target location result will be generated for that location. When the risk of spillover from the local area is within the range of observed risk, the continuous time window is extended, the basic communication link is maintained, and the local judgment is continued based on the subsequent switchover observation group. When the risk of spillover from the location exceeds the write card suppression risk requirement, or when there is a continuous conflict between the location and the community location, no target location result will be generated, and the target configuration file screening process will be prohibited.
[0011] The present invention is further configured such that the step of removing unavailable configuration files based on configuration admission criteria includes: Configure access conditions including mobile network access conditions, frequency band access conditions, installation access conditions, and file status access conditions; The system determines whether the target mobile network standard corresponding to the candidate profile is supported by the terminal based on the mobile network access conditions; it determines whether the available frequency bands of the mobile network corresponding to the candidate profile in the target territory match the frequency bands supported by the terminal based on the frequency band access conditions; it determines whether the eSIM unit is allowed to install a new profile based on the installation access conditions; and it determines whether the candidate profile is in an authorized, allocable, and unoccupied state based on the file status access conditions. When the mobile network access conditions, frequency band access conditions, installation access conditions, and file status access conditions are all met, the candidate configuration files are retained as access configuration files and aggregated to generate a set of access configuration files; If any admission condition is not met, the corresponding candidate configuration file will be identified as an unusable configuration file and removed.
[0012] The present invention is further configured such that the generated link migration net margin includes: Read the network access record and current service communication requirements corresponding to the admission configuration file, compare the link capacity value in the network access record with the current service communication requirements, and form candidate link carrying capacity. Read the basic communication link status, compare the link capacity value in the basic communication link status with the current business communication requirements, and form the basic link carrying capacity margin; The candidate link carrying capacity is compared with the basic link carrying capacity to generate the link migration net capacity. Associate the net migration margin of the link with the corresponding admission profile to generate a profile migration evaluation record.
[0013] The present invention is further configured such that the step of filtering the target configuration file based on the net link migration margin includes: Based on the migration evaluation records of the configuration files, the set of migrationable configuration files is generated by removing the admission configuration files whose link migration net margin does not meet the preset migration requirements. The admission configuration files in the set of migrateable configuration files are sorted according to the net migration margin of the link, and the admission configuration file with the highest sorting priority is determined as the target configuration file. When the set of migrated configuration files is empty, maintain the basic communication link and return to perform the locality determination.
[0014] The present invention is further configured such that, the step of encapsulating the card writing task based on the authorized card writing parameters and sending it to the terminal through the basic communication link, so that the terminal verifies the card writing task and then installs the target configuration file to the eSIM unit, includes: An authorization write request is generated based on the target configuration file identifier, target mobile network identifier, terminal identifier, and eSIM unit identifier, and the authorization write parameters are obtained through the operator's authorization write interface; The authorized card writing parameters, switch session identifier, target configuration file identifier and task verification information are encapsulated to generate a card writing task, which is then sent to the terminal through the basic communication link. Perform session consistency, task validity and integrity checks on the card writing task. When the checks pass and the eSIM unit is in an installable state, install the target configuration file to the eSIM unit according to the authorized card writing parameters. If the verification fails or the eSIM unit is not in an installable state, terminate the installation of the target profile and maintain the basic communication link.
[0015] The present invention is further configured such that generating the measured link migration net margin and performing the main communication link switch includes: After the target configuration file is installed, the target configuration file is activated, and the target mobile network search, network registration, data bearer establishment and test message return are performed according to the target mobile network identifier corresponding to the target configuration file to form the actual test status of the target link; Compare the measured link capacity value of the target link with the current service communication requirements to form the measured bearing capacity margin of the target link. Compare the link capacity value in the basic communication link status with the current service communication requirements to form the measured carrying capacity margin of the basic link. The measured carrying capacity of the target link is compared with the measured carrying capacity of the basic link to form the measured net carrying capacity of the link migration. When the measured net migration margin of the link meets the conditions for switching the main link, the target eSIM link will be switched to the main communication link. When the measured net migration margin of the link does not meet the conditions for switching the main link, the preset index communication configuration is restored, and the failure stage is reported through the basic communication link.
[0016] The present invention also provides a location-triggered eSIM smart handover system, the system comprising: Link establishment and encapsulation module: Establishes a basic communication link through a pre-set index communication configuration, generates a handover session identifier based on the terminal access request uploaded through the basic communication link, and associates and encapsulates the collected location data, wireless network measurement data and eSIM status data according to the handover session identifier to generate a handover observation group; Spillover Assessment Module: Based on the switching observation group within a continuous time window, it obtains the location, cell location, positioning accuracy, and boundary distance from the location to the location boundary; it generates a location spillover risk quantity based on the spillover of positioning accuracy relative to the boundary distance, the consistency between the location and cell locations, and the collection time; and it generates the target location result based on the location spillover risk quantity. Configuration filtering module: Extracts candidate configuration files from the eSIM configuration file pool whose location matches the target location; removes unusable configuration files based on configuration admission criteria; generates link migration margin based on the network access record, current service communication requirements, and basic communication link status of the remaining candidate configuration files; and filters the target configuration file based on the link migration margin. Authorized card writing module: Requests authorized card writing parameters based on the target configuration file, encapsulates the card writing task based on the authorized card writing parameters, and sends it to the terminal through the basic communication link, so that the terminal verifies the card writing task and installs the target configuration file into the eSIM unit; Link verification module: After installing the target configuration file, activate the target configuration file and perform target mobile network search, network registration, data bearer establishment and test message return. Based on the execution results, generate the measured link migration net margin. Switchback module: When the measured net migration margin of the link meets the conditions for switching to the main link, the target eSIM link is switched to the main communication link; if not, the preset index communication configuration is restored and the failure stage is reported through the basic communication link.
[0017] This invention provides a location-triggered eSIM smart handover method and system. The method establishes a basic communication link through a pre-configured index communication setup. A handover session identifier is generated based on terminal access requests uploaded through this basic communication link. The collected location data, wireless network measurement data, and eSIM status data are associated and encapsulated according to the handover session identifier to generate a handover observation group. Based on the handover observation group within a continuous time window, the location, cell, location accuracy, and boundary distance from the location to the location boundary are obtained. A location spillover risk is generated based on the spillover of location accuracy relative to the boundary distance, the consistency between the location and cell boundaries, and the data collection time. When the location spillover risk is lower than the target location confirmation risk requirement, a target location result is generated. Candidate configuration files with consistent location results are extracted from the eSIM configuration file pool. Admission is then based on the configuration settings. Unusable configuration files are conditionally removed. Based on the network access records, current service communication requirements, and basic communication link status corresponding to the remaining candidate configuration files, a link migration margin is generated. Target configuration files are then selected based on this margin. Authorized card writing parameters are requested based on the target configuration file. The card writing task is encapsulated based on these parameters and sent to the terminal via the basic communication link. The terminal verifies the card writing task and installs the target configuration file into the eSIM unit. After installation, the target configuration file is activated, and target mobile network search, network registration, data bearer establishment, and test message return are performed. The measured link migration margin is generated based on the execution results. When the measured link migration margin meets the primary link switching conditions, the target eSIM link is switched to the primary communication link. If not, the pre-configured index communication configuration is restored, and a failure phase is reported via the basic communication link. The beneficial effects include: 1. Reduce the risk of misjudgment of location: Generate the risk of location spillover by considering location, cell location, positioning accuracy and boundary distance. In boundary areas, positioning drift or cell coverage overlap scenarios, suppress incorrect location confirmation and reduce erroneous card writing and invalid handover triggered by misjudgment. 2. Improve the reliability of configuration file selection: By comparing the carrying capacity improvement of candidate eSIM links relative to basic communication links through the net margin of link migration, the target configuration file not only meets the requirements of local consistency and access, but also better adapts to the current business communication needs, thereby improving the accuracy of configuration selection. 3. Ensure communication continuity during the handover process: After the target configuration file is installed, decide whether to submit the main link handover based on the measured net migration margin of the link. If the verification is insufficient, restore the preset index communication configuration to avoid the terminal losing connection due to the unavailability of the target eSIM link and improve the security of remote handover.
[0018] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings: Figure 1 A flowchart illustrating a location-triggered eSIM location-based intelligent handover method is shown as an exemplary embodiment of the present invention. Figure 2 This is a schematic diagram illustrating the structure of a location-triggered eSIM smart handover system, which is an exemplary embodiment of the present invention. Detailed Implementation
[0020] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0021] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0022] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.
[0023] Example 1: A location-triggered eSIM smart handover method, such as Figure 1 As shown, it includes: A basic communication link is established through a pre-configured index communication system. A handover session identifier is generated based on the terminal access request uploaded through the basic communication link. The collected location data, wireless network measurement data, and eSIM status data are associated and encapsulated according to the handover session identifier to generate a handover observation group. Based on the switching observation group within a continuous time window, the location, cell location, positioning accuracy, and boundary distance from the location to the location boundary are obtained; the location spillover risk is generated based on the spillover of positioning accuracy relative to the boundary distance, the consistency between the location and cell locations, and the acquisition time; when the location spillover risk is lower than the target location confirmation risk requirement, the target location result is generated. Extract candidate configuration files from the eSIM configuration file pool that match the target location; eliminate unusable configuration files based on configuration admission criteria; generate link migration margin based on the network access records, current service communication requirements, and basic communication link status of the remaining candidate configuration files; and filter the target configuration file based on the link migration margin. The system requests authorization writing parameters based on the target configuration file, encapsulates the writing task based on the authorization writing parameters, and sends it to the terminal through the basic communication link. After the terminal verifies the writing task, it installs the target configuration file into the eSIM unit. After installing the target configuration file, activate the target configuration file and perform target mobile network search, network registration, data bearer establishment and test message return. Generate the measured link migration net margin based on the execution results. When the measured net migration margin meets the conditions for switching to the primary link, the target eSIM link will be switched to the primary communication link; otherwise, the preset index communication configuration will be restored and the failure phase will be reported through the basic communication link.
[0024] The present invention is further configured such that the step of performing correlation encapsulation to generate a switching observation group includes: Observation data records are created using the handover session identifier as an index, and the collection time, location items, network measurement items, and card status items are preset in the observation data records. Specifically, when a cross-regional networked terminal performs eSIM location handover initialization, the terminal first accesses the mobile communication network through a preset index communication configuration. The preset index communication configuration can be a preset physical SIM configuration or a basic communication configuration file preset in eUICC. After the terminal accesses the server, it uploads a terminal access request, which includes at least the terminal identifier, the preset index communication configuration identifier, the currently enabled configuration file identifier, and the request time. After receiving the terminal access request, the server assigns a handover session identifier to this location handover process. The handover session identifier is used to associate the collected data, card writing task, installation result, and rollback result in the same handover process. Subsequently, observation data records are created using the handover session identifier as an index, and the collection time, location items, network measurement items, and card status items are preset in the observation data records. This process ensures that subsequent data from different sources all fall under the same session index, avoiding mismatches between location data, wireless network measurement data, and eSIM status data due to different collection times or different source interfaces. Positioning data is collected through a positioning unit, including location and accuracy. This location and accuracy are then written into the positioning item in the switching observation group. Specifically, positioning data is collected through the terminal's built-in positioning unit, which can utilize GNSS, base station, or Wi-Fi assisted positioning interfaces. The positioning data includes at least location and accuracy. The location can be latitude and longitude coordinates, and the accuracy can be the error radius or accuracy level conversion value output by the positioning module. The acquisition cycle can be set according to the terminal's power consumption and mobility status; for example, a 5-second sampling cycle can be used during the location determination phase, while the sampling frequency is reduced when the terminal is stationary or in a low-power state. After acquiring the positioning data, the location and accuracy are written into the positioning item in the observation data record. The acquisition time is retained during writing to allow the positioning item to be subsequently aligned with network measurement items and card status items near the same acquisition time. The positioning item subsequently serves as a data source for determining the location, the distance from the location to the location boundary, and the risk of location spillover. Wireless network measurement data is collected through the communication unit. This data includes the Public Land Mobile Network (PLN) identifier and the cell identifier. The PLAN identifier and cell identifier are then written into the network measurement items in the handover observation group. Specifically, the communication unit can call the network measurement interface or AT command interface of the cellular communication module to read the current network measurement results. The wireless network measurement data includes at least the PLAN identifier and the cell identifier; where available, signal strength, signal quality, signal-to-interference-plus-noise ratio (SIR), and network registration status can also be read simultaneously. The PLAN identifier is used to distinguish operator networks, and the cell identifier is used to determine the current serving cell or neighboring cells. Network measurement data can be collected at a frequency of once per second or updated with the communication module's measurement report, and merged into the positioning acquisition cycle when a handover observation group is formed. Writing the PLAN identifier and cell identifier into the network measurement items allows the server to determine the cell location based on a pre-stored cell location mapping table. This process provides a communication-side basis for subsequent consistency judgment between the positioning location and the cell location. The eSIM status data is read through the eSIM management unit, which includes the currently enabled profile identifier, the preset index communication configuration identifier, the eSIM unit's writable status, and the installed profile status. This eSIM status data is then written to the card status item in the handover observation group. Specifically, the eSIM management unit can be the eUICC management interface, LPA management interface, or local profile management module within the terminal. The eSIM status data includes the currently enabled profile identifier, the preset index communication configuration identifier, the eSIM unit's writable status, and the installed profile status. The currently enabled profile identifier determines the communication configuration currently being used by the terminal; the preset index communication configuration identifier is used to restore the basic communication link in case of card writing failure or link verification failure; the eSIM unit's writable status determines whether installing a new target profile is allowed; and the installed profile status avoids duplicate installation or overwriting of abnormal profiles. The eSIM status data can be read once when the session is established and again before, after, and when the enabled status changes. Write the above eSIM status data into the card status item so that the handover observation group includes not only location and network information, but also the current communication configuration and writable status, providing a data basis for subsequent configuration admission judgment and failure rollback; The location items, network measurement items, and card status items are time-aligned according to their acquisition time, and then encapsulated together with the handover session identifier to generate a single-frame handover observation group. Multiple consecutively generated single-frame handover observation groups are sorted according to their acquisition time to form a continuous time window for location determination. Specifically, within a single acquisition cycle, the location items, network measurement items, and card status items are time-aligned according to their acquisition time. During time alignment, the acquisition time of the location item can be used as the reference time. Network measurement items and card status items closest to this reference time and within the allowable time deviation range are included in the same observation data record. The allowable time deviation can be set according to the sampling cycle, for example, not exceeding half of a positioning sampling cycle. If multiple sampling values exist for a network measurement item within the same positioning sampling cycle, the measurement value closest to the location item's acquisition time can be selected, or the public land mobile network identifier and cell identifier within that cycle can be filtered for stability before being written. After time alignment, the location items, network measurement items, card status items, and handover session identifier are encapsulated together to generate a single-frame handover observation group. Subsequently, multiple consecutively generated single-frame handover observation groups are sorted according to their acquisition time to form a continuous time window. The continuous time window is used for subsequent location determination. Its function is to establish the target location result on multiple continuous observation records, thereby reducing the impact of a single location drift, a single cell reselection, or an instantaneous network measurement anomaly on the determination result.
[0025] The present invention is further configured such that the generation of the territorial spillover risk quantity includes: The system generates a location domain by matching the location with pre-stored boundary data and calculates the boundary distance from the location to the location domain boundary. Specifically, in this embodiment, the applicable object is a network terminal equipped with a positioning unit, a communication unit, and an eSIM management unit. The system input object is a handover observation group within a continuous time window. Each handover observation group includes at least the acquisition time, location, positioning accuracy, public land mobile network identifier, and cell identifier. The location is acquired by the positioning unit through GNSS, base station positioning, or auxiliary positioning interface. The positioning accuracy is the error radius synchronously output by the positioning interface or the error radius converted from the accuracy level. The pre-stored boundary data is the administrative domain boundary line data stored locally on the server or terminal, which can be stored in the form of vector boundary data. During processing, the location is first spatially matched with the pre-stored boundary data to determine the administrative domain to which the location falls, and this is taken as the location domain. Then, the boundary line corresponding to the location domain is extracted, the shortest distance from the location to the boundary line is calculated, and the boundary distance is generated. Boundary distance is used to reflect the safe space between the location and the adjacent territory boundary. It is then used together with the positioning accuracy to determine whether the positioning error range may exceed the current location territory. Cell location is generated by querying the cell location mapping table based on the public land mobile network identifier and cell identifier. Specifically, wireless network measurement data is collected by the communication unit through the network measurement interface of the cellular communication module. The public land mobile network identifier is used to identify the operator's network, and the cell identifier is used to identify the current serving cell or neighboring cell. The system pre-establishes a cell location mapping table, which includes at least the public land mobile network identifier, cell identifier, and corresponding location identifier. During processing, the public land mobile network identifier and cell identifier in the switching observation group are used as a joint index to query the cell location mapping table to obtain the cell location corresponding to the cell. If multiple cell identifiers exist within the same collection period, the current serving cell can be used first; if the serving cell is missing, a neighboring cell with signal quality that meets preset requirements and has a stable occurrence frequency can be used. This process allows the location determination to have both location-side and network-side sources, facilitating the identification of conflict states between the location location and the actual access network location. A positioning spillover component is generated based on the degree to which the positioning accuracy exceeds the boundary distance, and a location conflict component is generated based on the consistency or conflict between the positioning location and the cell location. Specifically, the positioning spillover component represents the degree to which the positioning error range exceeds the positioning location boundary, and its source is the positioning accuracy and the boundary distance. Let the first... The positioning accuracy in each switching observation group is The boundary distance is The overflow component is located as Then it can be formed according to the following rules: when At that time, the positioning error range did not exceed the positioning location boundary. ;when At that time, a positioning overflow component is generated based on the proportion by which the positioning accuracy exceeds the boundary distance. The calculation formula is as follows: ,in, A larger value indicates that the positioning error range is more likely to cover adjacent locations. The location conflict component is used to indicate whether the positioning location and the cell location are consistent. The location is set to... The residential area belongs to The territorial conflict weight is ,when hour, ;when hour, Therefore, each single-frame switching observation group generates a set of intermediate quantities. These represent the spillover risk at the location error level and the territorial conflict risk at the network affiliation level, respectively. This calculation process quantifies location errors near the boundary and cell territorial conflicts separately, avoiding relying solely on a single location result to trigger subsequent card writing processes. Based on the collection time, the location spillover component and the location conflict component within a continuous time window are accumulated to generate a location spillover risk quantity. Specifically, the switching observation groups within the continuous time window are arranged in ascending order of collection time. Invalid observation groups with missing collection time, missing positioning accuracy, or inability to query the cell location are removed, and valid observation groups whose time intervals meet the sampling continuity requirements are retained. Assume there are a total of [number missing] observation groups within the continuous time window. For each effective observation group, the location spillover component and territorial conflict component of each effective observation group are accumulated to generate the territorial spillover risk quantity. ,in, This represents the risk of location spillover within a continuous time window. A lower value indicates that the positioning error is less likely to exceed the current location's jurisdiction, and that the location and cell jurisdiction are more stable and consistent. A higher value indicates a stronger risk of boundary crossing or jurisdictional conflict. The role of data collection time in this step is to ensure that the risk value reflects a stable state over a continuous time period, rather than an occasional state within a single frame. When a short-term positioning jump or instantaneous cell handover occurs within the continuous time window, the jump only affects the corresponding single frame. or The location spillover does not directly determine the location determination result for the entire window. In a specific feasible scenario, within a continuous time window containing five valid observation groups, all locations fall within the same location, and the cell locations are consistent with the location. The location spillover components for the five observation groups are 0, 0, 0.05, 0, and 0.04, respectively, and the location conflict component is 0. Therefore, the location spillover risk is 0.018. If the target location confirmation risk requirement is set to 0.10, the window meets the target location confirmation condition and a target location result can be generated. If the location spillover components in another window are 0.30, 0.25, 0.28, 0.32, and 0.27, respectively, and two of the observation groups have cell locations inconsistent with the location, the location spillover risk increases significantly. The system maintains the basic communication link and continues to perform location determination. Thus, this implementation can distinguish between stable location states and boundary spillover risk states, ensuring that the target location result has a traceable data source and a reproducible calculation process.
[0026] The present invention is further configured such that generating the target territory result based on the territory spillover risk includes: When the location and cell locations point to the same location within a preset duration, and the location spillover risk is lower than the target location confirmation risk requirement, a target location result is generated for that location. Specifically, in this embodiment, the processing objects are the location spillover risk, location, cell, and acquisition time already generated within the continuous time window. The location spillover risk comes from the previous processing and represents the risk of the location error exceeding the location boundary and the conflict risk between the location and cell locations. The server reads the single-frame location pointing results in the continuous time window according to the acquisition time. Each single-frame location pointing result includes the location, cell, location spillover risk, and corresponding acquisition time. If the location and cell locations in multiple consecutive single-frame location pointing results all point to the same location, the continuous pointing time of the same location is determined based on the acquisition time of the first acquisition time that meets the consistency condition and the current acquisition time. Let the location spillover risk be... The target location must be identified as having risk requirements. The duration of continuous pointing to the same location is The preset duration is When satisfied and At that time, the same territory will be generated as the target territory result. Target territory confirmation risk requirements. Pre-set based on positioning accuracy error range, boundary data accuracy, and cell location mapping accuracy; preset duration. The target location result is preset according to the data collection cycle and location handover response requirements. The target location result output in this step serves as the input for subsequent target profile screening, ensuring that subsequent eSIM profile screening is based on continuous and stable location confirmation, thereby reducing the risk of false triggering caused by short-term location drift. When the spillover risk level of a territory is within the observation risk range, the continuous time window is extended, the basic communication link is maintained, and the territory determination continues based on subsequent handover observation groups. Specifically, when the spillover risk level of a territory does not meet the low-risk confirmation criteria but is still within the intermediate risk range that can continue to be observed, no target territory result is generated. The intermediate risk range can be determined by the target territory's risk confirmation requirements. and write card suppression risk requirements Limited, among which .when When the risk of spillover to the location is determined to be within the observation risk range, the basic communication link established by the pre-configured index communication continues to collect subsequent handover observation groups and appends them to the continuous time window. If the continuous time window has reached its maximum length, the earliest single-frame handover observation group is removed according to the collection time to keep the window updated. Through this process, the server can continue to observe whether the location, cell, and spillover risks tend to converge, avoiding entering the target configuration file screening process before the risk has stabilized. The output of this step is the updated continuous time window and the continue judgment instruction, and it still returns to the location judgment process afterward. When the risk of spillover from the location exceeds the write-card suppression risk requirement, or when the location and cell locations continuously conflict, no target location result will be generated, and the process will be prohibited from entering the target configuration file screening process. Specifically, when the risk of spillover from the location exceeds the write-card suppression risk requirement, or when the location and cell locations continuously conflict within a consecutive time window, no target location result will be generated, and the process will be prohibited from entering the target configuration file screening process. Write-card suppression risk requirement This indicates a high risk of boundary spillover or network attribution conflict in the current location determination. A persistent conflict between the location and cell locations refers to the continuous occurrence of inconsistencies between the location and cell locations within a preset number of consecutive single-frame location pointing results. During processing, the conflict states within the continuous time window are counted. If the number of conflicts reaches a preset number, or the duration of the conflict state reaches a preset duration, it is determined to be a persistent conflict. At this time, the server maintains the availability of the basic communication link, terminates the generation of the target location result for this round, and records the suppression reason. Suppression reasons include excessively high location spillover risk, persistent conflict between the location and cell locations, or the continuous time window data not meeting the confirmation conditions. The output of this step is the card writing suppression result and the suppression reason record, preventing the triggering of error configuration file filtering and remote card writing in boundary areas, overlapping cell coverage areas, or situations with excessive positioning errors. In a specific implementation scenario, taking a 5-second acquisition cycle and a continuous time window containing 6 single-frame switching observation groups as an example, let the target location confirmation risk requirement be... Card writing to suppress risk requirements Preset duration Seconds. If in six consecutive single-frame location pointing results, the location and cell locations all point to the same location, and the location spillover risk is 0.06, then the continuous pointing time reaches more than 25 seconds, and the risk is less than... This generates the target territory result corresponding to the given territory. If the territory spillover risk is 0.20, then this risk level is located in... and In between, the system extends the continuous time window and continues to collect data from subsequent switching observation groups. If the local spillover risk is... If the location and cell location are consistently inconsistent in multiple consecutive single-frame location pointing results, the target location result will not be generated, and the process of filtering the target configuration file will be prohibited. As verified above, this implementation can distinguish between location confirmation, continued observation, and write suppression as different control results, providing traceable data and clear control boundaries for the eSIM location handover triggering process.
[0027] The present invention is further configured such that the step of removing unavailable configuration files based on configuration admission criteria includes: The configuration access conditions include mobile network access conditions, frequency band access conditions, installation access conditions, and file status access conditions. Specifically, in this embodiment, the processing object is the candidate configuration file extracted from the eSIM configuration file pool based on the target location result. The execution entities include the server, the terminal communication unit, and the eSIM management unit. The candidate configuration file pool is maintained by the operator-authorized card writing platform or the server configuration file management library. Each candidate configuration file is associated with at least the target mobile network standard, target location, available frequency band, authorization status, allocation status, and occupancy status. Terminal-side data is provided by the terminal access request, terminal device profile, and eSIM status data, including at least the mobile network standard supported by the terminal, the communication frequency band supported by the terminal, the eSIM unit's installable status, and the installed configuration file status. Under the handover session identifier, the server associates the above candidate configuration file information with the terminal-side information to form configuration access conditions. The configuration access conditions include mobile network access conditions, frequency band access conditions, installation access conditions, and file status access conditions. The mobile network access conditions are used to determine whether the target mobile network standard corresponding to the candidate configuration file can be accessed by the terminal communication unit. The target mobile network standard is derived from the configuration file information of the candidate configuration file, while the mobile network standard supported by the terminal is derived from the terminal access request or pre-stored terminal device files. The mobile network access condition is met when the target mobile network standard corresponding to the candidate configuration file belongs to the set of mobile network standards supported by the terminal; otherwise, the mobile network access condition is not met. The frequency band access condition is used to determine whether the available frequency bands of the mobile network corresponding to the candidate configuration file in the target area can be supported by the terminal communication unit. Available frequency bands are derived from the operator network resource records corresponding to the candidate configuration file or the network coverage records in the target area, while the terminal-supported frequency bands are derived from the terminal communication unit capability information. The frequency band access condition is met when at least one available frequency band of the mobile network corresponding to the candidate configuration file matches a terminal-supported frequency band; otherwise, the frequency band access condition is not met. The installation access condition is used to determine whether the eSIM unit is allowed to install a new target configuration file. The installation access condition is derived from eSIM status data, including at least the eSIM unit writable status, the installed configuration file status, the remaining configuration file capacity, and the current write task status. The installation admission criteria are met when the eSIM unit is writable, has sufficient remaining capacity to install the target profile, and there are no incomplete or conflicting write tasks. The installation admission criteria are not met when the eSIM unit is locked, unwritable, has insufficient capacity, or has conflicting write tasks. File status admission criteria are used to determine whether a candidate profile is eligible for distribution and installation. These criteria originate from the eSIM profile pool or the operator-authorized write interface and include at least the candidate profile's authorization status, allocation status, occupancy status, and validity period status.The file status admission criteria are met when the candidate configuration file is authorized, downloadable, allocable, unoccupied, and not expired; the criteria are not met when the candidate configuration file is unauthorized, unallocable, occupied, or expired. This process ensures that basic communication capabilities and card writing feasibility are eliminated before candidate configuration files are included in the subsequent link migration net capacity calculation, preventing configuration files that the terminal cannot support or install from continuing to participate in the screening. The server determines whether the target mobile network standard corresponding to the candidate configuration file is supported by the terminal based on mobile network access conditions; whether the available frequency bands of the mobile network corresponding to the candidate configuration file in the target territory match the frequency bands supported by the terminal based on frequency band access conditions; whether the eSIM unit is allowed to install a new configuration file based on installation access conditions; and whether the candidate configuration file is in an authorized, allocable, and unoccupied state based on file status access conditions. Specifically, the server reads the target mobile network standard and available frequency bands in the target territory corresponding to the candidate configuration file, and reads the supported network standard and supported frequency bands in the terminal's communication capabilities. During processing, the network standard name and frequency band number are first uniformly formatted, for example, converting standard identifiers and frequency band identifiers from different sources into a unified internal code to avoid misjudgments due to inconsistent naming of operator interfaces, terminal module interfaces, or configuration file library fields. Subsequently, the server determines whether the target mobile network standard corresponding to the candidate configuration file is supported by the terminal based on mobile network access conditions; and whether the available frequency bands of the mobile network corresponding to the candidate configuration file have a valid matching relationship with the frequency bands supported by the terminal based on frequency band access conditions. If the terminal does not support the target mobile network standard, or if the available frequency bands of the mobile network corresponding to the candidate profile in the target region are not within the range of frequency bands supported by the terminal, the candidate profile is marked as network capability denied. This step prevents profiles with the same region but whose terminal modules cannot reside or use the corresponding frequency bands from entering the subsequent card writing process. The server or terminal reads the eSIM unit's writable status, installed profile status, and currently enabled profile identifier from the eSIM status data, and determines whether the eSIM unit is allowed to install a new profile. During processing, if the eSIM unit is in a writable state, the remaining profile capacity meets the installation requirements, and there are no incomplete installation tasks that conflict with the target profile, the installation admission conditions are met; if the eSIM unit is locked, busy, has insufficient capacity, the profile installation process is not finished, or the current session has unprocessed errors, the installation admission conditions are not met. For cases where the same target profile has already been installed, it can be marked as a special state that does not require repeated installation and passed to subsequent processes for enabling or verification. This step ensures that the installability assessment of candidate configuration files matches the local eSIM unit status by reading the actual state of the eSIM management unit, reducing installation failures caused by unmet terminal-side status after remote SIM writing tasks are issued. The server reads the authorization, allocation, and occupancy status of candidate configuration files; the file status information comes from the eSIM configuration file pool or the operator's authorized SIM writing interface. During processing, the authorization status of candidate configuration files is verified to confirm they are in a state where downloading or writing is allowed; the allocation status is verified to confirm they are not marked as unallocated, frozen, or reclaimed; and the occupancy status is verified to confirm they are not bound to other terminals or are not in the process of other handover sessions.If a candidate configuration file is authorized, is in an allocatable state, and is not occupied, the file status admission condition is met; if it is unauthorized, unallocable, occupied, or expired, the candidate configuration file is marked as file status inadmissible. This step avoids sending configuration files with unavailable operator authorization or abnormal resource status to the terminal, improving the success rate of subsequent authorization for card writing parameters. When the mobile network access conditions, frequency band access conditions, installation access conditions, and file status access conditions are all met, the candidate configuration file is retained as the access configuration file, and a set of access configuration files is generated. Specifically, after completing the mobile network access, frequency band access, installation access, and file status access judgments, an access judgment record is generated for each candidate configuration file. The access judgment record includes at least the candidate configuration file identifier, the handover session identifier, the pass status of each access condition, and the reason for failure. When all four types of access conditions are met, the candidate configuration file is retained as the access configuration file. If any admission condition is not met, the corresponding candidate configuration file is identified as an unavailable configuration file and removed. Specifically, if any admission condition is not met, the candidate configuration file is identified as an unavailable configuration file and removed from the candidate set. After all candidate configuration files have completed the admission judgment, the retained admission configuration files are summarized to generate an admission configuration file set, and the admission configuration file set is passed to the link migration net margin generation process. The reason for removing an unavailable configuration file is written to the handover session record, so that the specific reason for the exclusion of a configuration file can be traced later, such as network standard not supported, frequency band mismatch, eSIM unit not installable, or file status unavailable. In an implementable scenario, three candidate configuration files are extracted under the same target location result. If the target mobile network standard and available frequency band of the first candidate configuration file are both supported by the terminal, the eSIM unit is in an installable state, and the configuration file is in an authorized, allocable, and unoccupied state, then the configuration file is retained as an admission configuration file. If the second candidate configuration file has the same location, but the available frequency band under its target location is not within the range of frequency bands supported by the terminal, then it is marked as frequency band admission not met and removed. Although the third candidate profile meets the requirements for network standard and frequency band, if its profile status is occupied or unauthorized, it is marked as having an unsatisfactory profile status and is removed. After the above processing, the set of admission profiles only includes profiles with terminal access capability, eSIM installation conditions, and operator authorization availability. Compared with directly including all candidate profiles with the same geographical location in the subsequent screening, this implementation method can eliminate unwritable, unusable, or inaccessible profiles in advance, reduce invalid processing in the subsequent link migration net margin calculation and authorization writing stage, and improve the executability of target profile screening.
[0028] The present invention is further configured such that the generated link migration net margin includes: The system reads the network access record and current service communication requirements corresponding to the admission configuration file, compares the link capacity value in the network access record with the current service communication requirements, and forms candidate link capacity. Specifically, in this embodiment, the processing object is the set of admission configuration files output from the previous process, and the execution entity is the server. Each admission configuration file corresponds to a target mobile network identifier. The server reads the network access record corresponding to the admission configuration file based on the target location result and the target mobile network identifier. The network access record comes from the server's historical access logs, historical configuration file activation records, and link detection records, and includes at least historical latency, historical packet confirmation rate, historical online hold rate, and historical data bearer establishment success rate. The current service communication requirements come from the service type carried in the terminal service file or terminal access request, and include at least the maximum allowed latency, minimum packet confirmation rate, minimum online hold rate, and minimum data bearer establishment success rate. After reading the above data, the units of each data item are standardized and abnormal records are filtered out. For example, the latency is standardized to milliseconds, and the confirmation rate and success rate are standardized to percentages. Records lacking target location identifiers, configuration file identifiers, or with abnormal sampling times are removed. Subsequently, the link capacity values corresponding to the admission configuration file are compared item by item with the current service communication requirements to form candidate link capacity reserves; let the candidate configuration file be... Its historical time span is Historical message confirmation rate Historical online retention rate The success rate of establishing historical data storage is The maximum allowable latency in the current business communication requirements is The minimum message confirmation rate is The lowest online retention rate The minimum data carrying capacity establishment success rate is The candidate link carrying capacity can be expressed as: ,in, The candidate link capacity is defined by four components: latency margin, message acknowledgment margin, online hold-up margin, and data capacity margin. A larger latency margin indicates a more sufficient candidate link relative to the maximum allowable latency of the service; larger margins in the other three components indicate a more sufficient candidate link relative to the corresponding minimum service requirements. The output of this step is the candidate link capacity for each admission configuration file, which serves as input for subsequent comparison with the basic communication links. The basic communication link status is read, and the link capacity value in the basic communication link status is compared with the current service communication requirements to form the basic link capacity margin. Specifically, the basic communication link is the communication link established by the terminal through a pre-set index communication configuration. Its status is collected and uploaded by the terminal through the communication unit during session switching, or it is obtained by the server based on the terminal's heartbeat, service message confirmation, and link probe results. The basic communication link status includes at least the current latency, current message confirmation rate, current online hold rate, and current data bearer establishment status. To ensure that it can be compared with the candidate link capacity margin, the basic communication link status adopts the same data dimensions and statistical methods as in step one. For example, the current latency is the average round-trip time of basic link probe messages within a continuous time window, the current message confirmation rate is the ratio of the number of confirmed messages to the number of sent messages within the window, the current online hold rate is the percentage of time spent maintaining registration and communicability within the window, and the current data bearer establishment status is the data bearer availability result of the basic link within the window. Let the current latency of the basic communication link be... The current message confirmation rate is The current online retention rate is The current data carrier establishment success rate is The basic link carrying capacity can then be expressed as: ,in, This refers to the basic link capacity margin. This margin indicates the degree to which the current basic communication link meets the current service communication requirements. By establishing the basic link capacity margin, it is possible to determine whether the candidate eSIM link has a real migration benefit relative to the current basic link, avoiding triggering configuration switching solely based on whether the candidate link meets the requirements. The candidate link capacity is compared with the basic link capacity to generate the net link migration capacity; specifically, the candidate link capacity corresponding to the same admission configuration file is compared. and basic link capacity A comparison within the same dimension is performed to obtain the net migration margin. The net migration margin represents the net improvement in current business communication requirements after migrating from the basic communication link to the target link corresponding to the candidate configuration file. For the candidate configuration file... The net migration margin of the link can be expressed as: ,Right now: ,in, The net migration margin is represented by four components: latency migration margin, message acknowledgment migration margin, online hold migration margin, and data bearer migration margin. A positive latency migration margin indicates that the candidate link has lower latency compared to the base link; positive message acknowledgment migration margin, online hold migration margin, and data bearer migration margin indicate that the candidate link is superior to the base link in their respective capabilities. If any component is negative, it indicates that the capability of that component is lower than that of the base communication link after migration. In actual screening, a bottleneck priority rule can be adopted to prioritize... The smallest component is used as the key migration basis for this admission profile. In this embodiment, different weights can also be set according to business type. To avoid parameter stacking, this embodiment prioritizes the bottleneck priority rule; that is, only when the key business capability dimension does not show significant degradation and at least one major dimension shows net improvement, is the corresponding admission profile retained as a migrateable object. This step outputs the net migration margin for each admission profile, providing a reference for subsequent target profile selection relative to the current basic link. The link migration margin is associated with the corresponding admission profile to generate a profile migration evaluation record. Specifically, after calculating the link migration margin for each admission profile, the link migration margin is associated with the corresponding admission profile identifier, target mobile network identifier, target location result, handover session identifier, and calculation time to generate a profile migration evaluation record. This record includes at least the admission profile identifier, candidate link bearer margin, basic link bearer margin, link migration margin, and data source time. The profile migration evaluation record is passed to the target profile screening process to remove admission profiles whose link migration margin does not meet the preset migration requirements and to sort the migrateable profiles. This process makes the target profile screening not only dependent on location consistency and authorization status, but also combined with the actual migration benefits of candidate target links relative to the current basic links, thereby reducing the probability of switching terminals to links with no improvement in bearer capacity or with reduced bearer capacity. In a specific feasible scenario, the current service communication requirements are a maximum allowable latency of 800ms, a minimum message acknowledgment rate of 95%, a minimum online hold rate of 96%, and a minimum data bearer establishment success rate of 95%. The basic communication link has a latency of 700ms, a message acknowledgment rate of 96%, an online hold rate of 97%, and a data bearer establishment success rate of 96% within the current continuous window, forming a basic link capacity margin. A certain admission profile's corresponding network access record has a historical latency of 500ms, a historical message acknowledgment rate of 98%, a historical online hold rate of 99%, and a historical data bearer establishment success rate of 98%, forming a candidate link capacity margin. Comparing the two, this admission profile has a positive net migration margin relative to the basic communication link in terms of latency, message acknowledgment, online hold rate, and data bearer capacity, and can enter the subsequent target profile selection. If another admission profile meets the minimum service communication requirements, but its historical latency is higher than the basic link and its message acknowledgment rate is lower than the basic link, then the corresponding link migration margin has a negative component, and its priority is reduced or it is eliminated in the target profile selection. Therefore, this implementation method can distinguish between two states: meeting the minimum service requirements and having migration value relative to the current basic link, making the target profile selection more based on communication benefit.
[0029] The present invention is further configured such that the step of filtering the target configuration file based on the net link migration margin includes: Based on the configuration file migration evaluation records, a set of migrateable configuration files is generated by removing those whose link migration net margin does not meet the preset migration requirements. Specifically, in this embodiment, the processing object is the configuration file migration evaluation records output by the link migration net margin generation process, and the execution entity is the configuration filtering module on the server side. The configuration file migration evaluation records include at least the handover session identifier, the admission configuration file identifier, the target mobile network identifier, the target location result, the link migration net margin, and the corresponding data source time. The link migration net margin is derived from the comparison between the candidate link bearer margin and the basic link bearer margin, and is used to indicate the degree of migration improvement of the target link corresponding to the candidate configuration file relative to the current basic communication link. During processing, all configuration file migration evaluation records in the same location handover process are first read according to the handover session identifier, and abnormal records that lack the admission configuration file identifier, link migration net margin, or data source time are removed. If there are multiple evaluation records for the same admission configuration file, the evaluation record corresponding to the latest data source time is used first, or the average evaluation result within the same continuous time window is used. Subsequently, the link migration net margin of each admission configuration file is compared with the preset migration requirements. The preset migration requirements are jointly determined by the current service communication requirements and the status of the underlying communication link. These requirements define the minimum net improvement level that the target eSIM link should have relative to the underlying communication link. If the net migration margin of the link meets the preset migration requirements, the corresponding admission profile is retained as a migrateable profile. If the preset migration requirements are not met, the corresponding admission profile is removed, and the reason for removal is written into the handover session record. After all admission profiles are evaluated, the retained migrateable profiles are aggregated to generate a migrateable profile set, which serves as input for sorting and determining the target profile. The admission configuration files in the set of migrateable configuration files are sorted according to their link migration margin, and the admission configuration file with the highest priority is determined as the target configuration file. Specifically, for each admission configuration file in the set of migrateable configuration files, its link migration margin is read. The link migration margin can be composed of latency migration margin, message acknowledgment migration margin, online maintenance migration margin, and data bearer migration margin. To avoid the improvement of a single indicator masking the degradation of other key indicators, this embodiment adopts a bottleneck-first sorting method. Let the admission configuration file be... The net margin for link migration is ,in, Indicates the net margin of time delay migration. This message confirms the net migration balance. This indicates that a net migration margin is maintained online. This represents the net migration capacity of the data carrier; each component originates from the link migration net capacity generation process. Possible values include: ,in, For Huai input configuration file The sorting criteria are used to represent the minimum migration improvement of the configuration file across each link capability dimension. The sorting is based on... Arrange the portable configuration files from largest to smallest. If there are multiple portable configuration files... If they are the same, their historical registration success rate and historical message confirmation rate are compared, and the configuration file with a higher historical registration success rate and historical message confirmation rate is selected first. This sorting method ensures that the target configuration file meets the requirements for overall migration improvement, while prioritizing the avoidance of shortcomings in key business capability dimensions, which helps reduce the probability of link verification failure or instability of minor service support after installation; When the set of transferable profiles is empty, the basic communication link is maintained, and the process returns to perform location determination. Specifically, after obtaining the sorting results, the admission profile with the highest sorting priority is determined as the target profile, and the target profile identifier, target mobile network identifier, target location result, handover session identifier, and corresponding link migration net margin are written to the target profile record. The target profile record is then passed to the authorization SIM card writing process for requesting authorization SIM card writing parameters and encapsulating the SIM card writing task. If the set of transferable profiles is empty, it means that the link migration net margin of all admission profiles has not met the preset migration requirements, and there is currently no suitable target eSIM profile to migrate from the basic communication link. At this time, the basic communication link established by the preset index communication configuration is maintained, the current round of SIM card writing task application is stopped, and the reason for the screening failure is recorded in the handover session record; subsequently, new handover observation groups are received, the process returns to the location determination process, and the target profile screening is re-executed after changes in the location spillover risk, network access record, or basic communication link status. This control process avoids remote SIM card writing when candidate links offer no effective improvement over the base link, reducing invalid installations and handovers. In a specific implementation scenario, three admission profiles exist within the same handover session, each generating a profile migration evaluation record. The first admission profile shows positive improvements in latency, message acknowledgment, online persistence, and data carrying capacity across all four dimensions, with the minimum migration improvement meeting the preset migration requirements. The second admission profile shows significant latency improvement, but its message acknowledgment migration margin falls below the preset migration requirements. The third admission profile has small migration margins across all dimensions, failing to demonstrate effective improvement over the base communication link. After elimination and sorting, the first admission profile enters the set of migrateable profiles and is identified as the target profile, while the second and third admission profiles are eliminated or have their priority reduced. If none of the three admission profiles meet the preset migration requirements, the system maintains the base communication link and returns to the location determination process. Through this process, the determination of the target profile is based on a net improvement over the base communication link, reducing invalid eSIM handovers caused by merely meeting location consistency or minimum service requirements.
[0030] The present invention is further configured such that, the step of encapsulating the card writing task based on the authorized card writing parameters and sending it to the terminal through the basic communication link, so that the terminal verifies the card writing task and then installs the target configuration file to the eSIM unit, includes: An authorized write request is generated based on the target profile identifier, target mobile network identifier, terminal identifier, and eSIM unit identifier, and authorized write parameters are obtained through the operator's authorized write interface. Specifically, in this embodiment, the processing object is the target profile determined in the previous process, and the execution entities include the server, the operator's authorized write interface, and the terminal eSIM unit. The target profile is output by the target profile filtering process, and its data includes at least the target profile identifier, the target mobile network identifier, and the corresponding handover session identifier. The terminal identifier comes from the terminal access request or the server's device file, and the eSIM unit identifier comes from the eUICC identifier or equivalent security unit identifier read by the eSIM management unit. The server generates an authorized write request based on the target profile identifier, target mobile network identifier, terminal identifier, and eSIM unit identifier, and submits it through the operator's authorized write interface. The operator's authorized write interface is used to verify the authorization status, allocability status, terminal write eligibility, and eSIM unit matching relationship of the target profile; after successful verification, authorized write parameters are returned. Authorized write parameters include at least authorized download parameters, task validity period, download session credentials, and authorization verification information. This step aims to limit the installation process of the target configuration file to the operator's authorized path, thereby preventing the server from directly sending the complete configuration file data, which could lead to unclear source of the configuration file or unverifiable writing qualifications. The authorized card writing parameters, switching session identifier, target configuration file identifier, and task verification information are encapsulated to generate a card writing task, which is then sent to the terminal via the basic communication link. Specifically, after obtaining the authorized card writing parameters, the server encapsulates these parameters, switching session identifier, target configuration file identifier, and task verification information to generate a card writing task. The task verification information may include the task validity period, integrity verification value, and task signature. The integrity verification value can be generated based on key fields in the card writing task, such as a digest value formed based on the switching session identifier, target configuration file identifier, authorized download parameters, and task validity period; the task signature can be generated by the server or authorization platform based on the digest value. The card writing task is sent to the terminal via the basic communication link, which is maintained by a pre-configured index communication configuration and is used to carry out the card writing task distribution, installation result feedback, and abnormal status reporting before the target configuration file is installed and verified. This step binds the card writing task to the switching session identifier, ensuring that the target configuration file installation and the preceding location judgment and configuration file filtering results belong to the same switching process. The write task performs session consistency, task validity, and integrity checks. If the checks pass and the eSIM unit is in an installable state, the target configuration file is installed to the eSIM unit according to the authorized write parameters. Specifically, after receiving the write task, the terminal performs session consistency, task validity, and integrity checks through the eSIM management unit and the local task management module. Session consistency check determines whether the handover session identifier carried by the write task matches the handover session identifier currently being executed by the terminal. Task validity check determines whether the current time is within the allowed execution time range of the write task. Integrity check determines whether task fields have been missing or tampered with during transmission. Integrity check can be performed using a digest comparison method, whereby the terminal regenerates a local digest value according to the same field order as the server and compares it with the integrity check value carried by the write task. After all the above checks pass, the eSIM unit's installable status is read. If the eSIM unit is writable, unlocked, has sufficient capacity, and there are no conflicting installation tasks, the target configuration file installation process begins. This step can block expired tasks, inconsistent session tasks, and tampered tasks on the terminal side, reducing the risk of incorrect installation and cross-session writing. When the write task verification passes and the eSIM unit is in an installable state, the terminal calls the eSIM management unit to initiate the installation of the target configuration file according to the authorized write parameters. The installation process includes establishing a configuration file download session according to the authorized download parameters, receiving the target configuration file data packet, performing configuration file integrity verification, writing the target configuration file to the eSIM unit, and updating the installed configuration file status. After installation, the terminal generates an installation result, which includes at least the switch session identifier, target configuration file identifier, installation status, installation completion time, and installation error code. The installation result is transmitted back to the server through the basic communication link and passed to the subsequent target mobile network search, network registration, data bearer establishment, and test message return process. If download failure, integrity verification failure, eSIM unit write failure, or insufficient capacity occurs during the installation process, an installation failure result is generated while maintaining the basic communication link. This step ensures that the target configuration file installation result can be traced by the server and provides installation status input for the subsequent generation of measured link migration margin. If verification fails or the eSIM unit is not in an installable state, the target configuration file installation is terminated, while the basic communication link is maintained. Specifically, if any verification of session consistency, task validity period, or integrity of the write task fails, or if the eSIM unit is not in an installable state, the target configuration file installation is terminated. The terminal does not perform target configuration file download and writing, and maintains the basic communication link established by the pre-set index communication configuration. The terminal writes the write failure stage, failure reason, handover session identifier, and target configuration file identifier to the local failure record and reports it to the server through the basic communication link. After receiving the failure record, the server can record the write failure reason under the same handover session and exclude the target configuration file from the executable write objects in this round. This step forms a security blocking mechanism before writing, preventing invalid authorization, expired tasks, task tampering, and the eSIM unit's inability to be installed from entering the configuration file writing stage. In a specific implementation scenario, the server requests authorized write parameters from the operator's authorized write interface based on the target configuration file identifier, target mobile network identifier, terminal identifier, and eSIM unit identifier. The operator's authorized write interface returns authorized download parameters, task validity period, and authorized verification information. The server encapsulates the above information and the handover session identifier into a SIM card writing task, which is then sent to the terminal via the basic communication link. Upon receiving the task, if the handover session identifier matches, the task is still valid, the integrity check value matches, and the eSIM unit is in an installable state, the terminal executes the target configuration file installation and sends back a successful installation result. If the task validity period has expired or the integrity check does not match, the installation is terminated while maintaining the basic communication link. Compared to direct installation without task verification, this implementation can identify cross-session tasks, expired tasks, and incomplete tasks before SIM card writing, reducing incorrect configuration file installations and invalid SIM card writing behavior, and ensuring that the remote SIM card writing process is completed while the basic communication link is available.
[0031] The present invention is further configured such that generating the measured link migration net margin and performing the main communication link switch includes: After the target configuration file is installed, it is activated. Following the target mobile network identifier corresponding to the configuration file, target mobile network search, network registration, data bearer establishment, and test message return are performed, forming the target link test state. Specifically, in this embodiment, the processing object is the target configuration file installed on the eSIM unit, and the execution entities are the terminal's eSIM management unit, communication unit, and server. After the target configuration file is installed, the eSIM management unit first reads the target configuration file identifier and the target mobile network identifier, and writes the preset index communication configuration identifier, the currently enabled configuration file identifier, and the handover session identifier into the local recovery record. Then, the target configuration file is activated. The communication unit performs a target mobile network search according to the target mobile network identifier. After finding the target mobile network, network registration continues. After successful registration, a data bearer is established, and a test message carrying the handover session identifier and the target configuration file identifier is sent to the server through the target eSIM link. The above processes respectively form the target mobile network search state, network registration state, data bearer establishment state, and test message return state, which are then combined into the target link test state. The actual test status of the target link is used to reflect whether the target configuration file has the actual access and business message transmission capabilities after installation, and provides a basis for whether to submit the main communication link switch in the future. The measured link capacity value of the target link is compared with the current service communication requirements to form the measured bearer margin of the target link. Specifically, during the formation of the measured state of the target link, the communication unit synchronously collects the link capacity value of the target link, which includes the measured latency, test message acknowledgment rate, online hold status, and data bearer establishment result. The measured latency is obtained from the time difference between the test message sending time and the server acknowledgment time; the test message acknowledgment rate is determined by the number of messages that receive server acknowledgment from a preset number of test messages; the online hold status is determined by the time the target link maintains registration and communication capability during the verification period; and the data bearer establishment result is determined by the data bearer status returned by the communication unit. To reduce misjudgments caused by single message jitter, multiple test messages can be sent during the verification period, and message records that exceed the task validity period, have inconsistent switching session identifiers, or lack acknowledgment information are removed. The preprocessed target link capacity value serves as the input for calculating the measured bearer margin of the target link, ensuring that the target link verification results have a traceable data source. The link capacity value in the basic communication link status is compared with the current service communication requirements to form the measured capacity margin of the basic link. Specifically, the current service communication requirements are derived from the service type carried in the terminal service file or terminal access request, and include at least the maximum allowable latency, minimum message acknowledgment rate, minimum online hold requirement, and minimum data bearer establishment requirement. Let the measured latency of the target link be... The test message confirmation rate is Online retention rate The data bearer was successfully established. The maximum allowable latency in the current business communication requirements is The minimum message confirmation rate is The lowest online retention rate The minimum data carrying capacity establishment requirement is The measured carrying capacity of the target link is denoted as: ,in, This indicates the margin of the target link relative to the current service communication requirements. The first component is the latency margin; a larger value indicates a more sufficient measured latency relative to the maximum allowable latency. The remaining components represent the margins for message acknowledgment, online persistence, and data carrying capacity relative to the minimum requirements, respectively. If any component is negative, it indicates that the target link does not meet the current service communication requirements in its corresponding capabilities. This step converts the measured access performance of the target link into a comparable carrying capacity margin, avoiding the reliance solely on successful registration as the basis for primary link switching. The measured capacity margin of the target link is compared with the measured capacity margin of the basic link to form the measured net capacity margin for link migration; specifically, the measured capacity margin of the target link... Actual load capacity of the basic link Compare within the same dimension to determine the measured net migration margin of the link. ,in, This indicates the measured net improvement of the target eSIM link relative to the underlying communication link. Delay component. When positive, it indicates that the target link latency is lower than the base link; when message acknowledgment, online hold, and data bearer components are positive, it indicates that the target link is superior to the base link in the corresponding capabilities. To ensure that critical communication capabilities are not sacrificed due to improvements in a single capability during primary link switching, bottleneck constraints can be used. The evaluation process involves using the lowest satisfaction level among all components as a key criterion for submitting the main link. This step outputs the measured net migration margin of the link and stores it in association with the switching session identifier, target configuration file identifier, and the measured status of the target link, serving as a direct basis for subsequent switching or rollback. When the measured net migration margin of the target link meets the conditions for switching to the primary link, the target eSIM link is switched to the primary communication link. Specifically, when the target mobile network search status, network registration status, data bearer establishment status, and test message return status are all passed, and the measured net migration margin of the target link meets the conditions for switching to the primary link, the target eSIM link is switched to the primary communication link. The conditions for switching to the primary link can be set as follows: the measured bearer margin of the target link meets the current service communication requirements, and the measured net migration margin of the target link meets the preset submission requirements. The preset submission requirements are used to limit the target link to having at least no critical capability degradation relative to the basic link, and to having effective improvement in at least one major capability dimension. After the switch is completed, the currently enabled configuration file identifier is updated to the target configuration file identifier, and the switch success result is sent back to the server. When the measured net migration margin of the link does not meet the conditions for main link switching, the preset index communication configuration is restored, and the failure stage is reported through the basic communication link. Specifically, when the measured net migration margin of the link does not meet the conditions for main link switching, or when any step of the target mobile network search, network registration, data bearer establishment, or test message return fails, the preset index communication configuration is restored based on the local recovery record, and the failure stage, switching session identifier, target configuration file identifier, and failure reason are reported through the restored basic communication link. This step ensures that the main communication link switching is based on the measured net improvement of the target link, and maintains the remotely manageable state of the terminal when the target link has no migration value.
[0032] Example 2: Please see Figure 2 This exemplary location-triggered eSIM smart handover system includes: Link establishment and encapsulation module: Establishes a basic communication link through a pre-set index communication configuration, generates a handover session identifier based on the terminal access request uploaded through the basic communication link, and associates and encapsulates the collected location data, wireless network measurement data and eSIM status data according to the handover session identifier to generate a handover observation group; Spillover Assessment Module: Based on the switching observation group within a continuous time window, it obtains the location, cell location, positioning accuracy, and boundary distance from the location to the location boundary; it generates a location spillover risk quantity based on the spillover of positioning accuracy relative to the boundary distance, the consistency between the location and cell locations, and the collection time; and it generates the target location result based on the location spillover risk quantity. Configuration filtering module: Extracts candidate configuration files from the eSIM configuration file pool whose location matches the target location; removes unusable configuration files based on configuration admission criteria; generates link migration margin based on the network access record, current service communication requirements, and basic communication link status of the remaining candidate configuration files; and filters the target configuration file based on the link migration margin. Authorized card writing module: Requests authorized card writing parameters based on the target configuration file, encapsulates the card writing task based on the authorized card writing parameters, and sends it to the terminal through the basic communication link, so that the terminal verifies the card writing task and installs the target configuration file into the eSIM unit; Link verification module: After installing the target configuration file, activate the target configuration file and perform target mobile network search, network registration, data bearer establishment and test message return. Based on the execution results, generate the measured link migration net margin. Switchback module: When the measured net migration margin of the link meets the conditions for switching to the main link, the target eSIM link is switched to the main communication link; if not, the preset index communication configuration is restored and the failure stage is reported through the basic communication link.
[0033] It should be noted that the location-triggered eSIM smart handover system and the location-triggered eSIM smart handover method provided in the above embodiments belong to the same concept. The specific methods by which each module and unit performs its operations have been described in detail in the method embodiments and will not be repeated here. In practical applications, the location-triggered eSIM smart handover system provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.
[0034] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A location-triggered eSIM smart handover method, characterized in that, include: A basic communication link is established through a pre-configured index communication system. A handover session identifier is generated based on the terminal access request uploaded through the basic communication link. The collected location data, wireless network measurement data, and eSIM status data are associated and encapsulated according to the handover session identifier to generate a handover observation group. Based on the switching observation group within a continuous time window, the location location, cell location, positioning accuracy, and boundary distance from the location to the location boundary are obtained; the location spillover risk is generated based on the spillover of positioning accuracy relative to the boundary distance, the consistency between the location location and the cell location, and the collection time. When the spillover risk level of the territory is lower than the risk requirement for the target territory, a target territory result is generated. Extract candidate profiles from the eSIM profile pool that match the target location; Unavailable configuration files are removed based on the configuration admission criteria. A link migration net margin is generated based on the network access record, current business communication requirements, and basic communication link status corresponding to the remaining candidate configuration files. Target configuration files are then selected based on the link migration net margin. The system requests authorization writing parameters based on the target configuration file, encapsulates the writing task based on the authorization writing parameters, and sends it to the terminal through the basic communication link. After the terminal verifies the writing task, it installs the target configuration file into the eSIM unit. After installing the target configuration file, activate the target configuration file and perform target mobile network search, network registration, data bearer establishment and test message return. Generate the measured link migration net margin based on the execution results. When the measured net migration margin meets the conditions for switching to the primary link, the target eSIM link will be switched to the primary communication link; otherwise, the preset index communication configuration will be restored and the failure phase will be reported through the basic communication link.
2. The method for location-triggered eSIM smart handover according to claim 1, characterized in that, The process of generating a switching observation group by performing correlation encapsulation includes: Observation data records are created based on the switching session identifier as an index, and the acquisition time, location items, network measurement items, and card status items are preset in the observation data records; Positioning data is collected through the positioning unit, including the positioning location and positioning accuracy; the positioning location and positioning accuracy are then written into the positioning item in the switching observation group. Wireless network measurement data is collected through the communication unit. The wireless network measurement data includes the Public Land Mobile Network Identifier and the Cell Identifier. The Public Land Mobile Network Identifier and the Cell Identifier are then written into the network measurement items in the handover observation group. The eSIM status data is read through the eSIM management unit. The eSIM status data includes the currently enabled profile identifier, the preset index communication configuration identifier, the eSIM unit writable status, and the installed profile status. The eSIM status data is then written to the card status item in the handover observation group. The location items, network measurement items, and card status items are time-aligned according to the acquisition time, and encapsulated together with the handover session identifier to generate a single-frame handover observation group; multiple consecutively generated single-frame handover observation groups are sorted according to the acquisition time to form a continuous time window for location determination.
3. The method for location-triggered eSIM smart handover according to claim 2, characterized in that, The generated territorial spillover risk includes: The location is generated by matching the location with the pre-stored boundary data, and the boundary distance from the location to the boundary of the location is calculated. The cell location is generated by querying the cell location mapping table based on the public terrestrial mobile network identifier and the cell identifier; A location spillover component is generated based on the degree of deviation of the positioning accuracy from the boundary distance, and a location conflict component is generated based on the consistency or conflict between the positioning location and the cell location. Based on the collection time, the location spillover component and the local conflict component within a continuous time window are accumulated to generate the local spillover risk quantity.
4. The method for location-triggered eSIM smart handover according to claim 3, characterized in that, The target jurisdiction results generated based on the amount of spillover risk from the jurisdiction include: When the location and the community location point to the same location within a preset time period, and the risk of location spillover is lower than the risk requirement for the target location confirmation, the target location result will be generated for that location. When the risk of spillover from the local area is within the range of observed risk, the continuous time window is extended, the basic communication link is maintained, and the local judgment is continued based on the subsequent switchover observation group. When the risk of spillover from the location exceeds the write card suppression risk requirement, or when there is a continuous conflict between the location and the community location, no target location result will be generated, and the target configuration file screening process will be prohibited.
5. The method for location-triggered eSIM smart handover according to claim 1, characterized in that, Unavailable configuration files are removed based on configuration admission criteria, including: Configure access conditions including mobile network access conditions, frequency band access conditions, installation access conditions, and file status access conditions; The system determines whether the target mobile network standard corresponding to the candidate profile is supported by the terminal based on the mobile network access conditions; it determines whether the available frequency bands of the mobile network corresponding to the candidate profile in the target territory match the frequency bands supported by the terminal based on the frequency band access conditions; it determines whether the eSIM unit is allowed to install a new profile based on the installation access conditions; and it determines whether the candidate profile is in an authorized, allocable, and unoccupied state based on the file status access conditions. When the mobile network access conditions, frequency band access conditions, installation access conditions, and file status access conditions are all met, the candidate configuration files are retained as access configuration files and aggregated to generate a set of access configuration files; If any admission condition is not met, the corresponding candidate configuration file will be identified as an unusable configuration file and removed.
6. The method for location-triggered eSIM smart handover according to claim 5, characterized in that, The generated link migration net margin includes: Read the network access record and current service communication requirements corresponding to the admission configuration file, compare the link capacity value in the network access record with the current service communication requirements, and form candidate link carrying capacity. Read the basic communication link status, compare the link capacity value in the basic communication link status with the current business communication requirements, and form the basic link carrying capacity margin; The candidate link carrying capacity is compared with the basic link carrying capacity to generate the link migration net capacity. Associate the net migration margin of the link with the corresponding admission profile to generate a profile migration evaluation record.
7. The method for location-triggered eSIM smart handover according to claim 6, characterized in that, Target configuration files are filtered based on the net migration margin of the link, including: Based on the migration evaluation records of the configuration files, the set of migrationable configuration files is generated by removing the admission configuration files whose link migration net margin does not meet the preset migration requirements. The admission configuration files in the set of migrateable configuration files are sorted according to the net migration margin of the link, and the admission configuration file with the highest sorting priority is determined as the target configuration file. When the set of migrated configuration files is empty, maintain the basic communication link and return to perform the locality determination.
8. The method for location-triggered eSIM smart handover according to claim 1, characterized in that, The card writing task is encapsulated based on the authorized card writing parameters and sent to the terminal through the basic communication link. After the terminal verifies the card writing task, it installs the target configuration file into the eSIM unit, including: An authorization write request is generated based on the target configuration file identifier, target mobile network identifier, terminal identifier, and eSIM unit identifier, and the authorization write parameters are obtained through the operator's authorization write interface; The authorized card writing parameters, switch session identifier, target configuration file identifier and task verification information are encapsulated to generate a card writing task, which is then sent to the terminal through the basic communication link. Perform session consistency, task validity and integrity checks on the card writing task. When the checks pass and the eSIM unit is in an installable state, install the target configuration file to the eSIM unit according to the authorized card writing parameters. If the verification fails or the eSIM unit is not in an installable state, terminate the installation of the target profile and maintain the basic communication link.
9. The method for location-triggered eSIM smart handover according to claim 1, characterized in that, Generating the measured net migration margin for the link and performing the main communication link switch includes: After the target configuration file is installed, the target configuration file is activated, and the target mobile network search, network registration, data bearer establishment and test message return are performed according to the target mobile network identifier corresponding to the target configuration file to form the actual test status of the target link; Compare the measured link capacity value of the target link with the current service communication requirements to form the measured bearing capacity margin of the target link. Compare the link capacity value in the basic communication link status with the current service communication requirements to form the measured carrying capacity margin of the basic link. The measured carrying capacity of the target link is compared with the measured carrying capacity of the basic link to form the measured net carrying capacity of the link migration. When the measured net migration margin of the link meets the conditions for switching the main link, the target eSIM link will be switched to the main communication link. When the measured net migration margin of the link does not meet the conditions for switching the main link, the preset index communication configuration is restored, and the failure stage is reported through the basic communication link.
10. A location-triggered eSIM smart handover system, used to implement the location-triggered eSIM smart handover method according to any one of claims 1-9, characterized in that, include: Link establishment and encapsulation module: Establishes a basic communication link through a pre-set index communication configuration, generates a handover session identifier based on the terminal access request uploaded through the basic communication link, and associates and encapsulates the collected positioning data, wireless network measurement data and eSIM status data according to the handover session identifier to generate a handover observation group; Spillover assessment module: Based on the switching observation group within a continuous time window, it obtains the location location, cell location, positioning accuracy, and boundary distance from the location to the location boundary; and generates the location spillover risk based on the spillover of positioning accuracy relative to the boundary distance, the consistency between the location location and the cell location, and the collection time. The target location result is generated based on the amount of spillover risk from the locality. Configuration filtering module: Extracts candidate configuration files from the eSIM configuration file pool that match the target location result; Unavailable configuration files are removed based on the configuration admission criteria. A link migration net margin is generated based on the network access record, current business communication requirements, and basic communication link status corresponding to the remaining candidate configuration files. Target configuration files are then selected based on the link migration net margin. Authorized card writing module: Requests authorized card writing parameters based on the target configuration file, encapsulates the card writing task based on the authorized card writing parameters, and sends it to the terminal through the basic communication link, so that the terminal verifies the card writing task and installs the target configuration file into the eSIM unit; Link verification module: After installing the target configuration file, activate the target configuration file and perform target mobile network search, network registration, data bearer establishment and test message return. Based on the execution results, generate the measured link migration net margin. Switchback module: When the measured net migration margin of the link meets the conditions for switching to the main link, the target eSIM link is switched to the main communication link; if not, the preset index communication configuration is restored and the failure stage is reported through the basic communication link.