Positioning method and related apparatus
By establishing a local area network connection between the terminal device and peripheral devices, and using an external receiver to extend the range of GPS data reception and save it to the database, the problem of the terminal device being unable to locate was solved, and high-precision positioning was achieved in the absence of signal and network connection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- POWER IDEA TECH (SHENZHEN) CO LTD
- Filing Date
- 2023-08-23
- Publication Date
- 2026-07-21
AI Technical Summary
When the terminal device cannot obtain GPS data, the existing technology has a problem of not being able to obtain location information when establishing a wireless connection with surrounding devices, resulting in positioning failure.
Establish a local area network connection between the terminal device and peripheral devices, determine whether GPS data is received, and if not, expand the local area network range to receive GPS data by pre-binding an external receiver and save it to the database. Based on the GPS data in the database, determine the terminal device's own GPS data.
In the absence of signal and network connections, GPS data from surrounding devices is received via an external receiver, improving the positioning accuracy of the terminal device.
Smart Images

Figure CN117098064B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of equipment positioning technology, and in particular relates to a positioning method and related devices. Background Technology
[0002] Positioning of terminal devices requires GPS data from communication satellites. When GPS data is unavailable, positioning can be achieved via a network connection. This involves connecting the terminal device to a network relay station, calculating the network strength of the terminal device, and then determining the distance between the terminal device and the relay station, thus enabling device positioning.
[0003] When a terminal device cannot connect to the network, related technologies employ wireless connections such as Wi-Fi or Bluetooth to connect to devices within a nearby range. This establishes a signal transmission connection between the terminal device and the surrounding devices, transmitting their location data to the terminal device for positioning. However, the range of wireless connections is relatively small, and some surrounding devices within that range may be unable to obtain location information, thus preventing the terminal device from achieving positioning. Summary of the Invention
[0004] This application provides a positioning method and related apparatus, which aims to solve the problem in the related art of being unable to obtain GPS data from surrounding terminal devices.
[0005] The first aspect of this application provides a positioning method applied to a terminal device, comprising: establishing a local area network connection between the terminal device and surrounding terminal devices; determining whether GPS data sent by the surrounding terminal devices within the local area network is received; if no GPS data is received from the surrounding terminal devices, receiving the GPS data sent by the surrounding terminal devices through a pre-bound external receiver in an activated state; saving the GPS data received through the external receiver to the database of the terminal device; determining the terminal device's own GPS data based on all the GPS data saved in the database, and then transmitting it to the system firmware of the terminal device.
[0006] A second aspect of this application provides a positioning device applied to a terminal device, comprising: a network module for establishing a local area network connection between the terminal device and surrounding terminal devices; a judgment module for determining whether to receive GPS data sent by the surrounding terminal devices within the local area network; a receiving module for receiving GPS data sent by the surrounding terminal devices through a pre-bound external receiver in an activated state if no GPS data is received; a storage module for storing the GPS data received through the external receiver to a database of the terminal device; and a determination module for determining the terminal device's own GPS data based on all GPS data stored in the database, and then transmitting it to the system firmware of the terminal device.
[0007] A third aspect of this application provides a terminal device, including a memory and a processor, wherein: the memory is used to store computer programs and data; the processor is used to execute the computer program stored in the memory; and when the processor executes the computer program, it implements the steps of the positioning method provided in the first aspect of this application.
[0008] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the steps of the positioning method provided in the first aspect of this application.
[0009] As can be seen from the above, according to the positioning method and related apparatus provided in this embodiment, a local area network connection is established between the terminal device and surrounding terminal devices; it is determined whether GPS data sent by surrounding terminal devices within the local area network is received; if no GPS data is received, the GPS data sent by surrounding terminal devices is received through a pre-bound external receiver in an activated state; the GPS data received through the external receiver is saved to the terminal device's database; based on all the GPS data saved in the database, the terminal device's own GPS data is determined and then transmitted to the terminal device's system firmware. Through the implementation of this application's solution, when the terminal device has no signal connection or network connection, it can determine its own GPS data based on the GPS data sent by surrounding terminal devices received through an external receiver, thereby greatly improving the positioning accuracy of the terminal device. Attached Figure Description
[0010] Figure 1 This is a basic flowchart illustrating the positioning method provided in the first embodiment of this application;
[0011] Figure 2 A detailed flowchart illustrating the positioning method provided in the second embodiment of this application;
[0012] Figure 3 This is a schematic diagram of the program modules of the positioning device provided in the third embodiment of this application;
[0013] Figure 4 This is a schematic diagram of the structure of the terminal device provided in the fourth embodiment of this application. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0015] The Global Positioning System (GPS) is a high-precision radio navigation positioning system based on artificial Earth satellites. Terminal devices can obtain accurate geographical location, vehicle speed, and precise time information by acquiring GPS data.
[0016] The terminal device and surrounding terminal devices can be identical devices with the same functions. Multiple terminal devices can connect to each other via signals and have the ability to transmit data. During use, the terminal device needs to obtain location information to achieve positioning.
[0017] When a terminal device cannot obtain location information, such as when it cannot connect to the network or is disconnected from a communication satellite, it can establish a connection with nearby terminal devices. The connection can be wireless, such as Bluetooth or Wi-Fi, or wired. The terminal device receives GPS data from the nearby terminal devices for its own positioning.
[0018] Therefore, when the distance between the terminal device and surrounding terminal devices is far, the connection signal between the terminal device and surrounding terminal devices is weak, and the terminal device and surrounding terminal devices may be unable to connect, so the terminal device cannot receive GPS data from the surrounding terminal devices. When the surrounding terminal devices can establish a connection with the terminal device, the distance between the terminal device and surrounding terminal devices is relatively short, but the surrounding terminal devices in nearby locations may also be unable to obtain location information, which still results in the terminal device and surrounding terminal devices being unable to locate.
[0019] To address the issue of inability to locate terminal devices and peripheral terminal devices, the first embodiment of this application provides a positioning method applied to terminal devices. Please refer to... Figure 1 The positioning method includes the following steps:
[0020] Step 101: Establish a local area network connection between the terminal device and surrounding terminal devices.
[0021] Specifically, in this embodiment, the terminal device can establish a local area network (LAN) connection with surrounding terminal devices by setting up a wireless LAN through a router or switch, or by directly connecting via wireless means such as Bluetooth or Wi-Fi. The LAN established by the terminal device has a preset range, and the terminal device can simultaneously establish connections with multiple surrounding terminal devices within the LAN. The terminal device can simultaneously receive GPS data from surrounding terminal devices within the LAN range.
[0022] Step 102: Determine whether GPS data has been received from surrounding terminal devices within the local area network.
[0023] In this embodiment, after the terminal device establishes a local area network, it detects whether there are any nearby terminal devices that can be connected within the local area network. If there are no nearby terminal devices that can be connected, the terminal device cannot receive GPS data sent by the nearby terminal devices. If there are nearby terminal devices that can be connected, it is necessary to determine whether the nearby terminal devices can obtain GPS data. If the nearby terminal devices cannot obtain GPS data, the nearby terminal devices cannot transmit GPS data to the terminal device, and the terminal device cannot achieve positioning.
[0024] Step 103: If GPS data is not received from surrounding terminal devices, the GPS data sent by surrounding terminal devices is received through a pre-bound external receiver that is in the enabled state.
[0025] Specifically, the terminal device is pre-bonded with an external receiver. This external receiver extends the local area network (LAN) range established by the terminal device. The external receiver has both active and active states. When active, it connects to the terminal device via wired or wireless connection. The external receiver amplifies the signal from the terminal device, thus expanding the LAN range. Even when the terminal device does not receive GPS data from nearby devices, the expanded LAN can connect to more nearby devices. The terminal device can then connect to nearby devices that have acquired GPS data, enabling location tracking of the terminal device.
[0026] In one embodiment, the external receiver may first establish a connection with the surrounding terminal device, and the external receiver receives the GPS data from the surrounding terminal device and then transmits it to the terminal device.
[0027] In another embodiment, after the terminal device extends the local area network range via an external receiver, it directly receives GPS data from surrounding terminal devices.
[0028] Step 104: Save the GPS data received through the external receiver to the database of the terminal device.
[0029] Specifically, in this embodiment, the terminal device's database is used to store all data received by the terminal device, including GPS data received from surrounding terminal devices. The database organizes, stores, and manages the data; it is a large, organized, shareable, and uniformly managed collection of data stored permanently in a computer. The terminal device can further process the data acquired from the database to realize its functions.
[0030] Step 105: Determine the terminal device's own GPS data based on all the GPS data stored in the database, and then transmit it to the terminal device's system firmware.
[0031] In this embodiment, the GPS data saved to the database also includes GPS data acquired by the terminal device. During movement, the terminal device can intermittently connect to communication satellites to obtain GPS data, or intermittently connect to a mobile network to obtain GPS data. The acquired GPS data is entered into the database and compared with GPS data from surrounding terminal devices received by an external receiver. Based on the comparison result, the terminal device's own GPS data is selected.
[0032] Furthermore, for GPS data from multiple peripheral terminal devices within the local area network received by an external receiver, it is also necessary to determine the terminal device's own GPS data by comparing the time information of the GPS data from multiple peripheral terminal devices.
[0033] The terminal device's own GPS data is transmitted to the terminal device's system firmware, i.e., the terminal device's driver program. After receiving the GPS data, the driver program enters the calculation program, inputs results such as positioning coordinates and real-time location display, and outputs the results, which can be sent to the terminal device's APP and displayed on the terminal device's display device, making it convenient for users to obtain their location. The terminal device can also use GPS data for natural monitoring, such as detailed data on weather information and geographic altitude.
[0034] In an optional embodiment of this example, before the step of receiving target GPS data sent by a surrounding terminal device through an external receiver in the startup state, the method further includes: outputting startup prompt information corresponding to the external receiver; wherein the startup prompt information is used to instruct the user to perform a startup operation on the external receiver so that the external receiver enters the startup state.
[0035] If the terminal device cannot connect to surrounding terminal devices, or if the connected surrounding terminal devices cannot obtain GPS data, the terminal device needs to connect to an external receiver. The external receiver can be a signal amplifier or a gateway device. When it is a signal amplifier, the external receiver can expand the range of the local area network established by the terminal device. When it is a gateway device, the external receiver can act as a signal relay, that is, the local area network established by the gateway device is connected to the local area network established by the terminal device, which can also expand the range of the local area network established by the terminal device.
[0036] When the external receiver is not activated, the terminal device includes a prompt module. The prompt module is used to issue a connection failure message. The prompt message can be in the form of sound, light, vibration, etc., to remind the user to activate the external receiver. When the user receives the prompt message from the terminal device, he or she turns on the external receiver to activate it. The external receiver can then expand the local area network range established by the terminal device, thereby enabling the terminal device to establish connections with surrounding terminal devices at greater distances.
[0037] The external receiver can establish a pre-connection with the terminal device. The pre-connection method can save the basic information of the external receiver in the terminal device wirelessly. When the external receiver is close to the terminal device at a certain distance, the external receiver will automatically establish a connection with the terminal device. The user will receive a prompt message from the terminal device and turn on the external receiver connected to the terminal device.
[0038] Specifically, the terminal device may have multiple interfaces for connecting external receivers, such as USB-A, USB-C, 3.5mm, 16pin, 13pin, etc. The external receiver may have multiple different power modes or function modes corresponding to the multiple interface types, or the terminal device may connect to multiple external receivers with different interfaces to suit different environmental scenarios.
[0039] In an optional embodiment of this example, before establishing a local area network connecting the terminal device and peripheral devices, the method further includes: determining whether the terminal device is connected to the network; if the terminal device is not connected to the network, then establishing a local area network connection between the terminal device and peripheral terminal devices; if the terminal device is connected to the network, then obtaining network positioning data corresponding to the terminal device, and injecting corresponding GPS data into the database based on the network positioning data.
[0040] The terminal device should first check if it can connect to the network. If it cannot connect, proceed to step 101. If it connects, the terminal device can achieve positioning by connecting to the network. The terminal device connects to the mobile network through a signal base station. The network signal strength of the terminal device is related to the distance to the signal base station; the farther the terminal device is from the signal base station, the weaker the network signal strength, and the closer the terminal device is to the signal base station, the stronger the network signal strength. The signal base station has positioning data. The distance between the signal base station and the terminal device is calculated based on the network signal strength of the terminal device, thereby obtaining the network positioning data of the terminal device.
[0041] Furthermore, the network positioning data includes network information and location information, wherein the location information is output as GPS data, thereby converting the network positioning data of the terminal device into GPS data and injecting it into the database.
[0042] In one embodiment, if the terminal device is connected to a network, it can also connect to other nearby devices that are connected to GPS signals and networks, and transmit GPS data to the terminal device through a cloud server.
[0043] In an optional embodiment of this example, before the step of determining whether the terminal device is connected to the network, the method further includes: obtaining the location information of the terminal device; determining whether the location information includes GPS data; if the location information includes GPS data, then saving the GPS data in the location information to a database; if the location information does not include GPS data, then performing the step of determining whether the terminal device is connected to the network.
[0044] The terminal device has a built-in positioning module for establishing a signal connection with a communication satellite. The communication satellite captures the signal emitted by the terminal device, locates the signal source, and obtains the terminal device's location information by combining the satellite's position data. In other embodiments, the terminal device can obtain positioning information wirelessly via Bluetooth or Wi-Fi. If a GPS positioning device is present in the vicinity, the terminal device can obtain its location information by connecting to the GPS positioning device.
[0045] Furthermore, if the terminal device needs to transmit GPS data to other devices, it can do so by connecting to a communication satellite. After receiving the GPS data, the communication satellite can upload it to the cloud via the network. Alternatively, in other implementations, the terminal device's GPS data can be transmitted to a GPS positioning device, and the networked GPS positioning device can transmit the terminal device's GPS data to more devices.
[0046] In one optional embodiment of this example, the step of receiving GPS data sent by a peripheral terminal device through a pre-bonded external receiver in the activated state includes: determining whether the pre-bonded external receiver in the activated state has received GPS data sent by the peripheral terminal device; if the pre-bonded external receiver in the activated state has not received GPS data sent by the peripheral terminal device, then expanding the receiving range of the pre-bonded external receiver in the activated state until it receives GPS data sent by the peripheral terminal device.
[0047] Pre-bound external receivers can be used to expand the local area network (LAN) range established by the terminal device. The external receiver is preset with a certain expansion ratio. If there are no surrounding terminal devices within the expanded LAN range, or if there are surrounding terminal devices that cannot obtain GPS data, the external receiver needs to further expand the LAN range established by the terminal device. With a larger range, more surrounding terminal devices can be received. The range is expanded to the point where GPS data sent by surrounding terminal devices can be received. This setting can ensure that the terminal device can always receive GPS data from surrounding terminal devices, which is beneficial for the positioning of the terminal device.
[0048] The external receiver can automatically extend the local area network (LAN) established by the terminal device; that is, when the external receiver detects that it cannot receive GPS data from surrounding terminal devices, it automatically extends the LAN range. In another embodiment, the external receiver can manually extend the LAN range.
[0049] Furthermore, multiple external receivers and terminal devices can be connected through the aforementioned multiple interfaces. The external receivers have different expansion capabilities, meaning that users can expand the local area network (LAN) established by the terminal device to different ranges by changing different types of interfaces. For example, connecting to an external receiver with a USB-C interface creates a LAN with a first range, while connecting to an external receiver with a 16-pin interface creates a LAN with a second range. The second range is larger than the first range and can be expanded to a greater extent. By changing the interface, users can greatly facilitate the operation of expanding the LAN range of the terminal device.
[0050] Specifically, the external receiver can be set to multiple levels to gradually expand the range of the local area network established by the terminal device. As the range of the local area network continues to expand, the number of peripheral terminal devices that can be received also increases. However, since the expansion of the local area network range is a step-by-step expansion, that is, the expansion of the local area network range is a direct expansion from a certain range to a larger range, the increase in the number of peripheral terminal devices will not be a sequential increase, but rather multiple peripheral terminal devices will be connected at once, among which a certain number of peripheral terminal devices will obtain GPS data.
[0051] To address the issue of excessive GPS data acquired by multiple peripheral terminal devices, in one embodiment of this application, the step of determining the terminal device's own GPS data based on all GPS data stored in the database further includes: obtaining the timestamps of all GPS data stored in the database; selecting the target GPS data whose timestamp is closest to the reference clock time from all GPS data; and determining the target GPS data as the terminal device's own GPS data.
[0052] In addition to location information, GPS data also includes the time information of the current location, which is the timestamp. The timestamp can accurately reflect the time when the surrounding terminal devices obtained the location information. Each location information corresponds to a timestamp. With this setting, when an external receiver receives GPS data from multiple surrounding terminal devices, the desired GPS data can be selected by choosing the timestamp.
[0053] Meanwhile, based on the fact that the GPS data obtained by the terminal device at a certain location or time point by connecting to the network or GPS signal source is also stored in the database, the terminal device needs to determine the GPS data that meets the requirements by comparing the GPS data obtained by the terminal device and the GPS data of surrounding terminal devices received by the external receiver through timestamp comparison.
[0054] In one embodiment, the comparison principle for the timestamp of GPS data is the closest to the reference clock, that is, the interval between the timestamp and the reference clock is the smallest, which can maximize the timeliness of the GPS data of the terminal device at the current location. The timestamp closest to the reference clock time indicates that it is the latest GPS data of the surrounding terminal devices received by the terminal device at the current location, which has high reference significance for the location information of the terminal device.
[0055] In another embodiment, if the difference between the timestamps of multiple GPS data and the reference clock time is very small, less than a predetermined range, then the terminal device's own GPS data is determined. This can be achieved by comparing the timestamps of GPS data from multiple surrounding terminal devices received by an external receiver, and selecting the GPS data from the surrounding terminal device that was received earliest by the external receiver. Considering the time delays in signal transmission and reception, among multiple timestamps with small time differences, the surrounding terminal device whose data was received earliest by the external receiver is closest to the terminal device. Therefore, the GPS data of this surrounding device is closest to the terminal device's own GPS data. This determination method is chosen to further improve the accuracy of the terminal device's location information.
[0056] Regarding how to more accurately determine the GPS data of the terminal device itself, in a feasible embodiment of this application, the step of determining the target GPS data as the terminal device's own GPS data further includes: obtaining the relative distance between the target GPS data and the surrounding terminal devices; and determining the terminal device's own GPS data based on the relative distance and the target GPS data.
[0057] The connection between the terminal device and surrounding terminal devices can be wireless, such as via Bluetooth or Wi-Fi. Wireless connections have ranging capabilities, allowing the measurement of the relative distance between the terminal device and surrounding terminal devices. After receiving GPS data from a surrounding terminal device, the external receiver adds the location coordinates contained in that GPS data to the relative distance between the terminal device and the surrounding terminal device to obtain the terminal device's actual location information.
[0058] In one embodiment, the terminal device and peripheral terminal devices may be equipped with a measurement module, such as a barometer, or other functional modules for measuring altitude. The wireless connection between the terminal device and the peripheral terminal devices can transmit and compare altitudes. Based on the altitude data in the GPS data of the peripheral terminal devices, the altitude of the terminal device itself can be calculated. For scenarios that require determining the floor level or mountainous areas, the location can be further refined.
[0059] Figure 2 The method described in the second embodiment of this application is a positioning method, which includes the following steps:
[0060] Step 201: Obtain the location information of the terminal device.
[0061] The location information of the terminal device is obtained by connecting to GPS communication satellites through the terminal device's built-in communication module, or by connecting to nearby GPS locators.
[0062] Step 202: Determine whether the location information includes GPS data; if yes, proceed to step 203; if no, proceed to step 204.
[0063] Step 203: Save the GPS data from the location information to the database.
[0064] Step 204: Determine whether the terminal device is connected to the network; if yes, proceed to step 205; if no, proceed to step 206.
[0065] Step 205: Obtain the network positioning data corresponding to the terminal device, and inject the corresponding GPS data into the database based on the network positioning data.
[0066] The terminal device connects to a nearby signal base station via a network. The distance between the terminal device and the signal base station is calculated based on the signal strength of the terminal device. This distance is used to determine the network positioning data of the terminal device, which includes GPS data.
[0067] Step 206: Establish a local area network connection between the terminal device and peripheral terminal devices.
[0068] Step 207: Determine whether GPS data has been received from surrounding terminal devices within the local area network; if yes, proceed to step 208; if no, proceed to step 209.
[0069] Step 208: Save the GPS data sent by the surrounding terminal devices to the database of the terminal devices.
[0070] Step 209: Output the startup prompt message corresponding to the external receiver; wherein, the startup prompt message is used to instruct the user to perform a startup operation on the external receiver so that the external receiver enters the startup state.
[0071] Step 210: Receive GPS data sent by surrounding terminal devices through a pre-bonded external receiver that is in the powered-on state.
[0072] Step 211: Determine whether the pre-bound external receiver in the startup state has received GPS data sent by the surrounding terminal devices; if yes, proceed to step 212; if no, expand the reception range of the pre-bound external receiver in the startup state and proceed to step 207.
[0073] In the case where the pre-bound external receiver in the startup state does not receive GPS data sent by the surrounding terminal devices, the external receiver can automatically or manually expand the local area network range established by the terminal devices. The external receiver will cycle through the steps of receiving GPS data sent by the surrounding terminal devices until it receives GPS data sent by the surrounding terminal devices.
[0074] Step 212: Save the GPS data received through the external receiver to the database of the terminal device.
[0075] Step 213: Obtain the timestamps of all GPS data stored in the database; select the target GPS data whose timestamp is closest to the reference clock time from all GPS data.
[0076] Step 214: Obtain the relative distance between the target GPS data and the surrounding terminal devices; determine the terminal device's own GPS data based on the relative distance and the target GPS data.
[0077] Specifically, the GPS data of the terminal device is determined by calculating the relative distance between the terminal device and surrounding terminal devices and the coordinate information of the target GPS data.
[0078] Step 215: Transfer the terminal device's own GPS data to the terminal device's system firmware.
[0079] It should be understood that the sequence number of each step in this embodiment does not imply the order in which the steps are executed. The execution order of each step should be determined by its function and internal logic, and should not constitute a unique limitation on the implementation process of this application embodiment.
[0080] Based on the technical solution of the above-described embodiments of this application, the terminal device's own GPS data is determined by comparing timestamp information between multiple GPS data and calculating the relative distance between the terminal device and surrounding terminal devices. This is applied to ensure that the terminal device can still obtain real-time location information even when it loses its connection with the GPS communication device and network connection.
[0081] Figure 3 A positioning device provided in the third embodiment of this application is applied to a terminal device. This positioning device can be used to implement the positioning method in the foregoing embodiments. The positioning device mainly includes:
[0082] Network module 301 is used to establish a local area network connection between the terminal device and peripheral terminal devices;
[0083] The judgment module 302 is used to determine whether to receive GPS data sent by peripheral terminal devices in the local area network;
[0084] The receiving module 303 is used to receive GPS data sent by the surrounding terminal device through a pre-bound external receiver that is in the activated state if no GPS data is received from the surrounding terminal device.
[0085] The storage module 304 is used to save GPS data received by an external receiver to the database of the terminal device;
[0086] The determination module 305 is used to determine the terminal device's own GPS data based on all the GPS data stored in the database, and then transmit it to the terminal device's system firmware.
[0087] In some embodiments of this example, the determination module can also be used to: determine whether the location information includes GPS data; determine whether the terminal device is connected to the network; and determine whether the pre-bound external receiver in the startup state receives GPS data sent by the surrounding terminal device.
[0088] In some embodiments of this example, the receiving module is further configured to: receive GPS data sent by peripheral terminal devices within the local area network.
[0089] In some embodiments of this example, the positioning device further includes an acquisition module, specifically used for: acquiring the relative distance between the surrounding terminal devices corresponding to the target GPS data and the terminal devices; and acquiring the timestamps of all GPS data stored in the database.
[0090] In some embodiments of this example, the determining module is further configured to: select the target GPS data whose timestamp is closest to the reference clock time from all GPS data stored in the terminal device database.
[0091] In some embodiments of this example, the positioning device further includes a computing module, specifically used to: obtain the terminal device's own GPS data by using the relative distance between the preset computing terminal device and surrounding terminal devices and the target GPS data.
[0092] According to the positioning device provided in this embodiment, a local area network (LAN) connection is established between the terminal device and surrounding terminal devices; it is determined whether GPS data sent by surrounding terminal devices within the LAN is received; if no GPS data is received, the GPS data sent by surrounding terminal devices is received through a pre-bound external receiver in an activated state; the GPS data received through the external receiver is saved to the terminal device's database; based on all the GPS data saved in the database, the terminal device's own GPS data is determined and then transmitted to the terminal device's system firmware. Through the implementation of this application's solution, when the terminal device has no signal connection or network connection, it determines its own GPS data based on GPS data sent by surrounding terminal devices received through an external receiver, thereby greatly improving the positioning accuracy of the terminal device.
[0093] Figure 4 A terminal device is provided in the fourth embodiment of this application. This terminal device can be used to implement the positioning method in the foregoing embodiments, and mainly includes:
[0094] The system includes a memory 401, a processor 402, and a computer program 403 stored on the memory 401 and executable on the processor 402. The memory 401 and the processor 402 are communicatively connected. When the processor 402 executes the computer program 403, it implements the positioning method described in the foregoing embodiments. The number of processors can be one or more.
[0095] The memory 401 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 401 is used to store executable program code, and the processor 402 is coupled to the memory 401.
[0096] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the terminal device in the above embodiments, and the computer-readable storage medium may be the aforementioned... Figure 4 The memory in the illustrated embodiment.
[0097] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the exposure time setting method described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be a USB flash drive, a portable hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk, or any other medium capable of storing program code.
[0098] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0099] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0100] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0101] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0102] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0103] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0104] The above is a description of the exposure duration setting method and related apparatus provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A positioning method applied to a terminal device, characterized in that, include: Establish a local area network connection between the terminal device and the surrounding terminal devices; Determine whether GPS data sent by the surrounding terminal devices within the local area network has been received; If GPS data is not received from the surrounding terminal device, the GPS data sent by the surrounding terminal device is received through the pre-bound external receiver that is in the activated state. The GPS data received through the external receiver is saved to the database of the terminal device; The terminal device's own GPS data is determined based on all the GPS data stored in the database, and then transmitted to the terminal device's system firmware.
2. The positioning method according to claim 1, characterized in that, Before the step of receiving target GPS data sent by the surrounding terminal device through an external receiver in the activated state, the method further includes: Output startup prompt information corresponding to the external receiver; wherein, the startup prompt information is used to instruct the user to perform a startup operation on the external receiver so that the external receiver enters the startup state.
3. The positioning method according to claim 1, characterized in that, Before the step of establishing a local area network connecting the terminal device and peripheral devices, the method further includes: Determine whether the terminal device is connected to the network; If the terminal device is not connected to the network, then the step of establishing a local area network connection between the terminal device and surrounding terminal devices is executed. If the terminal device is connected to the network, the network positioning data corresponding to the terminal device is obtained, and the corresponding GPS data is injected into the database based on the network positioning data.
4. The positioning method according to claim 3, characterized in that, Before the step of determining whether the terminal device is connected to the network, the method further includes: Obtain the location information of the terminal device; Determine whether the location information includes GPS data; If the location information includes GPS data, then the GPS data in the location information is saved to the database; If the location information does not include GPS data, then the step of determining whether the terminal device is connected to the network is performed.
5. The positioning method according to claim 1, characterized in that, After the step of receiving GPS data sent by the surrounding terminal device through a pre-bonded external receiver in the activated state, the method includes: Determine whether the pre-bound external receiver, which is in the activated state, has received GPS data sent by the surrounding terminal device; If the pre-bound external receiver in the activated state does not receive GPS data sent by the surrounding terminal device, the receiving range of the pre-bound external receiver in the activated state is expanded until GPS data sent by the surrounding terminal device is received.
6. The positioning method according to any one of claims 1 to 5, characterized in that, The step of determining the terminal device's own GPS data based on all GPS data stored in the database further includes: Obtain the timestamps of all GPS data stored in the database; Select the target GPS data whose timestamp is closest to the reference clock time from all the GPS data; The target GPS data is identified as the terminal device's own GPS data.
7. The positioning method according to claim 6, characterized in that, The step of determining the target GPS data as the terminal device's own GPS data further includes: Obtain the relative distance between the surrounding terminal devices and the terminal devices corresponding to the target GPS data; Based on the relative distance and the target GPS data, the terminal device's own GPS data is determined.
8. A positioning device, applied to a terminal device, characterized in that, include: The network module is used to establish a local area network connection between the terminal device and surrounding terminal devices; The judgment module is used to determine whether to receive GPS data sent by the surrounding terminal devices in the local area network; The receiving module is configured to receive GPS data sent by the surrounding terminal device through a pre-bound external receiver that is in the activated state if it does not receive GPS data sent by the surrounding terminal device. A storage module is used to save the GPS data received through the external receiver to the database of the terminal device; The determination module is used to determine the terminal device's own GPS data based on all the GPS data stored in the database, and then transmit it to the terminal device's system firmware.
9. A terminal device, characterized in that, Includes memory and processor, wherein: The memory is used to store computer programs and data; The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Safety early warning method, device and equipment based on positioning information and storage medium
CN113543034A
System and method for provisioning telecommunications services between an access point and a telecommunications network and providing a missing information notification
US20100220700A1