WO2023179435A1 - Adaptive configuration method for vehicle-mounted application, and vehicle-mounted terminal - Google Patents

Adaptive configuration method for vehicle-mounted application, and vehicle-mounted terminal Download PDF

Info

Publication number
WO2023179435A1
WO2023179435A1 PCT/CN2023/081731 CN2023081731W WO2023179435A1 WO 2023179435 A1 WO2023179435 A1 WO 2023179435A1 CN 2023081731 W CN2023081731 W CN 2023081731W WO 2023179435 A1 WO2023179435 A1 WO 2023179435A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
driving data
configuration
pwa
interface
Prior art date
Application number
PCT/CN2023/081731
Other languages
French (fr)
Chinese (zh)
Inventor
杨娇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023179435A1 publication Critical patent/WO2023179435A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Abstract

The present application relates to the technical field of terminals. Provided are an adaptive configuration method for a vehicle-mounted application, and a vehicle-mounted terminal. In the present application, the vehicle-mounted terminal displays a vehicle-mounted application interface according to acquired driving data. Therefore, a display configuration of a displayed vehicle-mounted application adapts to the current driving data, and a vehicle-mounted system adaptively matches, according to the driving data, a vehicle-mounted PWA configuration which is applicable to the current vehicle-mounted scenario, such that the vehicle-mounted PWA configuration can better meet user requirements, thus improving the use experience of a user. The method comprises: a vehicle-mounted terminal acquiring first driving data, and displaying a first interface of which a configuration is a first vehicle-mounted configuration; and the vehicle-mounted terminal acquiring second driving data, and displaying a second interface of which a configuration is a second vehicle-mounted configuration, wherein the first driving data is different from the second driving data, the first interface and the second interface are interfaces of the same vehicle-mounted application, and the first vehicle-mounted configuration is different from the second vehicle-mounted configuration.

Description

