Position information reporting method and device, computer equipment and storage medium

By utilizing wireless networks and switching between multiple positioning methods while the device is powered off, the terminal device achieves efficient and low-cost location information reporting, solving the problems of resource waste and high cost in existing technologies, and improving the reliability and accuracy of information.

CN122069476APending Publication Date: 2026-05-19SHENZHEN GUANGTONG YILIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN GUANGTONG YILIAN TECH CO LTD
Filing Date
2026-02-28
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing intelligent positioning technologies, terminal devices suffer from resource waste and high reporting costs when reporting location information to the server.

Method used

When the terminal device is powered off, it acquires and sends location information via wireless network. By switching between satellite positioning, wireless network positioning and cellular positioning, the reliability and accuracy of the location information are ensured, and supplementary reporting is carried out via cellular network when necessary.

Benefits of technology

It reduces the cost of reporting location information, improves the reliability and accuracy of information, avoids positioning blind spots and resource waste, and enhances information security and timeliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122069476A_ABST
    Figure CN122069476A_ABST
Patent Text Reader

Abstract

The invention discloses a position information reporting method and device, computer equipment and a storage medium, and the method can comprise the steps: determining that the power state of terminal equipment is a power-on state or a power-off state under the condition that a position request message which comes from a server and is used for requesting the position information of the terminal equipment is received; acquiring a first scanning result under the condition that the power state of the terminal equipment is a shutdown state; the first scanning result is used for indicating whether a wireless network which can be connected with the terminal equipment exists in a preset range or not. And under the condition that the first scanning result indicates that at least one connectable wireless network exists in the preset range, acquiring position information of the terminal equipment, and sending the position information to a server through the first wireless network. Wherein the first wireless network is any one wireless network in the at least one connectable wireless network. According to the invention, the position information reporting cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a location information reporting method, apparatus, computer equipment, and storage medium. Background Technology

[0002] With the development of IoT technology, more and more terminal devices can achieve functions such as data interaction and intelligent management (e.g., intelligent positioning) through IoT technology. Taking intelligent positioning as an example, terminal devices can send their location information to a server through IoT technology, and the server can then analyze and process the location information. However, in current intelligent positioning technology, there are problems of resource waste and high reporting costs when terminal devices report location information to the server.

[0003] Therefore, how to reduce the cost of terminal devices in the location information reporting process is a hot research topic. Summary of the Invention

[0004] This application provides a location information reporting method, apparatus, computer equipment, and storage medium, which helps to reduce the cost of location information reporting.

[0005] In a first aspect, embodiments of this application provide a location information reporting method, the method comprising: receiving a location request message from a server; the location request message being used to request location information of a terminal device; responding to the location request message, determining the power state of the terminal device, the power state including a power-on state or a power-off state; when the power state of the terminal device is power-off, acquiring a first scan result; the first scan result being used to indicate whether there is a connectable wireless network within a preset range; when the first scan result indicates that there is at least one connectable wireless network within the preset range, acquiring the location information of the terminal device; and sending the location information to the server through the first wireless network; the first wireless network being any one of the at least one connectable wireless networks.

[0006] As can be seen, terminal devices in a powered-off state can send location information to the server via a wireless network, overcoming the limitation that terminal devices cannot respond when powered off, which helps improve the reliability and accuracy of location information. Terminal devices can actively scan for connectable wireless networks within a preset range. If at least one connectable wireless network is available, location information is sent through the first wireless network, avoiding the need for the terminal device to directly report location information via the cellular network, thus reducing the cost of location information reporting.

[0007] In one possible implementation, the terminal device includes a host, a first module, and a second module; the power state of the terminal device is the same as that of the host; the first module is used to connect to a wireless network; and the second module is used to connect to a cellular network.

[0008] As can be seen, the first and second modules can still function normally when the terminal device is powered off, allowing it to send location information to the server even when the device is powered off. This improves the reliability and accuracy of the location information.

[0009] In one possible implementation, the method further includes: if the first scan result indicates that there is no wireless network to connect to within a preset range, obtaining the location information of the terminal device; and sending the location information to the server through the cellular network accessed by the second module.

[0010] It is evident that when there is no wireless network available, terminal devices can report location information via cellular networks, thus avoiding the loss of location information and improving the accuracy and reliability of the terminal device's location information.

[0011] In one possible implementation, the method further includes: obtaining the location information of the terminal device when the terminal device is powered on and connected to the second wireless network; and sending the location information to the server through the second wireless network.

[0012] As can be seen, when a terminal device is powered on and connected to the second wireless network, it sends location information to the server through the second wireless network. Reporting location information via the wireless network helps terminal devices reduce the cost of location information reporting.

[0013] In one possible implementation, the method further includes: when the terminal device is powered on and not connected to a wireless network, obtaining a second scan result; the second scan result is used to indicate whether there is a wireless network that the terminal device can connect to within a preset range; when the second scan result indicates that there is at least one connectable wireless network within the preset range, obtaining the location information of the terminal device; and sending the location information to a server through a third wireless network; the third wireless network is any one of the at least one connectable wireless networks.

