Method for acquiring position information by equipment, terminal and gateway
By installing positioning software on the terminal, automatically obtaining and synchronizing geographical location information to the gateway, the problem of low efficiency and reliability of equipment obtaining location information in the existing technology is solved, and efficient and accurate location information transmission is achieved, avoiding the gateway Effects of performance.
Patent Information
- Application Number
- CN202411030229.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-26
AI Technical Summary
The way existing devices obtain geolocation information from gateways is less efficient and reliable, and has a great impact on gateway performance. In particular, deep packet detection technology is difficult to parse encrypted packets and has low accuracy.
Install positioning software on the terminal. When the terminal communicates with the gateway, it automatically runs the positioning program to obtain geographic location information and sends it to the gateway through the information configuration protocol. The gateway updates the storage and information synchronization protocol to synchronize it to the device, avoiding manual operations and Performance impact of deep packet detection.
It improves the efficiency and accuracy of the device to acquire geolocation information, avoids the impact on gateway performance, and realizes automated and highly reliable location information synchronization.
Smart Images

Figure CN119031322A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile communication technology, and in particular to a method, a terminal and a gateway for a device to obtain location information. Background Art
[0002] A gateway, also known as an internetwork connector or protocol converter, is a facility used to provide network compatibility functions such as protocol conversion, routing, and data exchange when networks with different architectures or protocols communicate with each other. There are many devices that communicate with a gateway, such as servers, PCs (Personal Computers), application terminals, switches, routers, firewalls, bridges, hubs, network interface cards (NIC), wireless access points (WAP), modems, 5G base stations, optical terminals, fiber optic transceivers, network printers, webcams, smart phones, etc.
[0003] In actual applications, devices that communicate with the gateway may need to be positioned, but in order to reduce costs, some devices do not have a positioning module themselves, but obtain geographic location information from the gateway that establishes a communication connection with them. The main function of the gateway is to connect the device to the operator's network, and usually it is not configured with a positioning module, so the gateway itself cannot obtain geographic location information, but relies on external acquisition.
[0004] In the prior art, there are two main ways for devices to obtain geographic location information from gateways: the first is that the operator manually inputs the geographic location information when the gateway is installed, and the device then obtains the geographic location information from the gateway. This method relies on manual acquisition of positioning and data entry, which is inefficient and prone to errors. It has certain professional requirements for operators and is not easy to popularize. The second is that the gateway obtains geographic location information by parsing the messages interacting between the terminal and the address service platform through packet capture and deep packet inspection (DPI) technology, and the device then obtains the geographic location information from the gateway. This method has at least the following problems: First, it is necessary to configure packet capture, dump and DPI modules. When these modules are running, a large number of data messages that can be forwarded by hardware are processed by software, which will have a great performance impact on the basic forwarding function of the gateway; second, the accuracy of the geographic location information obtained by packet capture and DPI technology is low; third, encrypted data communications have been fully popularized, and DPI technology has made it difficult to obtain relevant geographic location information by parsing encrypted messages. Summary of the invention
[0005] The present application aims to solve the problems that the existing methods of obtaining geographic location information of devices have low efficiency and reliability and a significant impact on gateway performance, and proposes a method, terminal and gateway for devices to obtain location information.
[0006] The technical solution adopted by this application to solve the above technical problems is:
[0007] In a first aspect, the present application provides a method for a device to obtain location information, wherein the device is communicatively connected to a gateway, and the method comprises:
[0008] After the terminal with positioning function establishes a communication connection with the gateway, the terminal automatically starts a positioning program to obtain geographic location information;
[0009] The terminal sends the geographical location information to the gateway using an information configuration protocol;
[0010] The gateway updates and stores the geographic location information after receiving it, and synchronizes the geographic location information to the device using an information synchronization protocol.
[0011] Furthermore, synchronizing the geographic location information to the device using an information synchronization protocol specifically includes:
[0012] After receiving the geographic location information, the gateway automatically synchronizes the geographic location information to the device using an information synchronization protocol.
[0013] Furthermore, synchronizing the geographic location information to the device using an information synchronization protocol specifically includes:
[0014] When positioning is required, the device automatically uses the information synchronization protocol to obtain geographic location information from the gateway.
[0015] Furthermore, synchronizing the geographic location information to the device using an information synchronization protocol specifically includes:
[0016] When positioning is required, the device sends a positioning request to the gateway. After receiving the positioning request, the gateway automatically synchronizes the geographical location information to the device using an information synchronization protocol.
[0017] In a second aspect, the present application provides a terminal having a positioning function, wherein the terminal is used to, after establishing a communication connection with a gateway, self-start a positioning program to obtain geographic location information, and send the geographic location information to the gateway using an information configuration protocol; so that the gateway can update and store the geographic location information after receiving it, and synchronize the geographic location information to the device using an information synchronization protocol.
[0018] In a third aspect, the present application provides a gateway, which is used to update and store geographic location information after receiving it, and synchronize the geographic location information to a device using an information synchronization protocol; the geographic location information is acquired by the terminal by self-starting a positioning program after establishing a communication connection with the gateway and sent using an information configuration protocol.
[0019] Furthermore, the gateway is specifically configured to automatically synchronize the geographic location information to the device using an information synchronization protocol after receiving the geographic location information.
[0020] Furthermore, the gateway is specifically used to automatically synchronize the geographic location information to the device using an information synchronization protocol after receiving a positioning request; the positioning request is a positioning request sent by the device when positioning is required.
[0021] The beneficial effects of the present application are as follows: the method, terminal and gateway for obtaining location information of a device provided by the present application, by installing corresponding positioning software on the terminal, when the terminal is connected to the gateway for communication, the terminal automatically runs the positioning software, and after the positioning software is run, the positioning is performed to obtain the geographical location information of the terminal, and then the terminal automatically sends the geographical location information to the gateway, that is, the present application can automatically send the geographical location information to the gateway as long as the terminal and the gateway establish a communication connection, and the device communicating with the gateway can obtain the geographical location information from the gateway, without the need for manual operation by the operator, thereby improving efficiency, and compared with the method of obtaining location by deep packet inspection, it can avoid the influence of encrypted messages on location acquisition, will not affect the performance of the gateway, and improves the accuracy of the geographical location information. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the structure of a communication system provided in an embodiment of the present application;
[0023] Figure 2 A flowchart of a method for obtaining location information of a device provided in an embodiment of the present application;
[0024] Figure 3 A flowchart of another method for obtaining location information by a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0026] The technical solution of the embodiment of the present application is applicable to application scenarios in which a device communicating with a gateway needs to obtain location information, such as a network camera, smart speaker, etc. connected to the gateway for communication.
[0027] Devices that communicate with the gateway may need to be positioned. For example, a network camera needs to display the monitored location information in the monitoring screen, and a smart speaker needs to broadcast the weather conditions based on the location information. However, these devices may not have positioning functions for cost considerations, so they need to obtain geographic location information from the gateway. Currently, there are two main ways for devices to obtain geographic location information from the gateway: one is that the operator manually inputs the geographic location information into the gateway, and the other is that the gateway obtains the geographic location information by capturing packets and using DPI technology to parse the messages exchanged between the terminal and the address service platform. However, these two methods have at least one of the following problems: low efficiency, low reliability, and a greater impact on gateway performance.
[0028] Based on this, the technical solution of the present application is proposed. In an embodiment of the present application, after a terminal with a positioning function establishes a communication connection with a gateway, the terminal self-starts a positioning program to obtain geographic location information; the terminal uses an information configuration protocol to send the geographic location information to the gateway; the gateway updates and stores the geographic location information after receiving it, and synchronizes the geographic location information to the device using an information synchronization protocol.
[0029] Specifically, the embodiment of the present application installs positioning software on a terminal with a positioning function. After the terminal is connected to the gateway, the terminal automatically runs the positioning software. After the positioning software runs, it performs positioning and obtains the terminal's geographical location information. The terminal then automatically sends the geographical location information to the gateway for storage, and the device communicating with the gateway can obtain the geographical location information from the gateway. Through the above process, the present application only needs to install the corresponding positioning software on the terminal. After the terminal establishes a communication connection with the gateway, the geographical location information can be automatically sent to the gateway, and the device can obtain the geographical location information from the gateway, thereby achieving the purpose of improving efficiency, avoiding affecting the performance of the gateway, and improving the reliability and accuracy of the location information.
[0030] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0031] Figure 1 A communication system is shown in which the method for obtaining location information by a device provided in an embodiment of the present application is applied. The system includes a terminal, a gateway, a device and a positioning system.
[0032] In the embodiment of the present application, the terminal is a terminal with a positioning function and capable of installing and running positioning software. The terminal can be, but is not limited to, a smart phone, a personal computer, a tablet computer, a smart wearable device, etc.
[0033] A gateway is used to provide network compatibility functions such as protocol conversion, routing, and data exchange to facilitate intercommunication between networks with different architectures or protocols. A gateway can be, but is not limited to, a router, switch, firewall, VPN device, etc.
[0034] The device communicates with the gateway and needs to obtain location information, but it does not have a positioning function. The device can be an IoT device, such as a webcam, smart speaker, smart TV, etc.
[0035] The positioning system is used to provide positioning services when the terminal runs the positioning software. The positioning system can be, but is not limited to, the Global Positioning System (GPS), the Beidou Satellite Navigation System (BDS), the GLONASS Satellite Navigation System (GLONASS), the Galileo Satellite Navigation System (GALILEO), etc.
[0036] Based on the above communication system, Figure 2 and Figure 3 A flow chart of a method for obtaining location information by a device provided in an embodiment of the present application is shown, and the method comprises the following steps:
[0037] Step S1: After a terminal with a positioning function establishes a communication connection with a gateway, the terminal automatically starts a positioning program to obtain geographic location information.
[0038] In practical applications, it is necessary to develop a positioning software that can run on the terminal in advance, and set the self-starting condition of the positioning software to be that the terminal establishes a communication connection with the gateway.
[0039] In an embodiment of the present application, the positioning software can be developed using H5 technology, which is a development technology based on Web standards. The APP developed using H5 technology has the advantages of being easy to develop and maintain, and can be used across platforms, thereby reducing the difficulty of positioning software development and maintenance and ensuring the normal operation of the positioning software.
[0040] In actual applications, the terminal usually does not maintain communication with the gateway all the time, but automatically connects when the terminal is close to the gateway. For example, after the user returns home, the smartphone automatically connects to the wireless network provided by the router. At this time, the smartphone accesses the router wirelessly and establishes a wireless communication connection with the router.
[0041] Based on this, in an embodiment of the present application, the terminal periodically detects the connection status with the gateway. When it is detected that the terminal is connected to the gateway via wired or wireless means, the terminal automatically starts the positioning software. After the positioning software is running, the positioning service provided by the positioning system is used to obtain the terminal's own geographic location information.
[0042] Step S2: The terminal sends the geographic location information to the gateway using an information configuration protocol.
[0043] In the embodiment of the present application, the terminal and the gateway support the information configuration protocol, which is used for the transmission of geographic location information. After the terminal obtains the geographic location information using the positioning software, it automatically configures the obtained geographic location information to the gateway using the information configuration protocol.
[0044] Step S3: After receiving the geographic location information, the gateway updates and stores it, and synchronizes the geographic location information to the device using an information synchronization protocol.
[0045] After the gateway receives the geographical location information sent by the terminal, if the gateway has not saved the geographical location information before, it will store the current geographical location information sent by the terminal. If the gateway has saved the geographical location information before, it will update it with the current geographical location information sent by the terminal. Then the device communicating with the gateway can obtain the geographical location information from the gateway.
[0046] In the embodiment of the present application, the gateway and the device support the information synchronization protocol. In order to synchronize the geographic location information, the gateway can automatically synchronize the geographic location information to the device using the information synchronization protocol after receiving the geographic location information, or automatically obtain the geographic location information from the gateway using the information synchronization protocol when the device needs to be positioned, or send a positioning request to the gateway when the device needs to be positioned, and the gateway automatically synchronizes the geographic location information to the device using the information synchronization protocol after receiving the positioning request. In actual applications, the location synchronization method can be selected according to specific circumstances.
[0047] After receiving the geographic location information, the device can use the acquired geographic location information in the required scenario. For example, a network camera adds a monitoring location to the monitoring screen based on the acquired geographic location information, and a smart speaker or smart TV displays the corresponding weather conditions based on the acquired geographic location information.
[0048] In summary, the method for obtaining location information of a device provided in the embodiment of the present application is to install the corresponding positioning software on the terminal. After the terminal is connected to the gateway by communication, the terminal automatically runs the positioning software, and after the positioning software runs, the terminal is located to obtain the geographical location information of the terminal, and then the terminal automatically sends the geographical location information to the gateway, and the device communicating with the gateway can obtain the geographical location information from the gateway. The present application only needs to install the corresponding positioning software on the terminal. After the terminal establishes a communication connection with the gateway, the geographical location information can be automatically sent to the gateway, and the device can obtain the geographical location information from the gateway, thereby improving the efficiency of obtaining the location information, avoiding the impact on the performance of the gateway, and improving the reliability and accuracy of the location information.
[0049] Based on the above technical solution, this embodiment also proposes a terminal, which has a positioning function. After establishing a communication connection with a gateway, the terminal is used to self-start a positioning program to obtain geographic location information, and send the geographic location information to the gateway using an information configuration protocol; so that the gateway can update and store the geographic location information after receiving it, and synchronize the geographic location information to the device using an information synchronization protocol.
[0050] Based on the above technical solution, this embodiment also proposes a gateway, which is used to update and store geographic location information after receiving it, and synchronize the geographic location information to the device using an information synchronization protocol; the geographic location information is acquired by the terminal by self-starting the positioning program after establishing a communication connection with the gateway and sent using the information configuration protocol.
[0051] It can be understood that since the terminal and gateway described in the embodiments of the present application are hardware devices for implementing the method for the device to obtain location information described in the embodiments, for the terminal and gateway disclosed in the embodiments, since they correspond to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method.
Claims
1. A method for a device to obtain location information, wherein the device is connected to a gateway for communication, characterized in that: The method comprises: After the terminal with positioning function establishes a communication connection with the gateway, the terminal automatically starts a positioning program to obtain geographic location information; The terminal sends the geographical location information to the gateway using an information configuration protocol; The gateway updates and stores the received geographic location information, and synchronizes the geographic location information to the device using an information synchronization protocol.
2. The method for obtaining location information by a device according to claim 1, characterized in that: The geographic location information is synchronized to the device using an information synchronization protocol, specifically including: After receiving the geographic location information, the gateway automatically synchronizes the geographic location information to the device using an information synchronization protocol.
3. The method for obtaining location information by a device according to claim 1, characterized in that: The geographic location information is synchronized to the device using an information synchronization protocol, specifically including: When positioning is required, the device automatically uses the information synchronization protocol to obtain geographic location information from the gateway.
4. The method for obtaining location information by a device according to claim 1, characterized in that: The geographic location information is synchronized to the device using an information synchronization protocol, specifically including: When positioning is required, the device sends a positioning request to the gateway. After receiving the positioning request, the gateway automatically synchronizes the geographical location information to the device using an information synchronization protocol.
5. A terminal, characterized in that: The terminal has a positioning function, and after establishing a communication connection with the gateway, the terminal is used to automatically start a positioning program to obtain geographical location information, and send the geographical location information to the gateway using an information configuration protocol; So that the gateway can update and store the geographic location information after receiving it, and synchronize the geographic location information to the device using the information synchronization protocol.
6. A gateway, characterized in that: The gateway is used to update and store geographic location information after receiving it, and synchronize the geographic location information to the device using the information synchronization protocol; the geographic location information is acquired by the terminal after establishing a communication connection with the gateway, self-starting the positioning program and sending it using the information configuration protocol.
7. The gateway according to claim 6, characterized in that: The gateway is specifically configured to automatically synchronize the geographic location information to the device using an information synchronization protocol after receiving the geographic location information.
8. The gateway according to claim 6, characterized in that: The gateway is specifically used to automatically synchronize the geographical location information to the device using an information synchronization protocol after receiving a positioning request; the positioning request is a positioning request sent by the device when positioning is required.
