CN116567775A - A multi-link dynamic access method and system with precise network positioning capability - Google Patents
A multi-link dynamic access method and system with precise network positioning capability Download PDFInfo
- Publication number
- CN116567775A CN116567775A CN202310388595.1A CN202310388595A CN116567775A CN 116567775 A CN116567775 A CN 116567775A CN 202310388595 A CN202310388595 A CN 202310388595A CN 116567775 A CN116567775 A CN 116567775A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- link
- calculation
- less
- access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/02—Access restriction performed under specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种具备精准网络定位能力的多链路动态接入方法,同时也涉及一种具备精准网络定位能力的多链路动态接入系统,属于网络通信技术领域。The invention relates to a multi-link dynamic access method with precise network positioning capability, and also relates to a multi-link dynamic access system with precise network positioning capability, which belongs to the technical field of network communication.
背景技术Background technique
移动终端可能同时具备多种不同类型的无线接入链路。这些无线接入链路的承载网络包括但不限于:公众移动通信网、宽带集群通信网、安全无线局域网等。这些承载网络之间独立运营、独立管理,提供的无线接入链路之间无任何协作和交互。A mobile terminal may have multiple wireless access links of different types at the same time. The bearer networks of these wireless access links include, but are not limited to: public mobile communication networks, broadband trunking communication networks, secure wireless local area networks, and the like. These bearer networks are independently operated and managed, and there is no collaboration and interaction between the provided wireless access links.
在专利号为ZL 202010686055.8的中国发明专利中,公开了一种多网络接入的系统和方法。该技术方案使用数据总线将多个基带处理器端点耦合到多个网络接入卡,使得每个基带处理器端点可在该数据总线上与任何网络接入卡通信。调制解调器和应用处理器作为基带处理器端点来操作。基带处理器端点包括调制解调器并且网络接入卡是订户接口模块卡或通用集成电路卡。总线接口可将地址附加到被放置在数据总线上的数据,并且可根据时分复用协议将数据放置在数据总线上。通过允许每个基带处理器端点使用任何网络接入卡,移动计算设备可出于不同目的使用不同的网络。In the Chinese invention patent with the patent number ZL 202010686055.8, a system and method for multi-network access are disclosed. The technical solution uses a data bus to couple multiple baseband processor endpoints to multiple network access cards, so that each baseband processor endpoint can communicate with any network access card on the data bus. Modems and application processors operate as baseband processor endpoints. The baseband processor endpoint includes a modem and the network access card is a subscriber interface module card or a universal integrated circuit card. The bus interface can append addresses to data placed on the data bus, and can place data on the data bus according to a time division multiplexing protocol. By allowing each baseband processor endpoint to use any network access card, mobile computing devices can use different networks for different purposes.
另外,在专利号为ZL 201811511049.8的中国发明专利中,公开了一种提升公专网切换性能的方法。该方法包括如下步骤:根据公网或专网的信号质量,选取公网或专网作为移动终端的当前通信网络;在当前通信网络首次切换为公网时,加载SIM卡以获取用户数据;存储获取的用户数据,以供当前通信网络再次切换至公网时使用。In addition, in the Chinese invention patent with the patent number ZL 201811511049.8, a method for improving the switching performance of public and private networks is disclosed. The method comprises the following steps: according to the signal quality of the public network or the private network, selecting the public network or the private network as the current communication network of the mobile terminal; when the current communication network is switched to the public network for the first time, loading the SIM card to obtain user data; storing The obtained user data is used when the current communication network is switched to the public network again.
发明内容Contents of the invention
本发明所要解决的首要技术问题在于提供一种具备精准网络定位能力的多链路动态接入方法。The primary technical problem to be solved by the present invention is to provide a multi-link dynamic access method capable of accurate network positioning.
本发明所要解决的另一技术问题在于提供一种具备精准网络定位能力的多链路动态接入系统。Another technical problem to be solved by the present invention is to provide a multi-link dynamic access system capable of accurate network positioning.
为实现上述技术目的,本发明采用以下的技术方案:For realizing above-mentioned technical purpose, the present invention adopts following technical scheme:
根据本发明实施例的第一方面,提供一种具备精准网络定位能力的多链路动态接入方法,包括如下步骤:According to the first aspect of the embodiments of the present invention, a multi-link dynamic access method with precise network positioning capability is provided, including the following steps:
S1:移动终端启动,向无线链路接入管控装置发送链路接入请求;S1: The mobile terminal starts up and sends a link access request to the wireless link access control device;
S2:无线链路接入管控装置进行链路接入认证,认证成功之后为移动终端分配通信接口IP和对应的网关IP;S2: The wireless link access management and control device performs link access authentication, and assigns the communication interface IP and the corresponding gateway IP to the mobile terminal after the authentication is successful;
S3:移动终端获取通信接口IP,根据获取情况填写默认链路表,进行最短路径计算,并通过最短路径向无线链路接入管控装置发送接入请求;S3: The mobile terminal obtains the communication interface IP, fills in the default link table according to the obtained situation, performs the shortest path calculation, and sends an access request to the wireless link access control device through the shortest path;
当移动终端脱网时,则程序结束;When the mobile terminal is off-line, the program ends;
当移动终端具备至少一条可用链路时,则进行最短路径计算,并用最短路径向无线链路接入管控装置发起规划移动终端主机IP的请求;When the mobile terminal has at least one available link, perform the shortest path calculation, and use the shortest path to initiate a request for planning the mobile terminal host IP to the wireless link access control device;
S4:无线链路接入管控装置收到请求之后,回复接受请求,并返回规划的主机IP,同时将步骤S3使用的链路标记为移动终端主机IP-默认-最优链路;S4: After the wireless link access control device receives the request, it replies to accept the request, and returns the planned host IP, and marks the link used in step S3 as the mobile terminal host IP-default-optimal link;
S5:启动第一应用;S5: start the first application;
S6:启动第二应用,由第二应用进行最短路径计算,并通过第二应用的最短路径向无线链路接入管控装置发送请求;S6: Start the second application, calculate the shortest path by the second application, and send a request to the wireless link access control device through the shortest path of the second application;
S7:无线链路接入管控装置接受请求,并将该链路标记为移动终端主机IP-第二应用-最优链路;S7: The wireless link access control device accepts the request, and marks the link as the mobile terminal host IP-second application-optimal link;
S8:无线链路接入管控装置对异构网络位置参考信息进行分类;S8: The wireless link access management and control device classifies the heterogeneous network location reference information;
S9:对多个同类型的位置参考信息进行合并;S9: Merging multiple location reference information of the same type;
S10:对合并之后的位置参考信息进行计算,并输出定位结果;S10: Calculate the combined position reference information, and output a positioning result;
当形成点、圆、弧线中的任意一种时,则输出点、圆的圆心、弧线的圆心位置信息,作为定位结果;When any one of point, circle, and arc is formed, the position information of the point, the center of the circle, and the center of the arc is output as the positioning result;
当形成点、圆、弧线中的任意两种时,则根据具体情况按照点和圆、圆和弧线、点和弧线进行定位计算,并将计算结果作为定位结果进行输出;When any two of points, circles, and arcs are formed, the positioning calculation is performed according to the specific situation according to the point and circle, circle and arc, point and arc, and the calculation result is output as the positioning result;
当形成点、圆、弧线中的三种时,则按照圆和弧线进行定位计算,并将计算结果作为定位结果进行输出;When three types of points, circles, and arcs are formed, the positioning calculation is performed according to the circles and arcs, and the calculation results are output as the positioning results;
S11:记录移动终端主机IP-参与计算的位置参考点-定位结果。S11: record the IP of the mobile terminal host - the location reference point involved in the calculation - the positioning result.
其中较优地,所述步骤S2包括如下子步骤:Wherein preferably, the step S2 includes the following sub-steps:
S21:无线链路接入管控装置规划通信接口IP和移动终端主机IP;S21: The wireless link access management and control device plans the communication interface IP and the mobile terminal host IP;
S22:将移动终端主机IP、通信接口IP、国际移动设备识别码、通信编码等身份ID进行关联;S22: Associating identity IDs such as mobile terminal host IP, communication interface IP, international mobile equipment identification code, and communication code;
S23:收到移动终端发起的接入请求并进行接入授权,向移动终端返回授权的通信接口IP和对应的网关IP。S23: Receive the access request initiated by the mobile terminal and perform access authorization, and return the authorized communication interface IP and corresponding gateway IP to the mobile terminal.
其中较优地,所述步骤S3包括如下子步骤:Wherein preferably, the step S3 includes the following sub-steps:
S31:创建临时主机IP和虚拟服务端IP;S31: create temporary host IP and virtual server IP;
S32:将临时主机IP、通信接口IP、网关IP和虚拟服务端IP填写默认链路表;S32: Fill in the default link table with the temporary host IP, communication interface IP, gateway IP and virtual server IP;
S33:使用Dijkstra算法进行最短路径计算,得到最短路径;S33: use the Dijkstra algorithm to calculate the shortest path to obtain the shortest path;
S34:用最短路径向无线链路接入管控装置发起规划移动终端主机IP的请求;S34: Use the shortest path to initiate a request for planning the IP of the mobile terminal host to the wireless link access control device;
S35:用响应中的规划移动终端主机IP替换默认链路表中的临时主机IP。S35: Replace the temporary host IP in the default link table with the planned mobile terminal host IP in the response.
其中较优地,临时主机IP和虚拟服务端IP与其他接口IP不冲突。Preferably, the temporary host IP and the virtual server IP do not conflict with other interface IPs.
其中较优地,通信接口IP、网关IP之间的链路损耗值根据具体场景进行设定,优先级越高的链路损耗值设置越小,其余链路的损耗值相同,并且根据链路状态通知,实时更新默认链路表。Preferably, the link loss value between the communication interface IP and the gateway IP is set according to specific scenarios, the link loss value with higher priority is set to be smaller, and the loss values of other links are the same, and the link loss value is set according to the link Status notification, update the default link table in real time.
其中较优地,若第二应用未超时并且第二应用的链路表未发生变化,则始终按照此最短路径发送请求;若第二应用超时和/或第二应用的链路表发生变化,则重复步骤S6~S7。Preferably, if the second application does not time out and the link table of the second application does not change, the request is always sent according to the shortest path; if the second application times out and/or the link table of the second application changes, Then repeat steps S6-S7.
其中较优地,所述步骤S9包括如下子步骤:Wherein preferably, said step S9 includes the following sub-steps:
如果存在多个点,则按照精度,优选精度最高的一个点参与计算;If there are multiple points, according to the accuracy, the point with the highest accuracy is preferred to participate in the calculation;
如果存在多个弧线,则按照精度,优选精度最高的一个弧线参与计算;If there are multiple arcs, according to the accuracy, the arc with the highest accuracy is preferred to participate in the calculation;
如果存在多个圆,则按照精度,优选精度最高的一个圆参与计算。If there are multiple circles, according to the precision, the circle with the highest precision is preferred to participate in the calculation.
其中较优地,异构网络位置参考信息分类的类型包括:点、圆、弧线。Wherein preferably, the classification types of heterogeneous network location reference information include: point, circle, and arc.
其中较优地,点和圆定位计算的方法为:Among them, preferably, the method of point and circle positioning calculation is:
S1011:按照地球球面距离公式计算点(a2,b2)与圆心(a1,b1)之间的距离d;S1011: Calculate the distance d between the point (a2, b2) and the center of the circle (a1, b1) according to the distance formula on the spherical surface of the earth;
其中,计算公式为:Among them, the calculation formula is:
d=3963.0*arccos[(sin(b1)*sin(b2))+cos(b1)*cos(b2)*cos(a2–a1)]d=3963.0*arccos[(sin(b1)*sin(b2))+cos(b1)*cos(b2)*cos(a2–a1)]
d in kilometers=1.609344*dd in kilometers = 1.609344*d
当d小于或等于r1时,则点在圆形区域内或圆形区域上,返回位置参考点(a2,b2)作为定位结果;When d is less than or equal to r1, the point is in or on the circular area, and the position reference point (a2, b2) is returned as the positioning result;
当d大于r1时,则点在圆形区域外,进入步骤S1012;When d is greater than r1, the point is outside the circular area, and enter step S1012;
其中,r1为圆的半径;Among them, r1 is the radius of the circle;
S1012:以(a1,b1)为原点建立直角坐标系,计算θ;S1012: Establish a Cartesian coordinate system with (a1, b1) as the origin, and calculate θ;
θ的计算公式为:The calculation formula of θ is:
其中,直角坐标系的Y轴为北-南方向,直角坐标系的X轴为西-东;θ为(a1,b1)与(a2,b2)的连线同Y轴之间的夹角;Pi为圆周率;Among them, the Y-axis of the Cartesian coordinate system is north-south, and the X-axis of the Cartesian coordinate system is West-East; θ is the angle between the line connecting (a1, b1) and (a2, b2) and the Y-axis; Pi is the circumference ratio;
S1013:根据(a1,b1)和(a2,b2)两个参考点相对位置对θ进行优化得到θ1,优化后进入步骤S1014;S1013: optimize θ according to the relative positions of two reference points (a1, b1) and (a2, b2) to obtain θ 1 , and proceed to step S1014 after optimization;
当a2-a1>0且b2-b1>0,在第一象限,则θ1=θ;When a2-a1>0 and b2-b1>0, in the first quadrant, then θ 1 =θ;
当a2-a1>0且b2-b1<0,在第二象限,θ1=180°-θ;When a2-a1>0 and b2-b1<0, in the second quadrant, θ 1 =180°-θ;
当a2-a1<0且b2-b1<0,在第三象限,θ1=θ+180°;When a2-a1<0 and b2-b1<0, in the third quadrant, θ 1 =θ+180°;
当a2-a1<0且b2-b1>0,在第四象限,θ1=360°-θ;When a2-a1<0 and b2-b1>0, in the fourth quadrant, θ 1 =360°-θ;
S1014:计算定位结果并输出;S1014: Calculate and output the positioning result;
所述定位结果计算的公式为:The formula for calculating the positioning result is:
[a1+r1*sin(θ1),b1+r1*cos(θ1)][a1+r1*sin(θ 1 ),b1+r1*cos(θ 1 )]
其中较优地,圆和弧线定位计算的方法为:Wherein, preferably, the method of circle and arc positioning calculation is:
S1021:按照地球球面距离公式计算圆形区域圆心(a1,b1)与弧线圆心(a3,b3)的之间距离d;S1021: Calculate the distance d between the center of the circular area (a1, b1) and the center of the arc (a3, b3) according to the distance formula on the earth's surface;
其中,计算公式为:Among them, the calculation formula is:
d=3963.0*arccos[(sin(b1)*sin(b3))+cos(b1)*cos(b3)*cos(a3–a1)]d=3963.0*arccos[(sin(b1)*sin(b3))+cos(b1)*cos(b3)*cos(a3–a1)]
d in kilometers=1.609344*dd in kilometers = 1.609344*d
当d等于r3时,则圆形区域在弧线上,输出(a1,b1)为定位结果;When d is equal to r3, the circular area is on the arc, and the output (a1, b1) is the positioning result;
当d大于r3或小于r3时,则进入步骤S1022;When d is greater than r3 or less than r3, enter step S1022;
S1022:以(a3,b3)为原点建立直角坐标系,计算θ;S1022: Establish a Cartesian coordinate system with (a3, b3) as the origin, and calculate θ;
θ的计算公式为:The calculation formula of θ is:
其中,θ为(a1,b1)与(a3,b3)的连线同Y轴之间的夹角;Among them, θ is the angle between the line connecting (a1, b1) and (a3, b3) and the Y axis;
S1023:根据(a1,b1)和(a3,b3)两个参考点相对位置对θ进行优化得到θ1,优化后进入步骤S1024;S1023: optimize θ according to the relative positions of two reference points (a1, b1) and (a3, b3) to obtain θ 1 , and proceed to step S1024 after optimization;
当a1-a3>0且b1-b3>0,在第一象限,则θ1=θ;When a1-a3>0 and b1-b3>0, in the first quadrant, then θ 1 =θ;
当a1-a3>0且b1-b3<0,在第二象限,θ1=180°-θ;When a1-a3>0 and b1-b3<0, in the second quadrant, θ 1 =180°-θ;
当a1-a3<0且b1-b3<0,在第三象限,θ1=θ+180°;When a1-a3<0 and b1-b3<0, in the third quadrant, θ 1 =θ+180°;
当a1-a3<0且b1-b3>0,在第四象限,θ1=360°-θ;When a1-a3<0 and b1-b3>0, in the fourth quadrant, θ 1 =360°-θ;
S1024:根据移动终端附着小区ID对θ1进行防漂移优化,得到θ2;S1024: Perform anti-drift optimization on θ 1 according to the cell ID attached to the mobile terminal to obtain θ 2 ;
当移动终端附着的是α扇区,且θ1大于120°小于240°,则θ2=120°;When the mobile terminal is attached to the α sector, and θ 1 is greater than 120° and less than 240°, then θ 2 =120°;
当移动终端附着的是α扇区,且θ1大于240°小于360°,则θ2=0°;When the mobile terminal is attached to the α sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =0°;
当移动终端附着的是β扇区,且θ1小于120°,则θ2=120°;When the mobile terminal is attached to the β sector, and θ 1 is less than 120°, then θ 2 =120°;
当移动终端附着的是β扇区,且θ1大于240°小于360°,则θ2=240°;When the mobile terminal is attached to the β sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =240°;
当移动终端附着的是γ扇区,且θ1小于120°,则θ2=360°;When the mobile terminal is attached to the γ sector, and θ 1 is less than 120°, then θ 2 =360°;
当移动终端附着的是γ扇区,且θ1大于120°小于240°,则θ2=240°;When the mobile terminal is attached to the γ sector, and θ 1 is greater than 120° and less than 240°, then θ 2 =240°;
S1025:根据圆形区域圆心(a1,b1)与弧线圆心(a3,b3)的之间距离d采用相应的计算公式计算定位结果并输出;S1025: According to the distance d between the center of the circular area (a1, b1) and the center of the arc (a3, b3), the corresponding calculation formula is used to calculate and output the positioning result;
当d小于r3时,则按照以下公式计算定位结果:When d is less than r3, the positioning result is calculated according to the following formula:
[a1+r1*sin(θ2),b1+r1*cos(θ2)][a1+r1*sin(θ 2 ),b1+r1*cos(θ 2 )]
当d大于r3时,则按照以下公式计算定位结果:When d is greater than r3, the positioning result is calculated according to the following formula:
[a1+r1*sin(θ2+180°),b1+r1*cos(θ2+180°)][a1+r1*sin(θ 2 +180°),b1+r1*cos(θ 2 +180°)]
其中较优地,点和弧线定位计算的方法为:Wherein preferably, the method for point and arc positioning calculation is:
S1031:按照地球球面距离公式计算位置参考点(a2,b2)与弧线圆心(a3,b3)的之间距离d;S1031: Calculate the distance d between the position reference point (a2, b2) and the center of the arc (a3, b3) according to the distance formula on the earth's sphere;
其中,计算公式为:Among them, the calculation formula is:
d=3963.0*arccos[(sin(b2)*sin(b3))+cos(b2)*cos(b3)*cos(a3–a2)]d=3963.0*arccos[(sin(b2)*sin(b3))+cos(b2)*cos(b3)*cos(a3–a2)]
d in kilometers=1.609344*dd in kilometers = 1.609344*d
当d等于r3时,则点位于弧线上,输出(a2,b2)为定位结果;When d is equal to r3, the point is located on the arc, and the output (a2, b2) is the positioning result;
当d大于r3或小于r3时,则进入步骤S1032;When d is greater than r3 or less than r3, enter step S1032;
S1032:以(a3,b3)为原点建立直角坐标系,计算θ;S1032: Establish a Cartesian coordinate system with (a3, b3) as the origin, and calculate θ;
θ的计算公式为:The calculation formula of θ is:
其中,θ为(a2,b2)与(a3,b3)的连线同Y轴之间的夹角;Among them, θ is the angle between the line connecting (a2, b2) and (a3, b3) and the Y axis;
S1033:根据(a2,b2)和(a3,b3)两个参考点相对位置对θ进行优化得到对θ1进行防漂移优化,得到θ2,优化后进入步骤S1034;S1033: Optimizing θ according to the relative positions of two reference points (a2, b2) and (a3, b3) to obtain anti-drift optimization of θ 1 to obtain θ 2 , and proceed to step S1034 after optimization;
当a2-a3>0且b2-b3>0,在第一象限,则θ1=θ;When a2-a3>0 and b2-b3>0, in the first quadrant, then θ 1 =θ;
当a2-a3>0且b2-b3<0,在第二象限,θ1=180°-θ;When a2-a3>0 and b2-b3<0, in the second quadrant, θ 1 =180°-θ;
当a2-a3<0且b2-b3<0,在第三象限,θ1=θ+180°;When a2-a3<0 and b2-b3<0, in the third quadrant, θ 1 =θ+180°;
当a2-a3<0且b2-b3>0,在第四象限,θ1=360°-θ;When a2-a3<0 and b2-b3>0, in the fourth quadrant, θ 1 =360°-θ;
S1034:根据移动终端附着小区ID对θ1进行防漂移优化,得到θ2;S1034: Perform anti-drift optimization on θ 1 according to the cell ID attached to the mobile terminal to obtain θ 2 ;
当移动终端附着的是α扇区,且θ1大于120°小于240°,则θ2=120°;When the mobile terminal is attached to the α sector, and θ 1 is greater than 120° and less than 240°, then θ 2 =120°;
当移动终端附着的是α扇区,且θ1大于240°小于360°,则θ2=0°;When the mobile terminal is attached to the α sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =0°;
当移动终端附着的是β扇区,且θ1小于120°,则θ2=120°;When the mobile terminal is attached to the β sector, and θ 1 is less than 120°, then θ 2 =120°;
当移动终端附着的是β扇区,且θ1大于240°小于360°,则θ2=240°;When the mobile terminal is attached to the β sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =240°;
当移动终端附着的是γ扇区,且θ1小于120°,则θ2=360°;When the mobile terminal is attached to the γ sector, and θ 1 is less than 120°, then θ 2 =360°;
当移动终端附着的是γ扇区,且θ1大于120°小于240°,则θ2=240°;When the mobile terminal is attached to the γ sector, and θ 1 is greater than 120° and less than 240°, then θ 2 =240°;
S1035:计算定位结果并输出;S1035: Calculate and output the positioning result;
所述定位结果计算的公式为:The formula for calculating the positioning result is:
[a3+r3*sin(θ2),b3+r3*cos(θ2)]。[a3+r3*sin(θ 2 ), b3+r3*cos(θ 2 )].
根据本发明实施例的第二方面,提供一种具备精准网络定位能力的多链路动态接入系统,其中包括含有接入管控组件的移动终端和无线链路接入管控装置,用于实施上述的多链路动态接入方法。According to the second aspect of the embodiments of the present invention, a multi-link dynamic access system with precise network positioning capability is provided, which includes a mobile terminal including an access management and control component and a wireless link access management and control device for implementing the above-mentioned Multi-link dynamic access method.
与现有技术相比较,本发明通过异构网络链路的热备份接入实现不中断业务的网络切换,可以提升移动应用业务体验;当存在多种网络链路时应用可根据自身需求选择合适的无线接入链路,确保业务安全,提高网络链路资源的利用效率;利用多种网络资源提供的位置信息实现不依赖移动终端硬件能力的综合网络定位能力,提高公网网络定位的精度。Compared with the prior art, the present invention realizes uninterrupted service network switching through the hot backup access of heterogeneous network links, which can improve the service experience of mobile applications; when there are multiple network links, the application can choose the appropriate link according to its own needs. The wireless access link ensures business security and improves the utilization efficiency of network link resources; the location information provided by various network resources is used to realize the comprehensive network positioning capability that does not depend on the hardware capabilities of mobile terminals, and improve the accuracy of public network network positioning.
附图说明Description of drawings
图1为本发明提供的一种具备精准网络定位能力的多链路动态接入方法流程图;Fig. 1 is a flow chart of a multi-link dynamic access method with precise network positioning capability provided by the present invention;
图2为本发明提供的一种具备精准网络定位能力的多链路动态接入方法的时序图;FIG. 2 is a sequence diagram of a multi-link dynamic access method with precise network positioning capability provided by the present invention;
图3为本发明实施例中,异构网络位置的参考信息分类图;FIG. 3 is a classification diagram of reference information of heterogeneous network locations in an embodiment of the present invention;
图4为本发明实施例中,基站小区划分示意图;FIG. 4 is a schematic diagram of base station cell division in an embodiment of the present invention;
图5为本发明实施例中,点和圆定位计算原理图;Fig. 5 is a schematic diagram of point and circle positioning calculation in an embodiment of the present invention;
图6为本发明实施例中,两个参考点相对位置对θ进行优化的原理图;FIG. 6 is a schematic diagram of optimizing the relative positions of two reference points to θ in an embodiment of the present invention;
图7为本发明实施例中,圆和弧线定位计算的原理图;7 is a schematic diagram of circle and arc positioning calculations in an embodiment of the present invention;
图8为本发明实施例中,点和弧线定位计算的原理图。Fig. 8 is a schematic diagram of point and arc positioning calculation in an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明的技术内容进行详细具体的说明。The technical content of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
第一实施例first embodiment
如图1和图2所示,本发明第一实施例提供的一种具备精准网络定位能力的多链路动态接入方法,包括如下步骤:As shown in Figure 1 and Figure 2, a multi-link dynamic access method with precise network positioning capability provided by the first embodiment of the present invention includes the following steps:
S1:移动终端(例如智能手机、平板电脑或PC机等)启动、相应的操作系统(Operating System)启动,向无线链路接入管控装置(例如无线控制器(Wireless AccessPoint Controller)或者具备无线设备接入控制功能的无线路由器等)发送链路接入请求。S1: The mobile terminal (such as a smart phone, tablet computer or PC, etc.) is started, the corresponding operating system (Operating System) is started, and the wireless link access control device (such as a wireless controller (Wireless AccessPoint Controller) or equipped with a wireless device A wireless router with access control function, etc.) sends a link access request.
其中,操作系统包括接入管控组件。这是本领域技术人员普遍掌握的常规技术,在此就不赘述了。Wherein, the operating system includes an access control component. This is a conventional technology generally mastered by those skilled in the art, so it will not be repeated here.
S2:无线链路接入管控装置进行链路接入认证,认证成功之后为移动终端分配通信接口IP(IP_t1~IP_tn)和对应的网关IP(IP_g1~IP_gn)。S2: The wireless link access control device performs link access authentication, and assigns communication interface IPs (IP_t1-IP_tn) and corresponding gateway IPs (IP_g1-IP_gn) to the mobile terminal after successful authentication.
其中,认证步骤包括:Among them, the authentication steps include:
S21:无线链路接入管控装置规划通信接口IP(IP_t1~IP_tn)和移动终端主机IP(IP_m)。S21: The wireless link access management and control device plans the communication interface IP (IP_t1-IP_tn) and the mobile terminal host IP (IP_m).
S22:将移动终端主机IP(IP_m)、通信接口IP(IP_t1~IP_tn)、国际移动设备识别码(IMEI)、通信编码等身份ID进行关联。S22: Associating identity IDs such as mobile terminal host IP (IP_m), communication interface IPs (IP_t1-IP_tn), International Mobile Equipment Identity (IMEI), and communication codes.
S23:收到移动终端发起的接入请求并进行接入授权,向移动终端返回授权的通信接口IP(IP_t1~IP_tn)和对应的网关IP(IP_g1~IP_gn)。S23: Receive the access request initiated by the mobile terminal and perform access authorization, and return the authorized communication interface IPs (IP_t1-IP_tn) and corresponding gateway IPs (IP_g1-IP_gn) to the mobile terminal.
S3:移动终端获取通信接口IP(IP_t1~IP_tn),根据获取情况填写默认链路表,进行最短路径计算得到最短路径,并通过最短路径向无线链路接入管控装置发送接入请求。S3: The mobile terminal acquires the communication interface IP (IP_t1-IP_tn), fills in the default link table according to the acquisition situation, performs the shortest path calculation to obtain the shortest path, and sends an access request to the wireless link access control device through the shortest path.
链路表的填写方法可参考下表:Please refer to the table below for how to fill in the link table:
其中,步骤S3具体还包括:Wherein, step S3 specifically also includes:
当获取的通信接口IP(IP_t1~IP_tn)数量小于1时,即移动终端脱网,则程序结束。When the number of acquired communication interface IPs (IP_t1-IP_tn) is less than 1, that is, the mobile terminal is off-net, and the program ends.
当获取的通信接口IP(IP_t1~IP_tn)数量大于等于1时,即移动终端具备至少一条可用链路,则进行最短路径计算,并用最短路径向无线链路接入管控装置发起规划移动终端主机IP(IP_m)的请求。When the number of communication interface IPs (IP_t1~IP_tn) obtained is greater than or equal to 1, that is, the mobile terminal has at least one available link, then the shortest path calculation is performed, and the wireless link access management and control device is used to initiate the planning of the mobile terminal host IP (IP_m) request.
其中,步骤S3包括如下子步骤:Wherein, step S3 includes the following sub-steps:
S31:创建一个临时主机IP(IP_t)和一个虚拟服务端IP(IP_s)。S31: Create a temporary host IP (IP_t) and a virtual server IP (IP_s).
其中,此临时主机IP(IP_t)和虚拟服务端IP(IP_s)不可与其他通信接口IP冲突。Wherein, the temporary host IP (IP_t) and the virtual server IP (IP_s) cannot conflict with other communication interface IPs.
S32:将临时主机IP(IP_t)、通信接口IP(IP_t1~IP_tn)、网关IP(IP_g1~IP_gn)和虚拟服务端IP(IP_s)填写入默认链路表。S32: Fill in the temporary host IP (IP_t), communication interface IP (IP_t1-IP_tn), gateway IP (IP_g1-IP_gn) and virtual server IP (IP_s) into the default link table.
其中,通信接口IP(IP_t1~IP_tn)、网关IP(IP_g1~IP_gn)之间的链路损耗(cost)值根据具体场景进行设定,优先级越高的链路损耗值设置越小,其余链路的损耗值相同,并且根据链路状态通知,实时更新默认链路表。Among them, the link loss (cost) value between the communication interface IP (IP_t1~IP_tn) and the gateway IP (IP_g1~IP_gn) is set according to the specific scenario. The loss value of the link is the same, and the default link table is updated in real time according to the link status notification.
S33:使用迪杰斯特拉(Dijkstra)算法进行最短路径计算,得到最短路径。S33: Use the Dijkstra algorithm to calculate the shortest path to obtain the shortest path.
需要说明的是,本发明实施例仅以Dijkstra算法为例进行说明,具体算法根据实际场景确定,本发明对此不予限制。It should be noted that the embodiment of the present invention only uses the Dijkstra algorithm as an example for illustration, and the specific algorithm is determined according to an actual scene, which is not limited in the present invention.
S34:用最短路径向无线链路接入管控装置发起规划移动终端主机IP(IP_m)的请求。S34: Initiate a request for planning a mobile terminal host IP (IP_m) to the wireless link access management and control device using the shortest path.
S35:用响应中的规划移动终端主机IP(IP_m)替换默认链路表中的临时主机IP。S35: Replace the temporary host IP in the default link table with the planned mobile terminal host IP (IP_m) in the response.
S4:无线链路接入管控装置收到请求之后,回复接受请求,并返回规划的虚拟服务端IP(IP_s),同时将步骤S3使用的链路标记为默认最优链路。S4: After receiving the request, the wireless link access control device replies to accept the request, returns the planned virtual server IP (IP_s), and marks the link used in step S3 as the default optimal link.
本发明通过步骤S1~S7实现了热备份接入,即当优选的通信链路状态发生变化时,如连接中断,移动终端通信接口状态从up变为down,接入管控组件通过操作系统提供的接口监听到接口状态,将对应的链路损耗值调为最大值(如65535),并重新进行最短路径计算,移动终端业务请求自动切换到次优路径上。The present invention realizes hot backup access through steps S1 to S7, that is, when the state of the preferred communication link changes, such as the connection is interrupted, the state of the communication interface of the mobile terminal changes from up to down, and the access control component is provided by the operating system The interface monitors the interface status, adjusts the corresponding link loss value to the maximum value (such as 65535), and recalculates the shortest path, and the mobile terminal service request is automatically switched to the suboptimal path.
其中,热备份的定义为:当一台设备或一条链路故障之后,业务可以自动切换到另一台设备或另一条链路上。Among them, the definition of hot backup is: when a device or a link fails, the service can be automatically switched to another device or another link.
S5:启动第一应用(即应用A)。S5: Start the first application (namely application A).
第一应用对接入链路没有特殊要求,直接通过默认最优链路发起业务请求。The first application has no special requirements on the access link, and directly initiates a service request through the default optimal link.
S6:启动第二应用(即应用B),由第二应用进行最短路径计算,并通过第二应用的最短路径向无线链路接入管控装置发送请求。S6: Start the second application (that is, application B), and the second application calculates the shortest path, and sends a request to the wireless link access management device through the shortest path of the second application.
第二应用对链路接入有特殊要求,因此需要根据第二应用自身的业务需求创建第二应用的链路表,并填写链路损耗值。The second application has special requirements for link access, so it is necessary to create a link table of the second application according to the service requirements of the second application itself, and fill in the link loss value.
其中通信接口IP(IP_t1~IP_tn)到网关IP(IP_g1~IP_gn)之间的链路损耗值与默认链路表中的链路损耗值不同。The link loss value between the communication interface IP (IP_t1-IP_tn) and the gateway IP (IP_g1-IP_gn) is different from the link loss value in the default link table.
本发明实施例通过不同需求的应用维护不同的链路表进行最短路径计算,实现了不同通信链路之间的负载分担。The embodiment of the present invention implements load sharing between different communication links by maintaining different link tables for applications with different requirements to calculate the shortest path.
S7:无线链路接入管控装置接受请求,并将该链路标记为第二应用的最优链路。S7: The device for controlling wireless link access accepts the request, and marks the link as the optimal link for the second application.
其中,若第二应用未超时且第二应用的链路表未发生变化,则始终按照此最短路径发送请求;若第二应用超时和/或第二应用的链路表发生变化,则重复步骤S6~S7。Wherein, if the second application has not timed out and the link table of the second application has not changed, the request is always sent according to the shortest path; if the second application times out and/or the link table of the second application changes, the steps are repeated S6~S7.
移动终端及接入管控组件到无线链路接入管控装置之间存在公众移动通信网、宽带集群通信网、WLAN等多种异构网络,且移动终端通过异构网络提供的链路同时联网。There are various heterogeneous networks such as public mobile communication network, broadband trunking communication network, and WLAN between the mobile terminal and the access management and control component and the wireless link access management and control device, and the mobile terminal is connected to the Internet through the link provided by the heterogeneous network at the same time.
因为各应用可连接的网络种类不同,所以最优链路需要根据具体应用来计算、确定,这样就使得同一移动终端中多个应用会同时连接于不同网络。Because each application can connect to different types of networks, the optimal link needs to be calculated and determined according to the specific application, so that multiple applications in the same mobile terminal will be connected to different networks at the same time.
本发明实施例通过最优链路算法,在异构网络的情况下为移动终端中的不同应用选择其最优链路进行数据传输,提高了数据传输的时效性。The embodiment of the present invention uses the optimal link algorithm to select the optimal link for different applications in the mobile terminal for data transmission in the case of a heterogeneous network, thereby improving the timeliness of data transmission.
S8:无线链路接入管控装置对异构网络位置参考信息进行分类。S8: The wireless link access management and control device classifies the heterogeneous network location reference information.
如图3所示,异构网络位置参考信息分类的类型包括:点、圆、弧线。As shown in FIG. 3 , the types of heterogeneous network location reference information classification include: point, circle, and arc.
其中,点的定义为:公众移动通信网或宽带集群通信网基于基站三角测量(triangulation)算法计算得出的移动终端经纬度。Wherein, a point is defined as: the longitude and latitude of the mobile terminal calculated by the public mobile communication network or the broadband trunking communication network based on a base station triangulation (triangulation) algorithm.
圆的定义为:WLAN网络,以WLAN AP(接入点)为圆心,以估算的信号覆盖范围为半径的圆形范围。A circle is defined as: a WLAN network, a circular range with the WLAN AP (access point) as the center and the estimated signal coverage as the radius.
其中,一般情况下半径小于100米,且移动终端可能位于此圆形区域内的任意一点。Wherein, generally, the radius is less than 100 meters, and the mobile terminal may be located at any point within the circular area.
弧线的定义为:以基站经纬度为圆心、以基站到移动终端的传输距离为半径、夹角为120度的一段弧线。The definition of an arc is: an arc with the longitude and latitude of the base station as the center, the transmission distance from the base station to the mobile terminal as the radius, and an included angle of 120 degrees.
其中,宽带集群基站因规模受限无法提供移动终端经纬度时,可提供基站经纬度、移动终端附着小区ID和基站到移动终端的传输时延t。通过电磁波的光速传播公式d=t*c0可以计算移动终端到基站之间的距离,其中c0为光在真空中传播的速度。Among them, when the broadband cluster base station cannot provide the latitude and longitude of the mobile terminal due to its limited scale, it can provide the latitude and longitude of the base station, the ID of the cell to which the mobile terminal is attached, and the transmission delay t from the base station to the mobile terminal. The distance between the mobile terminal and the base station can be calculated by the light speed propagation formula d=t*c0 of electromagnetic waves, where c0 is the speed of light propagating in a vacuum.
如图4所示,一个基站共有三个小区,分别用α、β、γ表示。As shown in Figure 4, a base station has three cells in total, denoted by α, β, and γ respectively.
S9:对多个同类型的位置参考信息进行合并。S9: Merge multiple pieces of location reference information of the same type.
其中,同类型的定义为:相同位置参考信息类型,即同为点或同为圆或同为弧线。Wherein, the same type is defined as: the same location reference information type, that is, the same point, the same circle, or the same arc.
其中,合并的方法为:Among them, the method of merging is:
如果存在多个点,则按照精度,优选精度最高的一个点参与计算。If there are multiple points, according to the accuracy, the point with the highest accuracy is preferred to participate in the calculation.
如果存在多个弧线,则按照精度,优选精度最高的一个弧线参与计算。If there are multiple arcs, according to the accuracy, the arc with the highest accuracy is preferred to participate in the calculation.
如果存在多个圆,则按照精度,优选精度最高的一个圆参与计算。If there are multiple circles, according to the precision, the circle with the highest precision is preferred to participate in the calculation.
如存在公众移动通信网和宽带集群通信网两个位置参考点,公众移动通信网的基站部署规模比宽带集群通信网大,网络定位精度相对更高,可优选公众移动通信网提供的位置参考点参与计算。If there are two location reference points, the public mobile communication network and the broadband trunking communication network, the base station deployment scale of the public mobile communication network is larger than that of the broadband trunking communication network, and the network positioning accuracy is relatively higher, and the location reference point provided by the public mobile communication network can be preferred Participate in calculations.
S10:对合并之后的位置参考信息进行计算,并输出定位结果。S10: Calculate the combined position reference information, and output a positioning result.
当形成点、圆、弧线中的任意一种时,则输出点、圆的圆心、弧线的圆心位置信息,作为定位结果。When any one of point, circle, and arc is formed, the position information of the point, the center of the circle, and the center of the arc is output as the positioning result.
当形成点、圆、弧线中的任意两种时,则根据具体情况按照点和圆、圆和弧线、点和弧线进行定位计算,并将计算结果作为定位结果进行输出。When any two of points, circles, and arcs are formed, the positioning calculation is performed according to the specific situation according to the point and circle, circle and arc, point and arc, and the calculation result is output as the positioning result.
当形成点、圆、弧线中的三种时,则按照圆和弧线进行定位计算,并将计算结果作为定位结果进行输出。When three types of points, circles, and arcs are formed, positioning calculations are performed according to the circles and arcs, and the calculation results are output as positioning results.
其中,如图5所示,点和圆定位计算的方法为:Among them, as shown in Figure 5, the method of point and circle positioning calculation is:
S1011:按照地球球面距离公式计算点(a2,b2)与圆心(a1,b1)之间的距离d。S1011: Calculate the distance d between the point (a2, b2) and the center of the circle (a1, b1) according to the distance formula on the spherical surface of the earth.
其中,计算公式为:Among them, the calculation formula is:
d=3963.0*arccos[(sin(b1)*sin(b2))+cos(b1)*cos(b2)*cos(a2–a1)]d=3963.0*arccos[(sin(b1)*sin(b2))+cos(b1)*cos(b2)*cos(a2–a1)]
d in kilometers=1.609344*dd in kilometers = 1.609344*d
要说明的是,本发明仅以地球球面距离公式为例进行说明,具体两点之间的计算方法根据实际场景确定,本发明对此不予限制。It should be noted that the present invention only uses the distance formula on the earth's spherical surface as an example, and the specific calculation method between two points is determined according to the actual scene, which is not limited in the present invention.
当d小于或等于r1时,则点在圆形区域内或圆形区域上,返回位置参考点(a2,b2)作为定位结果。When d is less than or equal to r1, the point is in or on the circular area, and the position reference point (a2, b2) is returned as the positioning result.
当d大于r1时,则点在圆形区域外,进入步骤S1012。When d is greater than r1, the point is outside the circular area, and go to step S1012.
其中,r1为圆的半径。对于WLAN网络来说,r1为AP(接入点)的信号覆盖半径,一般为估算值,如100米。Among them, r1 is the radius of the circle. For a WLAN network, r1 is the signal coverage radius of an AP (access point), which is generally an estimated value, such as 100 meters.
S1012:以(a1,b1)为原点建立直角坐标系,计算θ。S1012: Establish a Cartesian coordinate system with (a1, b1) as the origin, and calculate θ.
θ的计算公式为:The calculation formula of θ is:
其中,直角坐标系的Y轴为北-南方向(上北下南),直角坐标系的X轴为西-东(左西右东);θ为(a1,b1)与(a2,b2)的连线同Y轴之间的夹角;Pi为圆周率。Among them, the Y axis of the Cartesian coordinate system is north-south (up north and down south), and the X axis of the Cartesian coordinate system is West-East (left west and right east); θ is (a1, b1) and (a2, b2) The angle between the connection line and the Y axis; Pi is the pi.
S1013:根据(a1,b1)和(a2,b2)两个参考点相对位置对θ进行优化得到θ1,优化后进入步骤S1014。S1013: optimize θ according to the relative positions of two reference points (a1, b1) and (a2, b2) to obtain θ 1 , and proceed to step S1014 after optimization.
如图6所示,当a2-a1>0且b2-b1>0,在第一象限,则θ1=θ;As shown in Figure 6, when a2-a1>0 and b2-b1>0, in the first quadrant, then θ 1 =θ;
当a2-a1>0且b2-b1<0,在第二象限,θ1=180°-θ;When a2-a1>0 and b2-b1<0, in the second quadrant, θ 1 =180°-θ;
当a2-a1<0且b2-b1<0,在第三象限,θ1=θ+180°;When a2-a1<0 and b2-b1<0, in the third quadrant, θ 1 =θ+180°;
当a2-a1<0且b2-b1>0,在第四象限,θ1=360°-θ。When a2-a1<0 and b2-b1>0, in the fourth quadrant, θ 1 =360°-θ.
S1014:计算定位结果并输出。S1014: Calculate and output the positioning result.
计算的公式为:The calculation formula is:
[a1+r1*sin(θ1),b1+r1*cos(θ1)][a1+r1*sin(θ 1 ),b1+r1*cos(θ 1 )]
如图7所示,圆和弧线定位计算的方法为:As shown in Figure 7, the calculation method of circle and arc positioning is as follows:
S1021:按照地球球面距离公式计算圆形区域圆心(a1,b1)与弧线圆心(a3,b3)的之间距离d。S1021: Calculate the distance d between the center of the circular area (a1, b1) and the center of the arc (a3, b3) according to the distance formula on the earth's surface.
其中,计算公式为:Among them, the calculation formula is:
d=3963.0*arccos[(sin(b1)*sin(b3))+cos(b1)*cos(b3)*cos(a3–a1)]d=3963.0*arccos[(sin(b1)*sin(b3))+cos(b1)*cos(b3)*cos(a3–a1)]
d in kilometers=1.609344*dd in kilometers = 1.609344*d
需要说明的是,本发明仅以地球球面距离公式为例进行说明,具体两点之间的计算方法根据实际场景确定,本发明对此不予限制。It should be noted that the present invention only uses the distance formula on the earth's spherical surface as an example, and the specific calculation method between two points is determined according to the actual scene, which is not limited by the present invention.
当d等于r3时,则圆形区域在弧线上,输出(a1,b1)为定位结果。When d is equal to r3, the circular area is on the arc, and the output (a1, b1) is the positioning result.
当d小于r3或大于r3时,则进入步骤S1022。When d is smaller than r3 or larger than r3, go to step S1022.
其中,r3为弧线的半径。对于宽带集群系统来说,r3可根据从移动终端到基站的单程传输时延乘以光速来计算。Among them, r3 is the radius of the arc. For a broadband trunking system, r3 can be calculated by multiplying the one-way transmission delay from the mobile terminal to the base station by the speed of light.
S1022:以(a3,b3)为原点建立直角坐标系,计算θ。S1022: Establish a Cartesian coordinate system with (a3, b3) as the origin, and calculate θ.
θ的计算公式为:The calculation formula of θ is:
其中,θ为(a1,b1)与(a3,b3)的连线同Y轴之间的夹角。Wherein, θ is the angle between the line connecting (a1, b1) and (a3, b3) and the Y axis.
S1023:根据(a1,b1)和(a3,b3)两个参考点相对位置对θ进行优化得到θ1,优化后进入步骤S1024。S1023: According to the relative positions of the two reference points (a1, b1) and (a3, b3), optimize θ to obtain θ 1 , and proceed to step S1024 after optimization.
如图6所示,当a1-a3>0且b1-b3>0,在第一象限,则θ1=θ;As shown in Figure 6, when a1-a3>0 and b1-b3>0, in the first quadrant, then θ 1 =θ;
当a1-a3>0且b1-b3<0,在第二象限,θ1=180°-θ;When a1-a3>0 and b1-b3<0, in the second quadrant, θ 1 =180°-θ;
当a1-a3<0且b1-b3<0,在第三象限,θ1=θ+180°;When a1-a3<0 and b1-b3<0, in the third quadrant, θ 1 =θ+180°;
当a1-a3<0且b1-b3>0,在第四象限,θ1=360°-θ。When a1-a3<0 and b1-b3>0, in the fourth quadrant, θ 1 =360°-θ.
S1024:根据移动终端附着小区ID对θ1进行防漂移优化,得到θ2。S1024: Perform anti-drift optimization on θ 1 according to the ID of the cell to which the mobile terminal is attached, to obtain θ 2 .
如图4所示,当移动终端附着的是α扇区,且θ1大于120°小于240°,则θ2=120°。As shown in Figure 4, when the mobile terminal is attached to the α sector, and θ 1 is greater than 120° and less than 240°, then θ 2 =120°.
当移动终端附着的是α扇区,且θ1大于240°小于360°,则θ2=0°。When the mobile terminal is attached to the α sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =0°.
当移动终端附着的是β扇区,且θ1小于120°,则θ2=120°。When the mobile terminal is attached to the β sector, and θ 1 is less than 120°, then θ 2 =120°.
当移动终端附着的是β扇区,且θ1大于240°小于360°,则θ2=240°。When the mobile terminal is attached to the β sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =240°.
当移动终端附着的是γ扇区,且θ1小于120°,则θ2=360°。When the mobile terminal is attached to the γ sector, and θ 1 is less than 120°, then θ 2 =360°.
当移动终端附着的是γ扇区,且θ1大于120°小于240°,则θ2=240°。When the mobile terminal is attached to the γ sector, and θ 1 is larger than 120° and smaller than 240°, then θ 2 =240°.
S1025:根据圆形区域圆心(a1,b1)与弧线圆心(a3,b3)的之间距离d采用相应的计算公式计算定位结果并输出。S1025: According to the distance d between the center of the circular area (a1, b1) and the center of the arc (a3, b3), use a corresponding calculation formula to calculate and output the positioning result.
当d小于r3时,计算公式为:When d is less than r3, the calculation formula is:
[a1+r1*sin(θ2),b1+r1*cos(θ2)][a1+r1*sin(θ 2 ),b1+r1*cos(θ 2 )]
当d大于r3时,计算公式为:When d is greater than r3, the calculation formula is:
如图8所示,点和弧线定位计算的方法为:As shown in Figure 8, the calculation method of point and arc positioning is as follows:
S1031:按照地球球面距离公式计算位置参考点(a2,b2)与弧线圆心(a3,b3)的之间距离d。S1031: Calculate the distance d between the position reference point (a2, b2) and the arc center (a3, b3) according to the distance formula on the earth's spherical surface.
其中,计算公式为:Among them, the calculation formula is:
d=3963.0*arccos[(sin(b2)*sin(b3))+cos(b2)*cos(b3)*cos(a3–a2)]d=3963.0*arccos[(sin(b2)*sin(b3))+cos(b2)*cos(b3)*cos(a3–a2)]
d in kilometers=1.609344*dd in kilometers = 1.609344*d
需要说明的是,本发明仅以地球球面距离公式为例进行说明,具体两点之间的计算方法根据实际场景确定,本发明对此不予限制。It should be noted that the present invention only uses the distance formula on the earth's spherical surface as an example, and the specific calculation method between two points is determined according to the actual scene, which is not limited by the present invention.
当d等于r3时,则点位于弧线上,输出(a2,b2)为定位结果。When d is equal to r3, the point is located on the arc, and the output (a2, b2) is the positioning result.
当d大于r3或小于r3时,则进入步骤S1032。When d is greater than r3 or less than r3, go to step S1032.
S1032:以(a3,b3)为原点建立直角坐标系,计算θ。S1032: Establish a Cartesian coordinate system with (a3, b3) as the origin, and calculate θ.
θ的计算公式为:The calculation formula of θ is:
其中,直角坐标系的Y轴为北-南方向(上北下南),直角坐标系的X轴为西-东(左西右东);θ为(a2,b2)与(a3,b3)的连线同Y轴之间的夹角;Pi为圆周率。Among them, the Y-axis of the Cartesian coordinate system is north-south (up north and down south), and the X-axis of the Cartesian coordinate system is West-East (left-west and right-east); θ is (a2, b2) and (a3, b3) The angle between the connection line and the Y axis; Pi is the pi.
S1033:根据(a2,b2)和(a3,b3)两个参考点相对位置对θ进行优化得到对θ1进行防漂移优化,得到θ2,优化后进入步骤S1034。S1033: Optimizing θ according to the relative positions of the two reference points (a2, b2) and (a3, b3) to obtain anti-drift optimization of θ 1 to obtain θ 2 , and proceed to step S1034 after optimization.
如图6所示,当a2-a3>0且b2-b3>0,在第一象限,则θ1=θ;As shown in Figure 6, when a2-a3>0 and b2-b3>0, in the first quadrant, then θ 1 =θ;
当a2-a3>0且b2-b3<0,在第二象限,θ1=180°-θ;When a2-a3>0 and b2-b3<0, in the second quadrant, θ 1 =180°-θ;
当a2-a3<0且b2-b3<0,在第三象限,θ1=θ+180°;When a2-a3<0 and b2-b3<0, in the third quadrant, θ 1 =θ+180°;
当a2-a3<0且b2-b3>0,在第四象限,θ1=360°-θ。When a2-a3<0 and b2-b3>0, in the fourth quadrant, θ 1 =360°-θ.
S1034:根据移动终端附着小区ID对θ1进行防漂移优化,得到θ2。S1034: Perform anti-drift optimization on θ 1 according to the ID of the attached cell of the mobile terminal to obtain θ 2 .
如图4所示,当移动终端附着的是α扇区,且θ1大于120°小于240°,则θ2=120°。As shown in Figure 4, when the mobile terminal is attached to the α sector, and θ 1 is greater than 120° and less than 240°, then θ 2 =120°.
当移动终端附着的是α扇区,且θ1大于240°小于360°,则θ2=0°。When the mobile terminal is attached to the α sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =0°.
当移动终端附着的是β扇区,且θ1小于120°,则θ2=120°。When the mobile terminal is attached to the β sector, and θ 1 is less than 120°, then θ 2 =120°.
当移动终端附着的是β扇区,且θ1大于240°小于360°,则θ2=240°。When the mobile terminal is attached to the β sector, and θ 1 is greater than 240° and less than 360°, then θ 2 =240°.
当移动终端附着的是γ扇区,且θ1小于120°,则θ2=360°。When the mobile terminal is attached to the γ sector, and θ 1 is less than 120°, then θ 2 =360°.
当移动终端附着的是γ扇区,且θ1大于120°小于240°,则θ2=240°。When the mobile terminal is attached to the γ sector, and θ 1 is larger than 120° and smaller than 240°, then θ 2 =240°.
S1035:计算定位结果并输出。S1035: Calculate and output the positioning result.
计算的公式为:The calculation formula is:
[a3+r3*sin(θ2),b3+r3*cos(θ2)][a3+r3*sin(θ 2 ),b3+r3*cos(θ 2 )]
因为同一移动终端中多个应用会同时连接于不同网络,而不同网络的位置参考信息不同,包括点、圆、弧线,在至少同时存在两种位置参考信息时,通过本发明提供的对应的算法,即可对移动终端进行精准网络定位。Because multiple applications in the same mobile terminal will be connected to different networks at the same time, and the location reference information of different networks is different, including points, circles, and arcs. When at least two kinds of location reference information exist at the same time, the corresponding Algorithm, can accurately locate the mobile terminal network.
本发明实施例通过多种网络资源提供的位置信息,实现不依赖移动终端硬件能力的综合网络定位能力,提高了公网网络定位的精度。The embodiment of the present invention realizes the comprehensive network positioning capability independent of the mobile terminal hardware capability through the location information provided by various network resources, and improves the accuracy of public network network positioning.
S11:对应记录移动终端主机IP-参与计算的位置参考点-定位结果。S11: Correspondingly record the IP of the mobile terminal host - the position reference point participating in the calculation - the positioning result.
通过将移动终端主机IP-参与计算的位置参考点-定位结果一一对应记录,可以了解特定区域内的通信网络覆盖情况,随着数据的不断累积,可以基于通信网络覆盖情况进行快速人力调配和/或设备调度。Through the one-to-one correspondence recording of the mobile terminal host IP-position reference point participating in the calculation-positioning results, the communication network coverage in a specific area can be known. With the continuous accumulation of data, rapid manpower deployment and deployment can be performed based on the communication network coverage. /or device scheduling.
S12:程序结束。S12: The program ends.
第二实施例second embodiment
本发明第二实施例提供一种具备精准网络定位能力的多链路动态接入系统,其中包括含有接入管控组件的移动终端、无线链路接入管控装置,用于实施本发明第一实施例所述的多链路动态接入方法。The second embodiment of the present invention provides a multi-link dynamic access system with precise network positioning capabilities, which includes a mobile terminal including an access management and control component, and a wireless link access management and control device for implementing the first embodiment of the present invention The multi-link dynamic access method described in the example.
需要说明的是,上述多个实施例只是举例,各个实施例的技术方案之间可以进行组合,均在本发明的保护范围内。It should be noted that the above-mentioned multiple embodiments are only examples, and the technical solutions of each embodiment can be combined, all of which are within the protection scope of the present invention.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.
上面对本发明所提供的具备精准网络定位能力的多链路动态接入方法及系统进行了详细的说明。对本领域的一般技术人员而言,在不背离本发明实质内容的前提下对它所做的任何显而易见的改动,都将构成对本发明专利权的侵犯,将承担相应的法律责任。The multi-link dynamic access method and system with precise network positioning capability provided by the present invention have been described in detail above. For those of ordinary skill in the art, any obvious changes made to it without departing from the essence of the present invention will constitute an infringement of the patent right of the present invention and will bear corresponding legal responsibilities.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310388595.1A CN116567775B (en) | 2023-04-12 | 2023-04-12 | A method and system for dynamic access across multiple links |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310388595.1A CN116567775B (en) | 2023-04-12 | 2023-04-12 | A method and system for dynamic access across multiple links |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116567775A true CN116567775A (en) | 2023-08-08 |
| CN116567775B CN116567775B (en) | 2026-03-24 |
Family
ID=87499124
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310388595.1A Active CN116567775B (en) | 2023-04-12 | 2023-04-12 | A method and system for dynamic access across multiple links |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116567775B (en) |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20090019240A (en) * | 2007-08-20 | 2009-02-25 | 에스케이 텔레콤주식회사 | Wireless network downlink performance analysis system and method |
| CN101868007A (en) * | 2009-04-17 | 2010-10-20 | 联芯科技有限公司 | Multi-link connection management method and device for mobile terminal |
| WO2010124720A1 (en) * | 2009-04-27 | 2010-11-04 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for access selection in mobile ip networks |
| CN110365582A (en) * | 2019-06-20 | 2019-10-22 | 山东省计算中心(国家超级计算济南中心) | A multi-constraint routing method and a controller based on SDN network |
| CN113572690A (en) * | 2021-06-11 | 2021-10-29 | 深圳市国电科技通信有限公司 | Data transmission method for reliability-oriented electricity consumption information collection service |
| CN113630333A (en) * | 2020-05-08 | 2021-11-09 | 中国移动通信集团终端有限公司 | Distributed networking system and method based on multi-gateway access |
| CN113692016A (en) * | 2021-07-13 | 2021-11-23 | 中国国家铁路集团有限公司 | A multi-mode terminal control method supporting automatic distribution of railway radio services |
| US20220322162A1 (en) * | 2020-08-03 | 2022-10-06 | Chengdu Xgimi Technology Co., Ltd | Roaming method in a multi-link scenario, multi-link device, and storage medium |
| CN115442863A (en) * | 2022-08-11 | 2022-12-06 | 中科驭数(北京)科技有限公司 | Access point determination method, device, equipment and readable storage medium |
-
2023
- 2023-04-12 CN CN202310388595.1A patent/CN116567775B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20090019240A (en) * | 2007-08-20 | 2009-02-25 | 에스케이 텔레콤주식회사 | Wireless network downlink performance analysis system and method |
| CN101868007A (en) * | 2009-04-17 | 2010-10-20 | 联芯科技有限公司 | Multi-link connection management method and device for mobile terminal |
| WO2010124720A1 (en) * | 2009-04-27 | 2010-11-04 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for access selection in mobile ip networks |
| CN110365582A (en) * | 2019-06-20 | 2019-10-22 | 山东省计算中心(国家超级计算济南中心) | A multi-constraint routing method and a controller based on SDN network |
| CN113630333A (en) * | 2020-05-08 | 2021-11-09 | 中国移动通信集团终端有限公司 | Distributed networking system and method based on multi-gateway access |
| US20220322162A1 (en) * | 2020-08-03 | 2022-10-06 | Chengdu Xgimi Technology Co., Ltd | Roaming method in a multi-link scenario, multi-link device, and storage medium |
| CN113572690A (en) * | 2021-06-11 | 2021-10-29 | 深圳市国电科技通信有限公司 | Data transmission method for reliability-oriented electricity consumption information collection service |
| CN113692016A (en) * | 2021-07-13 | 2021-11-23 | 中国国家铁路集团有限公司 | A multi-mode terminal control method supporting automatic distribution of railway radio services |
| CN115442863A (en) * | 2022-08-11 | 2022-12-06 | 中科驭数(北京)科技有限公司 | Access point determination method, device, equipment and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116567775B (en) | 2026-03-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN116405461B (en) | Data processing method, network element equipment and readable storage medium | |
| US7218930B2 (en) | Automatic recognition system for use in a wireless local area network (LAN) | |
| US9998570B2 (en) | System and method for concealed connection merging through coordinated and dynamic virtual proxy allocation | |
| US10771569B1 (en) | Network communication control method of multiple edge clouds and edge computing system | |
| CN110267327A (en) | Service transmission method and device | |
| US20150319644A1 (en) | A method and a system for sharing wireless broadband connection between devices | |
| WO2023108718A1 (en) | Spectrum resource allocation method and system for cloud-edge collaborative optical carrier network | |
| US9270571B2 (en) | Router collaboration | |
| WO2022245482A1 (en) | Generating abstractions for offloading tasks to heterogeneous accelerators | |
| US7916651B2 (en) | Services convergence among heterogeneous wired and wireless networks | |
| CN113973098B (en) | A method and device for sending a domain name system request | |
| CN116567775A (en) | A multi-link dynamic access method and system with precise network positioning capability | |
| Guo et al. | Fog-enabled WLANs for indoor positioning | |
| CN114039641B (en) | Satellite determination method, device, equipment and storage medium | |
| WO2017101079A1 (en) | Wireless communication module based cloud access method and system | |
| WO2022245484A1 (en) | Offloading tasks from a processor to heterogeneous accelerators | |
| CN114666824A (en) | Wireless radio station information processing method based on ad hoc network communication | |
| CN105610857A (en) | Method for automatically identifying local and remote networks | |
| WO2022087796A1 (en) | Zigbee device attribute subscription method and apparatus, and device | |
| CN106656772B (en) | Network access system | |
| US20090141693A1 (en) | Technique for Achieving Connectivity between Telecommunication Stations | |
| US20110176432A1 (en) | Radio Communication System Including Radio Terminal Apparatuses Each Arranged At Previously Determined Position | |
| CN110401557A (en) | A kind of network collocating method of terminal device, device and server | |
| CN111869311A (en) | Techniques for multipath bundling and determining Wi-Fi connections for multipath bundling | |
| CN119945896A (en) | A communication method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |