Data analysis method and device in automobile scene arrangement, electronic equipment and medium

CN117313701BActive Publication Date: 2026-10-30CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311257520.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2026-10-30
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

[0004]有鉴于此,本申请实施例提供了一种汽车场景编排中的数据解析方法、装置、电子设备及介质,以解决现有技术中无法方便、快捷地提取radiolistvel类型数据中的数值的问题

Benefits of technology

[0008]本申请实施例的第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述方法的步骤。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117313701B_ABST
    Figure CN117313701B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent automobiles, and provides a data analysis method and device in automobile scene arrangement, an electronic device and a medium. The method analyzes radiolistvel type data by creating an analysis method, extracts display values and transmission values of the radiolistvel type data, and converts the display values and the transmission values into available data, so as to extract data used for display in automobile scene arrangement and data used for data transmission in automobile scene arrangement from the radiolistvel type data, realizes rapid analysis of the radiolistvel type data, enables a user to conveniently and quickly use the radiolistvel type data when performing automobile scene arrangement, improves scene arrangement efficiency, and improves user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent vehicle technology, and in particular to a data parsing method, device, electronic device and medium for automotive scene arrangement. Background Technology

[0002] In automotive scene arrangement, there are capability parameters such as air quality level, car gear and media music list. What they have in common is that the parameters representing these data are usually a mixture of Chinese, English and numbers. This means that there is no pattern among these parameters, and it is impossible to represent all the values ​​of these data through a deducible, concise logic and formula.

[0003] The existing technology does not provide a specific parsing method for radiolistvel type data, which makes it difficult to conveniently and quickly extract values ​​from radiolistvel type data when arranging automotive scenes, and thus make it impossible to arrange parameters such as air quality level, car gear and media music list. Summary of the Invention

[0004] In view of this, embodiments of this application provide a data parsing method, apparatus, electronic device, and medium for automotive scene arrangement, to solve the problem that the existing technology cannot conveniently and quickly extract numerical values ​​from radiolistvel type data.

[0005] A first aspect of this application provides a data parsing method for automotive scene orchestration, comprising: Retrieve radiolistvel type data from the car scene orchestration. The radiolistvel type data includes multiple sub-part data, and the multiple sub-part data includes at least the display value and the transmission value. Create a data parsing method, which must include at least one array-type return value; The data parsing method is called to parse the radiolistvel type data, obtain the specific display value and specific transmission value of the radiolistvel type data, and save the display value as the first element to the first array and the transmission value as the second element to the first array; Create a new value model object and an array container. The value model object must include at least the first parameter and the second parameter. Assign the first element of the first array to the first parameter of the value-receiving model object, and assign the second element of the first array to the second parameter of the value-receiving model object; Load the value-received model object into an array container; Iterate through the radiolistvel type data to obtain an array container that contains a model object containing the first and second parameters corresponding to all display and transmission values ​​in the radiolistvel type data. The array container is returned as the return value of the data parsing method. The data corresponding to the first parameter in the return value is used for display in the car scene arrangement, and the data corresponding to the second parameter in the return value is used for data transmission in the car scene arrangement.

[0006] A second aspect of this application provides a data parsing apparatus for automotive scene orchestration, comprising: The acquisition module is configured to acquire radiolistvel type data from the car scene orchestration. The radiolistvel type data includes multiple sub-part data, and the multiple sub-part data includes at least the display value and the transmission value. Create a module that is configured to create a data parsing method, which must include at least one array type return value; The calling module is configured to call the data parsing method to parse radiolistvel type data, obtain the specific display value and specific transmission value of radiolistvel type data, and save the display value as the first element to the first array and the transmission value as the second element to the first array; The creation module is also configured to create a new valued model object and an array container, the valued model object including at least the first parameter and the second parameter; The calling module is also configured to assign the first element of the first array to the first parameter of the valueable model object, and assign the second element of the first array to the second parameter of the valueable model object; The loading module is configured to load valueable model objects into an array container; The calling module is also configured to iterate through radiolistvel type data to obtain an array container that contains a first and second parameter model object corresponding to all display and transmission values ​​in the radiolistvel type data; The calling module is also configured to return an array container as the return value of the data parsing method. The data in the return value corresponding to the first parameter is used for display in the car scene arrangement, and the data in the return value corresponding to the second parameter is used for data transmission in the car scene arrangement.

[0007] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method.

[0008] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method.

[0009] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment parses radiolistvel type data by creating a parsing method, extracts the display value and transmission value of radiolistvel type data, and converts the display value and transmission value into usable data. This allows for the extraction of data from radiolistvel type data for display in automotive scene arrangement and data transmission in automotive scene arrangement, achieving rapid parsing of radiolistvel type data. This enables users to conveniently and quickly use radiolistvel type data when performing automotive scene arrangement, improving scene arrangement efficiency and enhancing user experience. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a schematic diagram illustrating the application scenario of this application embodiment.

