A method, device, electronic device and storage medium for transmitting navigation data
By receiving the status information of navigation applications in the on-board system and determining priority, the adaptability problem of navigation data transmission in multiple navigation scenarios is solved, and orderly data transmission in multiple navigation scenarios is realized and development costs are reduced.
Patent Information
- Application Number
- CN202411918659.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-25
AI Technical Summary
In the prior art, the transmission of navigation data is difficult to adapt to multi-navigation scenarios, making it difficult to apply multi-navigation scenarios to large-scale applications in vehicle-mounted systems.
By receiving the status information sent by the navigation application, the priority of each navigation application is determined, and after receiving the navigation instructions sent by the ecological application, it is sent to the target navigation application with the highest priority, which is processed and returned to the navigation data.
The orderly data transmission of each navigation application in multiple navigation scenarios is realized, which reduces the development adaptation cost. The solution is purely developed with no underlying system access, simple implementation and easy maintenance.
Smart Images

Figure CN119356911B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicles, and specifically relates to a navigation data transmission method, device, electronic device and storage medium. Background Art
[0002] In the car system, a variety of ecological applications and navigation applications will be installed. For example, ecological applications include weather, desktop, multimedia and other applications, while navigation applications are applications that provide various navigation functions.
[0003] Among them, there are scenarios where navigation capabilities are used in ecological applications. For example, the desktop can initiate navigation, the weather can obtain longitude and latitude from the navigation, and the voice can obtain surrounding geographic information from the navigation. Moreover, multiple navigation applications can be integrated into the vehicle system to enrich the navigation experience.
[0004] Therefore, in order to provide better navigation services, the vehicle-mounted system needs to adapt to multiple navigation scenarios, that is, to realize data transmission between multiple ecological applications and multiple navigation applications. However, in the prior art, multiple navigation scenarios are very complex, which makes it difficult to adapt the transmission of navigation data to multiple navigation scenarios, making it difficult to apply multiple navigation scenarios on a large scale in vehicle-mounted systems. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a navigation data transmission method, device, electronic device and storage medium, which can solve the problem that the current navigation data transmission is difficult to adapt to multiple navigation scenarios, making it difficult to apply multiple navigation scenarios on a large scale in vehicle-mounted systems.
[0006] In a first aspect, an embodiment of the present application provides a navigation data transmission method, which is applied to a navigation service in a vehicle-mounted system, including:
[0007] Receiving status information sent by any navigation application; the status information is used to indicate the running status of any navigation application;
[0008] Determining a first priority of any one of the navigation applications according to the state information;
[0009] Receive a navigation instruction sent by any ecological application, send the navigation instruction to a target navigation application, and send navigation data returned by the target navigation application to any ecological application; wherein the target navigation application is the navigation application with the highest first priority.
[0010] Optionally, determining the first priority of any one of the navigation applications according to the state information includes:
[0011] When the status information indicates that any one of the navigation applications is in a navigation state, the first priority of any one of the navigation applications is determined as a first level, and the first priority of other navigation applications except the any one of the navigation applications is determined as a corresponding preset default level; wherein the first level is higher than the preset default level.
[0012] Optionally, the navigation application includes a default navigation application and at least one candidate navigation application, wherein:
[0013] The preset default level corresponding to the default navigation application is the third level, the preset default level corresponding to the candidate navigation application is the fourth level, and the third level is higher than the fourth level.
[0014] Optionally, before determining the first priority of other navigation applications except the any navigation application as the corresponding preset default level, the method further includes:
[0015] In the case where the state information indicates that any one of the navigation applications is in a navigation state, determining whether there is a mutually exclusive navigation application at the current moment, the mutually exclusive navigation application being another navigation application in the navigation state except for the any one of the navigation applications;
[0016] If so, a notification message is sent to the mutually exclusive navigation application; the notification message is used to prompt the mutually exclusive navigation application to exit the navigation state.
[0017] Optionally, determining the first priority of any one of the navigation applications according to the state information further includes:
[0018] When the status information indicates that any one of the navigation applications is running in the foreground, obtaining the second priority of each navigation application at the current moment;
[0019] If there is no navigation application whose second priority is the first level, the first priority of any one of the navigation applications is determined as the second level, and the first priority of other navigation applications except any one of the navigation applications is determined as the corresponding preset default level; wherein the first level is higher than the second level, and the second level is higher than the preset default level.
[0020] Optionally, after obtaining the second priority of each navigation application at the current moment, the method further includes:
[0021] If there is a navigation application whose second priority is the first level, then the first priority of any navigation application is the same as the second priority.
[0022] Optionally, determining the first priority of any one of the navigation applications according to the state information further includes:
[0023] In a case where the status information indicates that any one of the navigation applications is running in the background, it is determined that the first priority of any one of the navigation applications is the same as the second priority of any one of the navigation applications at the current moment.
[0024] Optionally, determining the first priority of any one of the navigation applications according to the state information further includes:
[0025] When the status information indicates that any one of the navigation applications is in a closed state, the first priority of any one of the navigation applications is determined to be the corresponding preset default level.
[0026] Optionally, before receiving the status information sent by any navigation application, the method further includes:
[0027] Establish communication connection with each navigation application based on cross-process communication technology;
[0028] Before receiving the navigation instruction sent by any ecological application, the method further includes:
[0029] Based on the cross-process communication technology, a communication connection is established with each ecological application.
[0030] In a second aspect, an embodiment of the present application provides a navigation data transmission device, which is applied to a navigation service in a vehicle-mounted system, including:
[0031] A receiving module, used to receive status information sent by any navigation application; the status information is used to indicate the running status of any navigation application;
[0032] A determination module, configured to determine a first priority of any one of the navigation applications according to the state information;
[0033] A transmission module is used to receive navigation instructions sent by any ecological application, send the navigation instructions to a target navigation application, and send navigation data returned by the target navigation application to any ecological application; wherein the target navigation application is the navigation application with the highest first priority.
[0034] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the second aspect are implemented.
[0035] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
[0036] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the second aspect.
[0037] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the second aspect.
[0038] In the solution provided in the embodiment of the present application, the navigation data transmission method is applied to the navigation service in the vehicle system, and can receive status information sent by any navigation application; the status information is used to indicate the running status of any navigation application; based on the status information, the first priority of any navigation application is determined; the navigation instructions sent by any ecological application are received, the navigation instructions are sent to the target navigation application, and the navigation data returned by the target navigation application is sent to any ecological application; wherein the target navigation application is the navigation application with the highest first priority.
[0039] In this way, by managing the first priority of each navigation application, the target navigation application with the highest first priority is determined from multiple navigation applications, and the target navigation application processes the navigation instructions sent by the ecological application, so that each navigation application in multiple navigation scenarios can transmit data in an orderly manner. Among them, the navigation service in the vehicle system is used as the middle layer to connect the ecological application and the navigation application, which can greatly reduce the development and adaptation cost. Moreover, this solution is a pure application layer development, does not require the underlying system access, is simple to implement, and easy to maintain, thereby meeting the application requirements of multiple navigation scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart showing a method for transmitting navigation data according to an exemplary embodiment;
[0041] Figure 2 is a schematic diagram of a system architecture of a navigation data transmission method according to an exemplary embodiment;
[0042] Figure 3 is a block diagram of a navigation data transmission device according to an exemplary embodiment;
[0043] Figure 4 is a block diagram of an electronic device according to an exemplary embodiment;
[0044] Figure 5 The figure is a schematic diagram showing the hardware structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0046] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0047] The navigation data transmission method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0048] Figure 1 The present invention is a flowchart of a navigation data transmission method according to an exemplary embodiment. The navigation data transmission method is applied to a navigation service in a vehicle-mounted system, and includes the following steps:
[0049] Step S11: receiving status information sent by any navigation application; the status information is used to indicate the running status of any navigation application.
[0050] Ecological applications such as weather, desktop, multimedia, and multiple navigation applications that can provide navigation functions will be installed in the vehicle system. In some cases, ecological applications need to obtain navigation data provided by navigation applications. For example, the desktop can initiate navigation, the weather can obtain longitude and latitude from the navigation, and the voice can obtain surrounding geographic information from the navigation, thereby enriching the navigation experience.
[0051] In the related art, the transmission of navigation data is difficult to adapt to multiple navigation scenarios, making it difficult to apply multiple navigation scenarios on a large scale in vehicle-mounted systems. Therefore, in order to provide better navigation services, a navigation data transmission method for navigation services applied to vehicle-mounted systems is proposed in this application to solve the above problems.
[0052] Among them, the navigation service is a background service application pre-installed in the vehicle system, which is responsible for connecting the ecological applications and navigation applications installed in the vehicle system.
[0053] First, in this step, it is necessary to receive status information sent by any navigation application, wherein the status information is used to indicate the running status of any navigation application, that is, the navigation application will actively send its own status information to the navigation service to notify the navigation service of its own running status.
[0054] In the vehicle system, the running status of each navigation application may include navigation status, foreground running, background running and closed status. Among them, the navigation status means that the current navigation application is navigating, the foreground running means that the application interface of the current navigation application is being displayed on the screen, the background running means that the application interface of the current navigation application is not displayed on the screen, and the closed status means that the current navigation application has exited navigation.
[0055] It can be understood that when multiple navigation applications are installed in the vehicle system, the operating status of each navigation application can change in response to the user's operating instructions, and after the operating status changes, the status information is sent to the navigation service. Alternatively, each navigation application can also periodically send status information to the navigation service at a preset time interval. This application does not specifically limit this.
[0056] Step S12: Determine the first priority of any navigation application according to the status information.
[0057] In this step, the navigation service can determine the first priority of each navigation application based on the status information of the navigation application, wherein the first priority can indicate the priority relationship of each navigation application. Furthermore, in subsequent steps, the transmission path of navigation instructions and navigation data can be determined based on the first priority of each navigation application.
[0058] In one implementation, determining the first priority of any navigation application according to the state information includes:
[0059] When the status information indicates that any navigation application is in the navigation state, the first priority of any navigation application is determined as the first level, and the first priority of other navigation applications except any navigation application is determined as the corresponding preset default level; wherein the first level is higher than the preset default level.
[0060] That is to say, if the status information indicates that a navigation application is in the navigation state, which means that the navigation application is currently navigating and collecting the vehicle's navigation data, then the navigation service can determine the first priority of the navigation application as the first level, and at the same time, determine the first priority of other navigation applications other than the navigation application as the corresponding preset default level.
[0061] The first level is the highest level in the first priority level, which is higher than the preset default level of each navigation application. In the present application, each navigation application in the vehicle system has its corresponding preset default level, which is used to indicate the default priority of each navigation application and can be determined according to the user's pre-settings. The preset default levels of each navigation application can be the same or different, and there is no specific limitation.
[0062] In other words, if a navigation application is in the navigation state, then the first priority of the navigation application is the first level, which is the highest first priority among all current navigation applications.
[0063] In one implementation, before determining the first priority of other navigation applications except any navigation application as the corresponding preset default level, the method further includes:
[0064] In the case where the state information indicates that any navigation application is in a navigation state, determining whether there is a mutually exclusive navigation application at the current moment, where the mutually exclusive navigation application is another navigation application in a navigation state except for any navigation application;
[0065] If it exists, a notification message is sent to the mutually exclusive navigation application; the notification message is used to prompt the mutually exclusive navigation application to exit the navigation state.
[0066] That is, when the navigation service determines that the state information indicates that a navigation application is in the navigation state, it can further determine the running state of other navigation applications other than the navigation application, and determine whether there are other mutually exclusive navigation applications in the navigation state. If there are, the navigation service can send a notification message to the mutually exclusive navigation application to prompt the mutually exclusive navigation application to exit the navigation state.
[0067] In this way, it can be ensured that only one navigation application is in the navigation state at the same time, thereby avoiding navigation conflicts among various navigation applications and reducing the occupation of system resources by navigation applications.
[0068] Among them, after receiving the notification message, the mutually exclusive navigation application can change its own running state to background running or closed state, and this application does not make any specific restrictions on this.
[0069] In one implementation, determining the first priority of any navigation application according to the state information further includes:
[0070] When the status information indicates that any navigation application is running in the foreground, obtaining the second priority of each navigation application at the current moment;
[0071] If there is no navigation application whose second priority is the first level, the first priority of any navigation application is determined as the second level, and the first priority of other navigation applications except any navigation application is determined as the corresponding preset default level; wherein the first level is higher than the second level, and the second level is higher than the preset default level.
[0072] That is, if the status information indicates that a certain navigation application is running in the foreground, which means that the application interface of the navigation application is being displayed on the screen, then the navigation service can obtain the second priority of each navigation application at the current moment.
[0073] Among them, the second priority and the first priority are also used to indicate the priority relationship between each navigation application. For the convenience of description, in this application, the priority of each navigation application at the current moment is referred to as the second priority, and the priority of each navigation application after updating based on the status information is referred to as the first priority.
[0074] If there is no navigation application with the second priority of the first level at the current moment, the first priority of the navigation application running in the foreground is determined as the second level, and the first priorities of other navigation applications except the navigation application are determined as the corresponding preset default levels, wherein the first level is higher than the second level, and the second level is higher than the preset default level.
[0075] In other words, if a navigation application is running in the foreground and there is no navigation application in the navigation state, the first priority of the current navigation application is the second level, which is the highest first priority among all navigation applications. However, the second level is lower than the first level, so if the running state of other navigation applications is switched to the navigation state, the corresponding first priority will also become the first level, which will be higher than the first priority of the current navigation application.
[0076] In one implementation, after obtaining the second priority of each navigation application at the current moment, the method further includes:
[0077] If there is a navigation application whose second priority is the first level, the first priority of any navigation application is the same as the second priority.
[0078] That is to say, in another case, if there is a navigation application whose second priority is the first level at the current moment, for example, if the second priority of the navigation application running in the foreground at the current moment is the first level, or if the second priority of other navigation applications is the first level, then the first priority of the navigation application running in the foreground at the current moment can be determined to be the same as its second priority, that is, the priority of the navigation application running in the foreground at the current moment does not change.
[0079] In other words, if a navigation application is running in the foreground, but there is a navigation application currently in the navigation state, the first priority of each navigation application does not change, and the vehicle is still navigated by the first-level navigation application at the current moment.
[0080] In one implementation, determining the first priority of any navigation application according to the state information further includes:
[0081] When the status information indicates that any navigation application is running in the background, it is determined that the first priority of any navigation application is the same as the second priority of any navigation application at the current moment.
[0082] That is to say, if the status information indicates that a navigation application is running in the background, which means that the application interface of the navigation application is not displayed on the screen, then the navigation service can determine the first priority of the navigation application running in the background at the current moment to be the same as its second priority, that is, the priority of the navigation application running in the background at the current moment does not change.
[0083] In other words, for a navigation application that is switched to run in the background, its first priority usually does not change, thereby avoiding multiple openings and conflicts of various navigation applications.
[0084] In one implementation, determining the first priority of any navigation application according to the state information further includes:
[0085] When the status information indicates that any navigation application is in a closed state, the first priority of any navigation application is determined to be the corresponding preset default level.
[0086] That is, if the status information indicates that a navigation application is in a closed state, indicating that the navigation application has exited navigation, then the navigation service may determine the first priority of the navigation application as the corresponding preset default level.
[0087] In one implementation, the navigation application includes a default navigation application and at least one candidate navigation application, wherein:
[0088] The preset default level corresponding to the default navigation application is the third level, and the preset default level corresponding to the candidate navigation application is the fourth level, and the third level is higher than the fourth level.
[0089] In the present application, the navigation application may include a default navigation application and at least one candidate navigation application, wherein the preset default level corresponding to the default navigation application is the third level, and the preset default level corresponding to the candidate navigation application is the fourth level, and the third level is higher than the fourth level, that is, the preset default level corresponding to the default navigation is higher than the preset default level corresponding to the candidate navigation application.
[0090] In this way, when the first priorities of various navigation applications are corresponding to the preset default levels, the default navigation application can still be determined according to the first priority, and then the default navigation application processes the navigation instructions of the ecological application, thereby realizing the transmission of navigation data.
[0091] Step S13: receiving a navigation instruction sent by any ecological application, sending the navigation instruction to a target navigation application, and sending navigation data returned by the target navigation application to any ecological application; wherein the target navigation application is a navigation application with the highest first priority.
[0092] In this step, after receiving the navigation instruction sent by any ecological application, the navigation service can determine the navigation application with the highest first priority as the target navigation application, and then send the navigation instruction to the target navigation application, which processes the navigation instruction and sends the navigation data returned by the target navigation application to the corresponding ecological application. In this way, the transmission of navigation data between ecological applications and navigation applications is realized.
[0093] In one implementation, before receiving the status information sent by any navigation application, the method further includes:
[0094] Establish communication connection with each navigation application based on cross-process communication technology;
[0095] Before receiving navigation instructions sent by any ecological application, it also includes:
[0096] Based on cross-process communication technology, establish a communication connection with each ecological application.
[0097] That is to say, in this application, based on IPC (Inter-Process Communication) technology, communication connections can be established between ecological applications and navigation services, and between navigation applications and navigation services. Among them, IPC technology can realize the process of data exchange between two processes. IPC technology allows different processes to interact through specific communication protocols and mechanisms, thereby achieving purposes such as resource sharing and task collaboration.
[0098] Specifically, AIDL (Android Interface Definition Language) can be used to implement IPC technology. AIDL technology is widely used in Android development and can realize data sharing and communication between multiple processes, facilitating modular development and function expansion. Common application scenarios include remote service calls and cross-process data transmission.
[0099] AIDL is based on RPC (Remote Procedure Call) and defines an interface description language for describing service interfaces and methods. Through AIDL, users can define their own interfaces and expose them to other processes through the Binder mechanism. Then, other processes can obtain the proxy object of the service to implement cross-process interface calls.
[0100] Using AIDL technology requires the following steps:
[0101] First, define the AIDL interface: define the AIDL interface on the service provider, including the methods and data types that need to be exposed; then, implement the AIDL interface: implement the AIDL interface on the service provider and use it as part of the service; then, obtain the proxy object: obtain the proxy object of the AIDL interface on the service consumer, which is used to call the interface methods across processes; finally, call the remote method: use the proxy object to call the AIDL interface method to implement cross-process calling.
[0102] like Figure 2 As shown, it is a system architecture diagram of the navigation data transmission method provided in this application, and the system architecture includes ecological applications, navigation services and navigation applications.
[0103] Among them, ecological applications include various applications such as weather, desktop, multimedia, including application A, application B, application C, etc.; navigation applications include navigation applications with various navigation functions provided by navigation manufacturers, including navigation A, navigation B, navigation C, etc., among which navigation A is the default navigation application, that is, the preset default priority of navigation A is higher than other navigation applications; navigation service is a background service application pre-installed in the vehicle system, which is responsible for connecting ecological applications and navigation applications.
[0104] Ecological applications can send navigation instructions to navigation applications through navigation services and use navigation-related capabilities of navigation applications. For example, navigation instructions may include but are not limited to: initiating navigation, searching nearby, obtaining geographic information, stopping navigation, and obtaining vehicle speed;
[0105] Then, the navigation service can conduct navigation competition, that is, determine the first priority of each navigation application according to the status information of each navigation application, and realize the mutual exclusion of each navigation application, etc.; in this way, the instructions issued by the ecological application can only be executed by the highest priority navigation application at the same time, and only the highest priority navigation application can return navigation data to the navigation service, and further forwarded by the navigation service to the ecological application. For example, the navigation data may include but is not limited to: road information, navigation status, vehicle speed, traffic lights, speed limit information.
[0106] As can be seen from the above, the technical solution provided by the embodiment of the present application manages the first priority of each navigation application, determines the target navigation application with the highest first priority from multiple navigation applications, and has the target navigation application process the navigation instructions sent by the ecological application, so that each navigation application in multiple navigation scenarios can transmit data in an orderly manner. Among them, the navigation service in the vehicle system is used as the middle layer to connect the ecological application and the navigation application, which can greatly reduce the development and adaptation costs. Moreover, this solution is a pure application layer development, does not require the underlying system access, is simple to implement, and is easy to maintain, thereby meeting the application requirements of multiple navigation scenarios.
[0107] The navigation data transmission method provided in the embodiment of the present application may be executed by a navigation data transmission device. In the embodiment of the present application, a method in which a navigation data transmission device executes terminal access is taken as an example to illustrate the device of the navigation data transmission method provided in the embodiment of the present application.
[0108] Figure 3 The present invention is a block diagram of a navigation data transmission device according to an exemplary embodiment, which is applied to a navigation service in a vehicle-mounted system, and includes:
[0109] The receiving module 201 is used to receive status information sent by any navigation application; the status information is used to indicate the running status of any navigation application;
[0110] A determination module 202, configured to determine a first priority of any navigation application according to the state information;
[0111] The transmission module 203 is used to receive the navigation instructions sent by any ecological application, send the navigation instructions to the target navigation application, and send the navigation data returned by the target navigation application to any ecological application; wherein the target navigation application is the navigation application with the highest first priority.
[0112] In one implementation, the determining module 202 is specifically configured to:
[0113] When the status information indicates that any one of the navigation applications is in a navigation state, the first priority of any one of the navigation applications is determined as a first level, and the first priority of other navigation applications except the any one of the navigation applications is determined as a corresponding preset default level; wherein the first level is higher than the preset default level.
[0114] In one implementation, the navigation application includes a default navigation application and at least one candidate navigation application, wherein:
[0115] The preset default level corresponding to the default navigation application is the third level, the preset default level corresponding to the candidate navigation application is the fourth level, and the third level is higher than the fourth level.
[0116] In one implementation, the determining module 202 is specifically configured to:
[0117] In the case where the state information indicates that any one of the navigation applications is in a navigation state, determining whether there is a mutually exclusive navigation application at the current moment, the mutually exclusive navigation application being another navigation application in the navigation state except for the any one of the navigation applications;
[0118] If so, a notification message is sent to the mutually exclusive navigation application; the notification message is used to prompt the mutually exclusive navigation application to exit the navigation state.
[0119] In one implementation, the determining module 202 is specifically configured to:
[0120] When the status information indicates that any one of the navigation applications is running in the foreground, obtaining the second priority of each navigation application at the current moment;
[0121] If there is no navigation application whose second priority is the first level, the first priority of any one of the navigation applications is determined as the second level, and the first priority of other navigation applications except any one of the navigation applications is determined as the corresponding preset default level; wherein the first level is higher than the second level, and the second level is higher than the preset default level.
[0122] In one implementation, the determining module 202 is specifically configured to:
[0123] If there is a navigation application whose second priority is the first level, the first priority of any navigation application is the same as the second priority.
[0124] In one implementation, the determining module 202 is specifically configured to:
[0125] In a case where the status information indicates that any one of the navigation applications is running in the background, it is determined that the first priority of any one of the navigation applications is the same as the second priority of any one of the navigation applications at the current moment.
[0126] In one implementation, the determining module 202 is specifically configured to:
[0127] When the status information indicates that any one of the navigation applications is in a closed state, the first priority of any one of the navigation applications is determined to be the corresponding preset default level.
[0128] In one implementation, the device further includes a communication module, configured to:
[0129] Establish communication connection with each navigation application based on cross-process communication technology;
[0130] Based on the cross-process communication technology, a communication connection is established with each ecological application.
[0131] As can be seen from the above, the technical solution provided by the embodiment of the present application manages the first priority of each navigation application, determines the target navigation application with the highest first priority from multiple navigation applications, and has the target navigation application process the navigation instructions sent by the ecological application, so that each navigation application in multiple navigation scenarios can transmit data in an orderly manner. Among them, the navigation service in the vehicle system is used as the middle layer to connect the ecological application and the navigation application, which can greatly reduce the development and adaptation costs. Moreover, this solution is a pure application layer development, does not require the underlying system access, is simple to implement, and is easy to maintain, thereby meeting the application requirements of multiple navigation scenarios.
[0132] The navigation data transmission method provided in the embodiment of the present application can be executed by a terminal access terminal. In the embodiment of the present application, a method in which a terminal accesses a terminal and executes terminal access is taken as an example to illustrate the apparatus of the navigation data transmission method provided in the embodiment of the present application.
[0133] The navigation data transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0134] The navigation data transmission device provided in the embodiment of the present application can achieve Figure 1 to Figure 2 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0135] Alternatively, if Figure 4As shown, an embodiment of the present application further provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores programs or instructions that can be executed on the processor 501, and when the program or instructions are executed by the processor 501, the various steps of the above-mentioned navigation data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0136] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0137] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0138] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0139] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0140] As can be seen from the above, the technical solution provided by the embodiment of the present application manages the first priority of each navigation application, determines the target navigation application with the highest first priority from multiple navigation applications, and has the target navigation application process the navigation instructions sent by the ecological application, so that each navigation application in multiple navigation scenarios can transmit data in an orderly manner. Among them, the navigation service in the vehicle system is used as the middle layer to connect the ecological application and the navigation application, which can greatly reduce the development and adaptation costs. Moreover, this solution is a pure application layer development, does not require the underlying system access, is simple to implement, and is easy to maintain, thereby meeting the application requirements of multiple navigation scenarios.
[0141] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0142] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0143] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0144] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned navigation data transmission method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0145] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0146] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned navigation data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0147] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0148] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned navigation data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0149] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0151] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A navigation data transmission method, characterized in that: Navigation services used in vehicle systems include: Receiving status information sent by any navigation application; the status information is used to indicate the running status of any navigation application; Determining a first priority of any one of the navigation applications according to the state information; receiving a navigation instruction sent by any ecological application, sending the navigation instruction to a target navigation application, and sending navigation data returned by the target navigation application to any ecological application; wherein the target navigation application is the navigation application with the highest first priority; Wherein, determining the first priority of any one of the navigation applications according to the state information includes: When the state information indicates that any one of the navigation applications is in a navigation state, determining the first priority of any one of the navigation applications as a first level, and determining the first priorities of other navigation applications except the any one of the navigation applications as corresponding preset default levels; wherein the first level is higher than the preset default level; When the status information indicates that any one of the navigation applications is running in the foreground, obtaining the second priority of each navigation application at the current moment; If there is no navigation application whose second priority is the first level, the first priority of any one of the navigation applications is determined as the second level, and the first priority of other navigation applications except any one of the navigation applications is determined as the corresponding preset default level; wherein the first level is higher than the second level, and the second level is higher than the preset default level.
2. The navigation data transmission method according to claim 1, characterized in that: The navigation application includes a default navigation application and at least one candidate navigation application, wherein: The preset default level corresponding to the default navigation application is the third level, the preset default level corresponding to the candidate navigation application is the fourth level, and the third level is higher than the fourth level.
3. The navigation data transmission method according to claim 1, characterized in that: Before determining the first priority of other navigation applications except the any navigation application as the corresponding preset default level, the method further includes: In the case where the state information indicates that any one of the navigation applications is in a navigation state, determining whether there is a mutually exclusive navigation application at the current moment, the mutually exclusive navigation application being another navigation application in the navigation state except for the any one of the navigation applications; If so, a notification message is sent to the mutually exclusive navigation application; the notification message is used to prompt the mutually exclusive navigation application to exit the navigation state.
4. The navigation data transmission method according to claim 1, characterized in that: After obtaining the second priority of each navigation application at the current moment, the method further includes: If there is a navigation application whose second priority is the first level, then the first priority of any navigation application is the same as the second priority.
5. The navigation data transmission method according to claim 1, characterized in that: The determining the first priority of any one of the navigation applications according to the state information further includes: In a case where the status information indicates that any one of the navigation applications is running in the background, it is determined that the first priority of any one of the navigation applications is the same as the second priority of any one of the navigation applications at the current moment.
6. The navigation data transmission method according to claim 5, characterized in that: The determining the first priority of any one of the navigation applications according to the state information further includes: When the status information indicates that any one of the navigation applications is in a closed state, the first priority of any one of the navigation applications is determined to be the corresponding preset default level.
7. The navigation data transmission method according to claim 1, characterized in that: Before receiving the status information sent by any navigation application, the method further includes: Establish communication connection with each navigation application based on cross-process communication technology; Before receiving the navigation instruction sent by any ecological application, the method further includes: Based on the cross-process communication technology, a communication connection is established with each ecological application.
8. A navigation data transmission device, characterized in that: Navigation services used in vehicle systems include: A receiving module, used to receive status information sent by any navigation application; the status information is used to indicate the running status of any navigation application; A determination module, configured to determine a first priority of any one of the navigation applications according to the state information; a transmission module, configured to receive a navigation instruction sent by any ecological application, send the navigation instruction to a target navigation application, and send navigation data returned by the target navigation application to any ecological application; wherein the target navigation application is the navigation application with the highest first priority; Wherein, the determination module is specifically used for: When the state information indicates that any one of the navigation applications is in a navigation state, determining the first priority of any one of the navigation applications as a first level, and determining the first priorities of other navigation applications except the any one of the navigation applications as corresponding preset default levels; wherein the first level is higher than the preset default level; When the status information indicates that any one of the navigation applications is running in the foreground, obtaining the second priority of each navigation application at the current moment; If there is no navigation application whose second priority is the first level, the first priority of any one of the navigation applications is determined as the second level, and the first priority of other navigation applications except any one of the navigation applications is determined as the corresponding preset default level; wherein the first level is higher than the second level, and the second level is higher than the preset default level.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the navigation data transmission method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the navigation data transmission method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and apparatus for controlling service execution
CN109086129A