[0014] As can be seen, a terminal device in the powered-on state acquires the second scan result even without being connected to a wireless network. By avoiding directly reporting location information via the cellular network, the terminal device reduces the cost of location information reporting. Based on the second scan result, the location information is sent to the server via a third wireless network, which further reduces the cost of location information reporting.

[0015] In one possible implementation, the method further includes: if the second scan result indicates that there is no wireless network to connect to within a preset range, obtaining the location information of the terminal device; and sending the location information to the server through the cellular network accessed by the second module.

[0016] As can be seen, when the second scan result indicates that there is no connectable wireless network within the preset range, the terminal device uploads its location information via the cellular network. This avoids missing location information transmission and helps improve the timeliness and reliability of location information.

[0017] In one possible implementation, the method further includes: determining the location information of the terminal device by satellite positioning through the second module; or, if determining the location information of the terminal device by satellite positioning fails, determining the location information of the terminal device by wireless network positioning through the first module; or, if determining the location information of the terminal device by wireless network fails, determining the location information of the terminal device by cellular positioning through the second module.

[0018] As can be seen, terminal devices can sequentially obtain location information through satellite positioning, wireless network positioning, and cellular positioning, which helps improve the accuracy of location information and avoids large positioning errors caused by positioning blind spots. By switching between satellite positioning, wireless network positioning, and cellular positioning, terminal devices can be applied to various scenarios, improving the flexibility of choosing a positioning method.

[0019] In one possible implementation, the method further includes: receiving control instructions from a server; the control instructions are operation instructions determined by the server based on the analysis results after analyzing and processing the location information; and executing the operation corresponding to the control instructions through a host.

[0020] As can be seen, the server can generate control commands based on the analysis results of location information and send these commands to the terminal device through the location information reporting path. Real-time server control of the terminal device is beneficial in necessary scenarios (such as when the terminal device is lost), reducing the risk of data leakage and improving information security.

[0021] In one possible implementation, the path by which the server sends control commands to the terminal device is the same as the path by which the terminal device reports its location information.

[0022] It is evident that sending control commands through the location information reporting path helps reduce the risk of control command transmission failure, enabling terminal devices to respond to the server's control commands in a timely manner and improving the collaboration efficiency between terminal devices and the server.

[0023] Secondly, embodiments of this application provide a location information reporting device, which includes a transceiver unit and a processing unit. The transceiver unit is configured to receive a location request message from a server; the location request message requests location information from a terminal device. The processing unit is configured to, in response to the location request message, determine the power state of the terminal device, including a power-on state or a power-off state; if the terminal device is in a power-off state, acquire a first scan result; the first scan result indicates whether there is a connectable wireless network within a preset range; if the first scan result indicates that at least one connectable wireless network exists within the preset range, acquire the location information of the terminal device; the transceiver unit is further configured to send the location information to the server; the first wireless network is any one of the at least one connectable wireless networks.

[0024] In one possible implementation, the terminal device includes a host, a first module, and a second module; the power state of the terminal device is the same as that of the host; the first module is used to connect to a wireless network; and the second module is used to connect to a cellular network.

[0025] In one possible implementation, the processing unit is further configured to acquire the location information of the terminal device when the first scan result indicates that there is no wireless network to connect to within a preset range; and send the location information to the server through the cellular network accessed by the second module.

[0026] In one possible implementation, the processing unit is further configured to acquire the location information of the terminal device when the terminal device is powered on and has been connected to the second wireless network; and send the location information to the server through the second wireless network.

[0027] In one possible implementation, the processing unit is further configured to acquire a second scan result when the terminal device is powered on and not connected to a wireless network; the second scan result is used to indicate whether there is a wireless network that the terminal device can connect to within a preset range; when the second scan result indicates that there is at least one connectable wireless network within the preset range, acquire the location information of the terminal device; and send the location information to the server through a third wireless network; the third wireless network is any one of the at least one connectable wireless networks.

[0028] In one possible implementation, the processing unit is further configured to acquire the location information of the terminal device when the second scan result indicates that there is no wireless network to connect to within a preset range; and send the location information to the server through the cellular network accessed by the second module.

[0029] In one possible implementation, the processing unit is further configured to determine the location information of the terminal device by performing satellite positioning through the second module; or, if determining the location information of the terminal device by satellite positioning fails, determining the location information of the terminal device by performing wireless network positioning through the first module; or, if determining the location information of the terminal device by wireless network fails, determining the location information of the terminal device by performing cellular positioning through the second module.

[0030] In one possible implementation, the transceiver unit is further configured to receive control commands from the server; the control commands are operation commands determined by the server based on the analysis results after analyzing and processing the location information; the processing unit is further configured to execute the operation corresponding to the control commands through the host.

[0031] In one possible implementation, the path by which the server sends control commands to the terminal device is the same as the path by which the terminal device reports its location information.

[0032] Thirdly, embodiments of this application provide an electronic device, which includes: a memory for storing a program; and a processor for executing the program stored in the memory. When the program is executed by the processor, the processor executes a method as described in any of the possible implementations of the first aspect.

[0033] Fourthly, embodiments of this application provide a computer storage medium storing a computer program, the computer program including program instructions, and when the program instructions are executed by a processor, the processor performs a method as described in the first aspect and any possible implementation thereof. Attached Figure Description

