CN111866735B - Positioning method, first terminal device and server - Google Patents

Positioning method, first terminal device and server Download PDF

Info

Publication number
CN111866735B
CN111866735B CN201911402806.2A CN201911402806A CN111866735B CN 111866735 B CN111866735 B CN 111866735B CN 201911402806 A CN201911402806 A CN 201911402806A CN 111866735 B CN111866735 B CN 111866735B
Authority
CN
China
Prior art keywords
terminal device
terminal equipment
terminal
positioning
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911402806.2A
Other languages
Chinese (zh)
Other versions
CN111866735A (en
Inventor
应云剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qisheng Technology Co Ltd
Original Assignee
Beijing Qisheng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN201911402806.2A priority Critical patent/CN111866735B/en
Publication of CN111866735A publication Critical patent/CN111866735A/en
Application granted granted Critical
Publication of CN111866735B publication Critical patent/CN111866735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • H04W40/10Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources based on available power or energy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a positioning method, first terminal equipment and a server, wherein the method comprises the steps that the first terminal equipment acquires the remaining standby time of second terminal equipment through short-distance wireless communication connection; the first terminal device selects a device with long remaining standby time from the first terminal device and the second terminal device as a master device, and a device with short remaining standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module. The embodiment of the invention can reduce the power consumption of the slave equipment, thereby reducing the overall energy consumption of the first terminal equipment and the second terminal equipment, prolonging the service time of the first terminal equipment and the second terminal equipment, optimizing and utilizing resources, ensuring the normal use of a user and improving the user experience.

Description

Positioning method, first terminal device and server
Technical Field
The embodiment of the invention relates to the technical field of vehicle networking, in particular to a positioning method, first terminal equipment and a server.
Background
With the popularization of vehicles, more and more owners of vehicles can ride instead of walk by themselves, but the situation that the owners of vehicles cannot drive to the destination by themselves due to physical conditions (such as drunkenness, sickness and the like) or driving licenses are not obtained yet often occurs, so that the riding-on-demand is generated, and the riding-on-demand is a behavior that when the owners of vehicles cannot drive to the destination by themselves, professional drivers drive the owners of vehicles to send the vehicles to a specified place and collect certain fees. The designated driver usually needs to carry a mobile phone for processing orders and a recorder for positioning and recording images and sounds during the driving of the vehicle, so as to facilitate the management of the company and provide evidence after a traffic accident occurs during the designated driving.
In the prior art, the mobile phone supplies power for the battery, and in order to be convenient for carrying and installation, the recorder provided for the designated driver also needs to be supplied with power by the battery.
However, the battery capacity is limited, and how to save the energy consumption of the mobile phone and the recorder and prolong the service life of the battery in the designated driving process is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a positioning method, a first terminal device and a server, which aims to reduce energy consumption, prolong the service time of a mobile phone and a recorder, ensure the normal use of a user and improve the user experience.
In a first aspect, an embodiment of the present invention provides a positioning method, including:
the first terminal equipment acquires the remaining standby time of the second terminal equipment through short-distance wireless communication connection;
the first terminal device selects a device with long residual standby time from the first terminal device and the second terminal device as a master device, and a device with short residual standby time is used as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In a second aspect, an embodiment of the present invention provides a positioning method, including:
the first terminal equipment sends the state information of the first terminal equipment to a server, so that the server selects equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time is used as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In a third aspect, an embodiment of the present invention provides a positioning method, including:
the server acquires the remaining standby time of the first terminal equipment and the remaining standby time of the second terminal equipment;
the server selects equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time is used as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In a fourth aspect, an embodiment of the present invention provides a first terminal device, including:
the first acquisition module is used for acquiring the remaining standby time of the second terminal equipment by the first terminal equipment through short-distance wireless communication connection;
the first processing module is used for the first terminal equipment to select equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time is used as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In a fifth aspect, an embodiment of the present invention provides a first terminal device, including:
the first sending module is used for sending the state information of the first terminal device to a server so that the server selects a device with long residual standby time from the first terminal device and the second terminal device as a master device and a device with short residual standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In a sixth aspect, an embodiment of the present invention provides a server, including:
the second acquisition module is used for acquiring the remaining standby time of the first terminal equipment and the remaining standby time of the second terminal equipment by the server;
a second processing module, configured to select, by the server, a device with a long remaining standby time from the first terminal device and the second terminal device as a master device, and a device with a short remaining standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In a seventh aspect, an embodiment of the present invention provides a first terminal device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of the first aspect as described above.
In an eighth aspect, an embodiment of the present invention provides a first terminal device, including: at least one processor and memory;
the memory stores computer-executable instructions;
execution of the computer-executable instructions stored by the memory by the at least one processor causes the at least one processor to perform a method as set forth in the second aspect above as well as various possible designs of the first aspect.
In a ninth aspect, an embodiment of the present invention provides a server, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of the third aspect as described above.
In a tenth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method according to the first aspect is implemented.
In an eleventh aspect, the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method according to the first aspect is implemented.
In a twelfth aspect, the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method according to the first aspect is implemented.
According to the positioning method, the first terminal device and the server provided by the embodiment, the short-distance wireless communication connection is established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can interact data such as device states, a master device which is responsible for acquiring positioning data and shares the positioning data to the slave device and a slave device which is used for closing the self positioning function are selected according to the remaining standby time of the first terminal device and the second terminal device, the positioning data sent by the master device is received and applied through the short-distance wireless communication connection, the power consumption of the slave device is reduced, the overall energy consumption of the first terminal device and the second terminal device is reduced, the service time of the first terminal device and the second terminal device is prolonged, resources are optimized, normal use of a user is guaranteed, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of an architecture of a designated driving service system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a positioning method according to another embodiment of the present invention;
fig. 3 a-3 b are schematic diagrams of a power saving mode setting interface of a first terminal device according to another embodiment of the present invention;
fig. 4 a-4 b are schematic diagrams of a power saving mode switching reminding interface of a first terminal device according to another embodiment of the present invention;
fig. 5 is an interaction flow diagram of a positioning method according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of a positioning method according to another embodiment of the present invention;
fig. 7 is a schematic flowchart of a positioning method according to another embodiment of the present invention;
fig. 8 is an interaction flow diagram of a positioning method according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first terminal device according to yet another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a first terminal device according to yet another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a first terminal device according to yet another embodiment of the present invention;
fig. 12 is a schematic hardware structure diagram of a first terminal device according to yet another embodiment of the present invention;
fig. 13 is a schematic hardware structure diagram of a server according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a designated driving service system according to an embodiment of the present invention. As shown in fig. 1, the system includes a mobile terminal 101, a recorder 102 and a server 103, wherein the mobile terminal 101 includes a first positioning module, a processor and a first long-distance wireless communication module; the first positioning module is used for acquiring positioning information of the mobile terminal 101 and sending the positioning information to the server 103 through the first long-distance wireless communication module, so that the server 103 sends a designated driving order to the mobile terminal 101 according to the positioning information of the mobile terminal 101; the processor is used for receiving the designated driving order through the first long-distance wireless communication module and pushing the designated driving order to a designated driver. The recorder 102 includes a camera module and a second positioning module, the camera device is used for recording related information such as images and sounds during the running of the vehicle, the related information can provide evidence for traffic accidents, and the positioning device is used for acquiring positioning information and uploading the positioning information to the server 103, so that the background can track and position the recorder 102. Alternatively, the mobile terminal 101 may be a mobile phone, a tablet computer, or the like, which may be equipped with a designated APP. Recorder 102 is a portable tachograph that is battery powered for ease of portability and installation.
In the specific designated driving service implementation process, the mobile terminal 101 is taken as a mobile phone for illustration, a designated driving driver terminal APP is installed on the mobile phone, a designated driving driver logs in, after logging in, the mobile phone reports the positioning information of the mobile phone to the server, the server distributes a designated driving order to the mobile phone according to the positioning information and a preset rule (such as a near principle), the designated driving driver drives to the position of a passenger who gets off an order indicated by the order after receiving the order, a recorder is placed on the designated driving vehicle, and the order is executed until the passenger who gets off the order is sent to a destination. During the designated driving, the recorder 102 records the video of the surrounding environment and transmits the positioning information to the server, so that the server tracks and positions the recorder 102, and the mobile phone also keeps communication with the server to report the positioning information and receive orders.
Therefore, in the process, the mobile phone and the recorder 102 both need to acquire respective positioning information and report the positioning information to the server, however, both the mobile phone and the recorder 102 are powered by batteries, and the respective batteries continuously supply power to respective positioning modules, so that electric energy is consumed, and resource waste is caused. Based on this, the embodiment of the present invention provides a positioning method, so as to reduce overall energy consumption of the mobile phone and the recorder 102, prolong service time of the mobile phone and the recorder, optimize resource utilization, ensure normal use of the user, and improve user experience.
In this embodiment, by setting short-range wireless communication modules in the mobile terminal 101 and the recorder 102, and establishing a short-range wireless communication connection between the mobile terminal 101 and the recorder 102, the mobile terminal 101 and the recorder 102 can interact with data such as device states, and select a master device responsible for acquiring positioning data and sharing the positioning data to a slave device according to the remaining power information of the mobile terminal 101 and the recorder 102, and a slave device for closing the self-positioning function, and receive and apply the positioning data sent by the master device through the short-range wireless communication connection, so as to reduce the power consumption of the slave device, thereby reducing the overall energy consumption of the mobile terminal 101 and the recorder 102, prolonging the service time thereof, optimizing and utilizing resources, ensuring the normal use of users, and improving the user experience.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic flowchart of a positioning method according to another embodiment of the present invention. As shown in fig. 2, the method includes:
201. the first terminal device obtains the remaining standby time of the second terminal device.
In this embodiment, the first terminal device may be a mobile terminal or a recorder shown in fig. 1.
In this embodiment, there are various ways for the first terminal device to obtain the remaining standby time of the second terminal device, and the server may further obtain the remaining standby time of the second terminal device, and may obtain the remaining standby time of the second terminal device through the short-range wireless communication connection. This embodiment does not limit this.
When the first terminal device obtains the remaining standby time of the second terminal device through the short-range wireless communication connection, the short-range wireless communication connection established between the first terminal device and the second terminal device may adopt a low-power wireless communication mode, such as Bluetooth, ANT +, or WiFi.
Optionally, there may be multiple ways to establish the wireless communication connection between the first terminal device and the second terminal device, and in an implementation manner, a default way of the system application of the first terminal device may be adopted to perform the short-range wireless communication connection, for example, taking bluetooth as an example, and a connection is established with the target device within a bluetooth search range (for example, 10 meters). In another implementation manner, in order to save power and ensure that the first terminal device and the second terminal device are connected in a synchronous state, a strict limiting condition may be set, the server may determine the current positions, the speeds, and other positioning information of the first terminal device and the second terminal device, and then establish the wireless communication connection after the preset condition is reached. Specifically, the first terminal device receives an establishment instruction sent by a server; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device; and the first terminal equipment establishes short-distance wireless communication connection with second terminal equipment according to the establishment instruction. The positioning information may include at least one of position information, velocity information, and attitude information. Accordingly, the positioning module for acquiring the positioning information includes at least one of a Global Navigation Satellite System (GNSS) module, a speed sensor, and a gyroscope sensor. The GNSS module can be a GPS module, a Beidou satellite module, a GLONASS module or a Galileo module.
In a specific implementation process, when a driver representative holds a first terminal device (a mobile phone or a recorder) and a second terminal device (a recorder or a mobile phone) at the same time, as shown in fig. 3a and fig. 3b, a driver representative end APP can be opened, a setting interface is entered, an interface of a power saving mode is opened, the interface of the power saving mode is started and selected, after the power saving mode is entered, a server judges whether the distance between the first terminal device and the second terminal device is smaller than a preset distance threshold value and judges whether the speed and the posture of the first terminal device and the second terminal device are matched according to the position information and the speed information of the first terminal device and the second terminal device, and sends a setup instruction to the first terminal device and the second terminal device when the distance is smaller than the preset distance threshold value and the speed and the posture are both matched, so that short-distance wireless communication connection is established between the first terminal device and the second terminal device. And the first terminal equipment acquires the remaining standby time of the second terminal equipment through short-distance wireless communication connection. And proceeds to the operation of step 202. The preset distance threshold may be set to a maximum distance in the vehicle, and may be, for example, 1 to 3 meters.
Specifically, taking bluetooth as an example, the first terminal device may obtain the status information of the second terminal device during the handshake between the first terminal device and the second terminal device. The state information may include a remaining power amount and a power consumption amount per unit time, and the remaining standby time is determined according to the state information. The remaining amount may be a remaining amount percentage (a percentage value of an actual remaining amount to a battery capacity) or may be an actual remaining amount.
202. The first terminal device selects a device with long residual standby time from the first terminal device and the second terminal device as a master device, and a device with short residual standby time is used as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In this embodiment, there are various determination methods for selecting the master device and the slave device.
Optionally, in an implementation manner, in order to save computing resources, the remaining power may be directly compared, specifically, the selecting, by the first terminal device, a master device and a slave device from the first terminal device and the second terminal device according to the state information of the first terminal device and the state information of the second terminal device includes: the first terminal equipment compares the residual capacity of the first terminal equipment with the residual capacity of the second terminal equipment; if the residual capacity of the first terminal device is greater than the residual capacity of the second terminal device, the first terminal device determines the first terminal device as a master device, and determines the second terminal device as a slave device.
In another implementation manner, the first terminal device and the second terminal device have other functions besides the positioning function to provide users, and taking the first terminal device as a mobile phone and the second terminal device as a recorder as an example, when the users position the mobile phone, the users need to play music, talk, and the like at the same time, that is, the power consumption speed of the mobile phone is high, even if the remaining power of the mobile phone is large, the available duration is short compared with the recorder, so that in order to reasonably allocate power resources and meet the individual requirements of the users, the available duration can be determined by combining the power consumption conditions of the users. Specifically, the status information further includes: power consumption per unit time; the first terminal device selects a master device and a slave device from the first terminal device and the second terminal device according to its own state information and the state information of the second terminal device, including: the first terminal equipment determines the residual electricity utilization duration of the first terminal equipment according to the residual electricity quantity and the electricity consumption of the first terminal equipment per unit time, and determines the residual electricity utilization duration of the second terminal equipment according to the residual electricity quantity and the electricity consumption of the second terminal equipment per unit time; the first terminal equipment compares the remaining power utilization duration of the first terminal equipment with the remaining power utilization duration of the second terminal equipment; if the remaining power consumption duration of the first terminal device is larger than that of the second terminal device, the first terminal device judges the first terminal device as a master terminal, and the second terminal device as a slave terminal. Optionally, the power consumption amount per unit time may be obtained through various ways, for example, the power consumption amount per unit time may be obtained by performing statistics according to historical data of actual power consumption of the user, and may also be obtained by averaging the power consumption amount of the user counted in a preset time period before the current time, which is not limited in this embodiment.
In another implementation manner, the first terminal device and the second terminal device may need to report the positioning information to the server, and have other functions that require the positioning module to be turned on, for example, a mobile phone, and a user also needs to turn on the positioning module when performing applications such as navigation or spot takeout with the mobile phone.
In practical applications, the power consumption of the wireless communication module of the first terminal device for the short-range wireless communication connection is less than the power consumption of the positioning module of the first terminal device. After the first terminal device selects the master device and the slave device and generates the positioning control signal, the master device starts the positioning module according to the positioning control signal, and sends the positioning information acquired by the positioning module to the slave device to be shared with the slave device. The slave device receives the positioning information sent by the master device, and then the positioning module of the slave device can be closed. Optionally, the positioning module includes a Global Navigation Satellite System (GNSS) module and/or various sensors for state acquisition (such as a speed sensor, an acceleration sensor, or a gyroscope sensor). The GNSS module can be a GPS module, a Beidou satellite module, a GLONASS module or a Galileo module.
In a specific implementation process, after a master device and a slave device are selected, a first terminal device is taken as a mobile phone, a second terminal device is taken as a recorder as an example to illustrate interface operations presented by the result, as shown in fig. 4a and 4b, if the first terminal device is selected as the slave device, the current positioning device of the first terminal device needs to be switched from a local device to the second terminal device, the first terminal device displays a positioning switching reminding interface (as shown in fig. 4 a), and receives a selection instruction input by a user through the positioning switching reminding interface; in response to the selection instruction, the first terminal device performs opening and closing of its own positioning module, the first terminal device displays an interface shown in fig. 4b, and in the interface, a user can also manually switch the current positioning device from the recorder 1 to the local according to actual needs, for example, when the mobile phone and the recorder need to be used separately or the mobile phone is connected with a charger for charging.
According to the positioning method provided by the embodiment, the short-distance wireless communication connection is established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can interact data such as device states, the master device which is used for acquiring positioning data and sharing the positioning data to the slave device and the slave device which is used for closing the self-positioning function are selected according to the remaining standby time of the first terminal device and the second terminal device, the positioning data sent by the master device is received and applied through the short-distance wireless communication connection, the power consumption of the slave device is reduced, the overall energy consumption of the first terminal device and the second terminal device is reduced, the service life of the first terminal device and the second terminal device is prolonged, resources are optimized and utilized, the normal use of a user is ensured, and the user experience is improved.
Fig. 5 is a schematic interaction flow diagram of a positioning method according to another embodiment of the present invention. As shown in fig. 5, the method includes:
301. establishing short-distance wireless communication connection between the first terminal equipment and the second terminal equipment;
302. and the first terminal equipment acquires the remaining standby time of the second terminal equipment through the short-distance wireless communication connection. And selecting equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time from the first terminal equipment and the second terminal equipment, and generating a positioning control signal.
303. And the first terminal equipment sends the positioning control signal to the second terminal equipment.
304. If the first terminal equipment is the master equipment, the first terminal equipment starts a positioning module of the first terminal equipment according to the positioning control signal, and sends positioning information acquired by the positioning module to the slave equipment through the short-distance wireless communication connection.
305. And if the second terminal equipment is the slave equipment, the second terminal equipment closes the positioning module of the second terminal equipment according to the positioning control signal.
In this embodiment, steps 301 to 305 are similar to the implementation principle of steps 201 to 202 in the above embodiment, and are not described herein again.
306. And if the first terminal equipment is the main equipment, the first terminal equipment sends the positioning information acquired by the positioning module of the first terminal equipment to the server according to the positioning control signal.
307. And the server simultaneously takes the positioning information as the positioning information of the first terminal equipment and the second terminal equipment.
In this embodiment, in order to further save power consumption, the positioning information reporting server may also be operated by the master device, and specifically, if the first terminal device is the master device, on one hand, the positioning information is sent to the slave device, so that the slave device performs related processing according to the positioning information (taking a recorder as an example, the positioning information may be matched with video information to generate navigation data), on the other hand, the positioning information and binding information including an identifier of the slave device may be reported to the server, and after receiving the positioning information, the server performs related processing by using the positioning information as the positioning information of the master device and the slave device at the same time.
308. The first terminal equipment judges whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value or not; and if so, the first terminal equipment generates a restarting signal.
309. And the first terminal equipment sends the restart signal to the second terminal equipment.
310. And the second terminal equipment starts the positioning module of the second terminal equipment according to the restarting signal.
In practical application, after the first terminal device and the second terminal device establish a short-distance wireless communication connection and the master device and the slave device are selected, the first terminal device and the second terminal device share positioning information, taking the first terminal device and the second terminal device as a mobile phone and a recorder respectively as an example, when a driver needs to use the mobile phone and the recorder separately, for example, the driver needs to park to purchase goods or perform a video call during driving. At the moment, the positioning information of the mobile phone and the recorder is not synchronous, and the mobile phone and the recorder need to be disconnected to control the two to independently position. Alternatively, a manual operation may be performed by receiving a disconnection instruction input by a standby driver. If the designated driver forgets or is not in time to turn off, the reported positioning information is inaccurate. Based on the above, an automatic disconnection mode may also be adopted, specifically, the signal strength of the short-distance wireless communication connection between the first terminal device and the second terminal device is detected, when the signal strength is lower than a preset strength threshold, the connection is disconnected, and the positioning module of the slave device is restarted to perform independent positioning.
According to the positioning method provided by the embodiment, the first terminal device and the second terminal device can interact with data such as a device state by establishing the short-distance wireless communication connection between the first terminal device and the second terminal device, the master device which is responsible for acquiring the positioning data and sharing the positioning data to the slave device and the slave device which is used for closing the self-positioning function are selected from the first terminal device and the second terminal device according to the remaining standby time of the first terminal device and the second terminal device, and the positioning data sent by the master device are received and applied through the short-distance wireless communication connection, so that the power consumption of the slave device is reduced, the overall energy consumption of the first terminal device and the second terminal device is reduced, the service life of the first terminal device and the second terminal device is prolonged, resources are optimally utilized, the normal use of a user is ensured, and the user experience is improved. In addition, the energy consumption can be further saved by adopting the main equipment to carry out the positioning information reporting server, the connection can be reasonably disconnected by monitoring the signal intensity of the short-distance wireless communication connection, and the positioning function of the slave equipment is restarted in time, so that the accuracy of the positioning information is ensured.
Fig. 6 is a flowchart illustrating a positioning method according to another embodiment of the present invention. As shown in fig. 6, the method includes:
401. the first terminal equipment sends the state information of the first terminal equipment to a server, so that the server selects equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time is used as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
In this embodiment, the method for establishing the short-range wireless communication connection may refer to the description of the foregoing embodiment 201, and the selection of the master device and the slave device may refer to the description of step 202, which is not described herein again.
In this embodiment, after the first terminal device and the second terminal device are connected, the state information may be sent to the server in order to save the computing resource and the battery power of the first terminal device. Optionally, the first terminal device and the second terminal device may send to the server through long-distance wireless communication, for example, through internet of things, 4G, or 5G communication. And the server performs the steps of selecting the master equipment and the slave equipment and generating the positioning control signal according to the received state information. Specifically, the principle of the selecting step and the generating step can refer to the description of step 202 in the above embodiment, and will not be described herein again.
According to the positioning method provided by the embodiment, the short-distance wireless communication connection is established between the first terminal device and the second terminal device, data such as device states of the first terminal device and the second terminal device are sent to the server, the server selects the master device which is responsible for acquiring the positioning data and sharing the positioning data to the slave device and the slave device which is used for closing the self-positioning function according to the remaining standby time of the first terminal device and the second terminal device, the positioning data sent by the master device is received and applied through the short-distance wireless communication connection, the power consumption of the slave device is reduced, the selection of the master device and the slave device by the server further saves electric energy and computing resources, so that the overall energy consumption of the first terminal device and the second terminal device is reduced, the service time of the first terminal device and the second terminal device is prolonged, the resources are optimally utilized, the normal use of a user is guaranteed, and the user experience is improved.
Optionally, in another embodiment, after the first terminal device sends its own status information to the server, the method further includes:
the first terminal equipment judges whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value; if so, the first terminal device generates a restart signal and sends the restart signal to the second terminal device, so that the second terminal device starts a positioning module of the second terminal device according to the restart signal.
In this embodiment, reference may be made to the description of step 308 to step 310 in the above embodiment, and details are not described herein.
Fig. 7 is a flowchart illustrating a positioning method according to another embodiment of the present invention. As shown in fig. 7, the method includes:
501. the server acquires the remaining standby time of the first terminal device and the remaining standby time of the second terminal device.
In this embodiment, the communication mode between the server and the first terminal device and the second terminal device may be a long-distance wireless communication technology such as an internet of things communication mode, a third generation mobile communication technology, a fourth generation mobile communication technology, a fifth generation mobile communication technology, and the like. The server may acquire the remaining standby time of the first terminal device and the second terminal device through the long-range wireless communication technology described above.
502. The server selects equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time is used as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
The execution main body of step 502 in this embodiment is a server different from the first terminal device of the execution main body of step 202 in the above embodiment, and the specific implementation principles of the two are the same, which is not described herein again.
According to the positioning method provided by the embodiment, after the short-distance wireless communication connection is established between the first terminal device and the second terminal device, the server receives data such as the device states of the first terminal device and the second terminal device, and selects the master device which is responsible for acquiring the positioning data and sharing the positioning data to the slave device and the slave device which is used for closing the self-positioning function according to the remaining standby time of the first terminal device and the second terminal device.
Optionally, in another embodiment, after the server selects a device with a long remaining standby time from the first terminal device and the second terminal device as a master device, and a device with a short remaining standby time as a slave device, the method further includes:
and the server receives the positioning information which is sent by the main equipment and acquired by the positioning module of the main equipment, and simultaneously takes the positioning information as the positioning information of the main equipment and the positioning information of the slave equipment.
In this embodiment, reference may be made to the description of step 306 in the above embodiment, and details are not described here.
Fig. 8 is a schematic interaction flow diagram of a positioning method according to another embodiment of the present invention. As shown in fig. 8, the method includes:
601. the first terminal device establishes a short-range wireless communication connection between the first terminal device and the second terminal device.
In this embodiment, step 601 is similar to step 201 in the above embodiment, and is not described here again.
602. The first terminal device transmits its own remaining standby time to the server.
603. The second terminal device transmits its own remaining standby time to the server.
In this embodiment, steps 602 to 603 are similar to step 401 in the above embodiment, and are not described again here.
604. And the server selects the equipment with long residual standby time as the main equipment and the equipment with short residual standby time as the slave equipment from the first terminal equipment and the second terminal equipment, and generates a positioning control signal.
605. And the server respectively sends the positioning control signals to the first terminal equipment and the second terminal equipment.
The execution main bodies of steps 604 and 605 in this embodiment are different from the execution main body of the first terminal device in step 202 in the foregoing embodiment, and the specific implementation principles of the two are the same, which is not described herein again.
606. If the first terminal equipment is the master equipment, the first terminal equipment starts a positioning module of the first terminal equipment according to the positioning control signal, and sends positioning information acquired by the positioning module to the slave equipment through the short-distance wireless communication connection.
607. And if the second terminal equipment is the slave equipment, the second terminal equipment closes the positioning module of the second terminal equipment according to the positioning control signal.
608. And if the first terminal equipment is the main equipment, the first terminal equipment sends the positioning information acquired by the positioning module of the first terminal equipment to the server according to the positioning control signal.
609. And the server simultaneously takes the positioning information as the positioning information of the first terminal equipment and the second terminal equipment.
610. The first terminal equipment judges whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value or not; and if so, the first terminal equipment generates a restarting signal.
611. And the first terminal equipment sends the restart signal to the second terminal equipment.
612. And the second terminal equipment starts the positioning module of the second terminal equipment according to the restarting signal.
Steps 606 to 612 in this embodiment are similar to steps 306 to 310 in the above embodiment, and are not described again here.
According to the positioning method provided by the embodiment, a short-distance wireless communication connection is established between a first terminal device and a second terminal device, data such as device states of the first terminal device and the second terminal device are sent to a server, the server selects a master device which is used for acquiring positioning data and sharing the positioning data to a slave device according to the remaining standby time of the first terminal device and the second terminal device, and the slave device which is used for closing the self-positioning function. In addition, the energy consumption can be further saved by adopting the main equipment to carry out the positioning information reporting server, the connection can be reasonably disconnected by monitoring the signal intensity of the short-distance wireless communication connection, and the positioning function of the slave equipment is restarted in time, so that the accuracy of the positioning information is ensured.
Fig. 9 is a schematic structural diagram of a first terminal device according to yet another embodiment of the present invention. As shown in fig. 9, the first terminal device 70 includes: a first obtaining module 701 and a first processing module 702.
A first obtaining module 701, configured to obtain, by a first terminal device, remaining standby time of a second terminal device through short-range wireless communication connection;
a first processing module 702, configured to select, by the first terminal device, a device with a long remaining standby time from the first terminal device and the second terminal device as a master device, and select a device with a short remaining standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
According to the first terminal device provided by the embodiment, the short-distance wireless communication connection is established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can interact data such as device states, a master device which is used for acquiring positioning data and sharing the positioning data to the slave device is selected from the first terminal device and the second terminal device according to the remaining standby time of the first terminal device and the second terminal device, and the slave device which is used for closing the self-positioning function receives and applies the positioning data sent by the master device through the short-distance wireless communication connection, the power consumption of the slave device is reduced, the overall energy consumption of the first terminal device and the second terminal device is reduced, the service time of the first terminal device and the service time of the second terminal device are prolonged, resources are optimized and utilized, the normal use of a user is guaranteed, and the user experience is improved.
Optionally, the first obtaining module 701 is specifically configured to obtain, by the first terminal device, the remaining standby time of the second terminal device through short-range wireless communication connection.
Optionally, the first obtaining module 701 is specifically configured to, by the first terminal device, obtain the remaining power of the second terminal device through short-range wireless communication connection, and use the remaining power as the remaining standby time of the second terminal device.
Optionally, the first establishing module 701 is specifically configured to, by the first terminal device, obtain the remaining power and the power consumption of the second terminal device through a short-range wireless communication connection;
and the first terminal equipment determines the remaining standby time of the second terminal equipment according to the remaining power and the power consumption per unit time of the second terminal equipment.
Optionally, the first terminal device 70 further includes:
the first restarting module is used for judging whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value or not by the first terminal equipment; if so, the first terminal equipment generates a restarting signal and sends the restarting signal to the second terminal equipment so that the second terminal equipment starts a positioning module of the second terminal equipment according to the restarting signal.
Optionally, the first terminal device 70 further includes: and the second sending module is used for sending the positioning information acquired by the positioning module of the first terminal device to the server according to the positioning control signal when the first terminal device is the main device, so that the server can simultaneously use the positioning information as the positioning information of the first terminal device and the second terminal device.
Optionally, the first terminal device 70 further includes:
a first receiving module, configured to receive, by the first terminal device, a setup instruction sent by a server; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device;
the first terminal equipment compares the distance information with a preset distance threshold;
a first establishing module 701, configured to specifically establish, by the first terminal device, a short-range wireless communication connection between the first terminal device and the second terminal device according to the establishing instruction.
Optionally, the first terminal device 70 further includes: the first display module is used for displaying a mode selection interface by the first terminal equipment and receiving a mode selection instruction input by a user through the mode selection interface; and responding to the mode selection instruction, and acquiring the remaining standby time of the second terminal equipment by the first terminal equipment through short-distance wireless communication connection.
Optionally, the first terminal device 70 further includes: the second display module is used for displaying a positioning switching reminding interface by the first terminal equipment if the first terminal equipment is used, and receiving a selection instruction input by a user through the positioning switching reminding interface; and responding to the selection instruction, and opening and closing the self positioning module by the first terminal equipment.
Optionally, the short-range wireless communication connection is bluetooth, ANT +, or WiFi.
Optionally, the first terminal device is a mobile phone, a tablet computer, or a dedicated driver recorder.
The first terminal device provided in the embodiment of the present invention may be configured to execute the method embodiments shown in fig. 2 to fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a first terminal device according to yet another embodiment of the present invention. As shown in fig. 10, the first terminal device 80 includes: a first transmitting module 801;
a first sending module 801, configured to send, by a first terminal device, state information of the first terminal device to a server, so that the server selects, from the first terminal device and the second terminal device, a device with a long remaining standby time as a master device, and a device with a short remaining standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
According to the first terminal device provided by the embodiment, the short-distance wireless communication connection is established between the first terminal device and the second terminal device, data such as device states of the first terminal device and the second terminal device are sent to the server, the server selects the master device which is responsible for acquiring the positioning data and sharing the positioning data to the slave device according to the remaining standby time of the first terminal device and the second terminal device, and the slave device which is used for closing the self-positioning function, the positioning data sent by the master device is received and applied through the short-distance wireless communication connection, the power consumption of the slave device is reduced, the selection of the master device and the slave device by the server further saves electric energy and computing resources, so that the overall energy consumption of the first terminal device and the second terminal device is reduced, the service time of the first terminal device and the second terminal device is prolonged, the resources are optimized and utilized, the normal use of a user is ensured, and the user experience is improved.
Optionally, the first terminal device 80 further includes:
the second restarting module is used for judging whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value or not by the first terminal equipment;
if so, the first terminal device generates a restart signal and sends the restart signal to the second terminal device, so that the second terminal device starts a positioning module of the second terminal device according to the restart signal.
Optionally, the first terminal device 80 further includes:
the second receiving module is used for the first terminal equipment to receive the establishment instruction sent by the server; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device;
the first terminal equipment establishes short-distance wireless communication connection with second terminal equipment, and the method comprises the following steps:
and the first terminal equipment establishes short-distance wireless communication connection with second terminal equipment according to the establishment instruction.
Optionally, the first terminal device 80 further includes:
the third display module is used for displaying a mode selection interface by the first terminal equipment and receiving a mode selection instruction input by a user through the mode selection interface; and responding to the mode selection instruction, and acquiring the remaining standby time of the second terminal equipment by the first terminal equipment through short-distance wireless communication connection.
Optionally, the first terminal device 80 further includes: the fourth display module is used for displaying a positioning switching reminding interface by the first terminal equipment if the first terminal equipment is detected to be in the first state, and receiving a selection instruction input by a user through the positioning switching reminding interface; and responding to the selection instruction, and opening and closing the self positioning module by the first terminal equipment.
Optionally, the short-range wireless communication connection is bluetooth, ANT +, or WiFi.
Optionally, the first terminal device is a mobile phone, a tablet computer, or a dedicated driver recorder.
The first terminal device provided in the embodiment of the present invention may be configured to execute the method embodiments shown in fig. 6 and fig. 8, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a server according to another embodiment of the present invention. As shown in fig. 11, the server 90 includes: a second obtaining module 901 and a second processing module 902;
a second obtaining module 901, configured to obtain, by the server, the remaining standby time of the first terminal device and the remaining standby time of the second terminal device;
a second processing module 902, configured to select, by the server, a device with a long remaining standby time from the first terminal device and the second terminal device as a master device, and a device with a short remaining standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module.
According to the server provided by the embodiment of the invention, after the short-distance wireless communication connection is established between the first terminal device and the second terminal device, the server receives the data of the device states and the like of the first terminal device and the second terminal device, and selects the master device which is responsible for acquiring the positioning data and sharing the positioning data to the slave device and the slave device which is used for closing the self-positioning function according to the remaining standby time of the first terminal device and the second terminal device.
Optionally, the second obtaining module 901 is specifically configured to obtain, by the server, the remaining power of the first terminal device, and use the remaining power as the remaining standby time of the first terminal device; and the server acquires the residual electric quantity of the second terminal equipment and takes the residual electric quantity as the residual standby time of the second terminal equipment.
Optionally, the second obtaining module 902 is specifically configured to obtain, by the server, the remaining power amount and the power consumption amount per unit time of the first terminal device and the remaining power amount and the power consumption amount per unit time of the second terminal device; and the server determines the remaining standby time of the first terminal equipment according to the remaining power and the power consumption per unit time of the first terminal equipment, and determines the remaining standby time of the second terminal equipment according to the remaining power and the power consumption per unit time of the second terminal equipment.
The server 90 further includes: a third receiving module, configured to receive, by the server, the positioning information sent by the master device and obtained by the positioning module of the master device, and use the positioning information as the positioning information of the master device and the positioning information of the slave device at the same time.
The server provided in the embodiment of the present invention may be used to execute the method embodiments shown in fig. 7 and fig. 8, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 12 is a schematic diagram of a hardware structure of a first terminal device according to yet another embodiment of the present invention. As shown in fig. 12, the first terminal device 100 provided in the present embodiment includes: at least one processor 1001 and memory 1002. The first terminal device 100 further includes: battery module 1003, positioning module 1004, short-range communication module 1005, and long-range communication module 1006.
In a specific implementation process, the at least one processor 1001 executes the computer executable instructions stored in the memory 1002, so that the at least one processor 1001 executes the positioning method executed by the first terminal device 100 as described above.
For a specific implementation process of the processor 1001, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 12, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high speed RAM memory and may further comprise: non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
Fig. 13 is a schematic hardware structure diagram of a server according to another embodiment of the present invention. As shown in fig. 13, the server 110 provided in the present embodiment includes: at least one processor 1101 and memory 1102. The server 110 further comprises: a communication section 1103. The processor 1101, the memory 1102, and the communication unit 1103 are connected by a bus 1104.
In a particular implementation, the at least one processor 1101 executes computer-executable instructions stored by the memory 1102 to cause the at least one processor 1101 to perform a positioning method as performed by the server 110 above.
For a specific implementation process of the processor 1101, reference may be made to the above method embodiments, which implement similar principles and technical effects, and details of this embodiment are not described herein again.
The communication section 1103 can perform data interaction with the first terminal device and the second terminal device.
In the embodiment shown in fig. 13, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high speed RAM memory and may further comprise: non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the positioning method performed by the first terminal device is implemented.
The present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the positioning method performed by the server is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (26)

1. A method of positioning, comprising:
the method comprises the steps that a first terminal device receives an establishment instruction sent by a server; the establishing instruction is used for indicating the first terminal equipment to establish communication connection with second terminal equipment; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device, and the positioning information includes: at least one of position information, velocity information, or attitude information;
the first terminal equipment acquires the remaining standby time of the second terminal equipment, wherein the remaining standby time is determined according to the remaining electric quantity and the electric consumption in unit time;
the first terminal device selects a device with long remaining standby time from the first terminal device and the second terminal device as a master device, and a device with short remaining standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module;
the method further comprises the following steps:
if the first terminal equipment is the main equipment, the first terminal equipment judges whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value; if so, the first terminal equipment generates a restart signal;
and the first terminal equipment sends the restart signal to the second terminal equipment and disconnects the second terminal equipment so that the second terminal equipment starts a positioning module of the second terminal equipment according to the restart signal.
2. The method of claim 1, wherein the obtaining, by the first terminal device, the remaining standby time of the second terminal device comprises:
and the first terminal equipment acquires the remaining standby time of the second terminal equipment through short-distance wireless communication connection.
3. The method of claim 1, wherein the obtaining, by the first terminal device, the remaining standby time of the second terminal device comprises:
the first terminal equipment acquires the residual electric quantity and the unit time electric consumption of the second terminal equipment through short-distance wireless communication connection;
and the first terminal equipment determines the remaining standby time of the second terminal equipment according to the remaining power and the power consumption of the second terminal equipment per unit time.
4. The method of claim 1, wherein after the first terminal device selects a device with long remaining standby time as a master device and a device with short remaining standby time as a slave device, the method further comprises:
if the first terminal device is the main device, the first terminal device sends the positioning information acquired by the positioning module of the first terminal device to the server, so that the server can simultaneously use the positioning information as the positioning information of the first terminal device and the second terminal device.
5. The method of claim 1, wherein before the first terminal device obtains the remaining standby time of the second terminal device, further comprising:
and the first terminal equipment establishes short-distance wireless communication connection between the first terminal equipment and second terminal equipment according to the establishment instruction.
6. The method according to any of claims 1-5, wherein before the first terminal device acquires the remaining standby time of the second terminal device through the short-range wireless communication connection, further comprising:
the first terminal equipment displays a mode selection interface and receives a mode selection instruction input by a user through the mode selection interface;
and responding to the mode selection instruction, and acquiring the remaining standby time of the second terminal equipment by the first terminal equipment through short-distance wireless communication connection.
7. The method according to any one of claims 1 to 5, wherein the first terminal device selects a device with long remaining standby time as a master device from the first terminal device and the second terminal device, and after selecting a device with short remaining standby time as a slave device, the method further comprises:
if the first terminal equipment is available, the first terminal equipment displays a positioning switching reminding interface and receives a selection instruction input by a user through the positioning switching reminding interface;
and responding to the selection instruction, and opening and closing the self positioning module by the first terminal equipment.
8. The method according to any of claims 1-5, wherein the short-range wireless communication connection is Bluetooth, ANT +, or WiFi.
9. The method of any one of claims 1-5, wherein the first terminal device is a cell phone, a tablet, or a designated driver recorder.
10. A method of positioning, comprising:
the method comprises the steps that a first terminal device receives an establishment instruction sent by a server; the establishing instruction is used for indicating the first terminal equipment to establish communication connection with second terminal equipment; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device, and the positioning information includes: at least one of position information, velocity information, or attitude information;
the first terminal equipment sends the state information of the first terminal equipment to a server, so that the server selects equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, equipment with short residual standby time is used as slave equipment, and the residual standby time is determined according to residual electric quantity and unit time electric consumption; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module; after the first terminal device sends its own state information to the server, the method further includes:
if the first terminal equipment is the main equipment, the first terminal equipment judges whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value;
if so, the first terminal device generates a restart signal and sends the restart signal to the second terminal device, and the connection with the second terminal device is disconnected, so that the second terminal device starts a positioning module of the second terminal device according to the restart signal.
11. The method of claim 10, wherein before the first terminal device sends its own status information to the server, the method further comprises:
and the first terminal equipment establishes short-distance wireless communication connection with second terminal equipment according to the establishment instruction.
12. The method according to claim 10 or 11, wherein before the first terminal device sends its own status information to the server, the method further comprises:
the first terminal equipment displays a mode selection interface and receives a mode selection instruction input by a user through the mode selection interface;
and responding to the mode selection instruction, and acquiring the remaining standby time of the second terminal equipment by the first terminal equipment through short-distance wireless communication connection.
13. The method according to claim 10 or 11, wherein after the first terminal device sends its own status information to the server, the method further comprises:
if the first terminal equipment is detected to be in the first state, the first terminal equipment displays a positioning switching reminding interface, and receives a selection instruction input by a user through the positioning switching reminding interface;
and responding to the selection instruction, and opening and closing a self positioning module of the first terminal equipment.
14. The method according to claim 10 or 11, wherein the short-range wireless communication connection is bluetooth, ANT + or WiFi.
15. The method of claim 10 or 11, wherein the first terminal device is a cell phone, a tablet computer, or a designated drive recorder.
16. A method of positioning, comprising:
the method comprises the steps that a server sends a building instruction to a first terminal device, wherein the building instruction is used for indicating the first terminal device to build communication connection with a second terminal device; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device, and the positioning information includes: at least one of position information, velocity information, or attitude information;
the server acquires the remaining standby time of the first terminal equipment and the remaining standby time of the second terminal equipment, wherein the remaining standby time is the power consumption according to the remaining power and the unit time;
the server selects equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time is used as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module;
and the server receives the positioning information which is sent by the main equipment and acquired by the positioning module of the main equipment, and simultaneously takes the positioning information as the positioning information of the main equipment and the positioning information of the slave equipment.
17. The method of claim 16, wherein the server obtains the remaining standby time of the first terminal device and the remaining standby time of the second terminal device, and comprises:
the server acquires the residual capacity and the unit time power consumption of the first terminal equipment and the residual capacity and the unit time power consumption of the second terminal equipment;
and the server determines the remaining standby time of the first terminal equipment according to the remaining power and the power consumption per unit time of the first terminal equipment, and determines the remaining standby time of the second terminal equipment according to the remaining power and the power consumption per unit time of the second terminal equipment.
18. A first terminal device, comprising:
the first acquisition module is used for acquiring the remaining standby time of the second terminal equipment by the first terminal equipment, wherein the remaining standby time is the power consumption according to the remaining power and the unit time;
the first processing module is used for the first terminal equipment to select equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment, and equipment with short residual standby time is used as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module;
the first terminal device further includes: a first one of the restart modules is configured to restart,
the first restarting module is used for the first terminal equipment to judge whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value; if so, the first terminal equipment generates a restart signal and sends the restart signal to the second terminal equipment, and the connection with the second terminal equipment is disconnected, so that the second terminal equipment starts a positioning module of the second terminal equipment according to the restart signal;
the first terminal device further includes: a first receiving module for receiving the first data,
the first receiving module is configured to: receiving an establishment instruction sent by a server; the establishing instruction is used for indicating the first terminal equipment to establish communication connection with second terminal equipment; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device, and the positioning information includes: at least one of position information, velocity information, or attitude information.
19. A first terminal device, comprising:
the first sending module is used for sending the state information of the first terminal equipment to the server so that the server selects equipment with long residual standby time from the first terminal equipment and the second terminal equipment as main equipment and equipment with short residual standby time as slave equipment; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module;
the first terminal device further includes: a second one of the restart modules is configured to restart the engine,
the second restarting module is used for judging whether the signal intensity of the short-distance wireless communication connection is lower than a preset intensity threshold value by the first terminal equipment;
if so, the first terminal equipment generates a restart signal and sends the restart signal to the second terminal equipment, and the connection with the second terminal equipment is disconnected, so that the second terminal equipment starts a positioning module of the second terminal equipment according to the restart signal;
the first terminal device further includes: a first receiving module for receiving the first data,
the first receiving module is further configured to: receiving an establishment instruction sent by a server; the establishing instruction is used for indicating the first terminal equipment to establish communication connection with second terminal equipment; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device, and the positioning information includes: at least one of position information, velocity information, or attitude information.
20. A server, comprising:
the second acquisition module is used for acquiring the remaining standby time of the first terminal equipment and the remaining standby time of the second terminal equipment by the server, wherein the remaining standby time is determined according to the remaining electric quantity and the electric power consumption in unit time;
a second processing module, configured to select, by the server, a device with a long remaining standby time from the first terminal device and the second terminal device as a master device, and a device with a short remaining standby time as a slave device; the master device is used for acquiring positioning information and sharing the positioning information to the slave device through short-distance communication connection, and the slave device is used for closing the positioning module;
the server further comprises: a third receiving module, configured to receive, by the server, positioning information sent by the master device and obtained by the positioning module of the master device, and use the positioning information as positioning information of the master device and the slave device at the same time;
the server further comprises: a second sending module for sending the data to the second sending module,
the second sending module is specifically configured to: sending a setup instruction to a first terminal device, wherein the setup instruction is used for indicating the first terminal device to establish communication connection with a second terminal device; the establishment instruction is determined by the server according to the positioning information of the first terminal device and the positioning information of the second terminal device, and the positioning information includes: at least one of position information, velocity information, or attitude information.
21. A first terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
execution of computer-executable instructions stored by the memory by the at least one processor causes the at least one processor to perform the positioning method of any of claims 1 to 9.
22. A first terminal device, comprising: at least one processor and a memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the positioning method of any of claims 10 to 15.
23. A server, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the positioning method of claim 16 or 17.
24. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, implement the positioning method according to any one of claims 1 to 9.
25. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, implement the positioning method according to any one of claims 10 to 15.
26. A computer-readable storage medium, having stored thereon computer-executable instructions, which, when executed by a processor, implement the positioning method according to claim 16 or 17.
CN201911402806.2A 2019-12-31 2019-12-31 Positioning method, first terminal device and server Active CN111866735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911402806.2A CN111866735B (en) 2019-12-31 2019-12-31 Positioning method, first terminal device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911402806.2A CN111866735B (en) 2019-12-31 2019-12-31 Positioning method, first terminal device and server

Publications (2)

Publication Number Publication Date
CN111866735A CN111866735A (en) 2020-10-30
CN111866735B true CN111866735B (en) 2023-03-24

Family

ID=72970911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911402806.2A Active CN111866735B (en) 2019-12-31 2019-12-31 Positioning method, first terminal device and server

Country Status (1)

Country Link
CN (1) CN111866735B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810847B (en) * 2021-10-29 2024-03-19 蓝色创源(北京)科技有限公司 Position calculation method, device, system, equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4645939B2 (en) * 2004-07-22 2011-03-09 日本電気株式会社 Mobile base station position determination system, terminal position determination system, mobile base station, radio terminal and base station position determination program
CN105813015A (en) * 2014-12-31 2016-07-27 环达电脑(上海)有限公司 Positioning sharing method
CN107567082A (en) * 2017-10-12 2018-01-09 北京小米移动软件有限公司 The control method and terminal device of network mode
CN108040320B (en) * 2017-12-13 2020-06-26 Oppo广东移动通信有限公司 GNSS positioning control method and device, storage medium and mobile terminal
CN109040956B (en) * 2018-08-02 2020-08-14 深圳市中科信通信息技术有限公司 Mobile terminal energy-saving positioning method based on Internet of things

Also Published As

Publication number Publication date
CN111866735A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US9656621B2 (en) System and method for sensor module power management
US11950167B2 (en) Location data transmission scheduling for a mobile computing device
US10857900B2 (en) Methods and systems for scheduling utility events into a charging schedule
JP7289623B2 (en) Method of operating electric vehicle, electric vehicle and non-transitory computer readable medium
US10554066B2 (en) Energy management method for a device with a rechargeable battery
US11709500B2 (en) Gateway system with multiple modes of operation in a fleet management system
EP4258752A1 (en) Low-power modes for a vehicle telematics device
CN111866735B (en) Positioning method, first terminal device and server
CN105704794A (en) Telematics control system and method
CN113869988A (en) Intelligent charging method and device for electric automobile and electronic terminal equipment
TW201346825A (en) Taxi monitoring and dispatching system combining vehicle-mounted device and smart phone
JP2014155351A (en) Information provision system
CN112706712A (en) Standby control method and device for vehicle-mounted host and vehicle
CN115130824A (en) Pure electric bus scheduling method and device, electronic equipment and storage medium
JPWO2008075421A1 (en) Information notification device, information notification method, information notification program, and recording medium
JP6539903B2 (en) EV charge management method, EV charge management system and charge method
CN108846905A (en) A kind of taxi is refused to take passengers and does not beat the monitoring method of meter expense
JP2023003348A (en) Information processing device, information processing system, program, and vehicle
KR20120011305A (en) Electronic terminal device for car and management system using it
US20160370472A1 (en) Portable electronic device and method for locating vehicle
WO2020225983A1 (en) Information collecting terminal apparatus
TWI626463B (en) System for automatically recording vehicle driving record using vehicle-mounted device and handheld communication equipment
JP2022124918A (en) On-vehicle device and monitoring system
CN117595421A (en) Discharge control method and device
JP2023083159A (en) Control device, system, program, and notification method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant