In-vehicle navigation method, system, vehicle and storage medium
By adopting a dual-system structure in the car-machine system, the main navigation application creates a virtual screen and sends screen projection instructions to the slave navigation application, and uses a three-dimensional image processing engine to draw navigation images, which solves the problem of serious resource consumption in vehicle navigation applications and achieves Full utilization of resources and unified display of navigation images.
Patent Information
- Application Number
- CN202210861905.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-07-21
AI Technical Summary
The three-dimensional image processing engine in vehicle navigation applications consumes vehicle system resources seriously, resulting in insufficient resource utilization.
A dual-system car-machine system is used. The main navigation application is configured in the main system, and the slave navigation application is configured in the slave system. The master navigation application creates a virtual screen on the navigation page and sends screen projection instructions to the slave navigation application. The slave navigation application uses three-dimensional image processing The engine draws the navigation image and transmits it to the virtual screen to display the navigation image.
Through the division of labor and cooperation between the master and slave systems, vehicle and machine resources are rationally utilized to achieve unified display of navigation images, providing users with a good navigation experience while saving system resources.
Smart Images

Figure CN115220842B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle navigation technology, and in particular to a vehicle navigation method, system, vehicle and storage medium. Background Art
[0002] With the development of vehicle technology, vehicles are becoming more and more intelligent, and many vehicles are equipped with car computer systems.
[0003] At present, in-vehicle navigation applications (hereinafter referred to as navigation applications) are generally installed in car systems. In order to provide users with more vivid and realistic navigation pictures, many navigation applications have begun to use three-dimensional image processing engines (referred to as 3D rendering engines) to draw and render navigation pictures. However, 3D rendering engines consume a lot of car system resources. How to make navigation applications use system resources reasonably has become an urgent problem that needs to be solved. Summary of the invention
[0004] The present invention provides a vehicle-mounted navigation method, system, vehicle and storage medium, which can enable a vehicle-mounted navigation application in a vehicle-mounted system to reasonably use system resources.
[0005] According to one aspect of the present invention, a vehicle navigation method is provided, which is applied to a vehicle system, wherein the vehicle system includes a master system and a slave system, wherein the master system is configured with a master navigation application, and the slave system is configured with a slave navigation application, wherein the method includes:
[0006] The master navigation application creates a virtual screen on the upper layer of the navigation page, and sends a screen projection instruction to the slave navigation application, wherein the navigation page is displayed on the display screen corresponding to the vehicle system;
[0007] The slave navigation application responds to the screen projection instruction, draws a navigation image through a three-dimensional image processing engine, and transmits the navigation image to the virtual screen, so that the navigation image is displayed in the navigation page.
[0008] According to another aspect of the present invention, a vehicle system is provided, comprising a master system and a slave system, wherein the master system is configured with a master navigation application, and the slave system is configured with a slave navigation application; wherein the master navigation application includes a virtual screen creation unit and a screen projection instruction sending unit, and the slave navigation application includes an image drawing unit and an image transmission unit;
[0009] The virtual screen creation unit is used to create a virtual screen in the navigation page;
[0010] The screen projection instruction sending unit is used to send a screen projection instruction to the slave navigation application, wherein the navigation page is displayed on a display screen corresponding to the vehicle system;
[0011] The image drawing unit is used to draw a navigation image through a three-dimensional image processing engine in response to the screen projection instruction;
[0012] The image transmission unit is used to transmit the navigation image to the virtual screen so that the navigation image is displayed in the navigation page.
[0013] According to another aspect of the present invention, a vehicle is provided, wherein the vehicle is equipped with a vehicle system, and the vehicle comprises:
[0014] At least two processors; and
[0015] A memory communicatively connected to the at least two processors; wherein,
[0016] The first processor of the at least two processors is used to run the master system in the vehicle system, and the second processor of the at least two processors is used to run the slave system in the vehicle system;
[0017] The memory stores a computer program that can be executed by the at least two processors, and the computer program is executed by the at least two processors so that the at least two processors can execute the corresponding steps of the vehicle navigation method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement corresponding steps in the vehicle navigation method described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention adopts a vehicle system including dual systems, and configures a main navigation application in the main system and a slave navigation application in the slave system. The main navigation application creates a virtual screen in the navigation page and sends a screen projection instruction to the slave navigation application. The slave navigation application responds to the screen projection instruction, draws a navigation image through a three-dimensional image processing engine, and transmits the navigation image to the virtual screen, so that the navigation image is displayed in the navigation page. By adopting the above technical solution, the navigation applications in the main and slave vehicle systems can divide the work and cooperate with each other to realize vehicle navigation, and display the navigation image on the display screen corresponding to the vehicle system, presenting a unified navigation application operation effect to the user while making full and reasonable use of vehicle resources.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a vehicle navigation method provided according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of another vehicle navigation method provided according to an embodiment of the present invention;
[0024] Figure 3 is a structural schematic diagram of a vehicle system according to an embodiment of the present invention;
[0025] Figure 4 The present invention is a schematic diagram of the structure of a vehicle for implementing the vehicle navigation method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Figure 1 This is a flow chart of a vehicle navigation method provided according to an embodiment of the present invention. This embodiment is applicable to situations where navigation is performed using a vehicle navigation application. The method can be executed by a vehicle system, which can be implemented in the form of hardware and / or software, and the vehicle system can be configured in a vehicle.
[0029] In an embodiment of the present invention, the vehicle system includes a master system (also referred to as a master end) and a slave system (also referred to as a slave end), the master system is configured with a master navigation application, the slave system is configured with a slave navigation application, the master navigation application and the slave navigation application can be respectively understood as a part of the vehicle navigation application in the vehicle system, and the two are respectively run in the master system and the slave system to cooperate in navigation. The master system is generally one, and the slave system can have one or more, which is not specifically limited. Exemplarily, the vehicle can include at least two processors, wherein the first processor is used to run the master system, and the second processor is used to run the slave system, and the specific number of the first processor and the second processor is not limited. For ease of explanation, the following is an example of one master system and one slave system respectively, and the master system and the slave system run in a dual-chip processor, and each chip corresponds to one processor. The vehicle system can be understood as a dual-system vehicle operating system. The specific operating systems installed in the master system and the slave system are not limited. For example, the master system is an Android system, which can run large-screen application software, such as navigation applications, multimedia applications, and voice applications, and the application interface of the running application can be displayed on the vehicle's display screen; the slave system can be an Android system, or a Linux system, etc., which can run applications for navigation screen rendering and autonomous driving and other related operations. The master system and the slave system can be connected by wire or wireless means to transmit data streams, image streams, and video streams. Optionally, the master system and the slave system are connected via a High Definition Multimedia Interface (HDMI) cable.
[0030] like Figure 1 As shown, the method includes:
[0031] Step 101: The main navigation application creates a virtual screen on the upper layer of the navigation page and sends a screen projection instruction to the slave navigation application, wherein the navigation page is displayed on the display screen corresponding to the vehicle system.
[0032] In the disclosed embodiment, the startup timing and startup sequence of the master system and the slave system are not limited. For example, after the master system is started, the slave system is started. The slave system is configured with a three-dimensional image processing engine, also known as a 3D rendering engine, which can be used to draw navigation images. The 3D rendering engine can be configured in the slave navigation application, or can be called by the slave navigation application, so that the slave navigation application has the ability to draw navigation images through the 3D rendering engine. Among them, the 3D rendering engine can be a 3D game engine, such as Unity or Unreal.
[0033] Exemplarily, the navigation page can be understood as a page in the main navigation application for displaying navigation information, and the user can view the navigation page through the display screen. The virtual screen can be understood as a virtual screen displayed on a physical display screen. When the main navigation application determines that it is necessary to draw a navigation image from the slave navigation application, it can create a virtual screen by calling a preset virtual screen creation function. During or after the creation of the virtual screen, a screen projection instruction can be sent to the slave navigation application to instruct the slave navigation application to draw the navigation image, and the drawn navigation image can be projected to the virtual screen for display.
[0034] Optionally, the master navigation application and the slave navigation application communicate based on a preset socket protocol, wherein the preset socket protocol may be a Socket protocol. The master navigation application may actively connect to a Socket port in the slave system by starting a Socket connection, and send a screen projection instruction to the slave navigation application via a Socket message.
[0035] Step 102: In response to the screen projection instruction, the navigation application draws a navigation image through a three-dimensional image processing engine, and transmits the navigation image to the virtual screen so that the navigation image is displayed in the navigation page.
[0036] For example, after receiving the screen projection command sent by the main navigation application, the slave navigation application can control the 3D rendering engine to use the system resources in the slave system (such as computing resources and storage resources, etc.) to draw the navigation image, and transmit the completed navigation image (in the form of a video stream) to the virtual screen, so that the navigation image can be displayed on the navigation page, and the user can view the navigation image through the display screen corresponding to the vehicle system.
[0037] The vehicle navigation method of the embodiment of the present invention adopts a vehicle system including dual systems, and configures a main navigation application in the main system and a slave navigation application in the slave system. The main navigation application creates a virtual screen in the navigation page and sends a screen projection instruction to the slave navigation application. The slave navigation application responds to the screen projection instruction, draws a navigation image through a three-dimensional image processing engine, and transmits the navigation image to the virtual screen, so that the navigation image is displayed in the navigation page. By adopting the above technical solution, the navigation applications in the main and slave vehicle systems can cooperate with each other to realize vehicle navigation, and display the navigation image on the display screen corresponding to the vehicle system. The implementation process of the above technical solution can be considered as imperceptible to the user, that is, although the main navigation application and the slave navigation application are used in the vehicle system to jointly realize the navigation function, for the user, no additional operation is required, and it is difficult to perceive the difference from the single navigation application in the single system to realize the navigation function, so as to ensure the user's experience of using the navigation function, and fully and reasonably utilize the vehicle resources while presenting the user with the operation effect of a unified navigation application.
[0038] In some embodiments, the master navigation application creates a virtual screen on the upper layer of the navigation page and sends a screen projection instruction to the slave navigation application, including: the master navigation application determines the current navigation mode, and when the current navigation mode is a preset navigation mode, creates a virtual screen in the navigation page, and sends a screen projection instruction matching the current navigation mode to the slave navigation application, wherein the navigation image quality in the preset navigation mode is higher than the preset quality requirement. The advantage of such a setting is that whether it is necessary to draw the navigation image through the slave navigation application is determined according to the navigation mode.
[0039] Exemplarily, the in-vehicle navigation may include multiple navigation modes. Different navigation modes generally have different requirements for the quality of navigation images, and the amount of system resources required when drawing navigation images is generally different. A navigation mode with a navigation image quality higher than the preset quality requirement may be set as a preset navigation mode, and the navigation image quality in the preset navigation mode is higher than the navigation image quality in the non-preset navigation mode. Among them, the navigation image quality can be measured based on indicators such as map accuracy, map image dimension, navigation auxiliary information type, and navigation auxiliary information quantity. The map image dimension may include, for example, 2D or 3D. 3D corresponds to the preset navigation mode and needs to be drawn using a 3D rendering engine; the navigation auxiliary information may include, for example, assisted driving information, precise positioning information, route matching information, and road environment real-scene display information.
[0040] In some embodiments, the preset navigation mode includes a lane-level navigation mode, and the lane-level navigation mode includes a lane-level guide mode and / or a lane-level vehicle guide mode; when the current navigation mode is the lane-level guide mode, a screen projection instruction matching the lane-level guide mode is used to instruct the slave navigation application to draw a guide navigation image through the three-dimensional image processing engine; when the current navigation mode is the lane-level vehicle guide mode, a screen projection instruction matching the lane-level vehicle guide mode is used to instruct the slave navigation application to draw a vehicle guide navigation image through the three-dimensional image processing engine. The advantage of such a setting is that for the lane-level navigation mode, by drawing the navigation image from the navigation application, the system resources of the main system are saved, and for different lane-level navigation modes, screen projection instructions can be sent in a targeted manner.
[0041] For example, for lane-level navigation, it includes high-precision map information, high-precision positioning information, route matching information, rendering matching information, and advanced assisted driving functions. When high-precision maps are required, a 3D rendering engine is required to realize the drawing of navigation images containing high-precision maps; when high-precision positioning is required, the lane-level guide mode is entered, which can be understood as a mode in which the driver's driving operation is guided in the lane-level navigation mode. In this mode, a 3D rendering engine is required to realize navigation images containing high-precision maps and high-precision positioning information; when the advanced assisted driving function is also turned on, the lane-level vehicle guide mode is entered, which can be understood as a mode in which the vehicle's assisted driving or automatic driving and other related operations are guided in the lane-level navigation mode. In this mode, a 3D rendering engine is required to realize navigation images containing high-precision maps and assisted driving related information. Exemplarily, the lane-level pedestrian guidance mode and the lane-level vehicle guidance mode correspond to different expressions of the 3D rendering engine, such as the difference in the perspective of the own vehicle, whether there is road surface rendering (the pedestrian guidance mode has it), whether there is a guide line (the pedestrian guidance mode has it), whether there is a self-vehicle halo (the vehicle guidance mode has it), etc.
[0042] Optionally, after the main navigation application determines the current navigation mode, it may also include: when the current navigation mode is not a preset navigation mode (non-preset navigation mode), the main navigation application draws a navigation image and displays the drawn navigation image in the navigation page. The advantage of this setting is that for ordinary navigation modes or basic navigation modes that do not require high image quality, a 3D rendering engine is not required to draw the image. The main navigation application can use the resources in the main system to complete the drawing, thereby reducing the interaction between the main system and the slave system, improving the display efficiency and update efficiency of the navigation image, and meeting the user's basic navigation needs.
[0043] In some embodiments, the main navigation application creates a virtual screen in the upper layer of the navigation page, including: the main navigation application creates a first view element of a preset type in the upper layer of the navigation page, and creates a virtual screen in the first view element. The advantage of such a setting is that the virtual screen can be created in the view element, which is convenient for controlling the virtual screen by operating the view element.
[0044] Exemplarily, the preset type of view element may be a surface view (SurfaceView), which has at least the following three characteristics: first, SurfaceView has an independent special drawing surface, that is, it does not share a drawing surface with the host window; second, the user interface (UI) of SurfaceView can be drawn in an independent thread; third, because it does not occupy the main thread resources, on the one hand, a complex and efficient UI can be implemented, and on the other hand, the user input will not be unresponsive. Based on the above characteristics, SurfaceView can be reasonably used to carry the virtual screen.
[0045] Optionally, the main navigation application creates a first view element of a preset type in an upper layer of the navigation page, which may include: the main navigation application creates a preset page in an upper layer of the navigation page, and creates a first view element of a preset type in the preset page.
[0046] In some embodiments, the method further includes: the slave navigation application creates a preset session window in response to the screen projection instruction, wherein the preset session window contains the second view element of the preset type. The slave navigation application transmits the navigation image to the virtual screen, including: the slave navigation application sends the navigation image to the second view element; the slave navigation application specifies, through the preset session window, that the navigation image in the second view element be displayed on the virtual screen. The advantage of this setting is that the navigation image drawn by the 3D rendering engine can be quickly and accurately transmitted to the virtual screen for display.
[0047] Exemplarily, the preset session window can also be understood as a dialog box, which can be a session window with the ability to display content on a specified display screen. For the Android operating system, it can be a Presentation, which has the ability to display content on a specified display screen. The Presentation can be understood as a special session window (Dialog). The conventional session window is displayed on the operating screen, while the Presentation can be displayed on the specified screen, and the display effect is almost the same as that of the conventional session window. In an embodiment of the present invention, the navigation image drawn by the 3D rendering engine can be sent to the SurfaceView in the Presentation, and the Presentation specifies the virtual screen to display the navigation image.
[0048] In some embodiments, after the main navigation application sends a screen projection instruction to the slave navigation application, it also includes: the main navigation application sends the associated information of the navigation page to the slave navigation application, wherein the associated information includes navigation page panel information and / or user operation information input based on the display screen; wherein the slave navigation application draws the navigation image through a three-dimensional image processing engine, including: the slave navigation application draws the navigation image through a three-dimensional image processing engine based on the associated information. The advantage of this setting is that the main navigation application can send the associated information of the navigation page to the slave navigation application, so that the slave navigation application can draw the navigation image more accurately based on the associated information.
[0049] For example, the navigation page panel information may include the type of UI controls in the navigation page and the status information of the UI controls, etc.; the operation information may include the user's touch operation information, such as the position coordinates of the touch screen, the operation type (such as click, slide, double-click, and multi-finger tap, etc.). After the associated information is passed to the slave navigation application, the panel information of the navigation page on the display screen can be restored more accurately, and the user operation can be responded to in a timely manner to ensure the user experience.
[0050] In some embodiments, it also includes: the slave navigation application sends slave navigation broadcast information to the master navigation application; the master navigation application determines the fusion broadcast information based on the slave navigation broadcast information and the master navigation broadcast information generated by the master navigation application itself, and plays the fusion broadcast information. The advantage of this setting is that it can integrate the broadcast information generated by the master navigation application and the slave navigation application respectively to provide users with more accurate navigation broadcasts. Among them, the slave navigation broadcast information may include lane-level broadcast information.
[0051] Figure 2 FIG. 1 is a flow chart of another vehicle navigation method provided according to an embodiment of the present invention. This embodiment is optimized based on the above optional embodiments. Figure 2 As shown, the method includes:
[0052] Step 201: The master navigation application establishes a preset socket connection with the slave navigation application.
[0053] Exemplarily, a fusion scheduling module, a fusion execution module and a data fusion module can be set in the vehicle system. Among them, the fusion scheduling module is located in the main system, which is used to gather various information, and output decision instructions to the fusion execution module based on this information as a basis for decision-making; the fusion execution module is divided into two parts, one part exists in the main system and one part exists in the slave system, and the two cooperate with each other to execute the instructions of the fusion scheduling module to achieve the effect of system fusion and system separation; the data fusion module is also divided into two parts, one part exists in the main system and one part exists in the slave system, and the two cooperate with each other to achieve the effect of data fusion and click event penetration.
[0054] Exemplarily, the super administrator (Root) permission to create a virtual screen can be pre-configured for the main navigation application. The configuration method can be to place the installation package (APK) file of the main navigation application into a specified file directory, such as / system / priv-app / , and configure a system authentication signature.
[0055] Exemplarily, the system prompt window (SYSTEM_ALERT_WINDOW) permission and the system overlay window (SYSTEM_OVERLAY_WINDOW) permission can be added to the 3D image processing engine, where SYSTEM_ALERT_WINDOW is used to apply for permission to display the system window, and SYSTEM_OVERLAY_WINDOW is used to apply for permission to display the window at the top of the screen, to ensure that the 3D rendering engine can operate normally and stably.
[0056] Exemplarily, the master system and the slave system are connected via an HDMI cable. After the vehicle is started, the Android operating system of the master system on the first chip is started, the operating system of the slave system on the second chip is started, the Socket long connection port is opened in the slave system, and the connection of the main navigation application (which can be understood as the basic navigation APP) on the master system is waited.
[0057] After the user starts the in-car navigation application, the main navigation application starts the Socket connection to actively connect to the Socket port in the slave system to complete the connection. After the connection is successful, the fusion decision module can be initialized, including prohibiting the reception of instructions issued by the overview timer, broadcast fusion rule parser, etc., and the fusion decision module will not issue any instructions.
[0058] Exemplarily, the master navigation application and the slave navigation application can exchange data based on the Socket connection, such as screen projection instructions, navigation page related information, and slave navigation broadcast information. The Socket protocol includes a fixed 8-byte magic number for identifying the Socket message, a protocol version number, a request sequence number, a timestamp, a message length, and request data. For example, the magic number is 8 bytes, the protocol version is 1 byte, the message type is 1 byte, the request sequence number is 4 bytes, the target class is 1 byte, the target method is 1 byte, the timestamp is 8 bytes, the message length is 4 bytes, and the data content length is not fixed.
[0059] Step 202 , the main navigation application determines whether the current navigation mode is a preset navigation mode, if so, execute step 203 ; otherwise, execute step 209 .
[0060] Exemplarily, the preset navigation mode includes a lane-level navigation mode, and the lane-level navigation mode includes a lane-level pedestrian guidance mode and a lane-level vehicle guidance mode.
[0061] Exemplarily, after entering the guidance state, the main navigation application can enable fusion decision instructions and begin to determine whether the current navigation mode is the preset navigation mode at a preset frequency or in real time, so as to timely switch the drawing method of the navigation image, that is, whether it is drawn by the 3D rendering engine or by the main navigation application itself.
[0062] Step 203: The main navigation application creates a first view element of a preset type in the upper layer of the navigation page, creates a virtual screen in the first view element, and sends a screen projection instruction matching the current navigation mode to the slave navigation application through a preset socket connection.
[0063] For example, after receiving the instruction to create a virtual screen from the fusion decision module, the main navigation application can create a new page (remembered as the target page) to cover the current page (navigation page). The size of the target page can be consistent with the navigation page, and the target page contains a special view element SurfaceView (first view element) of full screen size. After creating SurfaceView, the create virtual screen method createVirtualDisplay of the Android system screen management class DisplayManager can be called to create a virtual screen, and the screen can be projected from the navigation application through a Socket message notification.
[0064] Step 204: Create a preset session window from the navigation application in response to the screen projection instruction, wherein the preset session window includes a second view element of the preset type.
[0065] Exemplarily, after receiving the projection command from the navigation application, a Presentation is created in the main thread. The Presentation also includes a SurfaceView (the second view element). The main framework of the 3D rendering engine accepts the control class SurfaceHolder of SurfaceView. In this way, the navigation image video stream with the 3D rendering engine content can be projected to the SurfaceView in the main navigation application.
[0066] Step 205: The master navigation application sends the associated information of the navigation page to the slave navigation application through a preset socket connection, wherein the associated information includes the navigation page panel information and the operation information input by the user based on the display screen.
[0067] The associated information includes navigation page panel information and operation information input by the user based on the display screen (specifically, it may be a target page or a navigation page).
[0068] Exemplarily, the timing of sending the above-mentioned related information is not limited. The navigation page panel information can be sent at the same time as the screen projection instruction is sent, and can also be sent when a change in the panel information is detected. The operation information can be sent when a user operation is detected.
[0069] Exemplarily, the process of sending operation information to the slave navigation application can be understood as a UI event penetration event, which can be completed through the following process. The Master end is used to create a SurfaceView of the virtual screen to capture the screen click event onTouchEvent, and send the screen click event to the Slave end through a Socket message. The Presentation of the Slave end obtains the top-level view DecorView of the top-level Window, and distributes the screen click event transmitted from the Master end to the UI interface of the Slave end through the click event distribution DispatchTouchEvent function, where the onTouchEvent event is the callback function of the Master end screen click event. Through this callback function, the user click content of the Master end (including coordinates, finger clicks, swipes, lifts, multi-finger clicks, etc.) can be obtained. DecorView is the top-level View of the Android UI control, which is used to propagate UI events from top to bottom on the Slave end, and DispatchTouchEvent is used to propagate the click event of the Slave end from top to bottom.
[0070] Step 206: Based on the association information, the navigation application draws a navigation image through a three-dimensional image processing engine, and sends the navigation image to the second view element. Through a preset session window, specify that the navigation image in the second view element be displayed in the virtual screen, so that the navigation image is displayed in the navigation page.
[0071] Optionally, when the main navigation application determines that the current navigation mode is switched to a non-preset navigation mode, such as the basic navigation mode, the virtual screen can be destroyed. For example, the fusion decision module can send a virtual screen destruction instruction to the main navigation application. The main navigation application destroys the target page with the virtual screen and sends an end screen projection instruction to the slave navigation application. In response to the end screen projection instruction, the slave navigation application destroys the preset session window Presentation, and the 3D rendering engine can stop drawing the navigation image.
[0072] Optionally, when the main navigation application determines that the current navigation mode is switched to a non-preset navigation mode, such as a basic navigation mode, the virtual screen can be maintained and the page with the virtual screen can be adjusted to the lower layer of the navigation page so that when switching back to the preset navigation mode, there is no need to create a virtual screen, thereby improving the efficiency of navigation mode switching.
[0073] Step 207: The slave navigation application sends the slave navigation broadcast information to the master navigation application through a preset socket connection.
[0074] Exemplarily, while drawing the navigation image, the slave navigation application also generates messages in a preset navigation mode, such as lane-level messages, including broadcast information. The lane-level messages can be sent to the master navigation application via Socket messages.
[0075] Step 208: The main navigation application determines the fused broadcast information according to the slave navigation broadcast information and the main navigation broadcast information generated by the main navigation application itself, and plays the fused broadcast information.
[0076] Exemplarily, the slave navigation broadcast information can be sent to the data fusion module (also referred to as the fusion broadcast module) in the main navigation application. The fusion broadcast module arbitrates the broadcast content of the basic navigation (main navigation broadcast information) and the broadcast content of the lane-level navigation (slave navigation broadcast information) according to preset broadcast rules, and calls the system's text-to-speech (Text To Speech, TTS) interface to broadcast the content (fused broadcast information, hereinafter referred to as broadcast).
[0077] Optionally, the start timestamp of the currently playing report is recorded. The estimated playing time of each report can be expressed as: number of words in the text * first preset coefficient (such as 0.35) + number of punctuation marks * second preset coefficient (such as 0.2). In this way, how long the current report will take to complete can be obtained, and the completion time is: report start timestamp + estimated playing time - current timestamp.
[0078] The preset broadcast rule may be that if the completion time is less than or equal to the first preset duration (such as 3 seconds), the newly triggered broadcast is inserted into the broadcast queue, and after the current broadcast is completed, the broadcast begins after a pause of the second preset duration (such as 0.2 seconds); if the completion time is greater than the first preset duration, if the priority of the newly triggered broadcast is less than the ongoing broadcast, the newly triggered broadcast is inserted into the queue, and after the current broadcast is completed, the broadcast begins after a pause of the second preset duration, and if the priority of the newly triggered broadcast is greater than the ongoing broadcast, the newly triggered broadcast is discarded, wherein the priority can be pre-set according to the urgency of the content of the broadcast, and optionally, the newly triggered broadcast may be directly discarded without comparing the priorities. Among them, the currently playing broadcast may include slave navigation broadcast information and main navigation broadcast information, and the newly triggered broadcast may also include slave navigation broadcast information and main navigation broadcast information, which may be specifically determined according to the receiving time.
[0079] Step 209: The main navigation application draws a navigation image, and displays the drawn navigation image on the navigation page.
[0080] In the vehicle navigation method provided by the embodiment of the present invention, the master and slave navigation applications are connected through a preset socket, and the master navigation application makes a decision based on the current navigation mode to determine the way of drawing the navigation image. When the quality requirement for the navigation image is high, a virtual screen can be created, and a screen projection instruction can be sent to the slave navigation application in the slave system. The slave navigation application uses the resources in the slave system to draw through a 3D rendering engine, and projects the screen to the virtual screen for display. In addition, the master navigation application can also realize the transparent transmission of the associated information of the navigation page, so that the drawing of the navigation image can respond to the changes on the main navigation application side in a timely manner. In terms of voice broadcast, the basic navigation broadcast information and the lane-level navigation broadcast information can be effectively integrated to provide users with timely and accurate voice broadcasts. While presenting a unified navigation application running effect to the user, the vehicle computer resources are fully and reasonably utilized.
[0081] Figure 3 is a schematic diagram of the structure of a vehicle system according to an embodiment of the present invention. Figure 3 As shown, the vehicle system 300 includes a main system 310 and a slave system 320, wherein the main system 310 is configured with a main navigation application 311, and the slave system 320 is configured with a slave navigation application 321; wherein the main navigation application 311 includes a virtual screen creation unit 3111 and a screen projection instruction sending unit 3112, and the slave navigation application 321 includes an image drawing unit 3211 and an image transmission unit 3212.
[0082] The virtual screen creation unit 3111 is used to create a virtual screen in the navigation page;
[0083] The screen projection instruction sending unit 3112 is used to send a screen projection instruction to the slave navigation application, wherein the navigation page is displayed on a display screen corresponding to the vehicle system;
[0084] The image drawing unit 3211 is used to draw a navigation image through a three-dimensional image processing engine in response to the screen projection instruction;
[0085] The image transmitting unit 3212 is used to transmit the navigation image to the virtual screen so that the navigation image is displayed in the navigation page.
[0086] The vehicle system provided by the embodiment of the present invention includes a dual system, a main navigation application is configured in the main system, and a slave navigation application is configured in the slave system. The main navigation application creates a virtual screen in the navigation page and sends a screen projection instruction to the slave navigation application. The slave navigation application responds to the screen projection instruction, draws a navigation image through a three-dimensional image processing engine, and transmits the navigation image to the virtual screen, so that the navigation image is displayed in the navigation page. By adopting the above technical solution, the navigation applications in the main and slave vehicle systems can divide the work and cooperate with each other to realize vehicle navigation, and display the navigation image on the display screen corresponding to the vehicle system, presenting a unified navigation application operation effect to the user while making full and reasonable use of vehicle resources.
[0087] Optionally, the main navigation application further includes a navigation mode determination unit, which is used to determine the current navigation mode;
[0088] A virtual screen creation unit, specifically used to: create a virtual screen in a navigation page when the current navigation mode is a preset navigation mode, wherein the navigation image quality in the preset navigation mode is higher than a preset quality requirement;
[0089] The screen projection instruction sending unit is specifically used to send a screen projection instruction matching the current navigation mode to the slave navigation application.
[0090] Optionally, the preset navigation mode includes a lane-level navigation mode, and the lane-level navigation mode includes a lane-level person-guiding mode and / or a lane-level vehicle-guiding mode;
[0091] When the current navigation mode is the lane-level guidance mode, a screen projection instruction matching the lane-level guidance mode is used to instruct the slave navigation application to draw a guidance-style navigation image through the three-dimensional image processing engine;
[0092] When the current navigation mode is the lane-level vehicle guidance mode, the screen projection instruction matching the lane-level vehicle guidance mode is used to instruct the slave navigation application to draw the vehicle guidance navigation image through the three-dimensional image processing engine.
[0093] Optionally, the virtual screen creation unit is specifically used to: create a first view element of a preset type in an upper layer of the navigation page, and create a virtual screen in the first view element;
[0094] The navigation application further includes a window creation unit, configured to create a preset session window in response to the screen projection instruction, wherein the preset session window includes a second view element of the preset type;
[0095] The image transmission unit comprises:
[0096] a sending subunit, configured to send the navigation image to the second view element;
[0097] The transmitting subunit is used to transmit the navigation image in the second view element to the virtual screen through the preset session window.
[0098] Optionally, the main navigation application also includes:
[0099] an associated information sending unit, configured to send associated information of the navigation page to the slave navigation application after sending a screen projection instruction to the slave navigation application, wherein the associated information includes navigation page panel information and / or operation information input by the user based on the display screen;
[0100] The image drawing unit is specifically used to: respond to the screen projection instruction and draw a navigation image through a three-dimensional image processing engine based on the associated information.
[0101] Optionally, the slave navigation application further includes a broadcast information sending unit, which is used to send slave navigation broadcast information to the master navigation application;
[0102] The main navigation application also includes a playing unit, which is used to determine the fusion broadcast information according to the slave navigation broadcast information and the main navigation broadcast information generated by the main navigation application itself, and play the fusion broadcast information.
[0103] Optionally, the master navigation application and the slave navigation application communicate based on a preset socket protocol.
[0104] The vehicle system provided by the embodiment of the present invention can execute the vehicle navigation method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0105] The embodiment of the present application provides a vehicle, which can integrate the vehicle system provided by the embodiment of the present application. The vehicle includes: at least two processors; and a memory connected to the at least two processors in communication; wherein the first processor of the at least two processors is used to run the master system in the vehicle system, and the second processor of the at least two processors is used to run the slave system in the vehicle system; the memory stores a computer program executable by the at least two processors, and the computer program is executed by the at least two processors so that the at least two processors can execute the corresponding steps in the vehicle navigation method described in any embodiment of the present invention.
[0106] Figure 4 4 is a schematic diagram of the structure of a vehicle that implements the application processing method of an embodiment of the present invention, taking two processors as an example. Vehicle 400 includes a first processor 401, a second processor 402, and a memory 403 that is communicatively connected to the first processor 401 and the second processor 402 (the specific number is not limited, for example, the first processor 401 and the second processor 402 may respectively correspond to their own memories), wherein the memory 403 stores a computer program that can be executed by the first processor 401 and the second processor 402, and the computer program is executed by the first processor 401 and the second processor 402, so that the first processor 401 and the second processor 402 can execute the vehicle navigation method described in any embodiment of the present application.
[0107] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the application processing method described in any embodiment of the present application when executed.
[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A vehicle navigation method, characterized in that: Applied to a vehicle system, the vehicle system includes a master system and a slave system, the master system runs on a first processor, the slave system runs on a second processor, the master system is configured with a master navigation application, the slave system is configured with a slave navigation application, the method includes: The master navigation application creates a virtual screen on the upper layer of the navigation page, and sends a screen projection instruction to the slave navigation application, wherein the navigation page is displayed on the display screen corresponding to the vehicle system; The slave navigation application responds to the screen projection instruction, draws a navigation image through a three-dimensional image processing engine, and transmits the navigation image to the virtual screen, so that the navigation image is displayed in the navigation page; The master navigation application creates a virtual screen on the upper layer of the navigation page and sends a screen projection instruction to the slave navigation application, including: The main navigation application determines the current navigation mode, and when the current navigation mode is a preset navigation mode, creates a virtual screen in the navigation page, and sends a screen projection instruction matching the current navigation mode to the slave navigation application, and when the current navigation mode is a non-preset navigation mode, the main navigation application draws a navigation image, and displays the drawn navigation image in the navigation page, wherein the navigation image quality in the preset navigation mode is higher than the navigation image quality in the non-preset navigation mode.
2. The method according to claim 1, characterized in that The preset navigation mode includes a lane-level navigation mode, and the lane-level navigation mode includes a lane-level person-guiding mode and / or a lane-level vehicle-guiding mode; When the current navigation mode is the lane-level guidance mode, a screen projection instruction matching the lane-level guidance mode is used to instruct the slave navigation application to draw a guidance-style navigation image through the three-dimensional image processing engine; When the current navigation mode is the lane-level vehicle guidance mode, the screen projection instruction matching the lane-level vehicle guidance mode is used to instruct the slave navigation application to draw the vehicle guidance navigation image through the three-dimensional image processing engine.
3. The method according to claim 1, characterized in that The main navigation application creates a virtual screen on the upper layer of the navigation page, including: The main navigation application creates a first view element of a preset type in an upper layer of the navigation page, and creates a virtual screen in the first view element; The method further comprises: The slave navigation application creates a preset session window in response to the screen projection instruction, wherein the preset session window includes a second view element of the preset type; The step of transmitting the navigation image from the navigation application to the virtual screen includes: The slave navigation application sends the navigation image to the second view element; The slave navigation application specifies, through the preset session window, that the navigation image in the second view element be displayed in the virtual screen.
4. The method according to claim 1, characterized in that: After the master navigation application sends a screen projection instruction to the slave navigation application, the method further includes: The master navigation application sends the associated information of the navigation page to the slave navigation application, wherein the associated information includes navigation page panel information and / or operation information input by the user based on the display screen; The step of drawing the navigation image from the navigation application through a three-dimensional image processing engine includes: The slave navigation application draws a navigation image through a three-dimensional image processing engine based on the association information.
5. The method according to claim 1, characterized in that Also includes: The slave navigation application sends slave navigation broadcast information to the master navigation application; The main navigation application determines fused broadcast information according to the slave navigation broadcast information and the main navigation broadcast information generated by the main navigation application itself, and plays the fused broadcast information.
6. The method according to any one of claims 1 to 5, characterized in that: The master navigation application and the slave navigation application communicate based on a preset socket protocol.
7. A vehicle computer system, characterized in that: The invention comprises a master system and a slave system, wherein the master system runs on a first processor, and the slave system runs on a second processor, wherein a master navigation application is configured in the master system, and a slave navigation application is configured in the slave system; wherein the master navigation application comprises a virtual screen creation unit and a screen projection instruction sending unit, and the slave navigation application comprises an image drawing unit and an image transmission unit; The virtual screen creation unit is used to create a virtual screen in the navigation page; The screen projection instruction sending unit is used to send a screen projection instruction to the slave navigation application, wherein the navigation page is displayed on a display screen corresponding to the vehicle system; The image drawing unit is used to draw a navigation image through a three-dimensional image processing engine in response to the screen projection instruction; The image transmission unit is used to transmit the navigation image to the virtual screen so that the navigation image is displayed on the navigation page; The main navigation application further includes a navigation mode determination unit for determining the current navigation mode; The virtual screen creation unit is used to: create a virtual screen in the navigation page when the current navigation mode is a preset navigation mode, wherein the navigation image quality in the preset navigation mode is higher than the preset quality requirement; The screen projection instruction sending unit is used to: send a screen projection instruction matching the current navigation mode to the slave navigation application; The main navigation application further includes: a unit for drawing a navigation image and displaying the drawn navigation image on the navigation page when the current navigation mode is a non-preset navigation mode.
8. A vehicle, characterized in that: The vehicle is equipped with a vehicle system, and the vehicle includes: At least two processors; and A memory communicatively connected to the at least two processors; wherein, The first processor of the at least two processors is used to run the master system in the vehicle system, and the second processor of the at least two processors is used to run the slave system in the vehicle system; The memory stores a computer program that can be executed by the at least two processors, and the computer program is executed by the at least two processors so that the at least two processors can execute the corresponding steps in the in-vehicle navigation method described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement corresponding steps in the vehicle navigation method according to any one of claims 1 to 6 when executed.