[0034] Figure 1 This is a schematic diagram of a smart positioning system. Figure 2 A schematic diagram of a system architecture provided for an embodiment of this application; Figure 3 A schematic diagram illustrating the information interaction process between built-in modules of a terminal device, provided as an embodiment of this application; Figure 4 A flowchart illustrating a location information reporting method provided in an embodiment of this application; Figure 5 A flowchart illustrating another location information reporting method provided in this application embodiment; Figure 6 This is a schematic diagram of the structure of a location information reporting device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0035] The embodiments of this application will now be described with reference to the accompanying drawings.

[0036] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0037] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0038] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0039] The terms “component,” “module,” “system,” etc., used in this specification are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process and / or an execution thread, and components may be located on a single computer and / or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, and / or a network, such as the Internet interacting with other systems via signals).

[0040] First, some of the terms used in this application will be explained to facilitate understanding by those skilled in the art.

[0041] Please see Figure 1 , Figure 1 This is a schematic diagram of a smart positioning system. Figure 1 As shown, the terminal device 100 and the server 140 work together to achieve intelligent positioning. That is, the terminal device 100 can obtain location information and send the location information to the server 140; the server 140 analyzes and processes the received location information, and sends control commands to the terminal device 100 based on the analysis results to achieve intelligent control of the terminal device 100 (such as controlling the terminal device to perform operations such as powering on, powering off, and putting it into sleep mode).

[0042] For the location information reporting function of terminal device 100 in intelligent positioning, terminal device 100 needs to rely on a modular hardware architecture and the collaborative cooperation between different modules. The following will describe the modular composition of terminal device 100 and the information interaction between the modules in terminal device 100.

[0043] I. Module Composition of Terminal Equipment 100 The terminal device 100 consists of a host 110, a cellular module 120, and an antenna 130.

[0044] The host 110 includes a basic input / output system / embedded controller (BIOS / EC) 111 and a mobile network module 112. The BIOS / EC 111 controls the power state of the host 110 (e.g., power on, power off, hibernate, restart, screen lock, etc.) and data storage. The mobile network module 112 manages cellular communication and enables wide area network access.

[0045] Cellular module 120 includes a Linux system (software layer) and a modem (hardware layer). The Linux system serves as the platform for the terminal device 100 software, and it contains an IoT application 121 and a transmission control protocol / internet protocol stack (TCP / IP stack) 122. The IoT application 121 determines whether to upload location information and responds to operation commands sent by the server 140; the TCP / IP stack supports data transmission between different devices / networks. The modem is the physical layer communication hardware of cellular module 120, used to collaborate with the 5G protocol stack to achieve 5G communication. The hardware layer containing the modem also includes a positioning module 123 and a 5G protocol stack 124. The 5G protocol stack 124 supports 5G cellular network communication; the positioning module 123 can obtain location information based on Global Navigation Satellite System (GNSS) technology and location-based services (LBS) technology.

[0046] Antenna 130 is used to transmit and receive wireless signals. Terminal device 100 can send location information to server 140 through antenna 130, and can also receive control commands sent from server 140 through antenna 130.

[0047] II. Information exchange between host 110 and cellular module 120 When the terminal device 100 acquires location information and responds to control commands sent by the server 140, it involves the collaboration of the host 110 and the cellular module 120. The host 110 and the cellular module 120 can exchange information through an inter-integrated circuit (I2C) interface or a peripheral component interconnect express (PCIe) interface to meet the needs of different scenarios.

[0048] (1) I2C-based interaction The BIOS / EC 111 built into the host 110 can interact with the IoT application 121 in the cellular module 120 via I2C. For example, when the terminal device 100 receives a control command from the server 140, the IoT application 121 in the cellular module 120 can send the control command to the BIOS / EC 111 via I2C to control the host 110 to perform the operation corresponding to the control command.

[0049] (2) PCIe-based interaction The mobile network module 112 in the host 110 can interact with the modem of the cellular module 120 via PCIe. For example, when the positioning module 123 uses LBS positioning, the mobile network module 112 will transmit cellular network base station information to the positioning module 123 via PCIe, and then the positioning module 123 will determine the location information based on the cellular network base station information.

[0050] After determining the location information, the positioning module 123 sends the location information to the IoT application 121. The IoT application 121 transmits the location information to the TCP / IP protocol stack by calling the socket application programming interfaces (Socket APIs), and shares the location information with the 5G protocol stack through shared memory during the transmission process. The IoT application 121 sends the location information to the server 140 through the communication link corresponding to the 5G protocol stack.

[0051] However, when IoT applications on terminal devices report location information to the server via the communication link corresponding to the 5G protocol stack, factors such as geographical location can lead to high data consumption of the subscriber identity module (SIM) card, resulting in high operating costs for smart positioning. In some areas (such as enclosed laboratories and basements), there are weak cellular network signals and weak satellite signals, which may not only cause inaccurate location information determined by the positioning module, but may also prevent the location information from being transmitted to the server via the cellular network, resulting in low timeliness and accuracy of the location information.