[0012] Figure 2 This is a flowchart illustrating a data parsing method in automotive scene arrangement provided in an embodiment of this application.

[0013] Figure 3 This is a schematic diagram of a data structure for radiolistvel type data provided in an embodiment of this application.

[0014] Figure 4 This is a flowchart illustrating the method for parsing radiolistvel type data using the data parsing method provided in this application embodiment.

[0015] Figure 5 This is a flowchart illustrating the method for determining the correct format of radiolistvel type data based on a sub-part data set provided in this application embodiment.

[0016] Figure 6 This is a flowchart illustrating the method for creating a new valued model object according to an embodiment of this application.

[0017] Figure 7 This is a flowchart illustrating a data parsing method in automotive scene arrangement provided in an embodiment of this application.

[0018] Figure 8 This is a flowchart illustrating a data parsing method in automotive scene arrangement provided in an embodiment of this application.

[0019] Figure 9 This is a schematic diagram of a data parsing device for automotive scene arrangement provided in an embodiment of this application.

[0020] Figure 10 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0021] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0022] Definitions: radiolistvel: A data type representing a sequence of values.

[0023] Step size: The number of elements to skip in each iteration of the loop.

[0024] PickerListModel: A custom data model that is convenient for callers to use.

[0025] Traversal: Visiting each element in the collection once.

[0026] The following will describe in detail, with reference to the accompanying drawings, a data parsing method and apparatus for automotive scene arrangement according to an embodiment of this application.

[0027] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this application. The application scenario may include vehicle 1, server 2, and network 3.

[0028] Vehicle 1 can be either hardware or software. When vehicle 1 is hardware, it can be various in-vehicle electronic devices that support communication with roadside devices 2 and servers 3, including but not limited to telematics-box (TBOX), on-board unit (OBU), and in-vehicle entertainment system; when vehicle 1 is software, it can be installed in the electronic devices described above. Vehicle 1 can be implemented as multiple software programs or software modules, or as a single software program or software module, and this application embodiment does not impose any limitations on this. Furthermore, various applications can be installed on vehicle 1, such as data processing applications, instant messaging tools, social platform software, search applications, shopping applications, etc.

[0029] Server 2 can be a server that provides various services, such as a backend server that receives requests sent by vehicle 1 with which it has established a communication connection. This backend server can process and store the received vehicle data, and then realize vehicle scene orchestration based on the data. Server 2 can be a single server, a server cluster consisting of several servers, or a cloud computing service center. This application embodiment does not limit this.

[0030] It should be noted that server 2 can be either hardware or software. When server 2 is hardware, it can be various electronic devices that provide various services to vehicle 1. When server 2 is software, it can be multiple software programs or software modules that provide various services to vehicle 1, or it can be a single software program or software module that provides various services to vehicle 1. This application embodiment does not impose any limitations on this.

[0031] Network 3 can be a wired network using coaxial cable, twisted pair, and fiber optic connection, or it can be a wireless network that enables interconnection of various communication devices without wiring, such as Bluetooth, Near Field Communication (NFC), and Infrared. This application embodiment does not limit this.

[0032] Vehicle 1 can establish a communication connection with server 2 through network 3 to receive or send information, etc.

[0033] It should be noted that the specific types, quantities, and combinations of vehicle 1, server 2, and network 3 can be adjusted according to the actual needs of the application scenario, and this application embodiment does not impose any restrictions on this.

[0034] As mentioned above, there is no specific parsing method for radiolistvel type data in the existing technology, which makes it impossible to easily and quickly extract the values ​​in radiolistvel type data when arranging automotive scenes, and thus arrange the aforementioned capability parameters such as temperature, speed, and volume.

[0035] In view of this, embodiments of this application provide a data parsing method for automotive scene orchestration. By creating a parsing method to parse radiolistvel type data, the display value and transmission value of the radiolistvel type data are extracted, and the display value and transmission value are converted into usable data. This allows for the extraction of data from the radiolistvel type data for display in automotive scene orchestration and data for transmission in automotive scene orchestration. This achieves rapid parsing of radiolistvel type data, enabling users to conveniently and quickly use radiolistvel type data when performing automotive scene orchestration, improving scene orchestration efficiency and enhancing user experience.

[0036] Figure 2 This is a flowchart illustrating a data parsing method in automotive scene arrangement provided in an embodiment of this application. Figure 2 The data parsing method in the automotive scene arrangement can be provided by Figure 1 The server executes the command. For example... Figure 2 As shown, the data parsing method in this car scene arrangement includes the following steps: In step S201, radiolistvel type data of the single-selection list in the car scene arrangement is obtained.

[0037] The radiolistvel type data includes multiple sub-data parts, which include at least the display value and the transmission value.

[0038] In step S202, a data parsing method is created.

