Location positioning method and device of access gateway, electronic equipment and storage medium
By receiving positioning instructions from the SD-WAN controller, the location information of the access gateway is automatically obtained using satellite positioning or IP address positioning. This solves the problems of low efficiency and error-proneness caused by manual input in the existing technology, and realizes the rapid and accurate acquisition of the access gateway location and the high efficiency of operation and maintenance management.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-04-07
AI Technical Summary
The location information of existing SD-WAN smart access gateways relies on manual input, which leads to low efficiency and is prone to errors, making it difficult to achieve fast and accurate operation and maintenance management.
By receiving positioning instructions from the SD-WAN controller, the location information of the access gateway is automatically obtained using satellite positioning or IP address positioning, and then sent to the operation and maintenance management platform, including judging the status of the LTE module and the success of dialing to ensure accurate positioning.
It enables automated, rapid, and accurate acquisition of access gateway location information, reduces errors from manual data entry, and improves the efficiency and accuracy of operation and maintenance management.
Smart Images

Figure CN121815400A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of cloud network edge devices, specifically relating to a method for locating the location of an access gateway, a device for locating the location of an access gateway, an electronic device, and a computer-readable storage medium. Background Technology
[0002] With the deepening of enterprise digital transformation, SD-WAN (Software Defined Wide Area Network) technology is widely used due to its ability to integrate multiple network links, achieve intelligent routing, and centralized management. Large-scale SD-WAN networks typically deploy tens of thousands of intelligent access gateways (CPEs) as edge access devices. Effective operation and maintenance management of these massively distributed devices, especially quickly and accurately grasping their physical location information, is crucial for network planning, fault location, asset management, and customer service.
[0003] The location information display of conventional SD-WAN smart access gateways is mostly done during the equipment installation and maintenance phase, and is filled into the management platform manually. When there are tens of thousands or more devices to be maintained in the management network, the data entry work will be very time-consuming and labor-intensive, and human error may occur during the data entry process, resulting in inaccurate location information. Summary of the Invention
[0004] The purpose of this invention is to provide a method for locating the location of an access gateway, a device for locating the location of an access gateway, an electronic device, and a corresponding computer-readable storage medium, which can solve the problems of low efficiency and error-proneness caused by the reliance on manual input of location information for existing SD-WAN smart access gateways.
[0005] To solve the above-mentioned technical problems, the present invention is implemented as follows: In a first aspect, embodiments of the present invention provide a location positioning method for an access gateway, applied to an access gateway, the method comprising: Receives a location command sent by the SD-WAN controller; the location command is sent by the operation and maintenance management platform. In response to the positioning command, the location information of the access gateway is obtained through satellite positioning or IP address positioning. The location information of the access gateway is sent to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
[0006] Optionally, obtaining the location information of the access gateway through satellite positioning or IP address positioning includes: Determine whether the access gateway has an LTE module; If the access gateway has an LTE module, the location information of the access gateway is obtained by satellite positioning based on the LTE module; If the access gateway does not have an LTE module, the location information of the access gateway is obtained by IP address positioning.
[0007] Optionally, before obtaining the location information of the access gateway based on the LTE module via satellite positioning, the method further includes: Check the SIM card status of the LTE module; If the status is ready, check whether the LTE module dialed successfully; If the LTE module successfully dials a number, the location information of the access gateway is obtained through satellite positioning based on the LTE module.
[0008] Optionally, obtaining the location information of the access gateway based on the LTE module via satellite positioning further includes: When the access gateway starts, the positioning function of the LTE module is enabled; Send an AT command to the LTE module to read the raw satellite positioning data; The location information of the access gateway is obtained by parsing the raw satellite positioning data.
[0009] Secondly, embodiments of the present invention provide an access gateway location positioning system, the system comprising: an operation and maintenance management platform, an SD-WAN controller, and at least one access gateway; The operation and maintenance management platform is used to acquire location commands; send the location commands to the SD-WAN controller; and receive the location information of the access gateway sent by the SD-WAN controller. The SD-WAN controller is configured to forward the location command sent by the operation and maintenance management platform to the access gateway, so that the access gateway can obtain the location information of the access gateway; receive the location information from the access gateway and store it; The access gateway is configured to receive a positioning command sent by the SD-WAN controller; in response to the positioning command, obtain the location information of the access gateway by means of satellite positioning or IP address positioning; and send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
[0010] Optionally, the access gateway is further configured to determine whether the access gateway has an LTE module; if the access gateway has an LTE module, the location information of the access gateway is obtained by satellite positioning based on the LTE module; if the access gateway does not have an LTE module, the location information of the access gateway is obtained by IP address positioning.
[0011] Optionally, the access gateway is further configured to check the SIM card status of the LTE module; if the status is ready, check whether the LTE module has successfully dialed; if the LTE module has successfully dialed, obtain the location information of the access gateway based on the LTE module via satellite positioning.
[0012] Thirdly, embodiments of the present invention provide a location positioning device for an access gateway, applied to an access gateway, the device comprising: The positioning instruction receiving module is used to receive positioning instructions sent by the SD-WAN controller; the positioning instructions are sent by the operation and maintenance management platform. The location information acquisition module is used to obtain the location information of the access gateway by means of satellite positioning or IP address positioning in response to the positioning command; The location information sending module is used to send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
[0013] Optionally, the location information acquisition module includes: The determination submodule is used to determine whether the access gateway has an LTE module; The first location information acquisition submodule is used to acquire the location information of the access gateway by satellite positioning based on the LTE module if the access gateway has an LTE module. The second location information acquisition submodule is used to acquire the location information of the access gateway by means of IP address positioning if the access gateway does not have an LTE module.
[0014] Optionally, the first location information acquisition submodule includes: A SIM card status checking unit is used to check the SIM card status of the LTE module. A dialing check unit is used to check whether the LTE module has successfully dialed if the state is ready. The location information acquisition unit is used to acquire the location information of the access gateway based on the LTE module via satellite positioning if the LTE module successfully dials a number.
[0015] Optionally, the first location information acquisition submodule further includes: A positioning activation unit is used to enable the positioning function of the LTE module when the access gateway is started. The data reading unit is used to send AT commands to the LTE module to read the raw satellite positioning data; The data parsing unit is used to parse the raw satellite positioning data to obtain the location information of the access gateway.
[0016] Fourthly, embodiments of the present invention provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0017] Fifthly, embodiments of the present invention provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0018] The embodiments of the present invention have the following advantages: This invention provides a method for locating an access gateway, applied to the gateway itself. The method includes: receiving a location command from an SD-WAN controller; the location command being sent by an operations and maintenance management platform; responding to the location command by obtaining the access gateway's location information via satellite positioning or IP address positioning; and sending the access gateway's location information to the SD-WAN controller, which then sends the access gateway's location information to the operations and maintenance management platform. This allows operations and maintenance personnel to send location commands through the operations and maintenance management platform to automatically obtain the device's real-time latitude and longitude, thereby accurately displaying the geographical location of the intelligent access gateway device. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating the steps of a location positioning method for an access gateway provided in an embodiment of the present invention; Figure 2 This is an overall flowchart of a location positioning method for an access gateway provided in an embodiment of the present invention; Figure 3 This is a flowchart illustrating the steps of a location positioning method for an access gateway to retrieve latitude and longitude information from an underlying device, as provided in an embodiment of the present invention. Figure 4 This is a schematic diagram of the structure of a location positioning system for an access gateway provided in an embodiment of the present invention; Figure 5 This is a structural block diagram of a location positioning device for an access gateway provided in an embodiment of the present invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] The terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects and are not used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0022] The following description, in conjunction with the accompanying drawings, details a location positioning method for an access gateway, a location positioning device for an access gateway, an electronic device, and a computer-readable storage medium provided by the embodiments of the present invention, through specific implementations and application scenarios.
[0023] Reference Figure 1 The diagram illustrates a step-by-step flowchart of a location positioning method for an access gateway according to an embodiment of the present invention. Specifically, the method applied to an access gateway may include the following steps: Step 101: Receive a location command sent by the SD-WAN controller; the location command is sent by the operation and maintenance management platform. SD-WAN smart access gateway location tracking automatically determines the geographical location of smart access gateway devices within the SD-WAN network and displays this location information intuitively to maintenance personnel. This primarily addresses the problems of inefficiency, error-proneness, and maintenance difficulties associated with traditional manual input of device location information. It enables rapid device location and accurate troubleshooting of faults related to the device's physical location.
[0024] In some embodiments provided by the invention, an SD-WAN controller is incorporated as a central structure. This controller is not a specific hardware device, but rather a centralized management software suite responsible for unified command, management, and policy distribution across the entire SD-WAN network. In traditional distributed networks, each network device, such as a router, decides independently how to forward data, lacking a unified perspective and scheduling. The core idea of SD-WAN is the separation of control and forwarding. It does not directly forward user data; data traffic is still transmitted directly between intelligent access gateways. It is aware of the topology, link status, performance metrics, and application policies of all intelligent access gateways. The SD-WAN controller acts as an information aggregation and relay station. It receives and stores location information (devinfo) reported from intelligent access gateways and provides interfaces for upper-layer operation and maintenance platforms to query and display it.
[0025] In some embodiments of the present invention, when an operations and maintenance personnel clicks the location update button on the operations and maintenance management platform, the location instruction request to obtain location information is first sent by the operations and maintenance management platform to the SD-WAN controller, and then sent by the SD-WAN controller to the access gateway to obtain the location information.
[0026] Step 102: In response to the positioning command, obtain the location information of the access gateway through satellite positioning or IP address positioning. Upon receiving a positioning command from the SD-WAN controller, the device begins acquiring location information. This can be done via satellite positioning or IP positioning. Satellite positioning can utilize GNSS (Global Navigation Satellite System). Some smart access gateway devices integrate LTE or 5G cellular network modules, which can directly obtain the device's latitude and longitude information via GNSS. This method offers high accuracy but relies on the device possessing the corresponding hardware modules.
[0027] GNSS refers to a system that uses navigation signals from multiple satellites to achieve precise three-dimensional positioning, navigation, and timing at any location on the Earth's surface and in near-Earth space at any time. In the positioning implementation of SD-WAN smart access gateways, GNSS positioning is the most accurate and reliable positioning method.
[0028] The basic principle is as follows: Trilateration positioning: The GNSS receiver (in this embodiment, the LTE module integration part of the access gateway) calculates the precise distance between itself and each satellite by measuring the propagation time of signals from at least four different satellites; Satellite constellation: The system uses a constellation of satellites deployed on multiple orbital planes to ensure that any location in the world can simultaneously receive signals from at least four satellites; Time synchronization: Each satellite carries a high-precision atomic clock, the ground control system continuously calibrates the satellite clock and orbital parameters, and the receiver achieves positioning by calculating the time difference of the satellite signals.
[0029] In some embodiments provided by this invention, the implementation of the GNSS positioning function involves the following components: global satellite navigation systems such as the US GPS, China's BeiDou (BDS), Russia's GLONASS, and the EU's Galileo. The access gateway of this invention can support multi-system joint positioning, improving positioning accuracy and reliability. The user end is a GNSS receiver integrated into the LTE module of the access gateway, responsible for receiving satellite signals and calculating location information.
[0030] In some embodiments, differential correction data from satellite-based augmentation systems (such as WAAS and EGNOS) or ground-based augmentation systems can be received via an LTE network to achieve high-precision positioning at the sub-meter or even centimeter level.
[0031] In some embodiments, for devices without GNSS positioning capabilities (such as devices that only access the internet via a wired network), their approximate location can be estimated by querying a geolocation database corresponding to the device's public IP address. This method is simple to implement, but its accuracy is relatively low and may be affected by factors such as lag in IP address updates.
[0032] IP address geolocation is a technology that determines the approximate geographical location of a device based on its public IP address. The Internet Assigned Numbers Authority (IANA) allocates blocks of IP addresses to Regional Internet Registries (RIRs), which further allocate them to Local Internet Registries (LIRs) and Internet Service Providers (ISPs). This hierarchical allocation model associates IP addresses with geographical regions. Third-party service providers collect IP address allocation information from ISPs, voluntarily submitted location data from users, network measurement data, and other resources to build a mapping database between IP addresses and geographical locations. By querying the geographical location database corresponding to an IP address, the latitude and longitude information of the IP address's registered or frequently used location can be obtained.
[0033] In certain scenarios, WLAN positioning technology can also be used to calculate the device's location by analyzing information such as the wireless signal strength index (RSSI) or round-trip time (RTT) received by the device, combined with positioning algorithms. This method is typically used in specific campus or indoor environments.
[0034] In one embodiment, step 102 may include the following sub-steps: Sub-step S11: Determine whether the access gateway has an LTE module; Sub-step S12: If the access gateway has an LTE module, then the location information of the access gateway is obtained by satellite positioning based on the LTE module. An LTE module is a physical hardware component responsible for a device's cellular mobile network communication (such as accessing 4G / 5G networks). In modern communication module designs, GNSS reception functionality is typically integrated directly into the LTE module's chipset. GNSS (supporting GPS, BeiDou, etc.) is a built-in service or function provided by the LTE module. This means that the device does not require an external GPS antenna and receiver, but instead directly utilizes the LTE module to receive satellite signals and calculate its location.
[0035] In this embodiment of the invention, during the positioning process, the LTE module and GNSS function work together to achieve accurate and rapid positioning. GNSS provides core location data; the GNSS receiver integrated in the LTE module is responsible for scanning and capturing satellite signals, and calculating the device's precise latitude and longitude coordinates. This is the core source of positioning information. The LTE network provides auxiliary and communication channels. The LTE network can serve as an auxiliary means, allowing the module to quickly download current satellite ephemeris data from the auxiliary server via the LTE network. This significantly shortens the initial GNSS positioning time and improves positioning capabilities in weak signal environments (such as urban canyons). After calculating the latitude and longitude, the LTE module, acting as a communication channel, stably transmits the location data back to the SD-WAN controller via the mobile network or the Internet. This ensures the transmission of positioning results.
[0036] In one embodiment, step S12 may include the following sub-steps: Sub-step S121: Check the SIM card status of the LTE module; Checking the SIM card status is the most basic hardware and authorization check, confirming the device's ability to access the mobile network and use operator services. Specific diagnostics include: physical presence – checking if the SIM card is correctly inserted into the slot and making good contact; and network authorization – checking if the SIM card has been activated by the operator, has no outstanding fees, and is not blacklisted, i.e., whether its status is READY. An invalid or unready SIM card means that the LTE module will not only be unable to establish a data connection on the network, but may also be unable to use its integrated GNSS function properly. This is because many modules are designed so that the activation of the GNSS function is linked to the SIM card's network authentication status. Without a valid SIM card, the module may not even respond to GNSS-related AT commands.
[0037] Sub-step S122: If the status is ready, check whether the LTE module dialed successfully; Checking whether the LTE module dialing is successful is a functional check, based on the premise that the SIM card is legitimate, to further verify whether the LTE module has successfully established a data link to the public internet (PDP context activation). Specific diagnostics include confirming whether the device has successfully obtained an IP address assigned by the operator and can communicate with servers on the internet. The core function of checking whether the LTE module dialing is successful is to ensure the reliability of the two critical components: auxiliary GNSS and location data reporting.
[0038] A-GNSS technology can download current satellite ephemeris data via the LTE network, reducing the initial GNSS positioning time from tens of seconds to a few seconds and significantly improving the positioning success rate in areas with weak signals. Without a network connection, this crucial assistance is unavailable; the ultimate purpose of obtaining latitude and longitude coordinates is to send them to the SD-WAN controller. Verifying a successful dial-up connection ensures that the location detection module can immediately report the acquired coordinates via the LTE network channel.
[0039] Sub-step S123: If the LTE module successfully dials, the location information of the access gateway is obtained based on the LTE module via satellite positioning.
[0040] In this embodiment of the invention, once the aforementioned checks confirm that the LTE module has successfully dialed, it indicates that the device has established a stable internet connection channel. The two consecutive check steps—checking the SIM card status of the LTE module and checking whether the LTE module dialed successfully—prevent subsequent invalid operations such as sending GNSS commands to the module by identifying hardware failures, SIM card problems, or network unavailability in advance, thus saving processing resources and time. This ensures smooth end-to-end communication from satellite signal reception and data processing to result reporting, thereby greatly improving the success rate and reliability of the entire automated positioning process.
[0041] In one embodiment, step S12 may further include the following sub-steps: Sub-step S124: When the access gateway is started, enable the positioning function of the LTE module; During the startup and initialization phase of the smart access gateway, its built-in location detection module automatically executes the LTE module positioning function activation process. This design ensures that after completing the basic network connection self-test, the device immediately enters a ready state for accurate positioning, providing low-latency response capabilities for subsequent possible location service requests.
[0042] Sub-step S125: Send an AT command to the LTE module to read the raw satellite positioning data; After confirming that the LTE module and its GNSS function have been successfully started and are in a ready state, the location detection module interacts with the LTE module by sending specific AT command sets to obtain raw satellite positioning data. The location detection module selects and sends the appropriate AT commands to obtain raw satellite positioning data based on the LTE module's manufacturer and model. Commonly used AT commands include, but are not limited to: AT+CGNSINF, which is used to obtain the latest GNSS navigation information. Typical returned data includes: positioning status, latitude, longitude, altitude, UTC time, ground speed, heading, positioning mode, horizontal accuracy factor (HDOP), number of satellites used, etc., separated by commas; AT+CGNSI, which is used to obtain more detailed raw GNSS measurement data or engineering data; and AT+CGNSTST, which can be used to set or query periodic NMEA data output.
[0043] The transmission process is as follows: The location detection module sends the aforementioned AT command to the LTE module via the device's serial interface (such as UART) or USB interface. After the command is sent, a timer is started to wait for the module's response. The timeout period is typically preset to 5-30 seconds to accommodate varying positioning calculation times in different environments. Upon receiving a valid AT command, the LTE module's built-in GNSS processor begins collecting and processing signals from multiple satellite systems (such as GPS, BeiDou, and GLONASS). After processing, the module returns formatted positioning data to the location detection module via the same communication interface. The returned data format is typically standardized NMEA-0183 protocol sentences (e.g., $GNGGA, $GNRMC) or structured data in plain text or CSV format as defined by the manufacturer.
[0044] Sub-step S126: Parse the raw satellite positioning data to obtain the location information of the access gateway.
[0045] Upon receiving the raw data, the location detection module immediately performs parsing and verification. Based on the known data format (such as the NMEA protocol), it extracts key positioning parameters field by field, including latitude and longitude coordinates, altitude, UTC timestamp, positioning status flag, number of satellites used, and horizontal precision factor (HDOP). It checks whether the positioning status flag is valid, verifies whether the number of satellites used meets or exceeds the minimum requirement (usually ≥4), and checks the HDOP value; a smaller value indicates higher accuracy. A threshold is set (e.g., HDOP < 2.0). If the precision factor is too poor, the positioning data is deemed unreliable, and the latitude and longitude coordinates are checked for reasonableness (e.g., whether they are within the expected country or region).
[0046] If the AT command receives no response, times out, or returns an error code, the location detection module will log an error. For invalid or insufficiently accurate location data, the system will initiate a retry mechanism. For example, after waiting for a short interval (e.g., 10 seconds), the AT command will be resent. The number of retries is usually limited to a maximum value (e.g., 3 times) to avoid infinite loops due to hardware failure. If multiple retries fail, the process will terminate and may trigger an alarm or switch to a backup location method (e.g., IP address location).
[0047] In some embodiments of the present invention, when the access gateway determines that it has an LTE module and supports GNSS function, it executes the following positioning process: Step 1, GNSS module initialization, the location detection module sends AT command (such as AT+CGNSPWR=1) to the LTE module to turn on the GNSS power; sets the GNSS working mode (such as AT+CGNSSMODE=1 to enable autonomous positioning mode); configures positioning parameters, including preferred satellite system (GPS / BeiDou / multi-system combination), positioning update frequency, accuracy threshold, etc.
[0048] Step 2: Satellite Signal Acquisition and Tracking. The GNSS receiver scans predefined frequency points to acquire navigation signals from visible satellites; establishes stable tracking with at least four satellites, continuously demodulating navigation data such as satellite ephemeris and almanacs; and dynamically optimizes the satellite selection strategy based on signal strength and quality.
[0049] Step 3: Position Calculation and Output. Using the captured satellite pseudorange, Doppler shift, and other observations, combined with the satellite orbit and clock parameters in the navigation message, the receiver's position, velocity, and time (PVT) information is calculated. The output data format conforming to the NMEA-0183 standard (such as GGA and RMC statements) is used, including key parameters such as latitude and longitude, altitude, UTC time, positioning mode, number of satellites used, and horizontal precision factor (HDOP). The position detection module parses the NMEA statement, extracts the latitude and longitude coordinates, and adds a timestamp.
[0050] By integrating GNSS global satellite positioning capabilities, the SD-WAN smart access gateway achieves high-precision, autonomous location services, providing a reliable location data foundation for network management, operation and maintenance optimization, and business strategy execution.
[0051] Sub-step S13: If the access gateway does not have an LTE module, the location information of the access gateway is obtained by IP address positioning.
[0052] In some embodiments of the present invention, this step serves as a backup positioning mechanism when the smart access gateway lacks LTE communication capabilities. This ensures full compatibility of the location positioning system, enabling devices connected only via wired networks to achieve automated location information collection.
[0053] The main steps are as follows: Step 1: Obtain the device's public IP address and send an HTTP / HTTPS request to a specific "My IP Address" query service (such as icanhazip.com); check the network connection information of the WAN interface and extract the outgoing public IP address after Network Address Translation (NAT); send a request to the configured STUN server and parse the returned XOR-MAPPED-ADDRESS field.
[0054] Step 2: Query the geolocation database. Use the obtained public IP address as the query key to initiate a query to one or more IP geolocation databases. Local database queries utilize the GeoIP database file integrated into the device firmware (such as MaxMind GeoLite2), offering fast response times and independence from external services. Remote API queries send query requests to online geolocation services (such as ipapi.com, IP2Location, etc.) via a RESTful API to obtain the latest location information.
[0055] Step 3: Parse the location results. Receive and parse the response returned by the database (usually in JSON or XML format); extract key geographic location fields, including latitude and longitude coordinates, precision radius, city, region, country information, Internet Service Provider (ISP) name, time zone information, etc., and store the parsed latitude and longitude information together with the confidence index.
[0056] This method serves as a backup positioning solution when GNSS positioning fails (e.g., indoor or underground environments); it also serves as an auxiliary verification method for GNSS positioning results, detecting possible positioning anomalies; and it provides a network topology display, even with limited accuracy, offering a general view of device distribution for the network management system.
[0057] By using IP address geolocation technology, the SD-WAN system achieves location coverage for all types of access gateways, ensuring basic location awareness capabilities in network management, topology visualization, and policy enforcement, forming a complete solution that complements GNSS high-precision positioning.
[0058] Step 103: Send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
[0059] In some embodiments of the present invention, after successfully obtaining latitude and longitude information, the access gateway proactively initiates data transmission to the SD-WAN controller. The location information is then encapsulated according to a predefined format, which may include: a unique device identifier (such as MAC address, device serial number), latitude and longitude coordinates and their accuracy information, a positioning timestamp (UTC standard format), a positioning source identifier (GNSS / IP positioning), and a confidence score (only for IP positioning). The encapsulated location data is then sent to the SD-WAN controller via a secure network channel (such as a TLS-encrypted RESTful API, the NETCONF / YANG model, or a dedicated southbound interface protocol).
[0060] The SD-WAN controller receives a location query request from the operation and maintenance management platform; the controller retrieves the latest location record of the specified device from the device information database and performs necessary format conversion; and returns the standardized location information to the operation and maintenance management platform through the northbound API.
[0061] In addition, the access gateway encapsulates location information into structured data (XML format can be selected in this embodiment of the invention); establishes a secure connection with the SD-WAN controller through the device's network management plane; transmits data to the controller's designated interface using HTTPS POST requests or a dedicated message queue; and implements a retransmission mechanism to ensure reliable data transmission in the event of network fluctuations.
[0062] Through this layered transmission mechanism, this invention achieves: data centralization, with all device location information uniformly converged to the SD-WAN controller to form a global location view; interface standardization, with a north-south interface separation design, reducing the coupling between system components; automated operation and maintenance, realizing full-process automation from location collection to display without manual intervention; and system scalability, with the controller serving as an information relay hub, facilitating the future access of more types of terminal devices.
[0063] This invention provides a method for locating an access gateway, applied to the access gateway, comprising: receiving a location command sent by an SD-WAN controller; the location command being sent by an operation and maintenance management platform; responding to the location command, obtaining the location information of the access gateway through satellite positioning or IP address positioning; and sending the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform. This allows operation and maintenance personnel to send location commands through the operation and maintenance management platform to automatically obtain the real-time latitude and longitude of the device, thereby accurately displaying the geographical location of the intelligent access gateway device.
[0064] Reference Figure 2The diagram illustrates an overall flowchart of a location positioning method for an access gateway provided by an embodiment of the present invention, which specifically includes: Operation and maintenance management platform: Provides a button for updating the location of SDWAN smart access gateway devices.
[0065] SDWAN Controller: Connects to the upper-layer operation and maintenance platform, providing interfaces for the platform to call, so that the operation and maintenance platform can actively obtain the latitude and longitude information of the access gateway device; for southbound, it actively obtains or receives the latitude and longitude information of the device reported by the access gateway device, and provides location information data storage.
[0066] SD-WAN can only connect to a gateway: it is configured with a location detection module that can obtain location records (devinfo). The steps of the location detection module are as follows: Step 1 requires enabling GNSS on the LTE module of the access gateway device by default and setting the positioning mode when the device starts up, so as to obtain the GNSS location calculation capability of the LTE module.
[0067] Step 2: Check if the access gateway device has a SIM card connected. If a SIM card is connected and the status is READY, proceed to the next step; if the check result is that no SIM card is connected, terminate the execution.
[0068] Step 3: The location detection module sends the AT+CGNSI command to read GNSS information.
[0069] Step 4: The location detection module parses the GNSS data to obtain latitude and longitude information.
[0070] Step 5: The location detection module translates the parsed data into location information and stores it in the smart gateway device for the operation and maintenance platform to query.
[0071] In one embodiment of the present invention, if the access gateway device has an LTE module and a SIM card has been inserted, and WAN uplink is also available, the location is reported based on the LTE module positioning result.
[0072] If the access gateway device only uses wired WAN uplink, then IP address location is obtained and location reporting is performed using a purely software-based method. Specifically, the device obtains the ISP's public IP address from the WAN / LTE interface IP address information; then it registers and uses an IP address-to-geometry API service; next, it uses an open-source Python library to parse latitude and longitude; finally, it stores the latitude and longitude information in the device's devinfo.
[0073] In this embodiment of the invention, the latitude and longitude information storage method using XML file format has the following advantages: XML (Extensible Markup Language) allows users to customize tags and attributes, making it suitable for storing geographical location information with irregular or frequently changing structures. Furthermore, latitude and longitude can be organized into different levels and structures as needed to adapt to different application scenarios; XML supports rich descriptions of latitude and longitude information, such as accuracy, timestamps, and source attributes. Complex attributes are crucial for applications like map making, GIS, or updating geographical location information; and because XML is a text format, it can be easily transmitted over networks.
[0074] Reference Figure 3 The flowchart illustrates the steps of the control face in retrieving latitude and longitude information of the underlying device in a location positioning method for an access gateway according to an embodiment of the present invention: First, after completing the on-site installation and maintenance work at the customer's site and successfully bringing the equipment online, the installation and maintenance personnel click the "Update Device Location" button on the operation and maintenance platform. Upon initial online status, the device will report a devinfo message to the controller. The devinfo message already contains the device's latitude and longitude information.
[0075] Next, the operation and maintenance management platform queries the controller device database to obtain device location information and updates the location information.
[0076] This invention provides a method for locating the position of an SD-WAN smart access gateway, allowing maintenance personnel to automatically obtain the real-time latitude and longitude of the device by clicking the location update maintenance button on the page. This ensures the accurate display of the device's geographical location.
[0077] It should be noted that the location positioning method for the access gateway provided in this embodiment of the invention can be executed by the location positioning device of the access gateway, or by the control module in the location positioning device of the access gateway for executing the method of loading the location positioning of the access gateway. This embodiment of the invention uses the location positioning device of the access gateway executing the method of loading the location positioning of the access gateway as an example to illustrate the location positioning method for the access gateway provided in this embodiment of the invention.
[0078] Reference Figure 4 The diagram shows a structural schematic of a location positioning system for an access gateway provided by an embodiment of the present invention, which may specifically include an operation and maintenance management platform, an SD-WAN controller, and at least one access gateway; The operation and maintenance management platform is used to acquire location commands; send the location commands to the SD-WAN controller; and receive the location information of the access gateway sent by the SD-WAN controller. The SD-WAN controller is configured to forward the location command sent by the operation and maintenance management platform to the access gateway, so that the access gateway can obtain the location information of the access gateway; receive the location information from the access gateway and store it; The access gateway is configured to receive a positioning command sent by the SD-WAN controller; in response to the positioning command, obtain the location information of the access gateway by means of satellite positioning or IP address positioning; and send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
[0079] In one embodiment, the access gateway is further configured to determine whether the access gateway has an LTE module; if the access gateway has an LTE module, the location information of the access gateway is obtained by satellite positioning based on the LTE module; if the access gateway does not have an LTE module, the location information of the access gateway is obtained by IP address positioning.
[0080] In one embodiment, the access gateway is further configured to check the SIM card status of the LTE module; if the status is ready, check whether the LTE module has successfully dialed; if the LTE module has successfully dialed, obtain the location information of the access gateway based on the LTE module via satellite positioning.
[0081] This invention provides an access gateway location positioning system, comprising: an operation and maintenance management platform, an SD-WAN controller, and at least one access gateway; the operation and maintenance management platform is used to acquire a location command; send the location command to the SD-WAN controller; and receive location information of the access gateway sent by the SD-WAN controller; the SD-WAN controller is used to forward the location command sent by the operation and maintenance management platform to the access gateway, so that the access gateway acquires its location information; receive and store the location information from the access gateway; the access gateway is used to receive the location command sent by the SD-WAN controller; in response to the location command, acquire the location information of the access gateway through satellite positioning or IP address positioning; and send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform. This allows operation and maintenance personnel to send location commands through the operation and maintenance management platform to automatically acquire the real-time latitude and longitude of the device, thereby accurately displaying the geographical location of the intelligent access gateway device.
[0082] Reference Figure 5 The diagram illustrates a structural block diagram of a location positioning device for an access gateway according to an embodiment of the present invention. This device is applied to an access gateway and may specifically include the following modules: The positioning instruction receiving module 501 is used to receive positioning instructions sent by the SD-WAN controller; the positioning instructions are sent by the operation and maintenance management platform. Location information acquisition module 502 is used to acquire the location information of the access gateway by means of satellite positioning or IP address positioning in response to the positioning command; The location information sending module 503 is used to send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
[0083] In one embodiment, the location information acquisition module includes: The determination submodule is used to determine whether the access gateway has an LTE module; The first location information acquisition submodule is used to acquire the location information of the access gateway by satellite positioning based on the LTE module if the access gateway has an LTE module. The second location information acquisition submodule is used to acquire the location information of the access gateway by means of IP address positioning if the access gateway does not have an LTE module.
[0084] In one embodiment, the first location information acquisition submodule includes: A SIM card status checking unit is used to check the SIM card status of the LTE module. A dialing check unit is used to check whether the LTE module has successfully dialed if the state is ready. The location information acquisition unit is used to acquire the location information of the access gateway based on the LTE module via satellite positioning if the LTE module successfully dials a number.
[0085] In one embodiment, the first location information acquisition submodule further includes: A positioning activation unit is used to enable the positioning function of the LTE module when the access gateway is started. The data reading unit is used to send AT commands to the LTE module to read the raw satellite positioning data; The data parsing unit is used to parse the raw satellite positioning data to obtain the location information of the access gateway.
[0086] The location positioning device of the access gateway in this embodiment of the invention can be a device, or a component, integrated circuit, or chip in a terminal. This device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This embodiment of the invention does not impose specific limitations.
[0087] The location positioning device of the access gateway in this embodiment of the invention can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment of the invention does not impose specific limitations.
[0088] The location positioning device for the access gateway provided in this embodiment of the invention can achieve Figures 1 to 5 The various processes implemented by the location positioning device of the access gateway in the method embodiment will not be described again here to avoid repetition.
[0089] This invention provides a location positioning device for an access gateway. The device includes a positioning command receiving module for receiving positioning commands sent by an SD-WAN controller (sent by an operations and maintenance management platform); a location information acquisition module for acquiring the access gateway's location information via satellite positioning or IP address positioning in response to the positioning commands; and a location information sending module for sending the access gateway's location information to the SD-WAN controller, which then forwards the location information to the operations and maintenance management platform. This allows operations and maintenance personnel to send location commands through the platform, automatically obtaining the device's real-time latitude and longitude, thus accurately displaying the geographical location of the smart access gateway device.
[0090] This invention also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described location positioning method embodiment for the access gateway and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0091] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0092] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of the present invention is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0094] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.
Claims
1. A method for locating the location of an access gateway, characterized in that, Applied to an access gateway, the method includes: Receives a location command sent by the SD-WAN controller; the location command is sent by the operation and maintenance management platform. In response to the positioning command, the location information of the access gateway is obtained through satellite positioning or IP address positioning. The location information of the access gateway is sent to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
2. The location positioning method for an access gateway according to claim 1, characterized in that, The step of obtaining the location information of the access gateway through satellite positioning or IP address positioning includes: Determine whether the access gateway has an LTE module; If the access gateway has an LTE module, the location information of the access gateway is obtained by satellite positioning based on the LTE module; If the access gateway does not have an LTE module, the location information of the access gateway is obtained by IP address positioning.
3. The location positioning method for the access gateway according to claim 2, characterized in that, Before obtaining the location information of the access gateway via satellite positioning based on the LTE module, the method further includes: Check the SIM card status of the LTE module; If the status is ready, check whether the LTE module dialed successfully; If the LTE module successfully dials a number, the location information of the access gateway is obtained through satellite positioning based on the LTE module.
4. The location positioning method for an access gateway according to claim 2, characterized in that, The step of obtaining the location information of the access gateway via satellite positioning based on the LTE module further includes: When the access gateway starts, the positioning function of the LTE module is enabled; Send an AT command to the LTE module to read the raw satellite positioning data; The location information of the access gateway is obtained by parsing the raw satellite positioning data.
5. A location positioning system for an access gateway, characterized in that, The system includes: an operation and maintenance management platform, an SD-WAN controller, and at least one access gateway; The operation and maintenance management platform is used to acquire location commands; send the location commands to the SD-WAN controller; and receive the location information of the access gateway sent by the SD-WAN controller. The SD-WAN controller is configured to forward the location command sent by the operation and maintenance management platform to the access gateway, so that the access gateway can obtain the location information of the access gateway; receive the location information from the access gateway and store it; The access gateway is configured to receive a positioning command sent by the SD-WAN controller; in response to the positioning command, obtain the location information of the access gateway by means of satellite positioning or IP address positioning; and send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
6. The access gateway location positioning system according to claim 5, characterized in that, The access gateway is further configured to determine whether it has an LTE module; if the access gateway has an LTE module, the location information of the access gateway is obtained by satellite positioning based on the LTE module; if the access gateway does not have an LTE module, the location information of the access gateway is obtained by IP address positioning.
7. The access gateway location positioning system according to claim 6, characterized in that, The access gateway is also used to check the SIM card status of the LTE module; if the status is ready, it checks whether the LTE module has successfully dialed; if the LTE module has successfully dialed, it obtains the location information of the access gateway based on the LTE module through satellite positioning.
8. A device for location positioning of an access gateway, characterized in that, The device, applied to an access gateway, includes: The positioning instruction receiving module is used to receive positioning instructions sent by the SD-WAN controller; the positioning instructions are sent by the operation and maintenance management platform. The location information acquisition module is used to obtain the location information of the access gateway by means of satellite positioning or IP address positioning in response to the positioning command; The location information sending module is used to send the location information of the access gateway to the SD-WAN controller, so that the SD-WAN controller sends the location information of the access gateway to the operation and maintenance management platform.
9. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein when the program or instructions are executed by the processor, they implement the steps of the location positioning method for the access gateway as described in claims 1-4.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions, which, when executed by a processor, implement the steps of the location positioning method for the access gateway as described in claims 1-4.