[0052] In view of this, embodiments of this application provide a location information reporting method, apparatus, computer device, and storage medium. This method uploads location information via a wireless network when the terminal device is powered off. This not only overcomes the limitation that terminal devices cannot respond when powered off, providing more accurate and timely location information, but also avoids using cellular networks to upload location information, effectively reducing the cost of location information reporting.

[0053] The architecture of a location information reporting device applicable to the embodiments of this application is described below.

[0054] Please see Figure 2 , Figure 2 This is a schematic diagram of a system architecture provided for an embodiment of this application. Figure 2 As shown, the system includes a terminal device 200 and a server 250. The terminal device 200 is a location information reporting device.

[0055] Terminal device 200 is used to determine and send location information, and to respond to control commands sent by the server. Terminal device 200 may include, but is not limited to, smartphones, tablets, laptops, smart wearable devices, digital media players, etc., and this application does not impose any restrictions on this.

[0056] Server 250 is used to analyze and process location information. Server 250 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0057] The following will describe the composition of the terminal device 200 and the information interaction between the modules in the terminal device 200.

[0058] I. Composition of Terminal Equipment 200 The terminal device 200 includes a host 210, a first module 220, a second module 230, and an antenna 240. The first module 220 is a wireless network module used to connect to a wireless network. The second module 230 is a wireless wide area network (WWAN) module used to connect to a cellular network or for satellite communication. In this embodiment, the second module 230 can be considered a cellular module used to connect to a cellular network.

[0059] The host 210 includes a wireless local area network (WLAN) module 211, a BIOS / EC 212, and a mobile network module 213. The WLAN module 211 serves as the carrier for the terminal device 200 to connect to the wireless network and manages WLAN communication. The BIOS / EC can collaboratively control the power status of the host 210. The mobile network module 213 manages cellular communication, enabling wide area network (WAN) access.

[0060] The first module 220 includes a Lightweight IP protocol stack (LWIP) 221 and a scanning module 222. LWIP 221 supports protocols such as Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Internet Protocol version 4 (IPv4), and Internet Protocol version 6 (IPv6), and can establish TCP / UDP channels for information processing and communication. In other words, the terminal device 200 can communicate with the server 250 via TCP, UDP, and other protocols. The scanning module 222 is used to scan for wireless networks that the terminal device can connect to within a preset range.

[0061] The second module 230 includes a Linux system and a modem. The Linux system contains an IoT application 231 and a TCP / IP protocol stack 232. The IoT application 231 is used to determine the method for reporting location information, and the TCP / IP protocol stack 232 is used to implement data transmission between different devices / networks. The hardware layer containing the modem contains a 5G protocol stack 234 and a positioning module 233. The 5G protocol stack 234 is used to support 5G cellular network communication; the positioning module 233 can obtain location information based on GNSS technology, LBS technology, and Wi-Fi positioning system (WPS).

[0062] Antenna 240 is used to transmit and receive wireless signals. Terminal device 200 can send location information to server 250 through antenna 240, and can also receive control commands sent from server 250 through antenna 240.

[0063] II. Information Interaction between Host 210, First Module 220, and Second Module 230 During the location information reporting process, there are pairwise interactions between the host 210, the first module 220, and the second module 230. That is, the specific interaction scenarios include interactions between the host 210 and the first module 220, interactions between the host 210 and the second module 230, and interactions between the first module 220 and the second module 230.

[0064] In a scenario where the host 210 interacts with the first module 220, the WLAN module in the host 210 can conduct data service interactions with the first module 220 through the PCIE interface.

[0065] In scenarios where the host 210 interacts with the second module 230, data service interaction includes both via the I2C interface and the PCIe interface. Specifically, the BIOS / EC 212 built into the host 210 can interact with the IoT application 231 in the second module 230 via I2C. The mobile network module 213 in the host 210 can interact with the second module 230 via PCIe.

[0066] The first module 220 and the second module 230 are hardware-integrated, and bidirectional communication can be achieved using a universal asynchronous receiver / transmitter (UART) interface. Please refer to [link / reference]. Figure 3 , Figure 3 This is a schematic diagram illustrating the information interaction process between built-in modules of a terminal device, provided as an embodiment of this application. Figure 3 As shown, the first and second modules can transmit location information by calling the UART interface. After acquiring the location information, the first module sends the location information to LWIP via AT commands. LWIP receives the location information and processes it. After LWIP completes the processing, the IoT application sends the processed location information to the server via the corresponding link of the wireless network. After acquiring the location information, the second module dials the modem, completes cellular network access authentication, and connects to the cellular network. The IoT application sends the location information to the server via the corresponding link of the cellular network through the socket API. The IoT application uses the IoT protocol stack to achieve intelligent switching between the wireless network link and the cellular network link.

[0067] The location information reporting method provided in this application embodiment is described below. This method can be applied to, for example... Figure 2 The system architecture shown.

[0068] Please see Figure 4 , Figure 4 This is a flowchart illustrating a location information reporting method provided in an embodiment of this application. Figure 4As shown, the location information reporting method may include, but is not limited to, the following steps: S401, the server sends a location request message to the terminal device. Correspondingly, the terminal device receives the location request message.