车载应用自适应配置方法及车载终端Vehicle-mounted application adaptive configuration method and vehicle-mounted terminal
本申请要求于2022年03月25日提交国家知识产权局、申请号为202210303222.5、发明名称为“车载应用自适应配置方法及车载终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the State Intellectual Property Office on March 25, 2022, with application number 202210303222.5 and the invention title "Vehicle Application Adaptive Configuration Method and Vehicle-mounted Terminal", the entire content of which is incorporated by reference in in this application.
技术领域Technical field
本申请实施例涉及终端技术领域,尤其涉及一种车载应用自适应配置方法及车载终端。Embodiments of the present application relate to the field of terminal technology, and in particular, to a vehicle application adaptive configuration method and a vehicle terminal.
背景技术Background technique
随着终端技术的发展,汽车能够实现的功能越来越多。比如在车载系统中安装不同的第三方应用,用户可以通过第三方应用使用车载系统提供的如音乐播放、地图导航、通话等功能。但是,由于各个车企使用的车载系统不同,开发者需要根据不同的车载系统适配不同的第三方应用,导致第三方应用开发难度较大。With the development of terminal technology, cars can implement more and more functions. For example, if different third-party applications are installed in the vehicle system, users can use the functions provided by the vehicle system such as music playback, map navigation, and phone calls through third-party applications. However, since each car company uses different in-vehicle systems, developers need to adapt different third-party applications according to different in-vehicle systems, making third-party application development more difficult.
由此,提出不会受限于车载系统类型限制的渐进式网页应用(progressive Web Apps,PWA)。PWA借助于浏览器应用提供的运行环境,能够保留对应的第三方原生应用的部分能力,为用户提供网页浏览应用的体验,满足用户操作需求。Therefore, progressive web applications (PWA) are proposed that are not limited by the type of vehicle system. With the help of the running environment provided by the browser application, PWA can retain some capabilities of the corresponding third-party native application, provide users with the experience of web browsing applications, and meet user operation needs.
但是,PWA并不能在复杂的车载场景中为用户提供最优的用户体验。However, PWA cannot provide users with the optimal user experience in complex vehicle scenarios.
发明内容Contents of the invention
为了解决上述的技术问题,本申请实施例提供了一种车载应用自适应配置方法及车载终端。本申请实施例提供的技术方案中,车载终端根据获取到的行车数据,显示车载应用界面。使得显示的车载应用界面的显示配置适应于当前的行车数据,满足用户需求,提升用户使用体验。In order to solve the above technical problems, embodiments of the present application provide a vehicle application adaptive configuration method and a vehicle terminal. In the technical solution provided by the embodiment of this application, the vehicle-mounted terminal displays the vehicle-mounted application interface based on the acquired driving data. The display configuration of the displayed vehicle application interface is adapted to the current driving data to meet user needs and improve user experience.
为了实现上述的技术目的,本申请实施例提供了如下技术方案:In order to achieve the above technical objectives, the embodiments of this application provide the following technical solutions:
第一方面,提供一种车载应用自适应配置方法,应用于车载终端。该方法包括:获取第一行车数据。根据第一行车数据,显示第一界面,第一界面的显示配置为第一车载配置。获取第二行车数据。根据第二行车数据,显示第二界面,第二界面的显示配置为第二车载配置;其中,第一行车数据不同于第二行车数据,第一界面和第二界面为同一车载渐进式网页应用的界面,第一车载配置不同于第二车载配置。In the first aspect, an adaptive configuration method for vehicle-mounted applications is provided, which is applied to vehicle-mounted terminals. The method includes: obtaining first driving data. According to the first driving data, the first interface is displayed, and the display configuration of the first interface is the first vehicle configuration. Get the second driving data. According to the second driving data, a second interface is displayed, and the display configuration of the second interface is the second vehicle configuration; wherein the first driving data is different from the second driving data, and the first interface and the second interface are the same vehicle-mounted progressive web application. interface, the first vehicle configuration is different from the second vehicle configuration.
如此,车载终端可根据行车数据,自适应的完成车载渐进式网页应用的显示。从而保证车载渐进式网页应用的显示满足当前行车场景的需求,降低驾驶员的驾驶风险,提升用户使用体验。In this way, the vehicle-mounted terminal can adaptively display the vehicle-mounted progressive web application based on driving data. This ensures that the display of in-vehicle progressive web applications meets the needs of current driving scenarios, reduces the driver's driving risks, and improves the user experience.
根据第一方面,在根据第一行车数据,显示第一界面之前,方法还包括:获取车载配置数据。根据第一行车数据,显示第一界面,包括:根据车载配置数据匹配第一行车数据对应的第一车载配置。根据第一车载配置,显示车载渐进式网页应用的第一界面。According to the first aspect, before displaying the first interface according to the first driving data, the method further includes: obtaining vehicle configuration data. Displaying the first interface according to the first driving data includes: matching the first vehicle configuration corresponding to the first driving data according to the vehicle configuration data. According to the first vehicle configuration, a first interface of the vehicle progressive web application is displayed.
根据第一方面,或者以上第一方面的任意一种实现方式,车载配置数据包括预置行车数据和预置行车数据对应的预置车载配置,根据车载配置数据匹配第一行车数据对应的第一车载配置,包括:在预置行车数据中,匹配与第一行车数据相同的目标预 置行车数据。确定与目标预置行车数据对应的预置车载配置中的第一车载配置。According to the first aspect, or any implementation of the above first aspect, the vehicle configuration data includes preset driving data and a preset vehicle configuration corresponding to the preset driving data, and the first driving data corresponding to the first driving data is matched according to the vehicle configuration data. On-board configuration, including: in the preset driving data, match the target preset that is the same as the first driving data. Set driving data. The first vehicle configuration among the preset vehicle configurations corresponding to the target preset driving data is determined.
在一些实施例中,配置人员配置不同行车场景中行车数据对应的车载配置,生成车载配置数据。这样,车载终端在获取到行车数据后,能够根据车载配置数据,确定与当前行车数据匹配的车载配置。通过该车载配置,车载终端显示车载渐进式网页应用。从而使得显示界面的显示,满足当前行车数据的要求,保证驾驶员的行车安全。In some embodiments, the configuration personnel configures the vehicle configuration corresponding to the driving data in different driving scenarios and generates the vehicle configuration data. In this way, after acquiring the driving data, the vehicle-mounted terminal can determine the vehicle-mounted configuration that matches the current driving data based on the vehicle-mounted configuration data. Through this vehicle configuration, the vehicle terminal displays the vehicle progressive web application. This enables the display of the display interface to meet the requirements of current driving data and ensure the driver's driving safety.
在一些实施例中,第一行车数据或第二行车数据包括如下一项或几项:天气情况、日夜间情况、路况、车速、通话情况、光线情况。In some embodiments, the first driving data or the second driving data include one or more of the following: weather conditions, day and night conditions, road conditions, vehicle speed, call conditions, and light conditions.
比如,配置人员配置天气情况较差(如雨天)的情况下,对应的车载配置的显示字体较大。这样,车载终端在雨天获取到行车数据后,根据匹配到的车载配置,可显示字体较大的界面,便于驾驶员查看。从而避免由于显示字体较小,导致驾驶员分散多于的注意力用于分辨显示内容,导致发生危险。For example, when the weather conditions are poor (such as rainy days), the display font of the corresponding vehicle configuration will be larger. In this way, after the vehicle-mounted terminal obtains the driving data on rainy days, it can display an interface with larger fonts based on the matched vehicle configuration, making it easier for the driver to view it. This prevents the driver from distracting more attention from distinguishing the displayed content due to the small display font, which may lead to danger.
根据第一方面,或者以上第一方面的任意一种实现方式,获取车载配置数据,包括:获取存储在存储单元中的车载配置数据;其中,存储单元按照第一周期从服务器更新车载配置数据。或者,响应于启动车载渐进式网页应用的操作,向服务器请求获取车载配置数据。According to the first aspect, or any implementation of the above first aspect, obtaining the vehicle configuration data includes: obtaining the vehicle configuration data stored in the storage unit; wherein the storage unit updates the vehicle configuration data from the server according to the first cycle. Or, in response to the operation of launching the in-vehicle progressive web application, requesting the server to obtain the in-vehicle configuration data.
在一些实施例中,车载终端按照第一周期采集行车数据,并将采集到的行车数据存储到存储单元中,更新历史行车数据。后续,车载终端在检测到用户启动车载渐进式网页应用的操作后,从存储单元中获取行车数据。In some embodiments, the vehicle-mounted terminal collects driving data according to the first cycle, stores the collected driving data in the storage unit, and updates historical driving data. Subsequently, after detecting the user's operation of launching the in-vehicle progressive web application, the vehicle-mounted terminal obtains the driving data from the storage unit.
在另一些实施例中,车载终端在检测到用户启动车载渐进式网页应用的操作后,实时向服务器请求获取车载配置数据。从而使得根据车载配置数据确定的车载配置,满足当前行车数据对于车载配置的实时性需求。从而避免出现由于车载配置的更新与当前行车数据不匹配,导致显示界面不满足用户需求的问题。In some other embodiments, after detecting the user's operation of launching the vehicle-mounted progressive web application, the vehicle-mounted terminal requests the server to obtain vehicle-mounted configuration data in real time. As a result, the vehicle configuration determined based on the vehicle configuration data meets the real-time demand for vehicle configuration based on current driving data. This avoids the problem that the display interface does not meet user needs due to the mismatch between the vehicle configuration update and the current driving data.
根据第一方面,或者以上第一方面的任意一种实现方式,第一车载配置包括显示第一界面过程中的音量大小、字体大小、是否支持语音导航中的一项或几项。According to the first aspect, or any implementation of the above first aspect, the first vehicle configuration includes one or more of volume size, font size, and whether to support voice navigation during display of the first interface.
比如,地图应用在导航过程中播报路线及路况等信息,一般驾驶员为了更加清晰的听到播报信息,都会将车载系统音量调高。但是,由于地图应用并不能自适应的调节音量,那么在车流量较大或堵车过程中,由于信息播放声音较大可能会影响驾驶员注意周围车辆的喇叭声等示警,影响行车安全。For example, map applications broadcast information such as routes and traffic conditions during navigation. Generally, drivers will turn up the volume of the in-car system in order to hear the broadcast information more clearly. However, since the map application cannot adaptively adjust the volume, during heavy traffic or traffic jams, the louder sound of information playback may affect the driver's attention to the horns and other warnings of surrounding vehicles, affecting driving safety.
又比如,日夜间变化或天气变化都会对车内光线产生影响,但车载应用不会自适应调节显示。显示字体较小,在光线不足的情况下,用户很难识别内容。驾驶员可能需要手动调整,影响行车安全。For another example, changes in day and night or weather changes will affect the light in the car, but the car application will not adaptively adjust the display. The display fonts are small, making it difficult for users to identify the content in low light conditions. The driver may need to make manual adjustments, which affects driving safety.
再比如,由于浏览器应用一般不具备语音识别能力,因此地图应用Web页面也不提供语音识别功能。驾驶员在车辆行驶过程中,如需切换目的地,无法语音操作,只能手动输入,影响行车安全。For another example, since browser applications generally do not have speech recognition capabilities, map application web pages do not provide speech recognition capabilities. If the driver needs to switch destinations while the vehicle is driving, he cannot perform voice operations and can only input manually, which affects driving safety.
如此,通过配置不同行车数据对应的车载配置。车载终端根据车载配置显示车载渐进式网页应用界面,使得显示过程满足行车数据的要求,保证驾驶员的行车安全。In this way, by configuring the on-board configuration corresponding to different driving data. The vehicle-mounted terminal displays the vehicle-mounted progressive web application interface according to the vehicle configuration, so that the display process meets the requirements of driving data and ensures the driver's driving safety.
根据第一方面,或者以上第一方面的任意一种实现方式,取第一行车数据,包括:检测到启动车载渐进式网页应用的操作,获取第一行车数据。或者,按照第二周期获取第一行车数据。或者,在行车数据发生变化时,更新第一行车数据。 According to the first aspect, or any implementation of the above first aspect, obtaining the first driving data includes: detecting an operation of starting a vehicle-mounted progressive web application and obtaining the first driving data. Or, obtain the first driving data according to the second period. Or, when the driving data changes, the first driving data is updated.
在一些实施例中,车载终端检测到用户启动车载渐进式网页应用的操作后,采集第一行车数据,或者在存储单元中获取第一行车数据。In some embodiments, after the vehicle-mounted terminal detects the user's operation of launching the vehicle-mounted progressive web application, it collects the first driving data, or obtains the first driving data in the storage unit.
在另一些实施例中,车载终端按照第二周期采集第一行车数据,将行车数据存储到存储单元中。后续在检测到启动车载渐进式网页应用的操作时,可从存储单元中获取到第一行车数据。In other embodiments, the vehicle-mounted terminal collects the first driving data according to the second cycle and stores the driving data in the storage unit. Later, when the operation of starting the in-vehicle progressive web application is detected, the first driving data can be obtained from the storage unit.
在又一些实施例中,车载终端采集行车数据,确定行车数据发生变化后,更新存储单元中存储的第一行车数据。In some embodiments, the vehicle-mounted terminal collects driving data, and after determining that the driving data has changed, updates the first driving data stored in the storage unit.
如此,车载终端获取第一行车数据,确定满足当前第一行车数据要求的显示配置,从而显示车载渐进式网页应用界面。In this way, the vehicle-mounted terminal obtains the first driving data, determines a display configuration that meets the current requirements of the first driving data, and thereby displays the vehicle-mounted progressive web application interface.
根据第一方面,或者以上第一方面的任意一种实现方式,在根据第一行车数据,显示第一界面之前,方法还包括:确定浏览器应用的运行场景为车载终端场景,并已开启智能化体验。According to the first aspect, or any implementation of the above first aspect, before displaying the first interface according to the first driving data, the method further includes: determining that the running scenario of the browser application is a vehicle-mounted terminal scenario, and the smart device has been turned on experience.
示例性的,车载终端中的浏览器客户端中预置配置参数。浏览器客户端在检测到用户启动车载渐进式网页应用的操作后,根据预置配置参数取值,确定浏览器客户端运行场景是否为车载终端场景,以及是否启动智能化体验。如果均为是,浏览器客户端可获取行车数据,根据行车数据自适应的调整车载渐进式网页应用的运行环境。For example, the configuration parameters are preset in the browser client in the vehicle-mounted terminal. After the browser client detects the user's operation to launch the in-vehicle progressive web application, it determines whether the browser client's running scenario is an in-vehicle terminal scenario and whether to start an intelligent experience based on the preset configuration parameter values. If both are yes, the browser client can obtain the driving data and adaptively adjust the running environment of the in-vehicle progressive web application based on the driving data.
根据第一方面,或者以上第一方面的任意一种实现方式,第一界面和第二界面为车载渐进式网页应用相同的功能页面。According to the first aspect, or any implementation of the above first aspect, the first interface and the second interface are the same functional pages of the vehicle-mounted progressive web application.
在一些实施例中,车载渐进式网页应用中的不同功能配置有不同的功能页面。比如,地图应用具有导航功能页面、地点搜索功能页面等。在相同的功能页面中,车载应用也可根据行车数据的变化,显示相应显示配置的界面。从而实现自适应的为车载渐进式网页应用配置运行环境,更能保证配置的车载渐进式网页应用运行环境满足当前行车数据要求,进一步保证驾驶员行车安全。In some embodiments, different functions in the vehicle-mounted progressive web application are configured with different function pages. For example, a map application has a navigation function page, a location search function page, etc. In the same function page, the vehicle application can also display the corresponding display configuration interface according to changes in driving data. This enables adaptive configuration of the running environment for in-vehicle progressive web applications, and ensures that the configured running environment for in-vehicle progressive web applications meets current driving data requirements, further ensuring driver driving safety.
第二方面,提供一种车载终端。该车载终端包括:显示屏、处理器和存储器,显示屏和存储器与处理器耦合,存储器用于存储计算机可读指令,当处理器从存储器中读取计算机可读指令,使得车载终端执行:获取第一行车数据。根据第一行车数据,显示第一界面,第一界面的显示配置为第一车载配置。获取第二行车数据。根据第二行车数据,显示第二界面,第二界面的显示配置为第二车载配置;其中,第一行车数据不同于第二行车数据,第一界面和第二界面为同一车载渐进式网页应用的界面,第一车载配置不同于第二车载配置。In a second aspect, a vehicle-mounted terminal is provided. The vehicle-mounted terminal includes: a display screen, a processor and a memory. The display screen and the memory are coupled to the processor. The memory is used to store computer-readable instructions. When the processor reads the computer-readable instructions from the memory, the vehicle-mounted terminal executes: Get First driving data. According to the first driving data, the first interface is displayed, and the display configuration of the first interface is the first vehicle configuration. Get the second driving data. According to the second driving data, a second interface is displayed, and the display configuration of the second interface is the second vehicle configuration; wherein the first driving data is different from the second driving data, and the first interface and the second interface are the same vehicle-mounted progressive web application. interface, the first vehicle configuration is different from the second vehicle configuration.
根据第二方面,在根据第一行车数据,当处理器从存储器中读取计算机可读指令,还使得车载终端执行如下操作:获取车载配置数据。根据第一行车数据,显示第一界面,包括:根据车载配置数据匹配第一行车数据对应的第一车载配置。根据第一车载配置,显示车载渐进式网页应用的第一界面。According to the second aspect, according to the first driving data, when the processor reads the computer-readable instructions from the memory, it also causes the vehicle-mounted terminal to perform the following operations: obtain vehicle-mounted configuration data. Displaying the first interface according to the first driving data includes: matching the first vehicle configuration corresponding to the first driving data according to the vehicle configuration data. According to the first vehicle configuration, a first interface of the vehicle progressive web application is displayed.
根据第二方面,或者以上第二方面的任意一种实现方式,获取车载配置数据,包括:获取存储在存储单元中的车载配置数据;其中,存储单元按照第一周期从服务器更新车载配置数据。或者,响应于启动车载渐进式网页应用的操作,向服务器请求获取车载配置数据。According to the second aspect, or any implementation of the above second aspect, obtaining the vehicle configuration data includes: obtaining the vehicle configuration data stored in the storage unit; wherein the storage unit updates the vehicle configuration data from the server according to the first cycle. Or, in response to the operation of launching the in-vehicle progressive web application, requesting the server to obtain the in-vehicle configuration data.
根据第二方面,或者以上第二方面的任意一种实现方式,车载配置数据包括预置 行车数据和预置行车数据对应的预置车载配置,根据车载配置数据匹配第一行车数据对应的第一车载配置,包括:在预置行车数据中,匹配与第一行车数据相同的目标预置行车数据。确定与目标预置行车数据对应的预置车载配置中的第一车载配置。According to the second aspect, or any implementation of the second aspect above, the vehicle configuration data includes preset The preset vehicle configuration corresponding to the driving data and the preset driving data is matched with the first vehicle configuration corresponding to the first driving data according to the vehicle configuration data, including: in the preset driving data, matching the target preset that is the same as the first driving data Driving data. The first vehicle configuration among the preset vehicle configurations corresponding to the target preset driving data is determined.
根据第二方面,或者以上第二方面的任意一种实现方式,第一车载配置包括显示第一界面过程中的音量大小、字体大小、是否支持语音导航中的一项或几项。According to the second aspect, or any implementation of the second aspect above, the first vehicle configuration includes one or more of volume size, font size, and whether to support voice navigation during display of the first interface.
根据第二方面,或者以上第二方面的任意一种实现方式,取第一行车数据,包括:检测到启动车载渐进式网页应用的操作,获取第一行车数据。或者,按照第二周期获取第一行车数据。或者,在行车数据发生变化时,更新第一行车数据。According to the second aspect, or any implementation of the above second aspect, obtaining the first driving data includes: detecting an operation of starting a vehicle-mounted progressive web application and obtaining the first driving data. Or, obtain the first driving data according to the second cycle. Or, when the driving data changes, the first driving data is updated.
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得车载终端执行如下操作:确定浏览器应用的运行场景为车载终端场景,并已开启智能化体验。According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer-readable instructions from the memory, it also causes the vehicle-mounted terminal to perform the following operations: determine that the running scenario of the browser application is the vehicle-mounted terminal scenario, And the intelligent experience has been turned on.
根据第二方面,或者以上第二方面的任意一种实现方式,第一行车数据或第二行车数据包括如下一项或几项:天气情况、日夜间情况、路况、车速、通话情况、光线情况。According to the second aspect, or any implementation of the second aspect above, the first driving data or the second driving data includes one or more of the following: weather conditions, day and night conditions, road conditions, vehicle speed, call conditions, and light conditions. .
根据第二方面,或者以上第二方面的任意一种实现方式,第一界面和第二界面为车载渐进式网页应用相同的功能页面。According to the second aspect, or any implementation manner of the second aspect above, the first interface and the second interface are the same functional pages of the vehicle-mounted progressive web application.
第二方面以及第二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the second aspect and any one of the implementation methods of the second aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第三方面,本申请实施例提供一种车载终端,该车载终端具有实现如上述第一方面及其中任一种可能的实现方式中所述的车载应用自适应配置方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应地软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, embodiments of the present application provide a vehicle-mounted terminal that has the function of implementing the vehicle-mounted application adaptive configuration method described in the above-mentioned first aspect and any possible implementation manner. This function can be implemented by hardware, or can be implemented by hardware and corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第三方面以及第三方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the third aspect and any one of the implementation methods of the third aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第四方面,提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被车载终端执行时,使得车载终端执行第一方面或第一方面中任意一种实施方式的方法。In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (which may also be referred to as instructions or codes). When the computer program is executed by the vehicle-mounted terminal, the vehicle-mounted terminal causes the vehicle-mounted terminal to execute the method of the first aspect or any one of the embodiments of the first aspect.
第四方面以及第四方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the fourth aspect and any one of the implementation methods of the fourth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be described again here.
第五方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在车载终端上运行时,使得车载终端执行第一方面或第一方面中任意一种实施方式的方法。In a fifth aspect, embodiments of the present application provide a computer program product. When the computer program product is run on a vehicle-mounted terminal, the vehicle-mounted terminal causes the vehicle-mounted terminal to execute the method of the first aspect or any one of the embodiments of the first aspect.
第五方面以及第五方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the fifth aspect and any one of the implementation methods of the fifth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第六方面,本申请实施例提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行第一方面或第一方面中任意一种实施方式的方法。In a sixth aspect, embodiments of the present application provide a circuit system. The circuit system includes a processing circuit, and the processing circuit is configured to execute the method of the first aspect or any one of the implementation modes of the first aspect.
第六方面以及第六方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the sixth aspect and any one of the implementation methods of the sixth aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, which will not be described again here.
第七方面,本申请实施例提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当 至少一个处理器执行指令时,至少一个处理器执行第一方面或第一方面中任意一种实施方式的方法。In a seventh aspect, embodiments of the present application provide a chip system, including at least one processor and at least one interface circuit. The at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor. When at least one processor executes the instructions, at least one processor executes the method of the first aspect or any one of the implementation modes of the first aspect.
第七方面以及第七方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。For the technical effects corresponding to the seventh aspect and any one of the implementation methods of the seventh aspect, please refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be described again here.
附图说明Description of the drawings
图1A为本申请实施例提供的界面示意图一;Figure 1A is a schematic diagram 1 of the interface provided by the embodiment of the present application;
图1B为本申请实施例提供的车载PWA运行过程示意图;Figure 1B is a schematic diagram of the operation process of the vehicle-mounted PWA provided by the embodiment of the present application;
图2为本申请实施例提供的车载应用自适应配置方法应用的通信系统的示意图;Figure 2 is a schematic diagram of a communication system applied by the vehicle application adaptive configuration method provided by the embodiment of the present application;
图3为本申请实施例提供的车载终端的硬件结构示意图;Figure 3 is a schematic diagram of the hardware structure of the vehicle-mounted terminal provided by the embodiment of the present application;
图4为本申请实施例提供的行车数据获取方法流程示意图;Figure 4 is a schematic flow chart of the driving data acquisition method provided by the embodiment of the present application;
图5为本申请实施例提供的车载应用自适应配置方法应用的模块示意图;Figure 5 is a module schematic diagram of the application of the vehicle application adaptive configuration method provided by the embodiment of the present application;
图6为本申请实施例提供的车载PWA配置数据获取方法流程示意图;Figure 6 is a schematic flow chart of the vehicle PWA configuration data acquisition method provided by the embodiment of the present application;
图7为本申请实施例提供的车载应用自适应配置方法流程示意图;Figure 7 is a schematic flowchart of the vehicle application adaptive configuration method provided by the embodiment of the present application;
图8为本申请实施例提供的界面示意图二;Figure 8 is a second schematic diagram of the interface provided by the embodiment of the present application;
图9为本申请实施例提供的浏览器客户端接收到PWA运行请求后,确定运行环境的方法的示意图;Figure 9 is a schematic diagram of a method for determining the running environment after the browser client receives the PWA running request provided by the embodiment of the present application;
图10为本申请实施例提供的车载应用自适应配置方法流程示意图;Figure 10 is a schematic flowchart of the vehicle application adaptive configuration method provided by the embodiment of the present application;
图11为本申请实施例提供的车载终端的结构示意图。Figure 11 is a schematic structural diagram of a vehicle-mounted terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "above," "the" and "the" are intended to include For example, the expression "one or more" unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more than two (including two).
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized. The term "connected" includes both direct and indirect connections unless otherwise stated. “First” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features.
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of this application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the present application is not to be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
在一些场景中,随着终端技术的发展,车载系统(也可以称为车机、车辆中控)能够支持安装第三方应用,为用户提供更加丰富的功能使用体验。 In some scenarios, with the development of terminal technology, in-vehicle systems (also known as vehicle computers and vehicle central control systems) can support the installation of third-party applications to provide users with a richer functional experience.
示例性的,如图1A中(a)所示的车载系统界面101,车载系统中能够安装一个或多个第三方应用,如地图应用、音乐应用、天气应用等。For example, in the vehicle system interface 101 shown in (a) of FIG. 1A , one or more third-party applications can be installed in the vehicle system, such as map applications, music applications, weather applications, etc.
但是,由于各个车企使用的车载系统不同,导致开发者需要开发适配于不同车载系统的第三方应用。比如,以地图应用为例,开发者需要开发适配于不同车载系统的地图应用,以满足用户在车辆行驶过程中,通过车载系统导航的需求。但这也就增加了开发者开发应用的难度。However, since various car companies use different in-vehicle systems, developers need to develop third-party applications adapted to different in-vehicle systems. For example, taking map applications as an example, developers need to develop map applications that are adapted to different vehicle systems to meet the needs of users for navigation through the vehicle system while the vehicle is driving. But this also increases the difficulty for developers to develop applications.
由此,提出渐进式网页应用(progressive Web Apps,PWA)。PWA借助于车载系统中安装的浏览器应用提供的运行环境运行,因此不会受限于车载系统的型号。PWA能够在为用户提供万维网(Web)交互体验的同时,提供一些应用能力。如被添加到主屏幕、全屏方式运行、离线工作、推送通知消息、能够获得和应用同级的权限等。From this, Progressive Web Apps (PWA) are proposed. PWA runs with the help of the operating environment provided by the browser application installed in the vehicle system, so it is not limited by the model of the vehicle system. PWA can provide users with some application capabilities while providing users with a World Wide Web (Web) interactive experience. Such as being added to the home screen, running in full screen mode, working offline, sending push notification messages, and being able to obtain the same level of permissions as the application, etc.
示例性的,如图1A中(a)所示,车载系统中运行的如地图应用、音乐应用、天气应用等均可配置为车载PWA。图1B为本申请实施例提供的车载PWA运行过程示意图。如图1B所示中的步骤一所示,车载PWA检测到用户的启动操作,如检测到用户点击如图1A中(a)所示的地图应用图标11的操作。车载PWA(地图应用)向浏览器应用发送车载PWA运行请求(即步骤二),浏览器应用在接收到车载PWA运行请求后,可获取相应的网页数据,基于网页数据提供车载PWA运行环境,渲染网页(即步骤三)。之后,浏览器应用将渲染后的网页数据发送到车载PWA(步骤四)。相应的,车载PWA接收到渲染后的网页数据后,可基于渲染后的网页数据,在浏览器应用提供的运行环境中运行(步骤五)。如车载系统显示如图1A中(b)所示界面102,在界面102上显示地图应用Web页面,此时地图应用可接收用户在Web页面上的操作,如实现导航等。For example, as shown in (a) of Figure 1A, map applications, music applications, weather applications, etc. running in the vehicle system can be configured as vehicle PWAs. Figure 1B is a schematic diagram of the operation process of the vehicle-mounted PWA provided by the embodiment of the present application. As shown in step 1 of Figure 1B, the vehicle-mounted PWA detects the user's startup operation, such as detecting the user's click on the map application icon 11 as shown in (a) of Figure 1A. The vehicle-mounted PWA (map application) sends a vehicle-mounted PWA running request to the browser application (i.e. step 2). After receiving the vehicle-mounted PWA running request, the browser application can obtain the corresponding web page data, provide the vehicle-mounted PWA running environment based on the web page data, and render Web page (i.e. step three). Afterwards, the browser application sends the rendered web page data to the on-board PWA (step 4). Correspondingly, after the vehicle-mounted PWA receives the rendered web page data, it can run in the operating environment provided by the browser application based on the rendered web page data (step five). For example, the vehicle-mounted system displays the interface 102 shown in (b) of Figure 1A, and displays a map application Web page on the interface 102. At this time, the map application can receive user operations on the Web page, such as implementing navigation.
这样,在有效降低开发者应用开发难度的同时,也满足用户使用应用的需求。但是,由于车载PWA是借助于浏览器应用提供的运行环境运行,因此车载PWA体验与访问网页体验相同。那么,也就无法实现自适应的匹配复杂的车载场景。In this way, while effectively reducing the difficulty of application development for developers, it also meets the needs of users for using applications. However, since the in-vehicle PWA runs with the help of the operating environment provided by the browser application, the experience of the in-vehicle PWA is the same as that of visiting a web page. Then, it is impossible to achieve adaptive matching of complex vehicle scenarios.
比如,如图1A所示场景,地图应用在导航过程中播报路线及路况等信息,一般驾驶员为了更加清晰的听到播报信息,都会将车载系统音量调高。但是,由于地图应用并不能自适应的调节音量,那么在车流量较大或堵车过程中,由于信息播放声音较大可能会影响驾驶员注意周围车辆的喇叭声等示警,影响行车安全。For example, in the scenario shown in Figure 1A, the map application broadcasts information such as routes and traffic conditions during the navigation process. In order to hear the broadcast information more clearly, the average driver will turn up the volume of the vehicle system. However, since the map application cannot adaptively adjust the volume, during heavy traffic or traffic jams, the louder sound of information playback may affect the driver's attention to the horns and other warnings of surrounding vehicles, affecting driving safety.
又比如,日夜间变化或天气变化都会对车内光线产生影响,但车载PWA不会自适应调节显示。如图1A中(b)所示界面102,显示字体较小,在光线不足的情况下,用户很难识别内容。驾驶员可能需要手动调整,影响行车安全。For another example, changes in day and night or weather changes will affect the light in the car, but the in-car PWA will not adaptively adjust the display. As shown in the interface 102 shown in (b) of Figure 1A, the display font is small, and it is difficult for the user to recognize the content under insufficient light. The driver may need to make manual adjustments, which affects driving safety.
再比如,如图1A所示场景,由于浏览器应用一般不具备语音识别能力,因此地图应用Web页面也不提供语音识别功能。驾驶员在车辆行驶过程中,如需切换目的地,无法语音操作,只能手动输入,影响行车安全。For another example, in the scenario shown in Figure 1A, since browser applications generally do not have voice recognition capabilities, the map application web page does not provide voice recognition capabilities. If the driver needs to switch destinations while the vehicle is driving, he cannot perform voice operations and can only input manually, which affects driving safety.
基于上述问题,本申请实施例提供一种车载应用自适应配置方法,浏览器应用能够基于行车数据,自适应的为车载应用(车载PWA)匹配对应的车载PWA配置,并基于匹配的车载PWA配置为车载应用提供运行环境。从而使得车载应用能够满足复杂的车载场景需求,在保证用户使用体验的同时,降低行车风险。 Based on the above problems, embodiments of the present application provide a vehicle-mounted application adaptive configuration method. The browser application can adaptively match the corresponding vehicle-mounted PWA configuration for the vehicle-mounted application (vehicle PWA) based on the driving data, and based on the matching vehicle-mounted PWA configuration Provides a running environment for in-vehicle applications. This enables vehicle-mounted applications to meet the needs of complex vehicle scenarios, ensuring user experience while reducing driving risks.
图2为本申请实施例提供的车载应用自适应配置方法应用的通信系统的示意图。如图2中所示,该通信系统包括车载终端100和服务器200。FIG. 2 is a schematic diagram of a communication system in which the vehicle application adaptive configuration method provided by the embodiment of the present application is applied. As shown in FIG. 2 , the communication system includes a vehicle-mounted terminal 100 and a server 200 .
可选的,车载终端100可以为车辆、汽车等终端。车载终端100安装的操作系统包括但不限于或者其它操作系统。车载终端100也可不安装操作系统。本申请对车载终端100的具体类型、是否安装操作系统、所安装的操作系统均不作限制。Optionally, the vehicle-mounted terminal 100 may be a terminal such as a vehicle or an automobile. The operating systems installed on the vehicle terminal 100 include but are not limited to or other operating systems. The vehicle-mounted terminal 100 does not need to have an operating system installed. This application does not limit the specific type of the vehicle-mounted terminal 100, whether an operating system is installed, or the operating system installed.
可选的,服务器200可以是云服务器或者网络服务器等具有计算功能的设备或网络设备。服务器200可以是一台服务器,也可以分别是由多台服务器组成的服务器集群,或者分别是一个云计算服务中心。Optionally, the server 200 may be a device or network device with computing functions such as a cloud server or a network server. The server 200 may be one server, a server cluster composed of multiple servers, or a cloud computing service center.
在一些实施例中,车载终端100与服务器200之间建立无线通信连接。服务器200通过该无线通信连接向车载终端100发送车载PWA配置数据。相应的,车载终端100接收服务器200发送的车载PWA配置数据,从而根据获取到的行车数据在车载PWA配置数据中匹配对应的车载PWA配置,配置车载PWA的运行环境。In some embodiments, a wireless communication connection is established between the vehicle-mounted terminal 100 and the server 200 . The server 200 sends the vehicle-mounted PWA configuration data to the vehicle-mounted terminal 100 through the wireless communication connection. Correspondingly, the vehicle-mounted terminal 100 receives the vehicle-mounted PWA configuration data sent by the server 200, thereby matching the corresponding vehicle-mounted PWA configuration in the vehicle-mounted PWA configuration data according to the acquired driving data, and configuring the operating environment of the vehicle-mounted PWA.
在一些实施例中,车载终端100中配置有车载系统,车载系统作为车载终端100的控制中心,能够用于获取车载终端内一个或多个传感器发送的行车数据,从而实现根据行车数据匹配车载PWA配置数据。In some embodiments, the vehicle-mounted terminal 100 is configured with a vehicle-mounted system. As the control center of the vehicle-mounted terminal 100 , the vehicle-mounted system can be used to obtain driving data sent by one or more sensors in the vehicle-mounted terminal, thereby matching the vehicle-mounted PWA according to the driving data. Configuration Data.
示例性的,图3示出了车载终端100的一种结构示意图。For example, FIG. 3 shows a schematic structural diagram of the vehicle-mounted terminal 100.
车载终端100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,以及显示屏194等。The vehicle-mounted terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, and a motor 191 , indicator 192, camera 193, and display screen 194, etc.
可以理解的是,本申请实施例示意的结构并不构成对车载终端100的具体限定。在本申请另一些实施例中,车载终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the vehicle-mounted terminal 100 . In other embodiments of the present application, the vehicle-mounted terminal 100 may include more or fewer components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal  asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal) asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and/or universal serial bus (USB) interface, etc.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现车载终端100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现车载终端100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the vehicle-mounted terminal 100. The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the vehicle-mounted terminal 100 .
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为车载终端100充电,也可以用于车载终端100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the vehicle-mounted terminal 100, and can also be used to transmit data between the vehicle-mounted terminal 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other terminal devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对车载终端100的结构限定。在本申请另一些实施例中,车载终端100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation on the vehicle-mounted terminal 100 . In other embodiments of the present application, the vehicle-mounted terminal 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
车载终端100的无线通信功能可以通过天线,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the vehicle-mounted terminal 100 can be implemented through the antenna, the wireless communication module 160, the modem processor and the baseband processor.
天线用于发射和接收电磁波信号。车载终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antennas are used to transmit and receive electromagnetic wave signals. Each antenna in the vehicle-mounted terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: the antenna can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
无线通信模块160可以提供应用在车载终端100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellites that are used on the vehicle-mounted terminal 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves through the antenna, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna for radiation.
在一些实施例中,车载终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。 In some embodiments, the vehicle-mounted terminal 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
车载终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The vehicle-mounted terminal 100 implements the display function through the GPU, the display screen 194, and the application processor. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),例如采用有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini-led,Micro-led,Micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等生产制造。在一些实施例中,车载终端100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix). Production and manufacturing of organic light emitting diodes (AMOLED), flexible light-emitting diodes (FLED), Mini-led, Micro-led, Micro-oled, quantum dot light emitting diodes (QLED), etc. . In some embodiments, the vehicle-mounted terminal 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
在一些实施例中,车载终端100在显示屏194上显示车载PWA图标,用户可根据需求操作对应的车载PWA图标启动车载PWA。车载终端100在检测到用户启动车载PWA的操作后,获取当前行车数据,以匹配对应的车载PWA配置。之后,根据车载PWA配置完成车载PWA运行环境的配置。在显示屏194上显示渲染后的网页,使得该显示过程适应于当前车载场景。如光线较暗,可放大显示字体等。In some embodiments, the vehicle-mounted terminal 100 displays the vehicle-mounted PWA icon on the display screen 194, and the user can operate the corresponding vehicle-mounted PWA icon to start the vehicle-mounted PWA according to the needs. After detecting the user's operation to activate the vehicle-mounted PWA, the vehicle-mounted terminal 100 obtains the current driving data to match the corresponding vehicle-mounted PWA configuration. After that, complete the configuration of the vehicle PWA operating environment according to the vehicle PWA configuration. The rendered web page is displayed on the display screen 194 so that the display process is adapted to the current vehicle scene. If the light is dark, you can enlarge the display fonts, etc.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,车载终端100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the vehicle-mounted terminal 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展车载终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the vehicle-mounted terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储车载终端100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行车载终端100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the vehicle-mounted terminal 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the vehicle-mounted terminal 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
在一些实施例中,车载终端100在获取到行车数据和车载PWA配置数据后,可将行车数据和车载PWA配置数据存储到内部存储器121中。这样,在需要应用时,可从内部存储器121中获取到相应的数据。In some embodiments, after acquiring the driving data and the vehicle-mounted PWA configuration data, the vehicle-mounted terminal 100 may store the driving data and the vehicle-mounted PWA configuration data in the internal memory 121 . In this way, when an application is needed, the corresponding data can be obtained from the internal memory 121 .
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些 实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。车载终端100可以通过音频模块170,例如音乐播放,录音等。音频模块170可以包括扬声器,受话器,麦克风,耳机接口,以及应用处理器等实现音频功能。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. in some In embodiments, the audio module 170 may be disposed in the processor 110 , or some functional modules of the audio module 170 may be disposed in the processor 110 . The vehicle-mounted terminal 100 can perform, for example, music playback, recording, etc. through the audio module 170 . The audio module 170 may include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于车载终端100的表面,与显示屏194所处的位置不同。Touch sensor, also known as "touch device". The touch sensor can be disposed on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, which is also called a "touch screen". Touch sensors are used to detect touches on or near them. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor may also be disposed on the surface of the vehicle-mounted terminal 100 in a position different from that of the display screen 194 .
按键190包括方控键,开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。车载终端100可以接收按键输入,产生与车载终端100的用户设置以及功能控制有关的键信号输入。The buttons 190 include square control buttons, power buttons, volume buttons, etc. Key 190 may be a mechanical key. It can also be a touch button. The vehicle-mounted terminal 100 may receive key input and generate key signal input related to user settings and function control of the vehicle-mounted terminal 100 .
以下以车载终端100包括车载系统和浏览器客户端,服务器200为浏览器云端,车载PWA为地图应用为例,对本申请实施例提供的车载应用自适应配置方法进行说明。The vehicle-mounted terminal 100 includes a vehicle-mounted system and a browser client, the server 200 is a browser cloud, and the vehicle-mounted PWA is a map application. The vehicle-mounted application adaptive configuration method provided by the embodiment of the present application is described below.
需要说明的是,浏览器客户端安装于车载终端100中,是浏览器应用。在本申请实施例中为了便于说明,将车载系统和浏览器客户端划分为两个虚拟模块,在一些实施例中,车载系统和浏览器客户端可为一个虚拟模块。如车载系统作为车载终端100的中控系统,浏览器客户端安装于车载系统中,即车载系统包括浏览器客户端,对此下文不再说明。It should be noted that the browser client is installed in the vehicle-mounted terminal 100 and is a browser application. In the embodiment of this application, for convenience of explanation, the vehicle system and the browser client are divided into two virtual modules. In some embodiments, the vehicle system and the browser client can be one virtual module. For example, the vehicle-mounted system serves as the central control system of the vehicle-mounted terminal 100, and the browser client is installed in the vehicle-mounted system, that is, the vehicle-mounted system includes the browser client, which will not be described below.
在一些实施例中,不同车载场景会产生不同的行车数据,不同车载PWA配置能够在不同的车载场景中为用户提供更好的使用体验。因此,浏览器客户端在确定车载系统需要启动车载PWA时,可根据获取到的行车数据配置车载PWA。In some embodiments, different vehicle scenarios will generate different driving data, and different vehicle PWA configurations can provide users with a better experience in different vehicle scenarios. Therefore, when the browser client determines that the vehicle system needs to launch the vehicle PWA, it can configure the vehicle PWA based on the acquired driving data.
如下分别介绍浏览器客户端获取行车数据和车载PWA配置数据的过程。The following describes the process of the browser client obtaining driving data and vehicle PWA configuration data respectively.
可选的,图4为本申请实施例提供的行车数据获取方法的流程示意图。如图4所示,该方法包括如下步骤。Optionally, FIG. 4 is a schematic flowchart of a driving data acquisition method provided by an embodiment of the present application. As shown in Figure 4, the method includes the following steps.
S401、车载PWA管理单元获取行车数据。S401. The vehicle-mounted PWA management unit obtains driving data.
在一些实施例中,行车数据包括天气情况、日夜间情况、路况、车速、光线情况等中的一项或几项。如图3所示车载终端100中配置有传感器模块180,传感器模块180可用于检测车辆行驶过程中的行车数据。或者,车载系统可获取到与其相连的其他电子设备(如手机)发送的行车数据。In some embodiments, the driving data includes one or more of weather conditions, day and night conditions, road conditions, vehicle speed, light conditions, etc. As shown in Figure 3, the vehicle terminal 100 is equipped with a sensor module 180. The sensor module 180 can be used to detect driving data during the driving of the vehicle. Alternatively, the vehicle-mounted system can obtain driving data sent by other electronic devices (such as mobile phones) connected to it.
示例性的,如图5所示,车载系统中包括行车数据采集单元501,用于采集车辆行驶过程中检测到的行车数据。如车辆可配置加速度传感器,能够用于确定车辆是否处于行驶过程中,以及测量车速,进一步的还可以根据车速判断路况(如路况较差会导致车速降低等)或地图APP同步路况情况;车辆还可配置雨量传感器或者天气应用,或者其它APP,能够用于确定天气情况;车辆还可配置环境光传感器,能够用于测量 环境光线,还可根据环境光线确定日夜间情况;车辆还可配置时钟应用或终端的时间,用于确定时间信息,进而确定日夜间情况;车辆还可以配置地图应用,能够用于确定路况。For example, as shown in Figure 5, the vehicle-mounted system includes a driving data collection unit 501, which is used to collect driving data detected during the driving of the vehicle. For example, the vehicle can be equipped with an acceleration sensor, which can be used to determine whether the vehicle is driving and measure the vehicle speed. Furthermore, it can also determine the road conditions based on the vehicle speed (for example, poor road conditions will cause the vehicle speed to decrease, etc.) or synchronize the road conditions with the map APP; the vehicle can also It can be equipped with a rain sensor or weather application, or other APP, which can be used to determine weather conditions; the vehicle can also be equipped with an ambient light sensor, which can be used for measurement Ambient light can also determine day and night conditions based on ambient light; the vehicle can also be configured with a clock application or the time of the terminal to determine time information, and then determine day and night conditions; the vehicle can also be configured with a map application, which can be used to determine road conditions.
行车数据采集单元501能够获取到车辆中各个传感器发送的检测信号,根据监测信号确定车辆的行车数据。比如,行车数据采集单元501根据雨量传感器发送的检测信号,确定当前天气情况为雨天。又比如,行车数据采集单元501根据时钟应用发送的信息或根据环境光传感器发送的检测信号,确定当前处于日间。再比如,行车数据采集单元501根据加速度传感器发送的检测信号,确定当前路况通畅,车速为(90-12)千米/时(km/h)等。The driving data acquisition unit 501 can obtain detection signals sent by various sensors in the vehicle, and determine the driving data of the vehicle based on the monitoring signals. For example, the driving data collection unit 501 determines that the current weather condition is a rainy day based on the detection signal sent by the rain sensor. For another example, the driving data collection unit 501 determines that it is currently daytime based on the information sent by the clock application or the detection signal sent by the ambient light sensor. For another example, the driving data collection unit 501 determines that the current road conditions are clear and the vehicle speed is (90-12) kilometers per hour (km/h) based on the detection signal sent by the acceleration sensor.
另一方面,行车数据采集单元501通过终端设备或者车载系统中相关的APP或相关的采集模块获得的数据获得。例如上述的天气情况、日夜间情况、路况、车速、光线情况等中的一项或几项可以通过电子设备或者车载系统中相关的APP采集的数据获得。其中,电子设备为与车载终端建立通信连接的设备。On the other hand, the driving data collection unit 501 obtains data through relevant APPs or related collection modules in the terminal device or vehicle-mounted system. For example, one or more of the above-mentioned weather conditions, day and night conditions, road conditions, vehicle speed, light conditions, etc. can be obtained through data collected by electronic devices or related APPs in the vehicle system. Among them, the electronic device is a device that establishes a communication connection with the vehicle-mounted terminal.
在一些实施例中,车载系统中包括车载PWA管理单元,用于管理车载PWA。车载PWA运行环境的确定需要行车数据,因此车载PWA应用管理单元向行车数据采集单元请求获取行车数据。In some embodiments, the vehicle-mounted system includes a vehicle-mounted PWA management unit for managing the vehicle-mounted PWA. Determination of the vehicle-mounted PWA operating environment requires driving data, so the vehicle-mounted PWA application management unit requests the driving data collection unit to obtain driving data.
示例性的,如图5所示,车载系统中包括车载PWA管理单元502,车载PWA应用管理单元502向行车数据采集单元501请求获取行车数据。For example, as shown in FIG. 5 , the vehicle-mounted system includes a vehicle-mounted PWA management unit 502 , and the vehicle-mounted PWA application management unit 502 requests the driving data collection unit 501 to acquire driving data.
S402、车载PWA管理单元向浏览器客户端发送行车数据。S402. The vehicle-mounted PWA management unit sends driving data to the browser client.
在一些实施例中,车载PWA管理单元在获取到行车数据后,可将行车数据发送到浏览器客户端。相应的,浏览器客户端接收车载PWA管理单元发送的行车数据。In some embodiments, after acquiring the driving data, the vehicle-mounted PWA management unit may send the driving data to the browser client. Correspondingly, the browser client receives the driving data sent by the vehicle-mounted PWA management unit.
示例性的,如图5所示,车载PWA应用管理单元502在获取到行车数据后,向浏览器客户端发送行车数据。如图5所示,浏览器客户端中可包括车载PWA智能化控制单元504,用于确定车载PWA的运行环境。如确定是否开启智能化车载PWA体验,匹配对应的车载PWA配置。For example, as shown in Figure 5, after acquiring the driving data, the vehicle-mounted PWA application management unit 502 sends the driving data to the browser client. As shown in Figure 5, the browser client may include a vehicle-mounted PWA intelligent control unit 504 for determining the operating environment of the vehicle-mounted PWA. To determine whether to enable the intelligent in-vehicle PWA experience, match the corresponding in-vehicle PWA configuration.
可选的,车载PWA管理单元502按照预设周期或者行车数据变化情况,通过JS接口向车载PWA智能化控制单元504发送行车数据。相应的,智能化控制单元504通过JS接口接收行车数据。Optionally, the vehicle-mounted PWA management unit 502 sends driving data to the vehicle-mounted PWA intelligent control unit 504 through the JS interface according to a preset period or changes in driving data. Correspondingly, the intelligent control unit 504 receives the driving data through the JS interface.
比如,车载PWA管理单元502通过VehiclesJsInterface接口向车载PWA智能化控制单元504发送行车数据设置命令(setVehiclesInfo),在行车数据设置命令中携带车载系统名字(vehicleSystemName)和行车数据(vehiclesInfo)。其中,行车数据可包括天气情况(String weather),如晴天、雨天等;车速(String speed),单位为km/h;日夜间情况(String dayOrNight)。如日间、夜间;路况(String roadConditions),如良好、拥堵等。For example, the vehicle PWA management unit 502 sends a vehicle data setting command (setVehiclesInfo) to the vehicle PWA intelligent control unit 504 through the VehiclesJsInterface interface, and the vehicle data setting command carries the vehicle system name (vehicleSystemName) and vehicle data (vehiclesInfo). Among them, the driving data can include weather conditions (String weather), such as sunny days, rainy days, etc.; vehicle speed (String speed), the unit is km/h; day and night conditions (String dayOrNight). Such as day and night; road conditions (String roadConditions), such as good, congested, etc.
S403、浏览器客户端保存行车数据。S403. The browser client saves the driving data.
在一些实施例中,浏览器客户端接收到行车数据后,保存行车数据,便于后续匹配车载PWA配置的过程中调用行车数据。In some embodiments, after receiving the driving data, the browser client saves the driving data to facilitate the subsequent calling of the driving data in the process of matching the vehicle PWA configuration.
示例性的,如图5所示,浏览器客户端中的车载PWA智能化控制单元504接收到车载PWA管理单元通过JS接口发送的行车数据(vehiclesInfo)后,将vehiclesInfo 转化成本地行车数据(VehicleDataLocal)对象后发送到存储单元505。相应的,存储单元505接收VehicleDataLocal对象后,将VehicleDataLocal对象保存到VehiclesPwaConfig.xml文件中。For example, as shown in Figure 5, after the vehicle-mounted PWA intelligent control unit 504 in the browser client receives the driving data (vehiclesInfo) sent by the vehicle-mounted PWA management unit through the JS interface, it will It is converted into a local vehicle data (VehicleDataLocal) object and sent to the storage unit 505. Correspondingly, after receiving the VehicleDataLocal object, the storage unit 505 saves the VehicleDataLocal object into the VehiclesPwaConfig.xml file.
可选的,存储单元505在首次接收到VehicleDataLocal对象前,VehiclesPwaConfig.xml文件中为空。后续,每次接收到VehicleDataLocal对象后,会覆盖历史数据,即存储单元505中只保存最新的本地行车数据。Optionally, before the storage unit 505 receives the VehicleDataLocal object for the first time, the VehiclesPwaConfig.xml file is empty. Subsequently, each time a VehicleDataLocal object is received, the historical data will be overwritten, that is, only the latest local driving data will be stored in the storage unit 505.
示例性的,如下示出一种浏览器客户端获取并保存的车载PWA管理单元发送的行车数据示例。其中,车载系统例如为“小七”,行车数据包括:晴天、车速100km/h、日间、路况通畅。
Illustratively, the following shows an example of driving data sent by a vehicle-mounted PWA management unit obtained and saved by a browser client. Among them, the vehicle-mounted system is, for example, "Xiaoqi", and the driving data includes: sunny day, vehicle speed 100km/h, daytime, and smooth road conditions.
在一些实施例中,上述行车数据内容仅为一种示例性的说明,行车数据还可以包括其他数据。比如,车载系统一般配置有通话功能,用户可通过车载系统进行通话。那么,行车数据还可包括通话情况,通话情况用于表示用户是否正在通过车载系统进行通话。比如,在用户通话过程中,车载系统不提供语音服务,车载PWA也无法支持语音控制。In some embodiments, the above driving data content is only an exemplary description, and the driving data may also include other data. For example, vehicle-mounted systems are generally equipped with a call function, and users can make calls through the vehicle-mounted system. Then, the driving data can also include call status, which is used to indicate whether the user is talking through the in-vehicle system. For example, during the user's call, the vehicle system does not provide voice services, and the vehicle PWA cannot support voice control.
示例性的,用户一般通过蓝牙耳机使用车载系统的通话功能,或者用过车载系统中的通话应用外放通话。那么车载系统可根据蓝牙功能是否正在被使用或通话应用是否正在被使用,确定用户是否正在通话,进而设置对应的行车数据。For example, users generally use the call function of the car system through a Bluetooth headset, or use the call application in the car system to make calls. Then the vehicle system can determine whether the user is talking based on whether the Bluetooth function is being used or whether the calling application is being used, and then set the corresponding driving data.
进一步的,此类突发场景的行车数据,车载系统中的车载PWA管理单元可不必按照周期发送给浏览器客户端,而是在突发场景的起始时刻和结束时刻向浏览器客户端发送对应的行车数据。Furthermore, the vehicle-mounted PWA management unit in the vehicle-mounted system does not need to send the driving data of such sudden scenes to the browser client periodically, but sends it to the browser client at the start and end times of the sudden scene. Corresponding driving data.
比如,在通话开始时刻,车载PWA管理单元向浏览器客户端发送如下示例的行车数据,浏览器客户端可根据该行车数据确定用户正在通话(对应于字段“on the telephone:Yes”)。可选的,在该行车数据中可包括上述如天气等行车数据,也可不包括上述如天气等行车数据。
For example, at the start of a call, the vehicle-mounted PWA management unit sends the driving data of the following example to the browser client. The browser client can determine based on the driving data that the user is on a call (corresponding to the field "on the telephone: Yes"). Optionally, the driving data may include the above-mentioned driving data such as weather, or may not include the above-mentioned driving data such as weather.
之后,在通话结束后,车载PWA管理单元可再次向浏览器客户端发送包括通话情况的行车数据,该行车数据如下示例。浏览器客户端可将该行车数据覆盖上述行车 数据中对应内容,即更新通话情况。
Later, after the call ends, the vehicle-mounted PWA management unit can send driving data including the call situation to the browser client again. The driving data is as follows. The browser client can overwrite the driving data with the above driving data. The corresponding content in the data is to update the call status.
这样,能够避免由于行车数据发送不及时导致后续浏览器客户端匹配车载PWA配置出现异常,影响用户使用。In this way, it can be avoided that due to delayed transmission of driving data, subsequent abnormalities in the browser client's configuration of the vehicle-mounted PWA will be avoided, affecting user use.
需要说明的是,浏览器客户端可根据获取到的新的行车数据中的内容,更新存储单元中保存的旧的行车数据中对应的内容。如上述通话情况对应的行车数据示例,如通话结束后车载系统向浏览器客户端发送的行车数据中只包括通话情况。那么,浏览器客户端可根据更新后的通话情况覆盖原通话情况,而不更新其他行车数据。It should be noted that the browser client can update the corresponding content in the old driving data stored in the storage unit according to the content in the new driving data obtained. Take the above example of driving data corresponding to the call situation. For example, the driving data sent by the in-vehicle system to the browser client after the call ends only includes the call situation. Then, the browser client can overwrite the original call situation based on the updated call situation without updating other driving data.
可选的,车载系统中的车载PWA管理单元每次发送的行车数据可包括全部选项内容(如上述示例的天气情况、日夜间情况、路况、车速、通话情况),从而避免浏览器客户端再对旧的行车数据的更新内容进行确认,以降低功耗。Optionally, the driving data sent each time by the vehicle-mounted PWA management unit in the vehicle-mounted system can include all options (such as weather conditions, day and night conditions, road conditions, vehicle speed, and call conditions in the above examples), thereby preventing the browser client from further Confirm the updated content of old driving data to reduce power consumption.
由此,浏览器客户端通过上述方法获取行车数据,下面对获取车载PWA配置的方法进行介绍。Therefore, the browser client obtains the driving data through the above method. The method of obtaining the vehicle PWA configuration is introduced below.
可选的,图6为本申请实施例提供的车载PWA配置数据获取方法的流程示意图。如图6所示,该方法包括如下步骤。Optionally, FIG. 6 is a schematic flowchart of a method for obtaining vehicle PWA configuration data provided by an embodiment of the present application. As shown in Figure 6, the method includes the following steps.
S601、浏览器云端获取车载PWA配置数据。S601. The browser cloud obtains the vehicle PWA configuration data.
在一些实施例中,车载PWA配置数据中包括行车数据和不同行车数据对应的车载PWA配置。不同车企的配置人员可根据需求,确定不同车载系统的车载PWA配置数据。比如,不同的车载系统的定位以及提供的用户体验不同(如主推安全性、主推速度、适用于老年人驾驶等),配置人员由此可自定义设置不同行车数据对应的车载PWA配置,完成车载PWA配置数据的配置。In some embodiments, the vehicle-mounted PWA configuration data includes driving data and vehicle-mounted PWA configurations corresponding to different driving data. Configuration personnel of different car companies can determine the in-vehicle PWA configuration data of different in-vehicle systems based on needs. For example, different in-vehicle systems have different positioning and provide different user experiences (such as safety, speed, suitability for elderly driving, etc.). Configurators can customize the in-vehicle PWA configuration corresponding to different driving data to complete the in-vehicle Configuration of PWA configuration data.
示例性的,如下表1所示的车载PWA配置数据,配置人员配置车载系统1在晴天、日间、路况通畅、车速在(90-120)km/h的情况下,车载PWA配置为音量50分贝、字体大小为12pt、不支持语音导航。For example, the vehicle-mounted PWA configuration data is shown in Table 1 below. The configurer configures the vehicle-mounted system 1 on a sunny day, daytime, smooth road conditions, and the vehicle speed is (90-120) km/h. The vehicle-mounted PWA is configured with a volume of 50 Decibel, font size is 12pt, and voice navigation is not supported.
表1