[0039] The data parsing method must include at least one array-type return value.

[0040] In step S203, the data parsing method is called to parse the radiolistvel type data, obtain the specific display value and specific transmission value of the radiolistvel type data, and save the display value as the first element to the first array, and save the transmission value as the second element to the first array.

[0041] In step S204, a new value model object and an array container are created. The value model object includes at least the first parameter and the second parameter.

[0042] In step S205, the first element in the first array is assigned to the first parameter of the value-taking model object, and the second element in the first array is assigned to the second parameter of the value-taking model object.

[0043] In step S206, the valueable model object is loaded into the array container.

[0044] In step S207, the radiolistvel type data is traversed to obtain an array container that contains the first and second parameters corresponding to all display and transmission values ​​in the radiolistvel type data.

[0045] In step S208, the array container is returned as the return value of the data parsing method.

[0046] The data corresponding to the first parameter in the return value is used for display in the car scene arrangement, and the data corresponding to the second parameter in the return value is used for data transmission in the car scene arrangement.

[0047] In this embodiment, radiolistvel type data from the car scene arrangement can be obtained first. As mentioned above, capability parameters such as air quality level, car gear, and media music list in the car scene arrangement can be stored as radiolistvel type data. Since these capability parameters are usually a mixture of Chinese, English, and numbers, there is no discernible pattern between them, and it is impossible to represent all the values ​​of these data through a deducible and concise logic and formula.

[0048] Figure 3 This is a schematic diagram of a data structure for radiolistvel type data provided in an embodiment of this application. For example... Figure 3 As shown, the radiolistvel type data can include multiple sub-data parts. In one example, the radiolistvel type data can include three sub-data parts: a range value type, a radiolistvel identifier, and a data value. The data value further includes a display value and a transmission value. The display value is the value shown on the screen in the car scene orchestration, and the transmission value is the value actually transmitted in the car scene orchestration. Furthermore, the radiolistvel type data also includes multiple delimiters used to separate the sub-data parts and the individual data items within each sub-data part.

[0049] Taking radiolistvel type data as an example of capability parameter data used to represent air quality levels, it can be "int, radiolistvel, Excellent:6 * Good:5 * Lightly Polluted:4 * Moderately Polluted:3 * Heavyly Polluted:2 * Severely Polluted:1", where [int] indicates that each interval value in the air quality capability parameter data is an integer; [radiolistvel] indicates that the air quality capability parameter data is radiolistvel type data; [Excellent:6], [Good:5], [Lightly Polluted:4], [Moderately Polluted:3], [Heavily Polluted:2], and [Severely Polluted:1] each represent a set of data values ​​used to represent the air quality level. "Excellent", "Good", "Lightly Polluted", "Moderately Polluted", "Heavily Polluted", and "Severely Polluted" are display values, representing the textual information representing the air quality level that is ultimately displayed on the screen and can be understood by the user; "6", "5", "4", "3", "2", and "1" are transmission values, representing the data actually transmitted to represent the air quality level during actual data transmission. ",", ":" and "*" are separators.

[0050] In this embodiment, a data parsing method can be created, which includes at least an array-type return value. Specifically, to correctly display radiolistvel type data, a parsing method can be created to parse the data. In one example, this data parsing method can be named Method 1. Method 1 includes a parameter sourceStr, which represents the incoming radiolistvel type data to be parsed. Method 1 also includes an array-type return value, which represents the final collection of parsed data.

[0051] In this embodiment, the data parsing method can be invoked to parse radiolistvel type data to obtain the display value and transmission value of the radiolistvel type data. Specifically, the radiolistvel type data to be parsed can be input into the parameter sourceStr of method 1, and then the various execution steps of method 1 can be invoked to parse the radiolistvel type data to obtain the display value and transmission value of the radiolistvel type data. Further, the parsed display value can be saved as the first element to the first array, and the parsed transmission value can be saved as the second element to the first array. In one example, the first array can be named lastSplits.

[0052] In this embodiment, after extracting the display and transmission values ​​from the radiolistvel type data and storing them in the first array lastSplits, these values ​​are still stored as array elements and are not yet converted into directly usable model data. Therefore, to facilitate the use of the display and transmission values ​​in the radiolistvel type data in subsequent automotive scene orchestration, further separation and conversion are required.

[0053] In this embodiment of the application, a new value-capable model object and an array container can be created, wherein the value-capable model includes at least a first parameter and a second parameter. In one example, the first parameter can be a parameter key, used to represent the possible values ​​of the capability parameters to be displayed in the car scene arrangement, and the second parameter can be a parameter value, used to represent the possible values ​​of the capability parameters to be transmitted in the car scene arrangement.

[0054] Next, the first element of the first array can be assigned to the first parameter of the valueable model object, and the second element of the first array can be assigned to the second parameter of the valueable model object. Then, the valueable model object can be loaded into the array container.