[0069] The server is used to request and process location information from terminal devices. A location request message is used to request the location information from a terminal device.

[0070] In one possible implementation, the terminal device manufacturer can send a location request message to the terminal device via a server to obtain the terminal device's location information in necessary scenarios (such as when the terminal device is lost). If the location information reported by the terminal device does not belong to a preset area, the terminal device can be remotely controlled, thereby reducing the risk of privacy information leakage after the terminal device is lost.

[0071] S402, the terminal device responds to the location request message and determines the power status.

[0072] The terminal device is used to acquire and transmit location information. The terminal device includes a first module, a second module, and a host. The power status of the terminal device is the same as the power status of the host, including power-on and power-off states. The first module is used to connect to the wireless network, and the second module is used to connect to the cellular network.

[0073] By clearly identifying the power status of the host, the terminal device can provide accurate decision-making basis for subsequent processes, avoid invalid operations (such as calling the host when it is powered off), and thus effectively improve the reporting efficiency of location information and reduce the extra energy consumption caused by invalid operations of the terminal device.

[0074] S403, The terminal device acquires the first scan result when the power is off.

[0075] The first scan result is used to indicate whether there is a wireless network that the terminal device can connect to within a preset range.

[0076] In one possible implementation, when the terminal device is powered off, the first module of the terminal device responds to the location request message and initiates a scanning process to scan all wireless networks within a preset range. Subsequently, the terminal device selects wireless networks belonging to a network whitelist from the scan results as connectable wireless networks, forming the first scan result. The network whitelist can be a preset list built into the terminal device (including wireless network accounts and corresponding passwords). Optionally, the network whitelist can also be a list of networks detected through security checks by the terminal device.

[0077] By finding connectable wireless networks, terminal devices can avoid directly uploading location information using cellular signals, reducing SIM card data usage and thus lowering the cost of location reporting. Connectable wireless networks also provide corresponding signal characteristics (including media access control address (MAC) and signal strength), allowing terminal devices to perform wireless network positioning based on these characteristics and obtain their location information. This is beneficial for terminal devices to obtain accurate location information in environments with weak GNSS or cellular network signals.

[0078] S404, if the first scan result indicates that there is at least one connectable wireless network within a preset range, the location information of the terminal device is obtained.

[0079] In one possible implementation, the terminal device prioritizes satellite positioning (i.e., GNSS positioning) via the second module, calculating its location information using the received GNSS signals. If the GNSS signal is blocked (e.g., the terminal device is in a confined space like a laboratory or basement), or if GNSS signal transmission is interfered with, the terminal device cannot determine its location via satellite positioning. In this case, the terminal device switches to the first module for wireless network positioning, calculating its location information based on the signal characteristics of the connected wireless network. If the wireless network signal is weak, or if there is no wireless network connection, the terminal device cannot determine its location information via wireless network positioning. In this case, the terminal device switches to the second module for cellular positioning (i.e., LBS positioning), calculating its location information based on the received cellular network signal characteristics (e.g., cellular base station number, cellular signal propagation delay, etc.). Accordingly, after acquiring the location information, the terminal device transmits it to the IoT application. The IoT application determines the location information reporting method based on the IoT protocol stack. Specifically, when the terminal device is connected to a wireless network, it prioritizes sending its location information to the server via the wireless network. When the wireless network signal is weak, or there is no wireless network to connect to within the preset range, the terminal device switches to the cellular network and sends its location information to the server via the cellular network.

[0080] By employing multiple positioning methods, terminal devices can ensure the accuracy of location information not only in areas with weak GNSS and cellular network signals, but also in areas with weak wireless network signals (such as outdoor scenarios). This improves the positioning success rate across various scenarios and avoids the limitations of single positioning technologies. Automatically switching positioning methods in different scenarios allows for dynamic allocation of terminal device resources (such as data traffic), effectively reducing the cost of terminal devices.

[0081] S405, the terminal device sends location information to the server via the first wireless network. Correspondingly, the server receives the location information.

[0082] The first wireless network is any one of the connectable wireless networks indicated by the first scan result.

[0083] In one possible implementation, the terminal device determines the first wireless network based on the signal strength of the connectable wireless networks. For example, the terminal device selects the wireless network with the best signal strength from the wireless networks indicated by the first scan result as the first wireless network.

[0084] Once the terminal device successfully connects to the first wireless network, the IoT application determines, based on the IoT protocol stack, to send location information to the server via the wireless network. The terminal device, through the IoT application, calls the UART interface and transmits the location information to the LWIP in the first module based on AT commands. The LWIP processes the location information and sends the processed location information to the server via the communication link corresponding to the first wireless network.

[0085] If the first scan result indicates that there is no wireless network to connect to within the preset range, the terminal device will transmit the acquired location information to the Internet of Things application, and then send the location information to the server through the accessed cellular network.

[0086] In one possible implementation, after the terminal device transmits location information to the IoT application, the terminal device uses the IoT application to call Socket APIs to transmit the location information to the TCP / IP protocol stack, and shares the location information with the 5G protocol stack through memory sharing during the transmission process; the IoT application of the terminal device sends the location information to the server through the communication link corresponding to the 5G protocol stack.