Table 1

需要说明的是,上表1中车载PWA配置数据中语音导航为可选项,配置人员可不配置该项内容。此外,本申请实施例以车载PWA为地图应用为例进行说明,因此车载PWA配置中包括语音导航选项,该选项也可设置为语音能力,对此本申请实施例不做具体限制。It should be noted that the voice navigation in the vehicle PWA configuration data in Table 1 above is optional, and the configurer does not need to configure this content. In addition, the embodiment of the present application takes the vehicle-mounted PWA as a map application as an example. Therefore, the vehicle-mounted PWA configuration includes a voice navigation option, and this option can also be set to voice capabilities. This embodiment of the application does not specifically limit this.
可选的,如下表2所示,车载PWA配置数据中包括的行车数据中设置包括通话情况,那么对应的车载PWA配置可包括语音导航选项。如配置通话情况为是的情况下,对应的车载PWA不支持语音导航;通话情况为否的情况下,对应的车载PWA支持语音导航。从而避免出现由于音频通道被通话占用导致的语音导航失败的问题。Optionally, as shown in Table 2 below, if the driving data included in the vehicle PWA configuration data includes call status, the corresponding vehicle PWA configuration may include voice navigation options. If the configured call status is Yes, the corresponding car PWA does not support voice navigation; if the call status is No, the corresponding car PWA supports voice navigation. This avoids the problem of voice navigation failure due to the audio channel being occupied by calls.
表2
Table 2
示例性的,配置人员登录配置界面,在配置界面上传或修改车载PWA配置数据(如上表1或上表2所示内容)。如图5所示,浏览器云端包括车载PWA配置管理单元506,用于管理浏览器云端通过配置界面接收到的车载PWA配置数据。For example, the configurer logs in to the configuration interface and uploads or modifies the vehicle PWA configuration data (as shown in Table 1 or Table 2 above) on the configuration interface. As shown in Figure 5, the browser cloud includes a vehicle-mounted PWA configuration management unit 506, which is used to manage the vehicle-mounted PWA configuration data received by the browser cloud through the configuration interface.
S602、浏览器客户端向浏览器云端发送车载PWA配置数据下载请求。S602. The browser client sends a vehicle PWA configuration data download request to the browser cloud.
S603、浏览器云端根据车载PWA配置数据下载请求,向浏览器客户端发送车载PWA配置数据。S603. The browser cloud sends the vehicle PWA configuration data to the browser client according to the vehicle PWA configuration data download request.
在一些实施例中,在步骤S602和步骤S603中,浏览器客户端按照预设周期(如一小时)向浏览器云端发送车载PWA配置数据下载请求,用于请求下载车载PWA配 置数据。相应的,浏览器云端根据车载PWA配置数据下载请求,向浏览器客户端发送车载PWA配置数据。In some embodiments, in steps S602 and S603, the browser client sends a vehicle-mounted PWA configuration data download request to the browser cloud according to a preset period (such as one hour) for requesting to download the vehicle-mounted PWA configuration. Setup data. Correspondingly, the browser cloud sends the vehicle PWA configuration data to the browser client according to the vehicle PWA configuration data download request.
可选的,车载PWA配置数据下载请求中携带有车载终端的标识、或者车辆的设备标识、或者其他用于区分不同车载终端的标识。浏览器云端根据车载PWA配置数据下载请求中携带的标识,向浏览器客户端发送该标识对应的车载PWA配置数据。从而满足不同车载终端的定位需求。Optionally, the vehicle PWA configuration data download request carries the identification of the vehicle terminal, or the device identification of the vehicle, or other identification used to distinguish different vehicle terminals. The browser cloud sends the vehicle-mounted PWA configuration data corresponding to the identifier to the browser client based on the identifier carried in the vehicle-mounted PWA configuration data download request. Thereby meeting the positioning needs of different vehicle-mounted terminals.
需要说明的是,浏览器云端还可以按照预设周期或者确定车载PWA配置数据更新后,主动向浏览器客户端发送车载PWA配置数据。It should be noted that the browser cloud can also actively send the vehicle PWA configuration data to the browser client according to a preset cycle or after determining that the vehicle PWA configuration data has been updated.
可选的,浏览器云端将车载PWA配置数据封装在云端车载PWA配置(VehiclesPwaConfigCloud)对象中后,发送至浏览器客户端。Optionally, the browser cloud encapsulates the vehicle PWA configuration data in the cloud vehicle PWA configuration (VehiclesPwaConfigCloud) object and sends it to the browser client.
示例性的,如图5所示,浏览器客户端中的车载PWA智能化控制单元504获取车载PWA配置管理单元506发送的车载PWA配置数据。如下表3所示,示例性的示出一种浏览器客户端获取到的车载系统(如“小七”)的车载PWA配置数据。For example, as shown in Figure 5, the vehicle-mounted PWA intelligent control unit 504 in the browser client obtains the vehicle-mounted PWA configuration data sent by the vehicle-mounted PWA configuration management unit 506. Table 3 below exemplarily shows the vehicle-mounted PWA configuration data of a vehicle-mounted system (such as "Xiaoqi") obtained by a browser client.
表3
table 3
S604、浏览器客户端保存车载PWA配置数据。S604. The browser client saves the vehicle PWA configuration data.
在一些实施例中,浏览器客户端接收到车载PWA配置数据后,保存车载PWA配置数据,便于后续匹配车载PWA配置的过程中调用车载PWA配置数据。In some embodiments, after receiving the vehicle-mounted PWA configuration data, the browser client saves the vehicle-mounted PWA configuration data to facilitate calling the vehicle-mounted PWA configuration data in the subsequent process of matching the vehicle-mounted PWA configuration.
示例性的,如图5所示,浏览器客户端中的车载PWA智能化控制单元504接收到浏览器云端车载PWA配置管理单元506发送的VehiclesPwaConfigCloud对象后,将VehiclesPwaConfigCloud对象发送到存储单元505。相应的,存储单元505接收VehiclesPwaConfigCloud对象后,将其保存在预设分享(sharePreferences)文件中,文件名字为VehiclesPwaConfig.xml。For example, as shown in Figure 5, after receiving the VehiclesPwaConfigCloud object sent by the browser cloud vehicle PWA configuration management unit 506, the vehicle PWA intelligent control unit 504 in the browser client sends the VehiclesPwaConfigCloud object to the storage unit 505. Correspondingly, after receiving the VehiclesPwaConfigCloud object, the storage unit 505 saves it in a default share (sharePreferences) file, and the file name is VehiclesPwaConfig.xml.
可选的,存储单元505在首次接收到VehiclesPwaConfigCloud对象前,VehiclesPwaConfig.xml文件中为空。后续,每次接收到VehiclesPwaConfigCloud对象后,会覆盖历史数据,即存储单元505中只保存最新的车载PWA配置数据。Optionally, before the storage unit 505 receives the VehiclesPwaConfigCloud object for the first time, the VehiclesPwaConfig.xml file is empty. Subsequently, each time the VehiclesPwaConfigCloud object is received, the historical data will be overwritten, that is, only the latest vehicle PWA configuration data will be stored in the storage unit 505.
示例性的,如下示出一种浏览器客户端获取并保存的车载PWA数据示例。

