Method and system for dual cell network device data handover based on location coordinates
By evaluating bandwidth and latency based on location coordinates in dual-cellular network devices, building a database and providing user configuration strategies, the data interruption problem caused by signal strength dependence in existing technologies is solved, more flexible and efficient data switching is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202310250027.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2043-03-06
AI Technical Summary
The data switching of existing dual-network devices mainly relies on physical factors such as signal strength and signal-to-noise ratio, which cannot meet the communication needs of industry terminals for real-time tasks, especially in specific scenarios, which may cause data interruption.
A dual-cellular network device data switching method based on location coordinates tests the bandwidth and latency of multiple locations between mobile devices and background servers, builds a database and provides a user-configured policy menu, evaluates the switching strategy based on geographic location, and ensures the continuity of data services.
It achieves flexible switching according to user scenario requirements, improves the continuity of data services and user experience, and provides a communication strategy that better meets actual needs, especially in real-time voice intercom and large data packet download tasks.
Smart Images

Figure CN116321340B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data switching, and in particular relates to a method and system for data switching of dual-cellular network devices based on location coordinates. Background Art
[0002] Mobile consumer devices, such as mobile phones, have long supported dual SIM dual standby (DDS) and can automatically switch SIM cards for data services based on specific scenarios. However, these devices have a drawback: because they don't strictly guarantee communication functionality, they typically only include a single modem. When both SIM cards have coverage, they can automatically switch based on signal strength and other criteria. However, if one SIM card is in a coverage-free area, even though the data service is on the other SIM card, the unconnected card periodically searches for a network, which can last for several seconds. This process can cause data service interruption on the other SIM card. Individual consumers may not notice this issue, or may rarely experience it and pay much attention to it.
[0003] For industrial terminals, data interruptions like these are unacceptable because they often run real-time tasks, such as voice intercoms. Data delays or missed data can cause serious problems. Therefore, industrial terminals require dual modems to ensure that even if one modem loses connectivity during the search process, the other modem will continue to function without impacting data services.
[0004] Despite this, the industry's considerations for data switching in dual-network devices generally focus on physical factors such as signal strength and signal-to-noise ratio. However, since industrial terminals, such as those in airports, docks, corporate campuses, and residential property management, tend to be located in relatively fixed locations, it's entirely possible to design communication strategies that better meet actual user needs in these restricted areas. Summary of the Invention
[0005] The purpose of this invention is to modify the existing dual-network device data switching scheme, which is primarily based on physical factors such as signal strength and signal-to-noise ratio. A switching strategy based on bandwidth and latency parameters is more tailored to user scenarios. While traditional switching strategies are based on fixed algorithms and policies, this invention provides a user-configurable policy menu that allows for flexible switching based on specific scenarios. This provides a method for data switching between dual-cellular network devices based on location coordinates.
[0006] The present invention is implemented in this way to achieve the above-mentioned purpose: a method for data switching of dual cellular network devices based on location coordinates, the method for data switching of dual cellular network devices based on location coordinates comprising the following steps:
[0007] S1. Use mobile devices to test the bandwidth and latency between multiple location coordinate points and the backend server, record the data information of the corresponding SIM cards to build a basic database and define policies for users to choose which card to use for data services;
[0008] S2. Provide a UI interface with multiple strategies for users to choose priority data services when using the terminal;
[0009] S3, calculate the distance between the current point location coordinates and the location coordinate points in the basic database and perform calculation evaluation before business communication based on the strategy selected by the user;
[0010] S4. After confirming the data service, the service communication is carried out, the current location data information is recorded, and the database record is updated.
[0011] A further technical solution of the present invention is: the step S1 further includes the following steps:
[0012] S11, setting multiple sampling point coordinates in the mobile terminal use area to perform point layout and defining the database table structure on the background server;
[0013] S12. Testing the bandwidth and latency of each SIM card in the mobile terminal communicating with the backend server at the set sampling points and recording the data;
[0014] S13, sending the production data records to the backend server and inserting them into the database table;
[0015] S14. Repeat steps S12 and S13 for all set sampling points to form a basic database with the values of the timestamp field arranged in descending order.
[0016] A further technical solution of the present invention is that the sampling points in step S11 are arranged at a spacing of 50M.
[0017] A further technical solution of the present invention is: the step S3 further includes the following steps:
[0018] S31. Obtain the location coordinates of each record from the database and calculate the distance r between the location coordinates of the current point i , the formula is:
[0019] S32. Select the minimum distance r according to the calculation result i The corresponding 3 records determine the distance r i Is the value less than the threshold? If not, data invalidation is triggered and the SIM card associated with the invalid data is directly selected for data service. If both cards are invalid, card 1 is selected by default and the process returns to step S4. If the value is satisfied, the next step is executed.
[0020] S33. Obtain the timestamp t from the corresponding 3 records i , calculate the difference between the current time and the timestamp t i , and determine whether it satisfies being less than the threshold value. If not, trigger data invalidation, directly select the SIM card associated with the invalid data for data services. If both cards are invalid, default to selecting Card 1 and return to step S4. If it satisfies, proceed to the next step;
[0021] S34. Calculate and obtain two sets of data for the dual cards at the current location point based on the bandwidth and delay in the 3 records, corresponding to b[0], d[0] and b[1], d[1] respectively;
[0022] S35. Select the corresponding SIM card according to the policy defined in step S1. If the user is configured with limited bandwidth, compare b[0] and b[1]. If b[0]>b[1], select Card 1 for data services; otherwise select Card 2 for data services. If the user is configured with latency priority: compare d[0] and d[1]. If d[0]<d[1], select Card 1 for data services; otherwise select Card 2 for data services. If the user is configured to consider both bandwidth and latency: compare b[0] / d[0] and b[1] / d[1]. If b[0] / d[0]>b[1] / d[1], select Card 1 for data services; otherwise select Card 2 for data services.
[0023] A further technical solution of the present invention is that the following steps are further included in the said step S4:
[0024] S41. After determining the SIM card for data services, business communication can be carried out, and the bandwidth and delay of the current communication are recorded in real time. These data, together with the current location coordinates and timestamp, are reported to the background server
[0025] S42. After the background server receives the new record, select the oldest data, delete the record, and insert the new record.
[0026] Another object of the present invention is to provide a dual-cellular network device data switching system based on location coordinates. The dual-cellular network device data switching system based on location coordinates includes
[0027] A construction setting module, which tests the bandwidth and latency between multiple location coordinate points and the background server through a mobile device, records the data information of the corresponding SIM card to construct a basic database, and defines a policy for the user to select which card to perform data services;
[0028] A display module, which is used to provide a UI interface with multiple policies on the use terminal for the user to select for priority data services;
[0029] The calculation and evaluation module is used to calculate the distance between the current point location coordinates and the location coordinate points in the basic database and perform calculation evaluation before business communication based on the strategy selected by the user;
[0030] The record update module is used to perform business communication after determining the data business, record the current location data information and update the database record.
[0031] A further technical solution of the present invention is: the construction setting module also includes
[0032] Setting the sampling unit, which is used to set the coordinates of multiple sampling points in the mobile terminal usage area for point layout and define the database table structure on the background server;
[0033] The data recording unit is used to test the bandwidth and delay of each SIM card of the mobile terminal communicating with the backend server at the set sampling points and record the data;
[0034] Data insertion unit, used to send the production data records to the backend server and insert them into the database table;
[0035] The basic database generating unit is used for repeating the data recording unit and the data inserting unit for all set sampling points to form a basic database with the values of the timestamp field arranged in descending order.
[0036] A further technical solution of the present invention is that the sampling points in the set sampling unit are arranged at a spacing of 50M.
[0037] A further technical solution of the present invention is that: the calculation evaluation module also includes
[0038] Distance calculation unit, used to obtain the location coordinates of each record from the database and calculate the distance r between the current point location coordinates i , the formula is:
[0039] Distance judgment unit, used to select the minimum distance r according to the calculation results i The corresponding 3 records determine the distance r i Is it less than the threshold value? If not, the data invalidation is triggered and the SIM card associated with the invalid data is directly selected for data service. If both cards are invalid, card 1 is selected by default and the record update module is returned. If it is satisfied, the time difference calculation unit is executed;
[0040] Time difference calculation unit, used to obtain the timestamp t from the corresponding three records i , calculate the current time and timestamp t iCheck the difference and determine whether it is less than the threshold value. If not, trigger data invalidation, directly select the SIM card associated with the invalid data for data services. If both cards are invalid, default to selecting Card 1 and return to the record update module. If it meets the condition, execute the current location data calculation unit;
[0041] The current location data calculation unit is used to calculate and obtain two groups of data for the two cards at the current location point based on the bandwidth and delay in 3 records, corresponding to b[0], d[0] and b[1], d[1] respectively;
[0042] The card selection unit is used to select the corresponding SIM card according to the policy defined in the construction setting module. If the user configures for bandwidth priority, compare b[0] and b[1]. If b[0]>b[1], select Card 1 for data services; otherwise select Card 2 for data services. If the user configures for delay priority: compare d[0] and d[1]. If d[0]<d[1], select Card 1 for data services; otherwise select Card 2 for data services. If the user configures for comprehensive consideration of bandwidth and delay: compare b[0] / d[0] and b[1] / d[1]. If b[0] / d[0]>b[1] / d[1], select Card 1 for data services; otherwise select Card 2 for data services.
[0043] A further technical solution of the present invention is that the record update module further includes
[0044] The record reporting unit is used to perform service communication after determining the SIM card for data services, and record the current communication bandwidth and delay in real time, and report these data together with the current location coordinates and timestamp to the background server;
[0045] The deletion and insertion unit is used to select the oldest data after the background server receives a new record, delete the record, and insert a new record.
[0046] The beneficial effects of the present invention are as follows: Based on the bandwidth and delay evaluation model of geographical location coordinates, bandwidth and delay are two major factors directly affecting the user experience. According to the evaluation of these two data, it can better meet the user's needs. Moreover, these policies are made into a UI interface for users to configure, and users can choose different configurations according to their own scenarios, which is more flexible. For example, for the scenario of real-time voice intercom, since the bandwidth requirement is not high, but the voice needs to be as real-time as possible, a low-delay configuration can be selected at this time; while for the large data packet download task, there is no need to pursue real-time at this time, but a large bandwidth is desired, and a bandwidth-priority configuration can be selected at this time. All data models are stored in the background server database and shared by all similar devices. Brief Description of the Drawings
[0047] Figure 1This is a flow chart of a method for data switching of dual cellular network devices based on location coordinates provided by an embodiment of the present invention.
[0048] Figure 2 It is a schematic diagram of a dual-network mobile device accessing a background service server through two base station networks provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The technical solution adopted in the present invention is as follows:
[0050] The network architecture of dual-network mobile devices and background business servers, such as Figure 1 As shown, mobile devices can access backend servers via a public base station network or a private base station network. The choice of network to use primarily involves evaluating the bandwidth and latency of the two networks. These data are based on geographic coordinates, meaning that performance varies across different locations. The technical solution employed by this invention is as follows.
[0051] Use your mobile device to test multiple locations. These locations can be plotted on a map to create a basic distribution. The distance between the locations should be neither too close nor too loose, depending on base station coverage, typically a few dozen meters.
[0052] Move the mobile device to the corresponding location and record the bandwidth and latency of communication with the backend server, the current time, the SIM card number used, and the latitude and longitude coordinates of the location. Each location and SIM card number corresponds to one record. Because there are two SIM cards, each location has two records: the communication bandwidth and latency corresponding to card 1 and card 2. Table 1 shows an example of the data record storage structure.
[0053] After all the position coordinates are sampled, a large table is formed. This table is used for subsequent query calculations and is constantly updated.
[0054] In subsequent actual use, the following process is used to determine whether the mobile device should select card 1 or card 2 for data services.
[0055] When preparing for data services, the current location of the mobile device, i.e., the longitude and latitude coordinates, is first obtained. Based on these coordinates, the n nearest location coordinates in the table are searched. Two SIM cards, i.e., Card 1 and Card 2, need to find n coordinates respectively. Assume that the bandwidth corresponding to the n location points is represented by a vector {b1, b2, ..., b n}, the time delay corresponding to n position points is represented by a vector {d1,d2,...,d n}, the distances of n points from the current position are represented by vectors {r1, r2, ..., r nCard 1 corresponds to a set of vectors, and card 2 also corresponds to a set of vectors. Combining the data of the two cards forms a matrix with 2 rows and n columns.
[0056] The following shows the bandwidth and latency of n locations corresponding to dual cards:
[0057]
[0058] where b i [0] is the bandwidth of card 1 at position i, b i [1] is the bandwidth of card 2 at position i. The capital letters B[0] and B[1] represent vectors, corresponding to the bandwidth of card 1 and card 2 at n positions. Similarly, d i [0] is the delay at position i of card 1, d i [1] is the time delay of card 2 at position i. The capital letters D[0] and D[1] represent vectors, corresponding to the time delays of card 1 and card 2 at n positions.
[0059] Because the underlying network protocols and backend gateways remain largely unchanged over time, without major upgrades or version changes, the number of devices connected to the network and the physical environment within a given area are also relatively stable. Therefore, it can be determined that bandwidth b and latency d are essentially related only to the distance variable r. This relationship can be derived using a basic mathematical model, but it is relatively complex. Here, we will use the function f(r) to represent this relationship.
[0060] Based on the above premise, we can derive a reference value for the bandwidth at the current location. This reference value is related to the bandwidth of the n historical location coordinate points, but the weight distribution at different points is different. The reference value model can be described as follows:
[0061]
[0062] The 1 / (n-1) in the formula is for normalization.
[0063] Similarly, the reference value model of the delay of the current location and the delay of n historical location coordinate points is described as follows:
[0064]
[0065] The above formula can be used to define the weight coefficient specifically as a column vector R. For ease of writing, it is written in the transposed form of the row vector as follows:
[0066]
[0067] Then the bandwidth b and delay d of the current location point can be expressed by the dot product of the vectors.
[0068]
[0069]
[0070] Because it is a dual-SIM card, SIM card 1 and SIM card 2 can calculate the bandwidth and latency corresponding to the current location respectively. The bandwidth and latency of SIM card 1 are b[0] and d[0], and the bandwidth and latency of SIM card 2 are b[1] and d[1].
[0071] Three strategies are defined: bandwidth priority, latency priority, and a combination of bandwidth and latency to determine which card to select for data services. These three strategies can be selected or configured by the user.
[0072] If bandwidth is the priority, compare b[0] and b[1] and select the card corresponding to the larger one to access the network.
[0073] If latency is prioritized, d[0] and d[1] are compared, and the card corresponding to the smaller one is selected to access the network.
[0074] If the bandwidth and latency are comprehensive, compare the quotients of the two: b[0] / d[0] and b[1] / d[1], and select the card corresponding to the larger result to access the network.
[0075] Based on the above results, the corresponding SIM card is selected for data service, and the bandwidth and latency of the current service are counted in real time. These new data constitute a new record. The oldest data record in the existing data table is found and deleted, and the new data is inserted into the record table.
[0076] Based on the bandwidth and latency evaluation model of geographic coordinates, bandwidth and latency are two major factors that directly impact the user experience. Evaluations based on these two data points can better meet user needs. Furthermore, these policies are configured through a user interface, allowing users to choose different configurations based on their specific scenarios, providing greater flexibility. For example, for real-time voice intercom scenarios, where bandwidth requirements are low but real-time voice is required, a low-latency configuration can be selected. For large data packet downloads, where real-time performance is not required but high bandwidth is desired, a bandwidth-priority configuration can be selected. All data models are stored in the backend server database and shared by all similar devices.
[0077] Table 1 Bandwidth and latency records corresponding to card number and location coordinates
[0078]
[0079] Figure 2 Flowchart of the dual cellular network device data switching method based on location coordinates provided by the present invention; the details are as follows:
[0080] Point testing
[0081] In the equipment use area, determine the coordinates of the sampling points and arrange each point at a distance of about 50 meters.
[0082] The backend server defines the database table structure, as shown in Table 1.
[0083] Go to the actual sampling location and test the bandwidth and latency of communication between the mobile device and the backend server. Two SIM cards are tested separately, corresponding to two records.
[0084] The mobile device sends the test data to the server backend, and on the backend server, the data records are inserted into the table.
[0085] 1.5 Repeat steps 1.3 and 1.4 for all location points to form a large table. The records in the table are sorted in descending order according to the value of the test timestamp field.
[0086] 2. Determine your strategy
[0087] 2.1 Provide three strategies on the terminal: bandwidth priority, latency priority, and comprehensive consideration of bandwidth and latency. Create a UI configuration interface for users to choose.
[0088] 3. Computational evaluation before business communication
[0089] 3.1 Get the latest record information from the background server.
[0090] 3.2 From the record information, obtain the location coordinates (x i ,y i ), calculate the distance ri according to the current point's position coordinates (x, y), refer to the following formula:
[0091]
[0092] 3.3 In the calculation results of 3.2, select the smallest r i Corresponding 3 records. i Need to meet the threshold value (defined as r L If the distance is too far, for example, beyond the base station's coverage area, the reference record is meaningless. If this condition is not met, the data is invalidated, and the following calculation process is skipped. The SIM card associated with the invalid data is directly selected for data service. If both cards are invalid, card 1 is selected by default. Jump to step 4. If the condition is met, continue with steps 3.4.
[0093] 3.4 Get timestamp t from 3 records i , current time t and t i The difference, that is, tt i , needs to be less than the threshold value (defined as t L, (Data that is too old is considered invalid). If this cannot be satisfied, data invalidation is triggered, and the following calculation process is not performed. Instead, the SIM card associated with the invalid data is directly selected for data services. If both cards are invalid, card 1 can be selected by default. Jump to step 4. If it can be satisfied, continue with step 3.5.
[0094] 3.5 Obtain the bandwidth and latency from 3 records. There are two sets of data corresponding to the two cards, which are represented by a matrix as follows:
[0095]
[0096] 3.6 In the previous technical solution, the relationship f(r) between the bandwidth b and the latency d and the distance r was mentioned. This mathematical model is relatively complex. Here, we simply consider f(r) = r, at least in terms of the model direction, it is consistent. Define a column vector R as follows:
[0097]
[0098] 3.7 Calculate the bandwidth b and the latency d
[0099] According to the formula in the technical solution, substituting n = 3 and f(r) = r, we can obtain:
[0100]
[0101]
[0102] For the dual SIM cards, there are two sets of data, corresponding to b[0], d[0] and b[1], d[1].
[0103] 3.8 Select the corresponding SIM card according to the strategy determined in step 2. There are three strategy cases.
[0104] If the user configures bandwidth priority: Compare b[0] and b[1]. If b[0] > b[1], select card 1 for data services; otherwise, select card 2 for data services.
[0105] If the user configures latency priority: Compare d[0] and d[1]. If d[0] < d[1], select card 1 for data services; otherwise, select card 2 for data services.
[0106] If the user configures comprehensive consideration of bandwidth and latency: Compare b[0] / d[0] and b[1] / d[1]. If b[0] / d[0] > b[1] / d[1], select card 1 for data services; otherwise, select card 2 for data services.
[0107] Perform communication and update the record
[0108] 4.1 After confirming the SIM card for data services, you can start business communications and record the current communication bandwidth and latency in real time. These data, along with the current location coordinates and timestamp, will be reported to the backend server.
[0109] 4.2 After receiving the new record, the backend server selects the oldest data, deletes the record, and inserts the new record.
[0110] Another object of the present invention is to provide a dual cellular network device data switching system based on location coordinates, the dual cellular network device data switching system based on location coordinates includes
[0111] Build a settings module to test the bandwidth and latency between multiple location coordinates and the backend server through mobile devices, record the data information of the corresponding SIM cards to build a basic database and define policies for users to choose which card to use for data services;
[0112] Display module, used to provide a UI interface with multiple policies for users to choose priority data services when using the terminal;
[0113] The calculation and evaluation module is used to calculate the distance between the current point location coordinates and the location coordinate points in the basic database and perform calculation evaluation before business communication based on the strategy selected by the user;
[0114] The record update module is used to perform business communication after determining the data business, record the current location data information and update the database record.
[0115] The construction setting module also includes
[0116] Setting the sampling unit, which is used to set the coordinates of multiple sampling points in the mobile terminal usage area for point layout and define the database table structure on the background server;
[0117] The data recording unit is used to test the bandwidth and delay of each SIM card of the mobile terminal communicating with the backend server at the set sampling points and record the data;
[0118] Data insertion unit, used to send the production data records to the backend server and insert them into the database table;
[0119] The basic database generating unit is used for repeating the data recording unit and the data inserting unit for all set sampling points to form a basic database with the values of the timestamp field arranged in descending order.
[0120] A further technical solution of the present invention is that the sampling points in the set sampling unit are arranged at a spacing of 50M.
[0121] The calculation evaluation module also includes
[0122] A distance calculation unit, which is used to obtain the position coordinates of each record from the database and calculate the distance r from the current point position coordinates i , and the formula is:
[0123] A distance judgment unit, which is used to select the smallest distance r according to the calculation result i Judge the distance r for the corresponding 3 records i to determine whether it satisfies being less than the threshold value. If not, trigger data invalidation, directly select the SIM card associated with the invalid data for data services. If both cards are invalid, default to selecting card 1 and return to the record update module. If it satisfies, execute the time difference calculation unit;
[0124] A time difference calculation unit, which is used to obtain the timestamp t from the corresponding 3 records i , calculate the difference between the current time and the timestamp t i and determine whether it satisfies being less than the threshold value. If not, trigger data invalidation, directly select the SIM card associated with the invalid data for data services. If both cards are invalid, default to selecting card 1 and return to the record update module. If it satisfies, execute the current position data calculation unit;
[0125] A current position data calculation unit, which is used to calculate and obtain two groups of data of the two cards at the current position point according to the bandwidth and delay in the 3 records, corresponding to b[0], d[0] and b[1], d[1] respectively;
[0126] A SIM card selection unit, which is used to select the corresponding SIM card according to the policy defined in the construction setting module. If the user configures for bandwidth priority, compare b[0] and b[1]. If b[0]>b[1], select card 1 for data services; otherwise select card 2 for data services. If the user configures for delay priority: compare d[0] and d[1]. If d[0]<d[1], select card 1 for data services; otherwise select card 2 for data services. If the user configures for comprehensive consideration of bandwidth and delay: compare b[0] / d[0] and b[1] / d[1]. If b[0] / d[0]>b[1] / d[1], select card 1 for data services; otherwise select card 2 for data services.
[0127] The record update module further includes
[0128] A record reporting unit, which is used to perform service communication after determining the SIM card for data services, and record the current communication bandwidth and delay in real time, and report these data together with the current position coordinates and timestamp to the background server;
[0129] A deletion and insertion unit, which is used to select the oldest data after the background server receives a new record, delete the record, and insert a new record.
[0130] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for data switching of dual cellular network devices based on location coordinates, characterized in that: The method for data switching of dual cellular network devices based on location coordinates includes the following steps: S1. Test the bandwidth and delay between multiple location coordinate points and the background server through a mobile device, record the data information of the corresponding SIM card to build a basic database, and define policies for the user to select which card to perform data services; S2. Provide a UI interface with multiple policies on the terminal for the user to select for priority data services; S3. Calculate the distance based on the current point location coordinates and the location coordinate points in the basic database, and perform a calculation evaluation before business communication according to the policy selected by the user; S4. After determining the data service, perform business communication, record the current location data information, and update the database record; The following steps are further included in step S3: S31. Obtain the location coordinates of each record from the database and calculate the distance r between the location coordinates of the current point i , the formula is: ; S32. Select the minimum distance r according to the calculation result i The corresponding 3 records determine the distance r i Is the value less than the threshold? If not, data invalidation is triggered and the SIM card associated with the invalid data is directly selected for data service. If both cards are invalid, card 1 is selected by default and the process returns to step S4. If the value is satisfied, the next step is executed. S33. Get the timestamp t from the corresponding three records i , calculate the current time and timestamp t i The difference is determined to be less than the threshold value. If not, the data invalidation is triggered and the SIM card associated with the invalid data is directly selected for data service. If both cards are invalid, card 1 is selected by default and the process returns to step S4. If satisfied, the process proceeds to the next step. S34. Calculate and obtain two sets of data of the two SIM cards at the current location point according to the bandwidth and delay in 3 records, corresponding to b[0], d[0] and b[1], d[1] respectively; S35. Select the corresponding SIM card according to the policy defined in step S1. If the user configures for bandwidth priority, compare b[0] and b[1]. If b[0]>b[1], select card 1 for data service; otherwise select card 2 for data service. If the user configures for delay priority: compare d[0] and d[1]. If d[0]<d[1], select card 1 for data service; otherwise select card 2 for data service. If the user configures for comprehensive consideration of bandwidth and delay: compare b[0] / d[0] and b[1] / d[1]. If b[0] / d[0]> b[1] / d[1], select card 1 for data service; otherwise select card 2 for data service.
2. The method for dual cellular network device data switching based on location coordinates according to claim 1, characterized in that: The following steps are further included in step S1: S11. Set multiple sampling point coordinates in the use area of the mobile terminal for point layout and define the database table structure in the background server; S12. Test the bandwidth and delay of each SIM of the mobile terminal communicating with the background server at the set sampling points respectively and form data records; S13. After sending the generated data records to the background server, insert them into the database table; S14. Repeat steps S12 and S13 for all set sampling points to form a basic database with the values in the timestamp field arranged in descending order; 3. The method for dual cellular network device data switching based on location coordinates according to claim 2, characterized in that: The sampling points in step S11 are arranged at an interval of 50M; 4. The method for dual cellular network device data switching based on location coordinates according to claim 3, characterized in that: The following steps are further included in step S4: S41. After determining the SIM card for data service, business communication can be carried out, and the bandwidth and delay of the current communication are recorded in real time. Report these data together with the current location coordinates and timestamp to the background server; S42. After the background server receives the new record, select the oldest data, delete the record, and insert the new record; 5. A dual cellular network device data switching system based on location coordinates, characterized in that: The system for data switching of dual cellular network devices based on location coordinates includes A construction setting module, which tests the bandwidth and delay between multiple location coordinate points and the background server through a mobile device, records the data information of the corresponding SIM card to build a basic database, and defines policies for the user to select which card to perform data services; A display module, which is used to provide a UI interface with multiple policies on the terminal for the user to select for priority data services; A calculation and evaluation module, which is used to calculate the distance based on the current point position coordinates and the position coordinate points in the basic database, and perform calculation and evaluation before business communication according to the strategy selected by the user; A record update module, which is used to determine to perform business communication after data service, record the current location data information, and update the database record; The calculation and evaluation module also includes Distance calculation unit, used to obtain the location coordinates of each record from the database and calculate the distance r between the current point location coordinates i , the formula is: ; Distance judgment unit, used to select the minimum distance r according to the calculation results i The corresponding 3 records determine the distance r i Is it less than the threshold value? If not, the data invalidation is triggered and the SIM card associated with the invalid data is directly selected for data service. If both cards are invalid, card 1 is selected by default and the record update module is returned. If it is satisfied, the time difference calculation unit is executed; Time difference calculation unit, used to obtain the timestamp t from the corresponding three records i , calculate the current time and timestamp t i The difference is determined and whether it is less than the threshold value. If not, the data invalidation is triggered, and the SIM card associated with the invalid data is directly selected for data service. If both cards are invalid, card 1 is selected by default and the record update module is returned. If it is satisfied, the current location data calculation unit is executed; A current location data calculation unit, which is used to calculate and obtain two groups of data for the two SIM cards at the current location point according to the bandwidth and delay in 3 records, corresponding to b[0], d[0] and b[1], d[1] respectively; A SIM card selection unit, which is used to select the corresponding SIM card according to the strategy defined in the construction and setting module. If the user configures that the bandwidth is limited, compare b[0] and b[1]. If b[0]>b[1], select SIM card 1 as the data service; otherwise, select SIM card 2 as the data service. If the user configures for latency priority: compare d[0] and d[1]. If d[0]<d[1], select SIM card 1 as the data service; otherwise, select SIM card 2 as the data service. If the user configures to consider both bandwidth and latency: compare b[0] / d[0] and b[1] / d[1]. If b[0] / d[0] > b[1] / d[1], select SIM card 1 as the data service; otherwise, select SIM card 2 as the data service.
6. The dual cellular network device data switching system based on location coordinates according to claim 5, characterized in that: The construction and setting module also includes A setting and sampling unit, which is used to set multiple sampling point coordinates for layout in the mobile terminal usage area and define the database table structure in the background server; A data recording unit, which is used to test the bandwidth and latency of each SIM card of the mobile terminal communicating with the background server at the set sampling points respectively and form data records; A data insertion unit, which is used to send the generated data records to the background server and then insert them into the database table; A basic database generation unit, which is used to repeat the data recording unit and the data insertion unit for all set sampling points to form a basic database with the values in the timestamp field arranged in descending order; 7. The dual cellular network device data switching system based on location coordinates according to claim 6, characterized in that: The sampling points in the setting and sampling unit are laid out at an interval of 50M; 8. The dual cellular network device data switching system based on location coordinates according to claim 7, characterized in that: The record update module also includes A record reporting unit, which is used to perform business communication after determining the SIM card for data service, and record the current communication bandwidth and latency in real time, and report these data together with the current location coordinates and timestamp to the background server; A deletion and insertion unit, which is used to select the oldest data, delete the record, and insert a new record after the background server receives the new record.
Citation Information
Patent Citations
Service carrier switching method and device
CN115278648A
Latency guarantee for multimedia streaming service to a moving subscriber
WO2019156935A1