CN-121984980-A - Method, device, equipment and storage medium for synchronizing cross-equipment navigation tasks
Abstract
The application is suitable for the technical field of data transmission and provides a method, a device, equipment and a storage medium for synchronizing a cross-equipment navigation task, wherein the method comprises the steps that if a first terminal meets preset cross-equipment transmission conditions, navigation data are acquired from a first navigation application through a first navigation circulation module; the navigation system comprises a first navigation circulation module, a second terminal, a second navigation application and a navigation task updating module, wherein the first navigation circulation module is used for generating navigation synchronous information of navigation data, the second terminal is used for receiving the navigation synchronous information sent by the first terminal and transmitting the navigation synchronous information to the second navigation application, and the navigation task of the second navigation application is updated according to the navigation synchronous information. According to the technical scheme provided by the application, the synchronization of the cross-equipment navigation tasks can be realized, and under the condition that the cross-equipment navigation scene is needed, the user is not required to perform task setting on the navigation application of the terminal for a plurality of times, so that the efficiency of the navigation task setting is greatly improved, and the repeated operation of the user is reduced.
Inventors
- WAN LI
Assignees
- 华为终端有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20211025
Claims (20)
- 1. The method for synchronizing the cross-equipment navigation tasks is applied to a first terminal, wherein the first terminal is a smart phone, and is characterized by comprising the following steps: If the preset cross-equipment transmission condition is met, navigation data are acquired from a first navigation application through a first navigation circulation module; Generating navigation synchronization information corresponding to the navigation data through the first navigation circulation module; And sending the navigation synchronization information to a second terminal, wherein the navigation synchronization information is used for updating the navigation task of a second navigation application in the second terminal.
- 2. The synchronization method according to claim 1, wherein the obtaining, by the first navigation circulation module, the navigation data from the first navigation application if the preset cross-device transmission condition is satisfied, includes: Receiving a communication tag sent by a second near field communication module of the second terminal in response to touch operation with the second terminal, wherein the communication tag carries a starting identifier for synchronizing navigation tasks; and responding to the communication tag, starting the first navigation circulation module, and acquiring the navigation data from the first navigation application through the first navigation circulation module.
- 3. The synchronization method according to claim 2, wherein the communication tag is obtained by sending a tag writing request to a tag service thread through the second navigation circulation module when the second terminal detects that a tag writing condition is satisfied, responding to the tag writing request through the tag service thread, adding the start identifier to the communication tag, and writing the communication tag to the second near field communication module.
- 4. The synchronization method according to claim 1, wherein the obtaining, by the first navigation circulation module, the navigation data from the first navigation application if the preset cross-device transmission condition is satisfied, includes: The navigation circulation notification is sent to the first terminal when the second navigation circulation module of the second terminal is detected to be in a starting state after the second terminal is connected with the first terminal; and responding to the navigation circulation notification, and acquiring navigation data from the first navigation application through the first navigation circulation module.
- 5. The synchronization method according to claim 4, further comprising, prior to said receiving the navigation flow notification sent by the second terminal: Receiving a wake-up instruction sent by the second terminal through a second near field communication module; And responding to the wake-up instruction, and sending a wireless connection request to the second terminal so as to establish communication connection with the second terminal.
- 6. The synchronization method of claim 1, wherein the first terminal is a vehicle intelligent control terminal installed on a vehicle; If the preset cross-device transmission condition is met, navigation data is acquired from a first navigation application through a first navigation circulation module, including: if a parking event related to the vehicle is detected, establishing near field communication connection with the second terminal, wherein the near field communication connection is used for sending navigation synchronization information to the second terminal; Acquiring a navigation synchronous application list, and if the navigation synchronous application list is non-empty, acquiring a setting state of a first navigation circulation module; And if the first navigation circulation module is in a starting state, acquiring navigation data from the first navigation application through the first navigation circulation module.
- 7. The synchronization method according to claim 6, wherein the establishing a near field communication connection with the second terminal if a parking event with respect to the vehicle is detected, comprises: Identifying the connection state of each registered terminal in a preset registered equipment list through the second navigation circulation module; If the second terminal is in the registration equipment list and the connection state of the second terminal is a connectable state, establishing near field communication connection with the second terminal based on connection information associated with the second terminal in the registration equipment list; And if the second terminal is not in the registration equipment list or the second terminal is in the registration equipment list and the connection state of the second terminal is in an unconnected state, sending a wake-up instruction to the second terminal through a first near field communication module, wherein the wake-up instruction is used for enabling the second terminal to establish communication connection with the first terminal.
- 8. The synchronization method according to any one of claims 1-7, further comprising, before the obtaining, by the first navigation circulation module, navigation data from the first navigation application if the preset cross-device transmission condition is met: generating a navigation task through the first navigation application in response to a navigation operation of a user, wherein the navigation data is generated based on the navigation task; Receiving a service registration instruction transmitted by the first navigation application through the first navigation circulation module, wherein the service registration instruction is used for authorizing the first navigation application to have the right of transmitting navigation data among devices; And responding to the service registration instruction, adding the first navigation application to a navigation synchronous application list, and setting the first navigation circulation module to a starting state, wherein the starting state is used for sending navigation synchronous information generated based on the first navigation application to the second terminal when the cross-equipment transmission condition is met.
- 9. The synchronization method according to any one of claims 1-8, further comprising, after said transmitting said navigation synchronization information to the second terminal: receiving navigation synchronization completion information fed back by the second terminal through the second navigation circulation module; And transmitting an ending instruction about a navigation task to the first navigation application through the first navigation circulation module in response to the navigation synchronization completion information so as to stop the navigation task of the first navigation application.
- 10. The synchronization method according to any one of claims 1-9, further comprising, before said sending said navigation synchronization information to the second terminal: Acquiring a navigation application list of the second terminal, wherein the navigation application list comprises the second navigation application; and if the navigation application list contains the navigation application matched with the first navigation application, the navigation synchronous information is sent to the second terminal, wherein the navigation application matched with the first navigation application is specifically an application with the permission of realizing cross-equipment transmission of navigation data with the first navigation application.
- 11. The method for synchronizing the cross-equipment navigation task is applied to a second terminal, wherein the second terminal is a vehicle-mounted terminal, and is characterized by comprising the following steps: receiving navigation synchronization information sent by a first terminal, wherein the navigation synchronization information is generated based on navigation data of a first navigation application in the first terminal; Transmitting the navigation synchronization information to a second navigation application through a second navigation circulation module; and updating the navigation task of the second navigation application based on the navigation synchronization information.
- 12. The synchronization method according to claim 11, wherein the receiving the navigation synchronization information sent by the first terminal includes: Transmitting a communication tag to the first terminal through a second near field communication module in response to touch operation with the first terminal, so that the first terminal responds to the communication tag, starts a first navigation circulation module, and acquires the navigation data from the first navigation application through the first navigation circulation module; And receiving the navigation synchronization information sent by the first terminal through the first navigation circulation module.
- 13. The synchronization method according to claim 12, further comprising, before said transmitting a communication tag to said first terminal via a second near field communication module in response to a touch operation with said first terminal: if the preset tag writing condition is met, a tag writing request is sent to a tag service thread through the second navigation circulation module; and responding to the tag writing request through the tag service thread, adding the starting identification into the communication tag, and writing the communication tag into the second near field communication module.
- 14. The synchronization method according to claim 11, wherein the second terminal is a vehicle intelligent control terminal mounted on a vehicle; Before receiving the navigation synchronization information sent by the first terminal, the method further comprises the following steps: if a door opening event about the vehicle is detected, establishing communication connection with the first terminal; acquiring a navigation synchronous application list, and if the navigation synchronous application list is non-empty, acquiring a setting state of a second navigation circulation module; and if the second navigation circulation module is in a starting state, sending a navigation circulation notification to the first terminal so that the first terminal sends the navigation synchronization information.
- 15. The synchronization method according to claim 14, wherein the establishing a communication connection with the first terminal if a door opening event with respect to the vehicle is detected comprises: Identifying the connection state of each registered terminal in a preset registered equipment list through the second navigation circulation module; If the first terminal is in the registration equipment list and the connection state of the first terminal is a connectable state, establishing communication connection with the first terminal based on connection information associated with the first terminal in the registration equipment list; And if the first terminal is not in the registration equipment list, or the first terminal is in the registration equipment list and the connection state of the first terminal is an unconnected state, sending a wake-up instruction to the first terminal through a second near field communication module, wherein the wake-up instruction is used for enabling the first terminal to establish near field communication connection with the second terminal.
- 16. The synchronization method of claim 11, wherein the second terminal is a user terminal carried by a user, and the first terminal is a vehicle intelligent control terminal installed on a vehicle; The transmitting the navigation synchronization information to a second navigation application through a second navigation circulation module comprises the following steps: the navigation synchronization information is cached in a cache area through the second navigation circulation module, and heartbeat signals in communication connection with the first terminal are detected; And if the heartbeat signal is not received within the preset effective time, the near field communication connection with the first terminal is identified to be disconnected, and the navigation synchronization information is transmitted to the second navigation application.
- 17. The synchronization method according to any one of claims 11-16, further comprising, after said receiving the navigation synchronization information sent by the first terminal: Detecting whether a navigation application matched with the first navigation application exists in a navigation application list or not; If the fact that the navigation application matched with the first navigation application exists in the navigation application list is detected, the navigation application matched with the first navigation application is used as the second navigation application, the operation of transmitting the navigation synchronous information to the second navigation application through the second navigation circulation module is executed, and the navigation application matched with the first navigation application is specifically an application with the permission of transmitting navigation data across equipment with the second navigation application.
- 18. The synchronization method according to any one of claims 11-17, wherein said updating the navigation task of the second navigation application based on the navigation synchronization information comprises: determining a navigation destination based on the navigation synchronization information, and generating task update prompt information based on the navigation destination; and if an update confirmation instruction fed back based on the update prompt information is received, updating the navigation task based on the navigation destination.
- 19. The synchronization method according to any one of claims 11-18, further comprising, after said updating a navigation task of said second navigation application based on said navigation synchronization information: And transmitting navigation synchronization completion information to the first terminal so that the first terminal responds to the navigation synchronization completion information and transmits an ending instruction about a navigation task to the first navigation application through the first navigation circulation module to stop the navigation task of the first navigation application.
- 20. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 10 when the computer program is executed by the processor.
Description
Method, device, equipment and storage medium for synchronizing cross-equipment navigation tasks The present application is a divisional application, the application number of which is 202111244792.3, the application date of which is 2021, 10 months and 25 days, and the entire contents of which are incorporated herein by reference. Technical Field The application belongs to the technical field of equipment control, and particularly relates to a method, a device, equipment and a storage medium for synchronizing a cross-equipment navigation task. Background Along with the continuous development of navigation technology, the application scene of the navigation technology is continuously increased, and the navigation technology gradually develops to the application scene fields of navigation and the like for walking users from initial automobile driving navigation, even the navigation application becomes one of the indispensable important applications in the life and working process of people. Therefore, how to quickly and conveniently complete the navigation task becomes a technical problem to be solved. In the existing navigation application, a user can set a navigation destination on the navigation application of the terminal, and the navigation application can generate a navigation task according to the position of the user and the set navigation destination and prompt the traveling direction of the user in the traveling process of the user so as to realize the purpose of navigation. However, in the actual navigation process of the user, multiple different navigation scenes may exist, and the terminals used for navigation in the different navigation scenes are often different, for example, in the driving scene of the vehicle, the user can navigate through the navigation application in the vehicle-mounted terminal, and in the walking scene, the user uses the portable smart phone to complete the navigation task, so that if the navigation process includes multiple different navigation scenes, the user needs to set the navigation task in the different terminals for multiple times, thereby greatly increasing the configuration operation of the user and reducing the setting efficiency of the navigation task. Disclosure of Invention The embodiment of the application provides a method, a device, equipment and a storage medium for synchronizing a cross-equipment navigation task, which can solve the problems that in a cross-equipment navigation scene, a user is required to set the navigation task for a plurality of times, the setting efficiency of the navigation task is low, and the repeated setting of the user is increased. In a first aspect, an embodiment of the present application provides a method for synchronizing a navigation task across devices, including: If the first terminal meets the preset cross-equipment transmission condition, navigation data are acquired from a first navigation application; the first terminal generates navigation synchronous information of the navigation data; The second terminal receives the navigation synchronization information sent by the first terminal and transmits the navigation synchronization information to a second navigation application; And the second terminal updates the navigation task of the second navigation application according to the navigation synchronous information. In one possible implementation manner of the first aspect, the first terminal comprises a first navigation circulation module; If the first terminal meets the preset cross-equipment transmission condition, navigation data are acquired from the first navigation application, specifically, if the first terminal meets the preset cross-equipment transmission condition, the first terminal acquires the navigation data from the first navigation application through the first navigation circulation module; the navigation synchronization information of the navigation data is specifically generated by the first terminal through the first navigation circulation module; The second terminal receives the navigation synchronization information sent by the first terminal and transmits the navigation synchronization information to a second navigation application, specifically, the second terminal receives the navigation synchronization information sent by the first terminal and transmits the navigation synchronization information to the second navigation application through a second navigation circulation module. When the first terminal detects that the cross-device transmission condition is met, the first terminal automatically acquires the navigation data of the started navigation task from the first navigation application through the first navigation circulation module local to the first terminal, generates the navigation synchronization information corresponding to the navigation data through the first navigation circulation module, and sends the navigation synchronization information to the second terminal, so that th