Illustratively, an example of in-vehicle PWA data obtained and saved by a browser client is shown below.

由此,浏览器客户端可通过上述方法获取到行车数据和车载PWA配置数据。下面介绍在车辆行驶过程中,车载PWA自适应配置方法。Therefore, the browser client can obtain the driving data and vehicle PWA configuration data through the above method. The following describes the adaptive configuration method of on-board PWA during vehicle driving.
示例性的,图7为本申请实施例提供的车载应用自适应配置方法的流程示意图。如图7所示,该方法包括如下步骤。Exemplarily, FIG. 7 is a schematic flowchart of a vehicle application adaptive configuration method provided by an embodiment of the present application. As shown in Figure 7, the method includes the following steps.
S701、车载PWA管理单元检测到用户指示启动车载PWA的操作。S701. The vehicle-mounted PWA management unit detects the user's instruction to start the vehicle-mounted PWA operation.
在一些实施例中,如图5所示,响应于用户点击车载PWA图标的操作,车载系统中的车载PWA管理单元可获取到该点击操作,确定用户指示启动该车载PWA。In some embodiments, as shown in Figure 5, in response to the user's operation of clicking on the vehicle-mounted PWA icon, the vehicle-mounted PWA management unit in the vehicle-mounted system may obtain the click operation and determine that the user instructs to start the vehicle-mounted PWA.
示例性的,如图8中(a)所示界面801,车载PWA管理单元检测到用户点击地图应用图标81的操作后,确定启动地图应用图标81对应的地图应用。For example, in the interface 801 shown in (a) of Figure 8, after detecting the user's click on the map application icon 81, the vehicle-mounted PWA management unit determines to start the map application corresponding to the map application icon 81.
S702、车载PWA管理单元向浏览器客户端发送运行请求。S702. The vehicle-mounted PWA management unit sends a running request to the browser client.
在一些实施例中,车载PWA管理单元在确定用户指示启动车载PWA应用后,向浏览器客户端发送运行请求,用于请求运行环境,如包括网页页面数据等。 In some embodiments, after determining that the user has instructed to start the vehicle-mounted PWA application, the vehicle-mounted PWA management unit sends a running request to the browser client to request the running environment, such as web page data.
示例性的,基于步骤S701中所述的图8中(a)所示场景,如图5所示,车载PWA管理单元502确定地图应用为车载PWA,向浏览器客户端中的车载PWA智能化控制单元504发送运行请求。Exemplarily, based on the scenario shown in (a) of Figure 8 described in step S701, as shown in Figure 5, the vehicle-mounted PWA management unit 502 determines that the map application is a vehicle-mounted PWA, and intelligentizes the map application to the vehicle-mounted PWA in the browser client. The control unit 504 sends a run request.
S703、浏览器客户端根据行车数据和车载PWA配置数据,确定车载PWA运行环境。S703. The browser client determines the running environment of the vehicle-mounted PWA based on the driving data and the vehicle-mounted PWA configuration data.
在一些实施例中,浏览器客户端可获取行车数据和车载PWA配置数据,自适应的确定与行车数据匹配的车载PWA配置,进而确定车载PWA运行环境。可选的,浏览器客户端可获取存储单元中存储的行车数据和车载PWA配置数据;或者,浏览器客户端根据运行请求,可触发主动获取行车数据和/或车载PWA配置数据。比如,浏览器客户端向车载系统请求获取行车数据,以及向浏览器云端请求获取车载PWA配置数据。又比如,浏览器客户端向车载系统请求获取行车数据,以及从存储单元中获取存储的车载PWA配置数据。再比如,浏览器客户端从存储单元中获取存储的行车数据,以及向浏览器云端请求获取车载PWA配置数据。In some embodiments, the browser client can obtain driving data and vehicle-mounted PWA configuration data, adaptively determine the vehicle-mounted PWA configuration that matches the driving data, and then determine the vehicle-mounted PWA operating environment. Optionally, the browser client can obtain the driving data and vehicle-mounted PWA configuration data stored in the storage unit; or, the browser client can trigger the active acquisition of driving data and/or vehicle-mounted PWA configuration data based on the running request. For example, the browser client requests driving data from the vehicle system, and requests the vehicle PWA configuration data from the browser cloud. For another example, the browser client requests driving data from the vehicle system and obtains the stored vehicle PWA configuration data from the storage unit. For another example, the browser client obtains the stored driving data from the storage unit and requests the browser cloud to obtain the vehicle PWA configuration data.
示例性的,如图5所示,浏览器客户端中的车载PWA智能化控制单元504在接收到车载系统中的车载PWA管理单元502发送的车载PWA运行请求后,可从存储单元505中获取到存储的行车数据和车载PWA配置数据,之后可根据行车数据匹配对应的车载PWA配置。For example, as shown in Figure 5, the vehicle-mounted PWA intelligent control unit 504 in the browser client can obtain the vehicle-mounted PWA from the storage unit 505 after receiving the vehicle-mounted PWA running request sent by the vehicle-mounted PWA management unit 502 in the vehicle system. to the stored driving data and vehicle-mounted PWA configuration data, and then match the corresponding vehicle-mounted PWA configuration according to the driving data.
比如,存储单元505保存有如上述图6所示步骤S604中所述的车载PWA配置数据。以及对应于上述图4所示步骤S403,存储单元505中还保存有如下示例的行车数据示例一(如通过上述图4中所述的步骤S403保存的行车数据)。那么,浏览器客户端根据下述行车数据示例一,在步骤S604中所述的车载PWA配置数据中匹配对应的车载PWA配置(如确定车载PWA配置数据中与存储的行车数据相同的行车数据字段对应的功能命令字段内容)。如确定对应的车载PWA配置为音量大小为50分贝,字体大小为12pt,不支持语音导航。如该车载PWA配置对应的显示界面为如图8中(b)所示界面802。For example, the storage unit 505 stores the vehicle-mounted PWA configuration data as described in step S604 shown in FIG. 6 above. And corresponding to step S403 shown in the above-mentioned FIG. 4 , the storage unit 505 also stores the following driving data example 1 (such as the driving data saved through the step S403 shown in the above-mentioned FIG. 4 ). Then, the browser client matches the corresponding vehicle-mounted PWA configuration in the vehicle-mounted PWA configuration data described in step S604 according to the following driving data example 1 (such as determining that the driving data field in the vehicle-mounted PWA configuration data is the same as the stored driving data Corresponding function command field content). For example, it is determined that the corresponding car PWA is configured with a volume size of 50 decibels, a font size of 12pt, and does not support voice navigation. For example, the display interface corresponding to the vehicle PWA configuration is interface 802 as shown in (b) of Figure 8 .
行车数据示例一:
Driving data example one:
又比如,如下述示例的行车数据示例二(如通过上述图4中所述的步骤S403保存的行车数据),车载PWA智能化控制单元504,在步骤S604中所述的车载PWA配置数据中匹配对应的车载PWA配置,如匹配到对应的车载PWA配置为音量大小为30分贝,字体大小为15pt,支持语音导航。如该车载PWA配置对应的显示界面为如图8中(c)所示界面803。 For another example, take the following driving data example 2 (such as the driving data saved through step S403 described in FIG. 4), the vehicle-mounted PWA intelligent control unit 504 matches the vehicle-mounted PWA configuration data described in step S604. The corresponding car PWA configuration, if matched to the corresponding car PWA configuration, the volume size is 30 decibels, the font size is 15pt, and voice navigation is supported. For example, the display interface corresponding to the vehicle PWA configuration is interface 803 as shown in (c) of Figure 8 .
行车数据示例二:
Driving data example two:
需要说明的是,浏览器客户端中只会保存上述行车数据示例一和行车数据示例二中的一份行车数据,即新获取到的行车数据会覆盖历史数据。上述行车数据示例一和行车数据示例二仅为用于说明车载PWA配置的匹配过程。It should be noted that the browser client will only save one piece of the driving data in the above driving data example one and driving data example two, that is, the newly acquired driving data will overwrite the historical data. The above driving data example one and driving data example two are only used to illustrate the matching process of vehicle PWA configuration.
S704、浏览器客户端提供运行环境,并渲染网页。S704. The browser client provides a running environment and renders the web page.
在一些实施例中,浏览器客户端匹配到车载PWA配置后,可根据车载PWA配置内容,设置相应的运行环境,并渲染网页。In some embodiments, after the browser client matches the vehicle-mounted PWA configuration, it can set the corresponding running environment and render the web page according to the vehicle-mounted PWA configuration content.
示例性的,如图5所示,浏览器客户端中的车载PWA智能化控制单元504在确定车载PWA配置后,确定当前运行环境是否需要调整,如音量大小、字体大小、是否支持语音导航是否需要调整。如需调整,通过车载PWA运行单元503调整相应的运行环境。For example, as shown in Figure 5, after determining the configuration of the vehicle PWA, the vehicle-mounted PWA intelligent control unit 504 in the browser client determines whether the current operating environment needs to be adjusted, such as the volume size, font size, and whether it supports voice navigation. Needs adjustment. If adjustment is needed, adjust the corresponding operating environment through the on-board PWA operating unit 503.
S705、浏览器客户端向车载PWA管理单元发送车载PWA运行响应。S705. The browser client sends a vehicle-mounted PWA running response to the vehicle-mounted PWA management unit.
在一些实施例中,浏览器客户端完成网页渲染后,向车载系统中的车载PWA管理单元发送车载PWA运行响应,车载PWA运行响应中携带渲染后的网页。In some embodiments, after the browser client completes rendering of the web page, it sends a vehicle-mounted PWA running response to the vehicle-mounted PWA management unit in the vehicle-mounted system, and the vehicle-mounted PWA running response carries the rendered web page.
示例性的,如图5所示,浏览器客户端中的车载PWA运行单元503用于向车载系统中的车载PWA管理单元502提供运行环境。For example, as shown in Figure 5, the vehicle-mounted PWA running unit 503 in the browser client is used to provide a running environment to the vehicle-mounted PWA management unit 502 in the vehicle system.
S706、车载PWA管理单元运行车载PWA。S706. The vehicle-mounted PWA management unit runs the vehicle-mounted PWA.
在一些实施例中,车载系统中的车载PWA管理单元在接收到车载PWA运行响应后,可根据车载PWA运行响应中携带的内容,在获取的运行环境中运行,并显示渲染后的网页。In some embodiments, after receiving the vehicle-mounted PWA running response, the vehicle-mounted PWA management unit in the vehicle-mounted system can run in the obtained running environment according to the content carried in the vehicle-mounted PWA running response, and display the rendered web page.
示例性的,浏览器客户端先获取如上述步骤S703中所示的行车数据示例一。以如图8中(a)所示场景为例,浏览器客户端确定对应的车载PWA配置(如音量大小为50分贝,字体大小为12pt,不支持语音导航)后,为车载系统提供运行环境。相应的,车载系统可显示如图8中(b)所示界面802。Illustratively, the browser client first obtains the driving data example 1 shown in step S703 above. Taking the scenario shown in (a) in Figure 8 as an example, after the browser client determines the corresponding vehicle PWA configuration (for example, the volume is 50 decibels, the font size is 12pt, and voice navigation is not supported), it provides an operating environment for the vehicle system. . Correspondingly, the vehicle-mounted system may display interface 802 as shown in (b) of Figure 8 .
之后,浏览器客户端又获取到如上述步骤S703中所示的行车数据示例二,可覆盖行车数据示例一。那么,仍以如图8中(a)所示场景为例,浏览器客户端确定对应的车载PWA配置(如音量大小为30分贝,字体大小为15pt,支持语音导航)后,为车载系统提供运行环境。相应的,车载系统可显示如图8中(c)所示界面803。Afterwards, the browser client obtains the driving data example 2 shown in the above step S703, which can overwrite the driving data example 1. Then, still taking the scenario shown in (a) in Figure 8 as an example, after the browser client determines the corresponding vehicle PWA configuration (such as the volume size is 30 decibels, the font size is 15pt, supports voice navigation), it provides the vehicle system with operating environment. Correspondingly, the vehicle-mounted system may display interface 803 as shown in (c) of Figure 8 .
这样,在雨天、车辆拥堵等的情况下,浏览器客户端获取到行车数据(如行车数据示例二)后,如检测到用户指示启动车载PWA应用的操作,可自动将车载PWA应用的音量调低,避免影响用户注意周围车辆喇叭声。将网页页面显示的字体调大(如 界面803显示字体大于界面802显示字体),便于用户查看显示内容。并且,如界面803所示话筒标记82,车载PWA支持语音导航,避免用户由于手动输入内容,造成驾驶风险。In this way, in rainy days, vehicle congestion, etc., after the browser client obtains the driving data (such as driving data example 2), if it detects the user's instruction to start the vehicle PWA application, it can automatically adjust the volume of the vehicle PWA application. Low to avoid distracting users from the sound of horns from surrounding vehicles. Increase the font size displayed on the web page (such as The display font of interface 803 is larger than the display font of interface 802), making it easier for users to view the displayed content. Moreover, as shown in the interface 803 with the microphone mark 82, the vehicle-mounted PWA supports voice navigation to avoid driving risks caused by users manually inputting content.
如此,浏览器客户端可根据行车数据,自适应的完成车载PWA配置。从而保证车载PWA配置满足当前场景需求,降低驾驶员的驾驶风险,提升用户使用体验。In this way, the browser client can adaptively complete the vehicle PWA configuration based on driving data. This ensures that the in-vehicle PWA configuration meets the needs of the current scene, reduces the driver's driving risk, and improves the user experience.
在一些场景中,在上述如图7所示步骤S703之前,浏览器客户端还可确定当前场景是否为车载终端场景,以及确定PWA是否开启智能化运行体验。在确定为车载终端场景,以及已开启智能化运行体验后,可执行步骤S703。In some scenarios, before step S703 shown in Figure 7, the browser client can also determine whether the current scene is a vehicle terminal scene, and determine whether the PWA enables an intelligent running experience. After it is determined that the scene is a vehicle-mounted terminal and the intelligent running experience has been enabled, step S703 can be performed.
在一些实施例中,不同版本的浏览器应用中的配置参数或配置参数的取值不同,开发者可通过配置参数,定义不同的浏览器客户端版本。如在浏览器客户端中配置如下表4中所示的运行场景(RunningScene)参数和智能化体验(IntelligentExperience)参数。In some embodiments, configuration parameters or values of configuration parameters in different versions of browser applications are different, and developers can define different browser client versions through configuration parameters. For example, configure the running scene (RunningScene) parameters and intelligent experience (IntelligentExperience) parameters as shown in Table 4 below in the browser client.
表4
Table 4
可选的,PWA可运行在多种终端中,如车载终端、手机终端、PAD终端等。因此,浏览器客户端接收到运行请求(如上述步骤S702)后,可先根据RunningScene参数取值,确定当前PWA运行场景是否为车载终端场景。如浏览器客户端在确定为车载终端场景后,再确定车载PWA是否开启智能化运行体验,以为PWA提供相应的运行环境。Optionally, PWA can run in a variety of terminals, such as vehicle-mounted terminals, mobile phone terminals, PAD terminals, etc. Therefore, after receiving the running request (such as step S702 above), the browser client can first determine whether the current PWA running scene is a vehicle-mounted terminal scene based on the value of the RunningScene parameter. For example, after the browser client determines that it is a vehicle-mounted terminal scenario, it then determines whether the vehicle-mounted PWA enables an intelligent operating experience to provide a corresponding operating environment for the PWA.
示例性的,图9为本申请实施例提供的浏览器客户端接收到PWA运行请求后,确定运行环境的方法的流程图。如图9所示,该方法包括如下步骤。Exemplarily, FIG. 9 is a flowchart of a method for determining the running environment after the browser client receives a PWA running request provided by an embodiment of the present application. As shown in Figure 9, the method includes the following steps.
S901、浏览器客户端接收到PWA运行请求。S901. The browser client receives the PWA execution request.
可选的,步骤S901的内容可参考上述步骤S702的相关内容。Optionally, the content of step S901 may refer to the relevant content of step S702 above.
S902、浏览器客户端确定运行场景(RunningScene)参数取值。如取值为1,执行步骤S903;若取值不为1,执行步骤S904。S902. The browser client determines the value of the running scene (RunningScene) parameter. If the value is 1, execute step S903; if the value is not 1, execute step S904.
S903、浏览器客户端确定PWA运行场景为车载终端场景。S903. The browser client determines that the PWA running scenario is the vehicle terminal scenario.
S904、浏览器客户端确定PWA运行场景不是车载终端场景,提供其他PWA运行环境。S904. The browser client determines that the PWA running scenario is not the vehicle terminal scenario, and provides other PWA running environments.
在一些实施例中,在步骤S902-步骤S904中,终端下载浏览器客户端后,浏览器客户端中预配置的RunningScene参数会确定当前终端对应的取值,如上表4所示不同取值具有不同的含义。浏览器客户端在接收到PWA运行请求后,可根据RunningScene 取值,确定当前运行场景。如取值为1用于表示当前PWA(PWA和浏览器客户端运行场景相同)的运行场景为车载终端场景,取值为2用于表示当前PWA的运行场景为手机终端场景。如确定取值不为1,可确定PWA运行场景不是车载终端运行场景,需要提供相应的PWA智能化运行体验,如取值为2,可确定提供手机终端的运行环境。In some embodiments, in steps S902 to S904, after the terminal downloads the browser client, the preconfigured RunningScene parameter in the browser client will determine the value corresponding to the current terminal. As shown in Table 4 above, different values have different meanings. After receiving the PWA running request, the browser client can Get the value to determine the current running scenario. For example, a value of 1 is used to indicate that the running scenario of the current PWA (the running scenario of PWA and browser client is the same) is the vehicle terminal scenario, and a value of 2 is used to indicate that the running scenario of the current PWA is the mobile phone terminal scenario. If it is determined that the value is not 1, it can be determined that the PWA running scenario is not the vehicle terminal running scenario, and the corresponding PWA intelligent running experience needs to be provided. If the value is 2, it can be determined that the running environment of the mobile phone terminal is provided.
S905、浏览器客户端确定智能化体验(IntelligentExperience)参数取值。如取值为1,执行步骤S906;若取值为0,执行步骤S904。S905. The browser client determines the value of the Intelligent Experience (IntelligentExperience) parameter. If the value is 1, step S906 is executed; if the value is 0, step S904 is executed.
S906、浏览器客户端提供车载PWA智能化运行体验。S906 and browser client provide intelligent running experience of in-vehicle PWA.
在一些实施例中,在步骤S905和步骤S906中,浏览器客户端在确定PWA运行场景为车载终端场景后,可再确定PWA是否开启智能化体验(即是否能够自适应完成PWA配置)。比如,如上表4所示,确定IntelligentExperience取值为1,可确定智能化体验开启;确定IntelligentExperience取值为0,可确定智能化体验关闭。如确定智能化体验开启,可通过上述步骤S703所示方法,自适应的匹配车载PWA配置;如确定智能化体验关闭,可执行上述步骤S904,提供其他PWA运行环境。In some embodiments, in steps S905 and S906, after determining that the PWA running scene is a vehicle-mounted terminal scene, the browser client can then determine whether the PWA enables an intelligent experience (that is, whether the PWA configuration can be adaptively completed). For example, as shown in Table 4 above, if the value of IntelligentExperience is 1, it can be determined that the intelligent experience is on; if the value of IntelligentExperience is 0, it can be determined that the intelligent experience is off. If it is determined that the intelligent experience is turned on, the vehicle PWA configuration can be adaptively matched through the method shown in the above step S703; if it is determined that the intelligent experience is turned off, the above step S904 can be executed to provide other PWA operating environments.
可选的,IntelligentExperience取值可预配置在浏览器客户端中,即预配置浏览器应用是否支持PWA智能化运行。或者,浏览器客户端可根据用户设置,确定是否支持PWA智能化体验,并且设置对应的IntelligentExperience取值。Optionally, the IntelligentExperience value can be pre-configured in the browser client, that is, whether the browser application supports PWA intelligent operation is pre-configured. Alternatively, the browser client can determine whether to support PWA intelligent experience based on user settings, and set the corresponding IntelligentExperience value.
比如,用户通过系统设置界面或浏览器客户端中的设置界面,设置浏览器客户端是否支持PWA智能化体验,从而满足用户的个性化需求。For example, the user can set whether the browser client supports PWA intelligent experience through the system setting interface or the setting interface in the browser client, so as to meet the user's personalized needs.
在一些实施例中,浏览器客户端在接收到车载系统发送的车载PWA运行请求后,可向车载系统请求行车数据,或者车载系统在车载PWA运行请求中携带行车数据。并且,浏览器客户端在接收到车载系统发送的车载PWA运行请求后,向浏览器云端请求下载车载PWA配置数据。In some embodiments, after receiving the vehicle-mounted PWA running request sent by the vehicle-mounted system, the browser client can request driving data from the vehicle-mounted system, or the vehicle-mounted system carries the driving data in the vehicle-mounted PWA running request. Moreover, after receiving the vehicle-mounted PWA running request sent by the vehicle-mounted system, the browser client requests the browser cloud to download the vehicle-mounted PWA configuration data.
如此,浏览器客户端可根据最新获取到的行车数据和车载PWA配置数据,为车载PWA配置运行环境,更能保证配置的车载PWA运行环境满足当前行车数据要求,进一步保证驾驶员行车安全。In this way, the browser client can configure the operating environment for the in-vehicle PWA based on the latest acquired driving data and in-vehicle PWA configuration data, which can further ensure that the configured in-vehicle PWA operating environment meets the current driving data requirements, further ensuring driver driving safety.
如上介绍车载PWA启动过程中匹配对应的车载PWA配置,在车载PWA运行过程中,浏览器客户端也可根据行车数据和/或车载PWA配置数据,调整车载PWA的运行环境。As described above, the corresponding vehicle PWA configuration is matched during the startup process of the vehicle PWA. During the operation of the vehicle PWA, the browser client can also adjust the operating environment of the vehicle PWA based on the driving data and/or the vehicle PWA configuration data.
在一些实施例中,浏览器客户端在为车载PWA提供运行环境的过程中(如车载系统正在显示车载PWA页面),接收到行车数据和/或车载PWA配置数据。浏览器客户端可根据最新接收到的行车数据和/或车载PWA配置数据,调整当前运行的车载PWA的运行环境,保证车载PWA运行环境满足当前行车数据要求。In some embodiments, the browser client receives driving data and/or vehicle PWA configuration data in the process of providing a running environment for the vehicle PWA (for example, the vehicle system is displaying the vehicle PWA page). The browser client can adjust the operating environment of the currently running vehicle-mounted PWA based on the latest received driving data and/or vehicle-mounted PWA configuration data to ensure that the vehicle-mounted PWA operating environment meets the current driving data requirements.
比如,车载系统按照预设周期向浏览器客户端发送行车数据,浏览器客户端在接收到行车数据后,确定该行车数据与上一周期获取到的行车数据不同。那么,浏览器客户端可确定当前是否正在显示车载PWA。如浏览器客户端正在显示车载PWA,可获取存储单元中存储的车载PWA配置数据或者主动向浏览器云端请求下载车载PWA配置数据,进而根据最新获取的行车数据在获取到的车载PWA配置数据中匹配车载PWA配置,确定是否需要调整当前运行的PWA应用的运行环境。For example, the vehicle-mounted system sends driving data to the browser client according to a preset cycle. After receiving the driving data, the browser client determines that the driving data is different from the driving data obtained in the previous cycle. The browser client can then determine whether the in-car PWA is currently being displayed. If the browser client is displaying the vehicle PWA, it can obtain the vehicle PWA configuration data stored in the storage unit or actively request the browser cloud to download the vehicle PWA configuration data, and then add the vehicle PWA configuration data to the obtained vehicle PWA configuration data based on the latest driving data. Match the vehicle PWA configuration and determine whether the running environment of the currently running PWA application needs to be adjusted.
又比如,车载系统在确定行车数据发生变化后,向浏览器客户端发送行车数据。 那么,浏览器客户端在获取到行车数据后,直接确定当前是否正在显示车载PWA。如浏览器客户端正在显示车载PWA,可获取存储单元中存储的车载PWA配置数据或者主动向浏览器云端请求下载车载PWA配置数据,进而根据最新获取的行车数据在获取到的车载PWA配置数据中匹配车载PWA配置,确定是否需要调整当前运行的PWA应用的运行环境。For another example, after determining that the driving data has changed, the vehicle-mounted system sends the driving data to the browser client. Then, after obtaining the driving data, the browser client directly determines whether the in-vehicle PWA is currently being displayed. If the browser client is displaying the vehicle PWA, it can obtain the vehicle PWA configuration data stored in the storage unit or actively request the browser cloud to download the vehicle PWA configuration data, and then add the vehicle PWA configuration data to the obtained vehicle PWA configuration data based on the latest driving data. Match the vehicle PWA configuration and determine whether the running environment of the currently running PWA application needs to be adjusted.
又比如,浏览器客户端按照预设周期向浏览器云端请求下载车载PWA配置数据,浏览器客户端在接收到车载PWA配置数据后,确定该车载PWA配置数据与上一周期获取到的车载PWA配置数据不同。那么,浏览器客户端可确定当前是否正在显示车载PWA。如浏览器客户端正在显示车载PWA,浏览器客户端可从存储单元中获取行车数据或向车载系统请求获取行车数据,根据获取到的行车数据和最新获取到的车载PWA配置数据,确定是否需要调整当前运行的PWA应用的运行环境。For another example, the browser client requests the browser cloud to download the vehicle-mounted PWA configuration data according to a preset cycle. After receiving the vehicle-mounted PWA configuration data, the browser client determines that the vehicle-mounted PWA configuration data is consistent with the vehicle-mounted PWA obtained in the previous cycle. The configuration data is different. The browser client can then determine whether the in-car PWA is currently being displayed. If the browser client is displaying the vehicle-mounted PWA, the browser client can obtain the driving data from the storage unit or request the vehicle-mounted system to obtain the driving data, and determine whether it is needed based on the obtained driving data and the latest obtained vehicle-mounted PWA configuration data. Adjust the running environment of the currently running PWA application.
再比如,浏览器云端确定车载PWA配置数据更新后,主动向浏览器客户端发送车载PWA配置数据。那么,浏览器客户端在获取到车载PWA配置数据后,直接确定当前是否正在显示车载PWA。如浏览器客户端正在显示车载PWA,可从存储单元中获取行车数据或向车载系统请求获取行车数据,根据获取到的行车数据和最新获取到的车载PWA配置数据,确定是否需要调整当前运行的PWA应用的运行环境。For another example, after the browser cloud determines that the vehicle PWA configuration data has been updated, it actively sends the vehicle PWA configuration data to the browser client. Then, after obtaining the vehicle PWA configuration data, the browser client directly determines whether the vehicle PWA is currently being displayed. If the browser client is displaying the vehicle-mounted PWA, it can obtain the driving data from the storage unit or request the vehicle-mounted system to obtain the driving data. Based on the obtained driving data and the latest obtained vehicle-mounted PWA configuration data, determine whether the currently running PWA needs to be adjusted. The running environment of PWA applications.
示例性的,浏览器客户端显示如图8中(b)所示的地图应用界面802的过程中,接收到行车数据,确定该行车数据与上一次获取到的行车数据不同。那么,浏览器客户端可根据该最新接收到的行车数据在车载PWA数据中匹配车载PWA配置。如根据此次确定的车载PWA配置,浏览器客户端显示如图8中(c)所示的地图应用界面803。界面803相对于界面802显示字体变大,且支持语音导航,实现浏览器客户端根据行车数据自适应调整地图应用的运行环境。For example, when the browser client displays the map application interface 802 as shown in (b) of Figure 8, it receives the driving data and determines that the driving data is different from the driving data obtained last time. Then, the browser client can match the vehicle PWA configuration in the vehicle PWA data based on the latest received driving data. According to the vehicle PWA configuration determined this time, the browser client displays the map application interface 803 as shown in (c) of Figure 8 . The display font of interface 803 is larger than that of interface 802, and supports voice navigation, enabling the browser client to adaptively adjust the running environment of the map application based on driving data.
如此,浏览器客户端可根据最新获取到的行车数据和车载PWA配置数据,自适应的为车载PWA配置运行环境,更能保证配置的车载PWA运行环境满足当前行车数据要求,进一步保证驾驶员行车安全。In this way, the browser client can adaptively configure the operating environment for the vehicle-mounted PWA based on the latest acquired driving data and vehicle-mounted PWA configuration data, which can further ensure that the configured vehicle-mounted PWA operating environment meets the current driving data requirements, further ensuring that the driver's driving Safety.
可选的,在上述场景中,浏览器客户端也可不改变当前运行的车载PWA的运行环境,而是在用户指示启动新的车载PWA后,再自适应的调整车载PWA的运行环境。从而避免突然变化的运行环境影响用户操作,造成行车危险。Optionally, in the above scenario, the browser client may not change the operating environment of the currently running vehicle PWA, but adaptively adjust the operating environment of the vehicle PWA after the user instructs to start a new vehicle PWA. This prevents sudden changes in the operating environment from affecting user operations and causing driving hazards.
在一些实施例中,车载PWA配置数据中包括音量大小、字体大小、语音导航中的一项或几项。此外,车载PWA配合数据中还可以包括显示界面比例尺信息。In some embodiments, the vehicle PWA configuration data includes one or more of volume size, font size, and voice navigation. In addition, the vehicle PWA cooperation data can also include display interface scale information.
比如,车载PWA为地图应用,配置人员可配置不同行车数据对应的不同显示界面比例尺信息。如设置行车状况较差的情况下的行车数据,对应较大的显示比例尺。这样使得车载系统能够显示更加详细的路况信息,帮助驾驶员更加清晰的确定当前路况情况,从而保证行车安全。For example, if the vehicle PWA is a map application, the configurer can configure different display interface scale information corresponding to different driving data. If you set the driving data under poor driving conditions, the corresponding display scale will be larger. This allows the vehicle-mounted system to display more detailed road condition information, helping the driver to more clearly determine the current road conditions, thereby ensuring driving safety.
需要说明的是,上述各个实施例以车载PWA为地图应用为例,对本申请实施例提供的车载应用自适应配置方法进行说明。其他车载应用的配置方法均可参考上述各个实施例的相关内容,本申请不限制车载PWA的类型。It should be noted that each of the above embodiments takes a vehicle-mounted PWA as a map application as an example to describe the adaptive configuration method for vehicle-mounted applications provided by the embodiments of the present application. For configuration methods of other vehicle-mounted applications, please refer to the relevant content of each of the above embodiments. This application does not limit the type of vehicle-mounted PWA.
可选的,不同车载PWA的车载PWA配置数据可以相同或不相同。如不同车载PWA的车载PWA配置数据相同,浏览器客户端响应于用户启动车载PWA的操作, 获取车载PWA配置数据和行车数据,显示该车载PWA界面。或者,不同车载PWA的车载PWA配置数据不相同,配置人员可根据车载PWA的功能等信息配置不同的车载PWA配置数据,如音乐应用不支持语音导航功能,在音乐应用的车载PWA配置数据中可不配置是否支持语音导航的数据。响应于用户启动车载PWA的操作,浏览器客户端确定获取行车数据,以及当前车载PWA对应的车载PWA配置数据,显示该车载PWA界面。Optionally, the vehicle PWA configuration data of different vehicle PWAs may be the same or different. If the vehicle PWA configuration data of different vehicle PWAs are the same, the browser client responds to the user's operation of starting the vehicle PWA, Obtain the vehicle PWA configuration data and driving data, and display the vehicle PWA interface. Or, the vehicle PWA configuration data of different vehicle PWAs are different. The configurer can configure different vehicle PWA configuration data according to the functions of the vehicle PWA and other information. For example, if the music application does not support the voice navigation function, the vehicle PWA configuration data of the music application does not need to be included in the vehicle PWA configuration data. Configure whether to support voice navigation data. In response to the user's operation of starting the vehicle-mounted PWA, the browser client determines to obtain the driving data and the vehicle-mounted PWA configuration data corresponding to the current vehicle-mounted PWA, and displays the vehicle-mounted PWA interface.
比如,车载PWA为音乐应用。响应于用户的启动操作,浏览器客户端获取行车数据和车载PWA配置数据,确定当前车载PWA配置为音量为50分贝,字体大小为12pt,根据该车载PWA配置,显示音乐播放界面。之后,行车数据发生变化(如路况由通畅变为拥堵),浏览器客户端获取到变化后的行车数据,确定当前行车数据对应的车载PWA配置为音量为30分贝,字体大小为15pt,显示音乐播放界面。这样,降低的音乐音量,放大的显示字体,保证了驾驶员在变差的交通环境中的行车安全。示例性的,图10为本申请实施例提供的车载应用自适应配置方法流程示意图。如图10所示,该方法包括如下步骤。For example, the car PWA is a music application. In response to the user's startup operation, the browser client obtains the driving data and the vehicle PWA configuration data, determines that the current vehicle PWA configuration is that the volume is 50 decibels, and the font size is 12pt. According to the vehicle PWA configuration, the music playback interface is displayed. Afterwards, the driving data changes (for example, the road conditions change from smooth to congested). The browser client obtains the changed driving data and determines that the on-board PWA corresponding to the current driving data is configured with a volume of 30 decibels, a font size of 15pt, and music display. Playback interface. In this way, the reduced music volume and enlarged display fonts ensure the driver's driving safety in a deteriorating traffic environment. Exemplarily, FIG. 10 is a schematic flowchart of the vehicle application adaptive configuration method provided by the embodiment of the present application. As shown in Figure 10, the method includes the following steps.
S1001、获取第一行车数据。S1001. Obtain the first driving data.
在一些实施例中,第一行车数据包括如下一项或几项:天气情况、日夜间情况、路况、车速、通话情况、光线情况。In some embodiments, the first driving data includes one or more of the following: weather conditions, day and night conditions, road conditions, vehicle speed, call conditions, and light conditions.
在一些实施例中,车载终端检测到启动车载渐进式网页应用的操作后,获取第一行车数据。或者,车载终端按照第二周期获取第一行车数据。或者,在行车数据发生变化时,更新第一行车数据。In some embodiments, the vehicle-mounted terminal acquires the first driving data after detecting the operation of starting the vehicle-mounted progressive web application. Alternatively, the vehicle-mounted terminal obtains the first driving data according to the second cycle. Or, when the driving data changes, the first driving data is updated.
示例性的,如图5所示,车载终端(如为车载系统)中的车载PWA管理单元502检测到用户启动车载渐进式网页应用的操作,向行车数据采集单元501请求获取行车数据。行车数据采集单元501根据请求,实时采集行车数据后发送到车载PWA管理单元502。车载PWA管理单元502再将获取到的行车数据发送到浏览器客户端。这样,保证后续车载渐进式网页应用显示界面的显示满足当前实时行车环境的需求。For example, as shown in Figure 5, the vehicle-mounted PWA management unit 502 in the vehicle-mounted terminal (such as a vehicle-mounted system) detects the user's operation of starting the vehicle-mounted progressive web application, and requests the driving data collection unit 501 to obtain driving data. The driving data collection unit 501 collects driving data in real time according to the request and sends it to the vehicle-mounted PWA management unit 502. The vehicle-mounted PWA management unit 502 then sends the acquired driving data to the browser client. In this way, it is ensured that the display of the subsequent vehicle-mounted progressive web application display interface meets the needs of the current real-time driving environment.
又示例性的,如图5所示,车载终端(如为车载系统)中的浏览器客户端按照预设周期(如第二周期)获取车载PWA管理单元502发送的行车数据。之后,浏览器客户端将采集到的行车数据发送到存储单元505中进行存储,存储单元505接收到行车数据后,利用新获取到的行车数据更新历史行车数据。这样,后续车载终端中的浏览器客户端确定需要使用行车数据的情况下,可以直接从存储单元505中获取到相应的行车数据。As another example, as shown in FIG. 5 , the browser client in the vehicle-mounted terminal (eg, vehicle-mounted system) obtains the driving data sent by the vehicle-mounted PWA management unit 502 according to a preset cycle (eg, the second cycle). Afterwards, the browser client sends the collected driving data to the storage unit 505 for storage. After receiving the driving data, the storage unit 505 updates the historical driving data using the newly acquired driving data. In this way, when the browser client in the vehicle-mounted terminal subsequently determines that it needs to use the driving data, it can directly obtain the corresponding driving data from the storage unit 505.
再示例性的,如图5所示,车载终端(如为车载系统)中的车载PWA管理单元502获取行车数据采集单元501采集到的行车数据,确定行车数据与历史行车数据发生变化,将变化后的行车数据发送到浏览器客户端。这样,浏览器客户端根据获取到的行车数据,更新存储单元存储505的历史行车数据。As another example, as shown in Figure 5, the vehicle-mounted PWA management unit 502 in the vehicle-mounted terminal (such as a vehicle-mounted system) obtains the driving data collected by the driving data collection unit 501, determines that the driving data and historical driving data have changed, and changes the driving data to the historical driving data. The subsequent driving data is sent to the browser client. In this way, the browser client updates the historical driving data stored in the storage unit 505 based on the acquired driving data.
在一些实施例中,车载终端确定浏览器应用的运行场景为车载终端场景,并已开启智能化体验后,获取第一行车数据。In some embodiments, the vehicle-mounted terminal determines that the running scenario of the browser application is the vehicle-mounted terminal scenario, and after enabling the intelligent experience, the first driving data is obtained.
示例性的,浏览器客户端中预置配置参数。浏览器客户端在检测到用户启动车载渐进式网页应用的操作后,根据预置配置参数取值,确定浏览器客户端运行场景是否 为车载终端场景,以及是否启动智能化体验。如果均为是,浏览器客户端可获取行车数据,根据行车数据自适应的调整车载渐进式网页应用的运行环境。As an example, configuration parameters are preset in the browser client. After the browser client detects the user's operation to launch the in-vehicle progressive web application, it determines whether the browser client runs the scenario according to the value of the preset configuration parameter. For the vehicle terminal scenario, and whether to start the intelligent experience. If both are yes, the browser client can obtain the driving data and adaptively adjust the running environment of the in-vehicle progressive web application based on the driving data.
S1002、根据第一行车数据,显示第一界面,第一界面的显示配置为第一车载配置。S1002. Display the first interface according to the first driving data, and the display configuration of the first interface is the first vehicle configuration.
在一些实施例中,车载终端如需显示车载渐进式网页应用的第一界面,除了获取第一行车数据之外,还需要获取到车载配置数据。可选的,车载终端获取存储在存储单元中的车载配置数据。其中,存储单元按照第一周期更新车载配置数据。或者,响应于启动车载渐进式网页应用的操作,车载终端向服务器请求获取车载配置数据。In some embodiments, if the vehicle-mounted terminal needs to display the first interface of the vehicle-mounted progressive web application, in addition to obtaining the first driving data, it also needs to obtain vehicle-mounted configuration data. Optionally, the vehicle-mounted terminal obtains the vehicle-mounted configuration data stored in the storage unit. Wherein, the storage unit updates the vehicle configuration data according to the first cycle. Or, in response to the operation of starting the vehicle-mounted progressive web application, the vehicle-mounted terminal requests the server to obtain vehicle-mounted configuration data.
需要说明的是,本申请实施例不限制行车数据和车载配置获取的先后顺序。比如,车载终端可响应于用户启动车载渐进式网页应用的操作,同时获取行车数据和车载数据;或者,先获取行车数据,再获取车载配置数据;或者,先获取车载配置数据,再获取行车数据。It should be noted that the embodiment of the present application does not limit the order in which driving data and vehicle configurations are obtained. For example, the vehicle-mounted terminal can obtain driving data and vehicle-mounted data at the same time in response to the user's operation of starting the vehicle-mounted progressive web application; or, obtain the driving data first, and then obtain the vehicle configuration data; or, obtain the vehicle configuration data first, and then obtain the driving data. .
在一些实施例中,车载终端在车载配置数据中匹配第一行车数据对应的第一车载配置。并根据第一车载配置,显示车载渐进式网页应用的第一界面。In some embodiments, the vehicle-mounted terminal matches the first vehicle-mounted configuration corresponding to the first driving data in the vehicle-mounted configuration data. And according to the first vehicle configuration, the first interface of the vehicle progressive web application is displayed.
比如,车载终端根据第一车载配置,配置车载渐进式网页应用显示第一界面的过程中的音量大小、字体大小、是否支持语音导航中的一项或几项。For example, the vehicle-mounted terminal configures one or more of the volume, font size, and whether to support voice navigation during the process of displaying the first interface of the vehicle-mounted progressive web application based on the first vehicle configuration.
示例性的,车载配置数据包括预置行车数据和预置行车数据对应的预置车载配置。车载终端在预置行车数据中,匹配与第一行车数据相同的目标预置行车数据,确定与目标预置行车数据对应的预置车载配置中的第一车载配置。For example, the vehicle configuration data includes preset driving data and preset vehicle configuration corresponding to the preset driving data. The vehicle-mounted terminal matches the target preset driving data that is the same as the first driving data in the preset driving data, and determines the first vehicle configuration among the preset vehicle configurations corresponding to the target preset driving data.
如此,车载终端能够根据行车数据在预置的车载配置数据中,匹配与当前行车数据相同的预置行车数据对应的车载配置。之后,车载终端根据该车载配置,显示车载渐进式网页应用的界面。从而使得显示界面与当前行车数据匹配,满足用户的使用需求,提升用户使用体验。In this way, the vehicle-mounted terminal can match the vehicle-mounted configuration corresponding to the preset vehicle-mounted configuration data that is the same as the current vehicle-mounted data in the preset vehicle-mounted configuration data based on the vehicle-mounted vehicle data. Afterwards, the vehicle-mounted terminal displays the interface of the vehicle-mounted progressive web application according to the vehicle-mounted configuration. This allows the display interface to match the current driving data to meet the user's needs and improve the user experience.
S1003、获取第二行车数据,第一行车数据不同于第二行车数据。S1003. Obtain the second driving data. The first driving data is different from the second driving data.
在一些实施例中,第二行车数据包括如下一项或几项:天气情况、日夜间情况、路况、车速、通话情况、光线情况。In some embodiments, the second driving data includes one or more of the following: weather conditions, day and night conditions, road conditions, vehicle speed, call conditions, and light conditions.
可选的,步骤S1003的其他内容可参考上述步骤S1001的相关内容,在此不再赘述。Optionally, for other contents of step S1003, reference may be made to the relevant contents of step S1001, which will not be described again here.
S1004、根据第二行车数据,显示第二界面,第二界面的显示配置为第二车载配置。其中,第一界面和第二界面为同一车载渐进式网页应用的界面,第一车载配置不同于第二车载配置。S1004. Display the second interface according to the second driving data, and the display configuration of the second interface is the second vehicle configuration. Wherein, the first interface and the second interface are interfaces of the same vehicle-mounted progressive web application, and the first vehicle-mounted configuration is different from the second vehicle-mounted configuration.
在一些实施例中,第一界面和第二界面为车载渐进式网页应用相同的功能页面,该功能页面对应于车载渐进式网页应用的功能。比如,车载渐进式网页应用为地图应用,第一界面和第二界面均为地图应用中的导航功能页面。又比如,车载渐进式网页应用为音乐应用,第一界面和第二界面均为音乐应用中的音乐播放功能页面,显示有歌词。In some embodiments, the first interface and the second interface are the same function page of the vehicle-mounted progressive web application, and the function page corresponds to the function of the vehicle-mounted progressive web application. For example, the vehicle-mounted progressive web application is a map application, and the first interface and the second interface are both navigation function pages in the map application. For another example, the vehicle-mounted progressive web application is a music application, and the first interface and the second interface are both music playback function pages in the music application, displaying lyrics.
示例性的,如图8中(a)所示界面801,车载终端检测到用户点击地图应用图标81的操作后,确定启动地图应用图标81对应的地图应用。车载终端中的浏览器客户端获取第一行车数据和第一车载配置数据,根据第一行车数据在第一车载配置数据中匹配第一车载配置。之后,车载终端中的浏览器客户端根据第一车载配置,显示如图 8中(b)所示的地图应用界面802。For example, in the interface 801 shown in (a) of FIG. 8 , after detecting the user's click on the map application icon 81 , the vehicle-mounted terminal determines to start the map application corresponding to the map application icon 81 . The browser client in the vehicle-mounted terminal obtains the first driving data and the first vehicle-mounted configuration data, and matches the first vehicle-mounted configuration in the first vehicle-mounted configuration data according to the first driving data. After that, the browser client in the vehicle-mounted terminal displays as shown in the figure according to the first vehicle-mounted configuration. The map application interface 802 shown in (b) in 8.
又示例性的,如图8中(a)所示界面801,车载终端检测到用户点击地图应用图标81的操作后,确定启动地图应用图标81对应的地图应用。车载终端中的浏览器客户端获取第二行车数据和第二车载配置数据,根据第二行车数据在第二车载配置数据中匹配第二车载配置。之后,车载终端中的浏览器客户端根据第二车载配置,显示如图8中(c)所示的地图应用界面803。For another example, in the interface 801 shown in (a) of FIG. 8 , after detecting the user's click on the map application icon 81 , the vehicle-mounted terminal determines to start the map application corresponding to the map application icon 81 . The browser client in the vehicle-mounted terminal obtains the second driving data and the second vehicle-mounted configuration data, and matches the second vehicle-mounted configuration in the second vehicle-mounted configuration data according to the second driving data. Afterwards, the browser client in the vehicle-mounted terminal displays the map application interface 803 as shown in (c) of Figure 8 according to the second vehicle-mounted configuration.
再示例性的,浏览器客户端显示如图8中(b)所示的地图应用界面802的过程中,接收到行车数据,确定该行车数据与上一次获取到的行车数据不同。那么,浏览器客户端可根据该最新接收到的行车数据在车载数据中匹配车载配置。如根据此次确定的车载配置,浏览器客户端显示如图8中(c)所示的地图应用界面803。界面803相对于界面802显示字体变大,且支持语音导航,实现浏览器客户端根据行车数据自适应调整地图应用的运行环境。As another example, when the browser client displays the map application interface 802 as shown in (b) of FIG. 8 , it receives the driving data and determines that the driving data is different from the driving data obtained last time. Then, the browser client can match the vehicle configuration in the vehicle data based on the latest received driving data. According to the vehicle configuration determined this time, the browser client displays the map application interface 803 as shown in (c) of Figure 8 . The display font of interface 803 is larger than that of interface 802, and supports voice navigation, enabling the browser client to adaptively adjust the running environment of the map application based on driving data.
如此,浏览器客户端可根据最新获取到的行车数据和车载配置数据,自适应的显示车载渐进式网页应用,更能保证显示的车载渐进式网页应用满足当前行车数据要求,进一步保证驾驶员行车安全。以上结合图4-图10详细说明了本申请实施例提供的车载应用自适应配置方法。以下结合图11详细说明本申请实施例提供的车载应用自适应配置装置。In this way, the browser client can adaptively display the in-vehicle progressive web application based on the latest acquired driving data and vehicle configuration data, which can further ensure that the displayed in-vehicle progressive web application meets the current driving data requirements, further ensuring that the driver's driving Safety. The above is a detailed description of the vehicle application adaptive configuration method provided by the embodiment of the present application in conjunction with Figures 4-10. The vehicle application adaptive configuration device provided by the embodiment of the present application will be described in detail below with reference to FIG. 11 .
在一种可能的设计中,图11为本申请实施例提供的车载终端的结构示意图。如图11所示,车载终端1100可以包括:收发单元1101、处理单元1102以及显示单元1103。车载终端1100可作为车载应用自适应配置装置,用于实现上述方法实施例中涉及的车载终端的功能。In one possible design, FIG. 11 is a schematic structural diagram of a vehicle-mounted terminal provided by an embodiment of the present application. As shown in Figure 11, the vehicle-mounted terminal 1100 may include: a transceiver unit 1101, a processing unit 1102, and a display unit 1103. The vehicle-mounted terminal 1100 can be used as a vehicle-mounted application adaptive configuration device to implement the functions of the vehicle-mounted terminal involved in the above method embodiments.
可选地,收发单元1101,用于支持车载终端1100执行图10中的S1001和S1003。Optionally, the transceiver unit 1101 is used to support the vehicle-mounted terminal 1100 in executing S1001 and S1003 in Figure 10 .
可选地,处理单元1102,用于支持车载终端1100执行图10中的S1002和S1004。Optionally, the processing unit 1102 is used to support the vehicle-mounted terminal 1100 in executing S1002 and S1004 in FIG. 10 .
可选地,显示单元1103,用于支持车载终端1100显示界面内容;和/或,支持车载终端1100执行图10中的S1002和S1004。Optionally, the display unit 1103 is used to support the vehicle-mounted terminal 1100 to display interface content; and/or to support the vehicle-mounted terminal 1100 to execute S1002 and S1004 in FIG. 10 .
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。车载终端1100中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的车载应用自适应配置方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。The transceiver unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operation and/or function of each unit in the vehicle-mounted terminal 1100 is to implement the corresponding process of the vehicle-mounted application adaptive configuration method described in the above-mentioned method embodiment. All relevant content of each step involved in the above-mentioned method embodiment can be quoted. The function description of the corresponding functional unit will not be repeated here for the sake of brevity.
可选地,图11所示的车载终端1100还可以包括存储单元(图11中未示出),该存储单元中存储有程序或指令。当收发单元1101、处理单元1102以及显示单元1103执行该程序或指令时,使得图11所示的车载终端1100可以执行上述方法实施例中所述的车载应用自适应配置方法。Optionally, the vehicle-mounted terminal 1100 shown in Fig. 11 may also include a storage unit (not shown in Fig. 11), in which programs or instructions are stored. When the transceiver unit 1101, the processing unit 1102, and the display unit 1103 execute the program or instruction, the vehicle-mounted terminal 1100 shown in FIG. 11 can execute the vehicle-mounted application adaptive configuration method described in the above method embodiment.
图11所示的车载终端1100的技术效果可以参考上述方法实施例中所述的车载应用自适应配置方法的技术效果,此处不再赘述。For the technical effects of the vehicle-mounted terminal 1100 shown in FIG. 11 , reference can be made to the technical effects of the vehicle-mounted application adaptive configuration method described in the above method embodiment, and will not be described again here.
除了以车载终端1100的形式以外,本申请提供的技术方案也可以为车载终端中的功能单元或者芯片,或者与车载终端匹配使用的装置。In addition to being in the form of the vehicle-mounted terminal 1100, the technical solution provided by this application can also be a functional unit or chip in the vehicle-mounted terminal, or a device used in conjunction with the vehicle-mounted terminal.
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合, 所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, The memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, there may be one or more processors in the chip system. The processor can be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, there may be one or more memories in the chip system. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited by the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be separately provided on different chips. The embodiments of this application vary on the type of memory, and The arrangement of the memory and processor is not specifically limited.
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(AP设备plication specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。For example, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC). ), it can also be a central processor (central processor unit, CPU), a network processor (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit, MCU), it can also be a programmable logic device (PLD) or other integrated chip.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The method steps disclosed in conjunction with the embodiments of this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的车载应用自适应配置方法。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to perform the above related steps to implement the above embodiments. Adaptive configuration method for in-vehicle applications.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的车载应用自适应配置方法。An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it causes the computer to perform the above-mentioned related steps to implement the vehicle-mounted application adaptive configuration method in the above-mentioned embodiment.
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的车载应用自适应配置方法。In addition, the embodiment of the present application also provides a device. The device may specifically be a component or module, and the device may include one or more connected processors and memories. Among them, memory is used to store computer programs. When the computer program is executed by one or more processors, the device is caused to execute the vehicle-mounted application adaptive configuration method in each of the above method embodiments.
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the devices, computer-readable storage media, computer program products or chips provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be described again here.
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读 取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(AP设备plication specific integrated circuit,ASIC)中。The steps of the methods or algorithms described in connection with the disclosure of the embodiments of this application can be implemented in hardware or by a processor executing software instructions. Software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read only memory (ROM), erasable programmable read-only memory (ROM), erasable programmable ROM (EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, removable hard disk, compact disc (CD-ROM) or any other form of storage media well known in the art. An exemplary storage medium is coupled to the processor such that the processor can read from the storage medium Information can be retrieved and information can be written to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may be located in an application specific integrated circuit (AP device application specific integrated circuit, ASIC).
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above function allocation can be completed by different functional modules according to needs; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the systems, devices and units described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored. or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of modules or units, and may be in electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
计算机可读存储介质包括但不限于以下的任意一种:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Computer-readable storage media includes but is not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. Various media that can store program code.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application. . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (12)

  1. 一种车载应用自适应配置方法,其特征在于,应用于车载终端,所述方法包括:An adaptive configuration method for vehicle-mounted applications, characterized in that it is applied to vehicle-mounted terminals, and the method includes:
    获取第一行车数据;Get the first driving data;
    根据所述第一行车数据,显示第一界面,所述第一界面的显示配置为第一车载配置;Display a first interface according to the first driving data, and the display configuration of the first interface is a first vehicle configuration;
    获取第二行车数据;Get the second driving data;
    根据所述第二行车数据,显示第二界面,所述第二界面的显示配置为第二车载配置;其中,所述第一行车数据不同于所述第二行车数据,所述第一界面和所述第二界面为同一车载渐进式网页应用的界面,所述第一车载配置不同于所述第二车载配置。According to the second driving data, a second interface is displayed, and the display configuration of the second interface is a second vehicle-mounted configuration; wherein the first driving data is different from the second driving data, and the first interface and The second interface is an interface of the same vehicle-mounted progressive web application, and the first vehicle-mounted configuration is different from the second vehicle-mounted configuration.
  2. 根据权利要求1所述的方法,其特征在于,在所述根据所述第一行车数据,显示第一界面之前,所述方法还包括:The method according to claim 1, characterized in that, before displaying the first interface according to the first driving data, the method further includes:
    获取车载配置数据;Obtain vehicle configuration data;
    所述根据所述第一行车数据,显示第一界面,包括:Displaying a first interface based on the first driving data includes:
    根据所述车载配置数据匹配所述第一行车数据对应的第一车载配置;Match the first vehicle configuration corresponding to the first driving data according to the vehicle configuration data;
    根据所述第一车载配置,显示所述车载渐进式网页应用的所述第一界面。According to the first vehicle configuration, the first interface of the vehicle-mounted progressive web application is displayed.
  3. 根据权利要求2所述的方法,其特征在于,所述获取车载配置数据,包括:The method according to claim 2, characterized in that said obtaining vehicle configuration data includes:
    获取存储在存储单元中的车载配置数据;其中,所述存储单元按照第一周期从服务器更新所述车载配置数据;Obtain vehicle-mounted configuration data stored in the storage unit; wherein the storage unit updates the vehicle-mounted configuration data from the server according to the first cycle;
    或者,or,
    响应于启动所述车载渐进式网页应用的操作,向服务器请求获取所述车载配置数据。In response to the operation of starting the vehicle-mounted progressive web application, a request is made to the server to obtain the vehicle-mounted configuration data.
  4. 根据权利要求2或3所述的方法,其特征在于,所述车载配置数据包括预置行车数据和所述预置行车数据对应的预置车载配置,所述根据所述车载配置数据匹配所述第一行车数据对应的第一车载配置,包括:The method according to claim 2 or 3, characterized in that the vehicle configuration data includes preset driving data and a preset vehicle configuration corresponding to the preset driving data, and the matching of the vehicle configuration data according to the vehicle configuration data The first vehicle configuration corresponding to the first driving data includes:
    在所述预置行车数据中,匹配与所述第一行车数据相同的目标预置行车数据;In the preset driving data, match the target preset driving data that is the same as the first driving data;
    确定与所述目标预置行车数据对应的所述预置车载配置中的所述第一车载配置。The first vehicle configuration among the preset vehicle configurations corresponding to the target preset driving data is determined.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一车载配置包括显示所述第一界面过程中的音量大小、字体大小、是否支持语音导航中的一项或几项。The method according to any one of claims 1 to 4, characterized in that the first vehicle configuration includes one or more of the volume size, font size, and whether to support voice navigation during the display of the first interface. item.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述获取第一行车数据,包括:The method according to any one of claims 1-5, characterized in that said obtaining the first driving data includes:
    检测到启动所述车载渐进式网页应用的操作,获取所述第一行车数据;Detecting the operation of starting the vehicle-mounted progressive web application and obtaining the first driving data;
    或者,按照第二周期获取所述第一行车数据;Or, obtain the first driving data according to the second cycle;
    或者,在行车数据发生变化时,更新所述第一行车数据。Or, when the driving data changes, the first driving data is updated.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,在所述根据所述第一行车数据,显示第一界面之前,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that, before displaying the first interface according to the first driving data, the method further includes:
    确定浏览器应用的运行场景为车载终端场景,并已开启智能化体验。It is determined that the running scenario of the browser application is the vehicle terminal scenario, and the intelligent experience has been enabled.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一行车数据或所述第二行车数据包括如下一项或几项:天气情况、日夜间情况、路况、车速、通话情况、光线情况。 The method according to any one of claims 1 to 7, characterized in that the first driving data or the second driving data include one or more of the following: weather conditions, day and night conditions, road conditions, vehicle speed, Call conditions and light conditions.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述第一界面和所述第二界面为所述车载渐进式网页应用相同的功能页面。The method according to any one of claims 1 to 8, characterized in that the first interface and the second interface are the same functional pages of the vehicle-mounted progressive web application.
  10. 一种车载终端,其特征在于,所述车载终端包括:显示屏、处理器和存储器,所述显示屏和所述存储器与所述处理器耦合,所述存储器用于存储计算机可读指令,当所述处理器从所述存储器中读取所述计算机可读指令,使得所述车载终端执行如权利要求1-9中任意一项所述的方法。A vehicle-mounted terminal, characterized in that the vehicle-mounted terminal includes: a display screen, a processor and a memory, the display screen and the memory are coupled to the processor, and the memory is used to store computer readable instructions. The processor reads the computer-readable instructions from the memory, causing the vehicle-mounted terminal to execute the method according to any one of claims 1-9.
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在车载终端上运行时,使得所述车载终端执行如权利要求1-9中任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium includes a computer program. When the computer program is run on a vehicle-mounted terminal, the vehicle-mounted terminal causes the vehicle-mounted terminal to execute any one of claims 1-9. method described in the item.
  12. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-9中任意一项所述的方法。 A computer program product, characterized in that, when the computer program product is run on a computer, it causes the computer to execute the method according to any one of claims 1-9.
PCT/CN2023/081731 2022-03-25 2023-03-15 Adaptive configuration method for vehicle-mounted application, and vehicle-mounted terminal WO2023179435A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210303222.5A CN116841484A (en) 2022-03-25 2022-03-25 Vehicle-mounted application self-adaptive configuration method and vehicle-mounted terminal
CN202210303222.5 2022-03-25

Publications (1)

Publication Number Publication Date
WO2023179435A1 true WO2023179435A1 (en) 2023-09-28

Family

ID=88099820

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081731 WO2023179435A1 (en) 2022-03-25 2023-03-15 Adaptive configuration method for vehicle-mounted application, and vehicle-mounted terminal

Country Status (2)

Country Link
CN (1) CN116841484A (en)
WO (1) WO2023179435A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170315700A1 (en) * 2015-12-10 2017-11-02 Appelago Inc. Interactive dashboard for controlling delivery of dynamic push notifications
CN110716776A (en) * 2019-08-29 2020-01-21 华为终端有限公司 Method for displaying user interface and vehicle-mounted terminal
CN112346621A (en) * 2019-08-08 2021-02-09 北京车和家信息技术有限公司 Virtual function button display method and device
CN113232675A (en) * 2020-12-28 2021-08-10 广州小马慧行科技有限公司 Interface display control method and device, vehicle-mounted terminal and storage medium
US20220066792A1 (en) * 2019-12-04 2022-03-03 Shanghai Qwi Smart Technology Co., Ltd. Methods for Information Processing and In-Vehicle Electronic Device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170315700A1 (en) * 2015-12-10 2017-11-02 Appelago Inc. Interactive dashboard for controlling delivery of dynamic push notifications
CN112346621A (en) * 2019-08-08 2021-02-09 北京车和家信息技术有限公司 Virtual function button display method and device
CN110716776A (en) * 2019-08-29 2020-01-21 华为终端有限公司 Method for displaying user interface and vehicle-mounted terminal
US20220066792A1 (en) * 2019-12-04 2022-03-03 Shanghai Qwi Smart Technology Co., Ltd. Methods for Information Processing and In-Vehicle Electronic Device
CN113232675A (en) * 2020-12-28 2021-08-10 广州小马慧行科技有限公司 Interface display control method and device, vehicle-mounted terminal and storage medium

Also Published As

Publication number Publication date
CN116841484A (en) 2023-10-03

Similar Documents

Publication Publication Date Title
WO2020244495A1 (en) Screen projection display method and electronic device
WO2020244622A1 (en) Notification prompt method, terminal and system
US11934352B2 (en) Card rendering method and electronic device
WO2021121052A1 (en) Multi-screen cooperation method and system, and electronic device
CN112861638A (en) Screen projection method and device
CN111030719B (en) Vehicle-mounted device and data processing method
WO2022156496A1 (en) Interaction method for mobile terminal and vehicle-mounted terminal, and terminal and system
CN114513847B (en) Positioning method, device, system, electronic equipment and storage medium
CN113472477B (en) Wireless communication system and method
CN111835904A (en) Method for starting application based on context awareness and user portrait and electronic equipment
CN112923943A (en) Auxiliary navigation method and electronic equipment
CN114489529A (en) Screen projection method of electronic device, medium thereof and electronic device
CN116114239A (en) Volume management method and electronic equipment
WO2021057565A1 (en) Processing method and mobile device
CN113608753A (en) Application uninstalling method, application recovery method, electronic device and storage medium
CN113391743A (en) Display method and electronic equipment
WO2024037025A1 (en) Wireless communication circuit, bluetooth communication switching method, and electronic device
WO2023179435A1 (en) Adaptive configuration method for vehicle-mounted application, and vehicle-mounted terminal
WO2022228180A1 (en) Application management method and electronic device
WO2022143310A1 (en) Double-channel screen projection method and electronic device
CN115171073A (en) Vehicle searching method and device and electronic equipment
CN114363454B (en) Historical page opening method, related equipment and computer storage medium
CN115033295A (en) Peripheral control method, electronic equipment and system
CN116032942A (en) Method, device, equipment and storage medium for synchronizing cross-equipment navigation tasks
CN113890929A (en) Method and device for switching audio output channel and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23773683

Country of ref document: EP

Kind code of ref document: A1