[0087] Correspondingly, the server can analyze and process the received location information, and generate control commands based on the analysis results (such as power-on commands, power-off commands, hibernation commands, restart commands, screen lock commands, data erase commands, etc.). The server sends the control commands to the terminal device through the path reported by the location information.

[0088] For example, assuming that the server generates a power-off command based on the analysis results of the received location information, the server can send the power-off command to the terminal device via the first wireless network. Correspondingly, upon receiving the power-off command, the IoT application in the terminal device sends the power-off command to the host via I2C; the host, in response to the power-off command, updates its power state from powered on to powered off.

[0089] As can be seen, in this embodiment, obtaining location information through multiple positioning methods helps improve the accuracy of the location information. When the terminal device is connected to a wireless network, the terminal device prioritizes sending location information to the server via the wireless network. This not only avoids location information transmission failures due to weak cellular signals but also reduces the cost of location information reporting.

[0090] Please see Figure 5 , Figure 5 This is a flowchart illustrating another location information reporting method provided in an embodiment of this application.

[0091] like Figure 5 As shown, this location information reporting method is applied to terminal device 200. This location information reporting method may include, but is not limited to, the following steps: S501, determine if the host's power status is off.

[0092] In one possible implementation, the terminal device, in response to receiving a location request message from the server, determines the power state of the host. If the host is powered on, step S502 is executed; if the host is powered off, step S506 is executed.

[0093] In another possible implementation, the terminal device can periodically report its location information to the server at preset intervals to achieve intelligent positioning. After the location information reporting process is initiated, the terminal device determines the power status of the host. If the host is powered on, step S502 is executed; if the host is powered off, step S506 is executed.

[0094] When a terminal device responds to a location request message, it sends its location information to the server. This facilitates quick location and remote control of the terminal device in necessary scenarios (such as when the device is lost), reducing the risk of data leakage. Periodically sending location information to the server allows for the acquisition of real-time location data, improving the accuracy of location-related analysis.

[0095] When the host is not in a powered-off state: S502 determines whether the terminal device has been connected to the second wireless network.

[0096] The second wireless network is a wireless network that the terminal device, which is powered on, has already connected to within a preset range. If the terminal device is already connected to the second wireless network, proceed to step S503; if the terminal device is not connected to the second wireless network, proceed to step S506.

[0097] When the terminal device is already connected to the second wireless network: S503, the first module reuses the communication link corresponding to the second wireless network.

[0098] The communication link corresponding to the second wireless network includes the physical transmission link and the logical protocol. The physical transmission link includes hardware components (such as routers, radio frequency circuits, etc.) and transmission media (such as radio waves); the logical protocol includes TCP / IP protocol, wireless network link layer protocol, etc.

[0099] Multiplexing a communication link means that multiple devices, or multiple modules built into a device, share a single communication link. In other words, the first module shares the transmission link of the second wireless network with the other modules built into the terminal device and other devices, and reports location information through the transmission link of the second wireless network.

[0100] S504, the terminal device obtains location information.

[0101] The implementation method of step S504 can be found in the following document: Figure 4 The diagram shows S404 and its description is presented above. The following examples, 1 and 2, illustrate the method by which a terminal device obtains location information.

[0102] Example 1: Suppose the terminal device is in an outdoor park and needs to periodically send its location information to the server. After the location information reporting process is initiated, the terminal device first uses the second module for satellite positioning to determine its location information based on the received satellite signals.

[0103] Example 2: Assume the terminal device is in an underground laboratory. The underground laboratory cannot receive satellite or cellular signals, but a wireless network exists that the terminal device can connect to. After the location information reporting process is initiated, the terminal device first uses the second module for satellite positioning. If the terminal device does not receive a satellite signal within a preset waiting period, it automatically switches to the first module for wireless network positioning. The location information is determined by the MAC address and signal strength of the connectable wireless network.

[0104] S505, the first module sends location information to the server via the second wireless network.

[0105] The implementation method of step S505 can be found in the following reference: Figure 4 The S405 shown and the previous description of S405 will not be repeated here.

[0106] When the terminal device is not connected to the second wireless network, or when the host is powered off: S506, Does the first module scan for a connectable wireless network?

[0107] If the host of the terminal device is powered off, the first module starts the scanning process and obtains the first scan result, which is the same as the scanning process when the host of the terminal device is powered off and the first module starts the scanning process and obtains the first scan result. That is to say, the implementation of step S506 can be found in [reference needed]. Figure 4 The S403 shown and the previous description of S403 will not be repeated here.

[0108] If the first scan result indicates that there is at least one connectable wireless network within a preset range, step S507 is executed; if the first scan result indicates that there is no connectable wireless network within the preset range, step S510 is executed.

[0109] If the first scan result indicates that at least one connectable wireless network exists within a preset range: S507, the first module connects to the first wireless network.

[0110] After the first module connects to the first wireless network, the terminal device can report its location information through the first wireless network, avoiding reporting through the cellular network. This helps reduce the bandwidth consumption caused by the location information reporting server and reduces the cost of location information reporting.

[0111] S508, the terminal device obtains location information.

[0112] S509, the first module sends location information to the server through the first wireless network.