[0055] Taking the radiolistvel type data to be parsed as the capability parameter data "int, radiolistvel, Excellent:6*Good:5*Light Pollution:4*Moderate Pollution:3*Heavy Pollution:2*Severe Pollution:1" used to represent air quality levels, its displayed value and transmitted values ​​[Excellent:6], [Good:5], [Light Pollution:4], [Moderate Pollution:3], [Heavy Pollution:2], and [Severe Pollution:1] can be stored in a first array, where the displayed value is the first element of the first array and the transmitted value is the second element of the first array. Further, the first element of the first array can be assigned to the first parameter (key) of the value-taking model object, and the second element of the first array can be assigned to the second parameter (value) of the value-taking model object. At this point, the parameter key of the value-taking model object is [Excellent, Good,Light Pollution,Moderate Pollution,Heavy Pollution,Severe Pollution], and the parameter value is [6,5,4,3,2,1]. Further, the assigned value-taking model object is loaded into an array container. After the traversal is complete, the array container stores the value model object with all possible values ​​parsed out.

[0056] In this embodiment, the radiolistvel type data may include multiple sets of display values ​​and transmission values. Therefore, it is necessary to traverse the radiolistvel type data and assign all display values ​​and transmission values ​​in the radiolistvel type data to the value-capable model object using the above method. Then, the assigned value-capable model object is loaded into an array container to obtain an array container that contains the value-capable model object containing the first parameter and the second parameter corresponding to all display values ​​and transmission values ​​in the radiolistvel type data.

[0057] After the iteration is complete, the array container can be returned as the return value of the data parsing method. Upon receiving the return value, the server can retrieve the data corresponding to the first parameter from the array container and extract it for display in the automotive scene arrangement. It can also retrieve the data corresponding to the second parameter from the array container and extract it for data transmission in the automotive scene arrangement.

[0058] According to the technical solution provided in the embodiments of this application, a parsing method is created to parse radiolistvel type data, extract the display value and transmission value of the radiolistvel type data, and convert the display value and transmission value into usable data. This allows for the extraction of display data and data transmission data for use in automotive scene arrangement from the radiolistvel type data. This achieves rapid parsing of radiolistvel type data, enabling users to conveniently and quickly use radiolistvel type data when performing automotive scene arrangement, improving scene arrangement efficiency and enhancing user experience.

[0059] As previously stated in this embodiment, the radiolistvel type data includes three sub-data parts, namely, an interval value type, a radiolistvel identifier, and N sets of data values. Each of the N sets of data values ​​includes a display value and a transmission value, where N is a positive integer. The radiolistvel type data also includes a first separator, located between any two adjacent sub-data parts. Furthermore, the radiolistvel type data also includes a second separator, located between the display value and the transmission value of any set of data values. Even further, when N is greater than 1, i.e., when the radiolistvel type data includes multiple sets of data values, the radiolistvel type data also includes a third separator, located between any two adjacent sets of data values. Figure 3As shown, the first separator can be an English comma "," used to separate the data into different sub-parts; the second separator can be an English colon ":" used to separate the displayed value and the transmitted value in a group of data values; the third separator can be an asterisk "*" used to separate different groups of data values.

[0060] Figure 4 This is a flowchart illustrating the method for parsing radiolistvel type data using the data parsing method provided in this application embodiment. For example... Figure 4 As shown, the method includes the following steps: In step S401, radiolistvel type data is segmented based on the first delimiter to obtain a sub-data set.

[0061] The sub-data set includes each sub-data stored sequentially.

[0062] In step S402, in response to determining that the radiolistvel type data format is correct based on the sub-part data set, the third sub-part data in the sub-part data set is obtained and the third sub-part data is stored in the first variable.

[0063] In step S403, the first variable is divided based on the third delimiter, and the N sets of data values ​​obtained from the division are stored in the second array.

[0064] In step S404, the N sets of data values ​​in the second array are divided based on the second delimiter, and the N sets of display values ​​and transmission values ​​obtained from the division are stored in the first array.

[0065] In this embodiment, radiolistvel type data can be segmented based on a first delimiter to obtain a sub-data set, wherein the sub-data set includes sequentially stored sub-data. Taking the radiolistvel type data to be parsed as the aforementioned capability parameter data representing air quality levels, "int, radiolistvel, Excellent: 6 * Good: 5 * Light Pollution: 4 * Moderate Pollution: 3 * Heavy Pollution: 2 * Severe Pollution: 1", as an example, it can be parsed based on the delimiter "," to obtain a sub-data set including the sequentially stored sub-data "int", sub-data "radiolistvel", and the sub-data "Excellent: 6 * Good: 5 * Light Pollution: 4 * Moderate Pollution: 3 * Heavy Pollution: 2 * Severe Pollution: 1". Further, this sub-data set can be named "splits".