[0113] The implementation methods for steps S508-S509 can be found in the following reference: Figure 4 The S404-S405 shown and the description of S404-S405 above will not be repeated here.

[0114] If the first scan result indicates that there is no connectable wireless network within the preset range: S510, the second module connects to the cellular network.

[0115] In situations where the wireless network signal is weak or there is no wireless network to connect to, the terminal device connects to the cellular network via the second module, enabling it to send location information to the server. This avoids location information reporting failures due to the lack of a wireless network connection, thus improving the success rate of location information reporting.

[0116] S511, the terminal device obtains location information.

[0117] The implementation method of step S511 can be found in the following: Figure 4 The S404 shown and the previous description of S404 will not be repeated here.

[0118] S512, the second module sends location information to the server through the accessed cellular network.

[0119] In one possible implementation, the terminal device transmits location information to the TCP / IP protocol stack by calling Socket APIs through an IoT application, and shares the location information with the 5G protocol stack through memory sharing during the transmission process; the IoT application of the terminal device sends the location information to the server through the communication link corresponding to the 5G protocol stack.

[0120] As can be seen, in this embodiment, the terminal device can automatically switch the location information reporting method based on the application scenario, which helps to reduce the cost of location information reporting and improve the flexibility of location information reporting. The terminal device can report location information through wireless networks and cellular networks. The redundancy of the two networks improves the success rate of location information reporting. The terminal device determines location information through satellite positioning, wireless network positioning, and cellular positioning. Multiple positioning methods can reduce positioning errors caused by positioning blind spots (such as basements, laboratories, and other enclosed spaces).

[0121] The location information reporting device provided in the embodiments of this application is described below.

[0122] Please see Figure 6 , Figure 6 This is a schematic diagram of a location information reporting device provided in an embodiment of this application. Figure 6 As shown, the location information reporting device includes a transceiver unit 610 and a processing unit 620.

[0123] The transceiver unit 610 is configured to receive a location request message from a server; the location request message is used to request location information of the terminal device; the processing unit 620 is configured to, in response to the location request message, determine the power state of the terminal device, including a power-on state or a power-off state; if the power state of the terminal device is power-off, acquire a first scan result; the first scan result is used to indicate whether there is a connectable wireless network within a preset range; if the first scan result indicates that there is at least one connectable wireless network within the preset range, acquire the location information of the terminal device; the transceiver unit 610 is also configured to send the location information to the server; the first wireless network is any one of the at least one connectable wireless networks.

[0124] In one possible implementation, the terminal device includes a host, a first module, and a second module; the power state of the terminal device is the same as that of the host; the first module is used to connect to a wireless network; and the second module is used to connect to a cellular network.

[0125] In one possible implementation, the processing unit 620 is further configured to acquire the location information of the terminal device when the first scan result indicates that there is no wireless network to connect to within a preset range; and send the location information to the server through the cellular network accessed by the second module.

[0126] In one possible implementation, the processing unit 620 is further configured to acquire the location information of the terminal device when the terminal device is powered on and has been connected to the second wireless network; and send the location information to the server through the second wireless network.

[0127] In one possible implementation, the processing unit 620 is further configured to acquire a second scan result when the terminal device is powered on and not connected to a wireless network; the second scan result is used to indicate whether there is a wireless network that the terminal device can connect to within a preset range; when the second scan result indicates that there is at least one connectable wireless network within the preset range, acquire the location information of the terminal device; and send the location information to the server through a third wireless network; the third wireless network is any one of the at least one connectable wireless networks.

[0128] In one possible implementation, the processing unit 620 is further configured to acquire the location information of the terminal device when the second scan result indicates that there is no wireless network to connect to within a preset range; and send the location information to the server through the cellular network accessed by the second module.

[0129] In one possible implementation, the processing unit 620 is further configured to determine the location information of the terminal device by performing satellite positioning through the second module; or, if determining the location information of the terminal device by satellite positioning fails, determining the location information of the terminal device by performing wireless network positioning through the first module; or, if determining the location information of the terminal device by wireless network fails, determining the location information of the terminal device by performing cellular positioning through the second module.

[0130] In one possible implementation, the transceiver unit 610 is also used to receive control instructions from the server; the control instructions are operation instructions determined by the server based on the analysis results after analyzing and processing the location information; and the host executes the operation corresponding to the control instructions.

[0131] In one possible implementation, the path by which the server sends control commands to the terminal device is the same as the path by which the terminal device reports its location information.

[0132] For a description of the technical effects of the location information reporting device and any of its possible implementations, please refer to the description of the technical effects of the foregoing method embodiments; further details will not be repeated here.

[0133] According to the embodiments of this application, Figure 6 The various units in the device shown can be individually or entirely combined into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This can achieve the same operation without affecting the technical effect of the embodiments of this application. The above units are based on logical function division. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit.

[0134] This application also provides a computer device; please refer to [link / reference]. Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application.

[0135] like Figure 7 As shown, the computer device may include one or more processors 710, one or more memories 730, one or more communication interfaces 720, and a bus 740, wherein the processors 710, memories 730, and communication interfaces 720 are connected via the bus 740. The computer device may be the location information reporting device described above.