[0066] In this embodiment, after parsing the sub-data set `splits`, it is first necessary to determine whether the format of the `radiolistvel` type data is correct. If the format of the `radiolistvel` type data is correct, then the third sub-data set `splits` is further obtained, and the third sub-data set is stored in the first variable. In one example, the first variable can be `subStr`.

[0067] In the original string of the radiolistvel type data, since the data stored in the variable subStr is connected by asterisks "*", the data stored in the variable subStr needs to be further split. Specifically, the sub-parts of the data in the first variable can be split based on the third delimiter, i.e., the asterisk "*", to obtain an array lastSplits containing all the possible data values. This array lastSplits stores N sets of data values ​​of the radiolistvel type data.

[0068] Furthermore, it's necessary to separate the display and transmission values ​​from each group of data values ​​in the `lastSplits` array. In one example, the `lastSplits` array can be iterated through to extract the display and transmission values ​​from each group of data values. Specifically, in each iteration, the entire group of data values ​​encountered can be represented as a variable `subString`. Then, a system method is called to split this variable `subString` using the second delimiter, the colon ":", to obtain an array `subSplits` containing two elements. This completes the process of storing the N groups of display and transmission values ​​obtained from the split array into the first array.

[0069] Figure 5 This is a flowchart illustrating a method for determining the correct format of radiolistvel type data based on a sub-data set, as provided in an embodiment of this application. Figure 5 As shown, the method includes the following steps: In step S501, the number of sub-data items in the sub-data set is determined.

[0070] In step S502, in response to the number of sub-data items being equal to 3, it is determined that the radiolistvel type data format is correct.

[0071] In this embodiment of the application, when determining whether the radiolistvel type data format is correct based on the sub-data set, this can be achieved by judging the number of sub-data items in the sub-data set. Specifically, by... Figure 3As shown in the example, a complete radiolistvel type data should include 3 sub-data parts. Therefore, it can be determined whether the number of sub-data parts in the sub-data set is equal to 3. If it is equal, the radiolistvel type data format is correct; otherwise, the radiolistvel type data format is incorrect.

[0072] In this embodiment, when it is determined that the format of the radiolistvel type data is incorrect based on the sub-part data set, an empty array can be returned as the return value of the data parsing method, and the data parsing method can be terminated. That is, when it is determined that the number of sub-part data in the sub-part data set splits is not equal to 3, it means that the string format of the radiolistvel type data is incorrect. In this case, an empty array can be directly returned as the return value, and the execution of method 1 can be terminated prematurely.

[0073] Figure 6 This is a flowchart illustrating a method for creating a new value-retrievable model object according to an embodiment of this application. For example... Figure 6 As shown, the method includes the following steps: In step S601, a value model is created.

[0074] The value-selectable model is used to represent each interval value in radiolistvel type data. The value-selectable model includes a first parameter and a second parameter.

[0075] In step S602, after determining the first array, a new value-taking model object is created.

[0076] The new value model object includes a first parameter and a second parameter, which are used to store the interval values ​​obtained in this traversal.

[0077] In this embodiment, a value-capable model can be created first. This value-capable model represents each interval value in the radiolistvel type data. The value-capable model includes a first parameter and a second parameter. Specifically, a value-capable model PickerListModel representing each interval value can be created first. This model PickerListModel includes a first parameter key and a second parameter value. The parameter key represents the user-readable text displayed on the interface, and the parameter value represents the actual value used to transmit the data corresponding to the key during data transmission.

[0078] After determining the first array, a new value-capable model object can be created. This new value-capable model object includes a first parameter and a second parameter, which are used to store the range values ​​obtained in this iteration. In other words, after determining the first array, before converting the raw data stored in the array into usable data for the model, a new PickerListModel object can be created. This PickerListModel object, like the PickerListModel model, has a first parameter `key` and a second parameter `value`. Furthermore, an array container `models` can be created to hold all the results. During data transformation, the first element of the currently iterated first array is assigned to the parameter `key` of this PickerListModel object, and the second element of the currently iterated first array is assigned to the parameter `value` of this PickerListModel object.

[0079] Figure 7 This is a flowchart illustrating a data parsing method in automotive scene orchestration provided in an embodiment of this application. Figure 7 Steps S701 to S704 in the illustrated embodiment are Figure 2 Steps S201 to S204 in the illustrated embodiment are basically the same. Figure 7 Steps S708 to S710 in the illustrated embodiment are Figure 2 Steps S206 to S208 in the illustrated embodiment are basically the same and will not be repeated here. Figure 7 As shown, the method also includes the following steps: In step S705, the number of elements in the first array is determined.

[0080] In step S706, in response to the fact that the number of elements in the first array is not equal to 2, an empty array is returned as the return value of the data parsing method, and the data parsing method ends.

[0081] In step S707, in response to the number of elements in the first array being equal to 2, the first element in the first array is assigned to the first parameter of the valueable model object, and the second element in the first array is assigned to the second parameter of the valueable model object.

[0082] In this embodiment, since it cannot be guaranteed that the format of each value will be strictly correct during transmission, it is necessary to determine the number of elements in the first array `subSplits` to ensure the correctness of the result obtained from splitting the `radiolistvel` type data. Based on the data format of the `radiolistvel` type data and the above-described splitting steps, the first array `subSplits` should contain two elements. Therefore, the number of elements in the first array can be determined. When the number of elements in the first array is equal to two, the first element of the first array is assigned to the first parameter of the value-taking model object, and the second element of the first array is assigned to the second parameter of the value-taking model object. Conversely, when the number of elements in the first array is not equal to two, an empty array is returned as the return value of the data parsing method, ending the data parsing method.

[0083] In this embodiment of the application, the range value of the radiolistvel type data is an integer.

[0084] Figure 8 This is a flowchart illustrating a data parsing method in automotive scene orchestration provided in an embodiment of this application. Figure 8As shown, in this embodiment of the application, method 1 can be created first. Method 1 has a parameter sourceStr, and its parsing steps are as follows: split sourceStr to obtain a collection of sub-part data splits; determine whether the number of elements in splits is equal to 3. If it is not equal to 3, return an empty array and terminate the method early; if it is equal to 3, the process continues, and the third element is taken out from splits and stored in the variable subStr; split subStr to obtain an array lastSplits; start traversing the array lastSplits. The traversal steps are as follows: in each traversal, represent each value encountered as a variable subString; call the system method to split subString with a colon ":" to obtain an array subSplits containing two elements; determine the number of elements in subSplits. If it is not equal to 3, return an empty array and terminate the method early; if it is equal to 3, the process continues, and the third element is taken out from splits and stored in the variable subStr; split subStr to obtain an array lastSplits containing two elements splits. If the result is 2, an empty array is returned, prematurely ending the method's execution; if the result is 2, the process continues; then further separation is performed; a model PickerListModel can be created, which includes parameters key and value; an array container models is created to hold all the results; model conversion and assignment operations are performed, the operation process is as follows: create a PickerListModel object; assign the first element of subSplits to the key parameter of this object, and assign the second element of subSplits to the value parameter of this object; after the assignment is completed, load the object into the array container models; after traversal is complete, return models as the return value of the entire method 1. At this point, the parsing of radiolistvel type data is completed, and the method caller can use the parsed data according to actual needs.

[0085] The data parsing method for automotive scene orchestration provided in this application is applicable to, but not limited to, scenarios that include the following capabilities: (1) Time-related abilities: sunrise / sunset, location.

[0086] (2) Environmental-related capabilities: PM2.5 concentration, air quality index.

[0087] (3) Driving-related capabilities: driving speed, battery charge, vehicle gear, driving mode, range extender mode, energy recovery, steering mode, low-speed pedestrian alarm.

[0088] (4) Capabilities related to doors and windows: front left door, front right door, rear left door, rear right door, front left window, front right window, rear left window, rear right window.

[0089] (5) Seat-related capabilities: driver's seat, passenger seat, second row left side, second row right side, second row middle seat, driver's seat belt, passenger seat belt, second row left side seat belt, second row right side seat belt, second row middle seat belt.

[0090] (6) Navigation-related capabilities: estimated time of arrival, estimated distance of arrival, destination, and status.

[0091] (7) Media-related abilities: media status.

[0092] (8) Charging-related capabilities: vehicle charging status, estimated charging time.

[0093] (9) Accessory-related capabilities: charging panel.

[0094] (10) Capabilities related to the driver and passenger monitoring system (OMS & DMS): passenger sleep status, presence of children in the vehicle, and driver fatigue level.

[0095] (11) Capabilities related to system settings: central control screen theme, instrument panel theme, head-up display (HUD) switch, Bluetooth, WLAN, hotspot, wireless charging, headrest mode, rearview mirror folding, and rearview mirror heating.

[0096] (12) Abilities related to application operation: opening the application, route preference, navigation voice broadcast, listen, and navigate to a certain place.

[0097] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0098] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0099] Figure 9 This is a schematic diagram of a data parsing device for automotive scene arrangement provided in an embodiment of this application. Figure 9 As shown, the data parsing device in this car scene arrangement includes: The acquisition module 901 is configured to acquire radiolistvel type data from the car scene arrangement. The radiolistvel type data includes multiple sub-part data, which includes at least the display value and the transmission value.

[0100] Create module 902, which is configured to create a data parsing method, which includes at least one array-type return value.

[0101] Module 903 is configured to call the data parsing method to parse radiolistvel type data, obtain the specific display value and specific transmission value of radiolistvel type data, and save the display value as the first element to the first array and the transmission value as the second element to the first array.

[0102] The creation module 902 is also configured to create a new valued model object and an array container, the valued model object including at least a first parameter and a second parameter.