[0136] The memory 730 is used to store a program; the processor 710 is used to execute the program stored in the memory. When the program is executed, the processor 710 performs the method as described in any of the possible implementations of the control method.

[0137] It should be understood that, in the embodiments of this application, the memory 730 mentioned above includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CDROM), as well as external memory other than computer memory and processor cache. A portion of the memory 730 may also include non-volatile random access memory. For example, the memory 730 may also store device type information.

[0138] The processor 710 described above can be one or more central processing units (CPUs). If the processor 710 is a CPU, it can be a single-core CPU or a multi-core CPU. The processor 710 can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0139] The steps performed in the foregoing embodiments can be based on the above. Figure 7 The computer device shown is implemented in a way that the processor 710 can execute any of the optional implementations of the control method provided in this application, as described in the embodiments, or it can execute the implementation of the location information reporting device described in this application. Specifically, the processor 710 can implement... Figure 6 The processing unit 620 in the location information reporting device shown herein performs the following functions. The communication interface 720 enables... Figure 6 The transceiver unit 610 in the location information reporting device shown herein has the following functions. The memory 730 can provide a cache when the processor 710 executes the implementation of the location information reporting device described in the embodiments of this application, and can also store the computer programs required by the processor 710 to execute the implementation of the location information reporting device described in the embodiments of this application.

[0140] This application also provides a computer storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, enable the processor to implement the above-mentioned functions. Figures 4-5 The method shown.

[0141] This application also provides a computer program product, which includes: instructions or a computer program; when the instructions or the computer program are executed, the above-mentioned functions can be achieved. Figures 4-5 The method shown.

[0142] This application also provides a chip, which includes a processor. The processor executes instructions, enabling the chip to achieve the aforementioned... Figures 4-5The method shown.

[0143] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by hardware related to computer programs. The computer programs can be stored in computer storage media, and when executed, they can implement the processes of the above method embodiments. The aforementioned computer storage media include various media capable of storing computer program code, such as read-only memory (ROM) or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for reporting location information, characterized in that, The method includes: Receive a location request message from the server; the location request message is used to request the location information of the terminal device. In response to the location request message, the power status of the terminal device is determined, including a power-on state or a power-off state. When the power state of the terminal device is off, a first scan result is obtained; the first scan result is used to indicate whether there is a wireless network that the terminal device can connect to within a preset range; If the first scan result indicates that there is at least one connectable wireless network within the preset range, the location information of the terminal device is obtained; The location information is sent to the server via a first wireless network; the first wireless network is any one of the at least one connectable wireless networks.

2. The method as described in claim 1, characterized in that, The terminal device includes a host, a first module, and a second module; the power state of the terminal device is the same as the power state of the host; the first module is used to connect to a wireless network; and the second module is used to connect to a cellular network.

3. The method as described in claim 2, characterized in that, The method further includes: If the first scan result indicates that there is no connectable wireless network within the preset range, obtain the location information of the terminal device; The location information is sent to the server through the cellular network accessed by the second module.

4. The method as described in claim 2, characterized in that, The method further includes: When the terminal device is powered on and has been connected to the second wireless network, the location information of the terminal device is obtained. The location information is sent to the server via the second wireless network.

5. The method as described in claim 4, characterized in that, The method further includes: When the terminal device is powered on and not connected to a wireless network, a second scan result is obtained; the second scan result is used to indicate whether there is a wireless network that the terminal device can connect to within a preset range. If the second scan result indicates that there is at least one connectable wireless network within the preset range, the location information of the terminal device is obtained; The location information is sent to the server via a third wireless network; the third wireless network is any one of the at least one connectable wireless networks.

6. The method as described in claim 5, characterized in that, The method further includes: If the second scan result indicates that there is no connectable wireless network within the preset range, the location information of the terminal device is obtained; The location information is sent to the server through the cellular network accessed by the second module.

7. The method according to any one of claims 2-6, characterized in that, The step of obtaining the location information of the terminal device includes: The second module performs satellite positioning to determine the location information of the terminal device; or... If determining the location information of the terminal device via satellite positioning fails, the location information of the terminal device is determined via wireless network positioning using the first module; or... If the location information of the terminal device fails to be determined through the wireless network, the second module performs cellular positioning to determine the location information of the terminal device.

8. A location information reporting device, characterized in that, The device includes: The transceiver unit is used to receive a location request message from the server; the location request message is used to request the location information of the terminal device. The processing unit is configured to, in response to the location request message, determine the power status of the terminal device, the power status including a power-on state or a power-off state. The processing unit is further configured to acquire a first scan result when the power state of the terminal device is off; the first scan result is used to indicate whether there is a wireless network that the terminal device can connect to within a preset range. The processing unit is further configured to obtain the location information of the terminal device when the first scan result indicates that there is at least one connectable wireless network within the preset range; The transceiver unit is also used to send the location information to the server; the first wireless network is any one of the at least one connectable wireless networks.

9. A computer device, characterized in that, include: Memory, processor; where: The memory is used to store computer programs, the computer programs including program instructions; The processor is configured to invoke the program instructions to cause the computer device to implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-7.