[0103] The calling module 903 is also configured to assign the first element of the first array to the first parameter of the valueable model object, and to assign the second element of the first array to the second parameter of the valueable model object.

[0104] Loading module 904 is configured to load valueable model objects into an array container.

[0105] The calling module 903 is also configured to iterate through radiolistvel type data to obtain an array container containing a first and second parameter model object corresponding to all display and transmission values ​​in the radiolistvel type data.

[0106] The calling module 903 is also configured to return an array container as the return value of the data parsing method, wherein the data corresponding to the first parameter in the return value is used for display in the car scene arrangement, and the data corresponding to the second parameter in the return value is used for data transmission in the car scene arrangement.

[0107] According to the technical solution provided in the embodiments of this application, a parsing method is created to parse radiolistvel type data, extract the display value and transmission value of the radiolistvel type data, and convert the display value and transmission value into usable data. This allows for the extraction of display data and data transmission data for use in automotive scene arrangement from the radiolistvel type data. This achieves rapid parsing of radiolistvel type data, enabling users to conveniently and quickly use radiolistvel type data when performing automotive scene arrangement, improving scene arrangement efficiency and enhancing user experience.

[0108] In this embodiment, the radiolistvel type data includes three sub-data parts: an interval value type, a radiolistvel identifier, and N sets of data values. Each of the N sets of data values ​​includes a display value and a transmission value, where N is a positive integer. The radiolistvel type data also includes a first separator, which is located between any two adjacent sub-data parts. The radiolistvel type data also includes a second separator, which is located between the display value and the transmission value of any set of data values. In response to N being greater than 1, the radiolistvel type data also includes a third separator, which is located between any two adjacent sets of data values.

[0109] In this embodiment of the application, the data parsing method is invoked to parse radiolistvel type data, including: segmenting radiolistvel type data based on a first delimiter to obtain a sub-data set, the sub-data set including sequentially stored sub-data; in response to determining that the radiolistvel type data format is correct based on the sub-data set, obtaining the third sub-data in the sub-data set and storing the third sub-data in a first variable; segmenting the first variable based on a third delimiter and storing the N sets of data values ​​obtained from the segmentation in a second array; segmenting the N sets of data values ​​in the first array based on a second delimiter and storing the N sets of display values ​​and transmission values ​​obtained from the segmentation in the first array.

[0110] In this embodiment of the application, determining that the radiolistvel type data format is correct based on the sub-part data set includes: determining the number of sub-part data in the sub-part data set; and determining that the radiolistvel type data format is correct in response to the sub-part data number being equal to 3.

[0111] In this embodiment of the application, creating a new detachable value model object includes: creating a detachable value model, which is used to represent each display value and transmission value in radiolistvel type data, and the detachable value model includes a first parameter and a second parameter; after determining the first array, creating a new detachable value model object, which includes a first parameter and a second parameter, the first parameter being used to store the display value obtained in this traversal, and the second parameter being used to store the transmission value obtained in this traversal.

[0112] In this embodiment of the application, the method further includes: determining the number of elements in the first array; in response to the number of elements in the first array being equal to 2, assigning the first element in the first array to the first parameter of the value-taking model object, and assigning the second element in the first array to the second parameter of the value-taking model object; in response to the number of elements in the first array not being equal to 2, returning an empty array as the return value of the data parsing method, and ending the data parsing method.

[0113] In this embodiment of the application, the range value of the radiolistvel type data is an integer.

[0114] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0115] Figure 10 This is a schematic diagram of an electronic device provided in an embodiment of this application. Figure 10 As shown, the electronic device 10 of this embodiment includes: a processor 1001, a memory 1002, and a computer program 1003 stored in the memory 1002 and executable on the processor 1001. When the processor 1001 executes the computer program 1003, it implements the steps in the various method embodiments described above. Alternatively, when the processor 1001 executes the computer program 1003, it implements the functions of each module / unit in the various device embodiments described above.

[0116] Electronic device 10 may be a desktop computer, laptop, handheld computer, cloud server, or other electronic device. Electronic device 10 may include, but is not limited to, a processor 1001 and a memory 1002. Those skilled in the art will understand that... Figure 10 This is merely an example of electronic device 10 and does not constitute a limitation on electronic device 10. It may include more or fewer components than shown, or different components.

[0117] The processor 1001 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0118] The memory 1002 can be an internal storage unit of the electronic device 10, such as a hard disk or RAM of the electronic device 10. The memory 1002 can also be an external storage device of the electronic device 10, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, FlashCard, etc., equipped on the electronic device 10. The memory 1002 can also include both internal and external storage units of the electronic device 10. The memory 1002 is used to store computer programs and other programs and data required by the electronic device.

[0119] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0120] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program may include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0121] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A data parsing method for automotive scene arrangement, characterized in that, include: Obtain radiolistvel type data from the car scene arrangement. The radiolistvel type data includes multiple sub-part data, and the multiple sub-part data includes at least display values ​​and transmission values. Create a data parsing method, which includes at least one array-type return value; The data parsing method is called to parse the radiolistvel type data to obtain a specific display value and a specific transmission value of the radiolistvel type data. The display value is saved as the first element to the first array, and the transmission value is saved as the second element to the first array. Create a new value model object and an array container, wherein the value model object includes at least a first parameter and a second parameter; Assign the first element in the first array to the first parameter of the value-taking model object, and assign the second element in the first array to the second parameter of the value-taking model object; Load the value-capable model object into the array container; Traverse the radiolistvel type data to obtain an array container that contains a first parameter and a second parameter corresponding to all display values ​​and transmission values ​​in the radiolistvel type data; The array container is returned as the return value of the data parsing method, wherein the data corresponding to the first parameter in the return value is used for display in the car scene arrangement, and the data corresponding to the second parameter in the return value is used for data transmission in the car scene arrangement.

2. The method according to claim 1, characterized in that, The radiolistvel type data includes three sub-parts, which are: The range value type, the radiolistvel identifier, and N sets of data values, each of which includes a display value and a transmission value, where N is a positive integer; The radiolistvel type data also includes a first delimiter, which is located between any two adjacent sub-parts of data; The radiolistvel type data also includes a second separator, which is located between the display value and the transmission value of any set of data values; In response to N being greater than 1, the radiolistvel type data further includes a third separator, which is located between any two adjacent sets of data values.

3. The method according to claim 2, characterized in that, The step of calling the data parsing method to parse the radiolistvel type data includes: The radiolistvel type data is segmented based on the first delimiter to obtain a sub-data set, which includes each sub-data stored sequentially. In response to determining that the radiolistvel type data format is correct based on the sub-part data set, the third sub-part data in the sub-part data set is obtained and the third sub-part data is stored in the first variable; The first variable is divided based on the third delimiter, and the N sets of data values ​​obtained from the division are stored in the second array; The N sets of data values ​​in the second array are divided based on the second delimiter, and the resulting N sets of display values ​​and transmission values ​​are stored in the first array.

4. The method according to claim 3, characterized in that, The step of determining that the radiolistvel type data format is correct based on the sub-data set includes: Determine the number of sub-data items in the sub-data set; In response to the fact that the number of sub-data items is equal to 3, it is determined that the radiolistvel type data format is correct.

5. The method according to claim 1, characterized in that, Creating a new value-retrievable model object includes: Create a detachable value model, which represents each display value and transmission value in the radiolistvel type data, and the detachable value model includes a first parameter and a second parameter; After determining the first array, a new value model object is created. The new value model object includes a first parameter and a second parameter. The first parameter is used to store the display value obtained in this traversal, and the second parameter is used to store the transmission value obtained in this traversal.

6. The method according to claim 1, characterized in that, The method further includes: Determine the number of elements in the first array; In response to the first array having 2 elements, the first element of the first array is assigned to the first parameter of the value-taking model object, and the second element of the first array is assigned to the second parameter of the value-taking model object. In response to the fact that the number of elements in the first array is not equal to 2, an empty array is returned as the return value of the data parsing method, and the data parsing method ends.

7. The method according to any one of claims 1 to 6, characterized in that, The range values ​​of the radiolistvel type data are integers.

8. A data parsing device for automotive scene arrangement, characterized in that, include: The acquisition module is configured to acquire radiolistvel type data from the car scene arrangement, wherein the radiolistvel type data includes multiple sub-part data, and the multiple sub-part data includes at least display values ​​and transmission values; A module is created and configured to create a data parsing method, which includes at least an array type return value. The calling module is configured to call the data parsing method to parse the radiolistvel type data, obtain a specific display value and a specific transmission value of the radiolistvel type data, and save the display value as the first element to the first array and the transmission value as the second element to the first array; The creation module is also configured to create a new value-capable model object and an array container, wherein the value-capable model object includes at least a first parameter and a second parameter; The calling module is also configured to assign the first element in the first array to the first parameter of the value-taking model object, and assign the second element in the first array to the second parameter of the value-taking model object; A loading module is configured to load the valueable model object into the array container; The calling module is also configured to traverse the radiolistvel type data to obtain an array container that contains a first parameter and a second parameter corresponding to all display values ​​and transmission values ​​in the radiolistvel type data. The calling module is also configured to return the array container as the return value of the data parsing method, wherein the data corresponding to the first parameter in the return value is used for display in the car scene arrangement, and the data corresponding to the second parameter in the return value is used for data transmission in the car scene arrangement.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Vehicle remote control system and method, electronic equipment and readable storage medium

    CN115150379A

  • Vehicle end scene service execution method and system, electronic equipment and readable storage medium

    CN115914318A