Cloud-based vehicle data processing method and apparatus, and electronic device
By using the conditions described by expressions in vehicle signal acquisition for conditional acquisition, the problems of large data volume, large bandwidth usage and manual intervention in the prior art are solved, and flexible and effective signal acquisition and improved communication stability are achieved.
Patent Information
- Application Number
- CN202411523527.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art in vehicle signal acquisition, the collected data is large, occupying more communication bandwidth, transmitting data is large, and it requires manual intervention for analysis.
Conditional acquisition is performed using the conditions described in the expression. When the cloud sends the acquisition conditions to the vehicle terminal, the vehicle terminal analyzes the acquisition conditions. Only after the conditions are met will the vehicle terminal start collecting and uploading the signal to the cloud.
It improves the flexibility of collecting signals, only transmits effective signals, reduces communication bandwidth and data transmission, does not require manual intervention, and improves communication stability.
Smart Images

Figure CN120066576A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular, to a method for processing vehicle data based on the cloud, a device for processing vehicle data based on the cloud, an electronic device, and a computer-readable storage medium. Background Art
[0002] In the vehicle-mounted signal acquisition method, various signals of the vehicle end can be acquired through the cloud to understand the running state of the vehicle body. In the related art, all data is collected to the cloud at one time, or collected to the cloud in the form of real-time data or file logs, and then the collected data is manually analyzed to filter out the required data. However, this acquisition method results in a large amount of collected data, occupies more communication bandwidth, and has a large amount of transmitted data. Summary of the Invention
[0003] The present invention aims to at least solve one of the technical problems in the related art to some extent. For this purpose, the first object of the present invention is to propose a method for processing vehicle data based on the cloud. By performing conditional acquisition using the conditions described by expressions, after the cloud sends the acquisition conditions to the vehicle end, the vehicle end parses the acquisition conditions, and only starts to acquire and upload the signals to the cloud after meeting the conditions, improving the flexibility of the acquired signals, only transmitting the valid signals, reducing the communication bandwidth and the amount of transmitted data, and not requiring manual intervention, thus improving the communication stability.
[0004] The second object of the present invention is to propose a device for processing vehicle data based on the cloud.
[0005] The third object of the present invention is to propose an electronic device.
[0006] The fourth object of the present invention is to propose a computer-readable storage medium.
[0007] To achieve the above object, an embodiment of the first aspect of the present invention proposes a method for processing vehicle data based on the cloud, including: receiving a data acquisition instruction sent by the cloud and continuously parsing the data acquisition instruction; in response to parsing a first infix expression, converting the first infix expression into a first postfix expression and extracting the conditional variable name of the conditional acquisition variable in the first postfix expression; requesting the target value corresponding to the conditional acquisition variable according to the conditional variable name; replacing the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression; where the second postfix expression represents a preset condition for starting to execute the data acquisition task; calculating the result of the second postfix expression and determining whether the result is correct; in response to the result being correct, starting to execute the data acquisition task and acquiring the target value of the target variable.
[0008] In addition, the method for processing vehicle data based on the cloud according to the above embodiments of the present invention may further have the following additional technical features:
[0009] According to some embodiments of the present invention, converting the first infix expression into a first postfix expression includes: parsing the data acquisition instruction to obtain the first infix expression; the first infix expression includes an operator and the conditional variable names of the conditional acquisition variables; the operator includes at least one of an arithmetic operator, an arithmetic operation rule, a logical operation rule, and a relational operation rule; the position of the operator in the first infix expression is between at least two conditional variable names; converting the first infix expression to obtain the first postfix expression; wherein, the first postfix expression includes an operator and the conditional variable names of the conditional acquisition variables, and the position of the operator in the first postfix expression is after the position of the conditional variable name in the first postfix expression.
[0010] According to some embodiments of the present invention, the operator further includes an offline data symbol, and the offline data symbol indicates obtaining the historical value corresponding to the target variable.
[0011] According to some embodiments of the present invention, converting the first infix expression to obtain the first postfix expression includes: constructing at least one empty stack; traversing each conditional variable name and operator of the first infix expression from left to right; sequentially filling the traversed conditional variable names into the empty stack; sequentially filling the traversed operators after all the conditional variable names in the empty stack to obtain the first postfix expression.
[0012] According to some embodiments of the present invention, calculating the result of the second postfix expression includes: constructing at least one calculation stack; traversing each target value and operator of the second postfix expression from left to right; during the traversal, filling the traversed target values into the calculation stack in the traversal order, and in response to traversing an operator, popping at least two target values at the end of the calculation stack; performing an operation on the traversed operator and at least two popped target values to obtain an operation result, filling the operation result into the calculation stack, and continuing the traversal until all elements of the second postfix expression are traversed to obtain the result of the second postfix expression.
[0013] According to some embodiments of the present invention, after starting to execute the data acquisition task, the above method further includes: continuously parsing the data acquisition instruction; in response to parsing the second infix expression, converting the second infix expression into a third postfix expression, and extracting the end variable name of the end acquisition variable in the third postfix expression; requesting the end value corresponding to the end acquisition variable according to the end variable name; replacing the end variable name in the third postfix expression with the end value to obtain a fourth postfix expression; wherein, the fourth postfix expression represents a preset condition for ending the execution of the data acquisition task; calculating the result of the fourth postfix expression and determining whether the result is correct; in response to the result being correct, ending the execution of the data acquisition task.
[0014] According to some embodiments of the present invention, the above method for processing vehicle data based on the cloud further includes: in response to starting to execute the data acquisition task, obtaining the historical value corresponding to the target variable according to the offline data symbol and caching the historical value; determining the second postfix expression according to the historical value
[0015] For the method for processing vehicle data based on the cloud according to an embodiment of the present invention, a data acquisition instruction sent by the cloud is received, and the data acquisition instruction is continuously parsed; in response to parsing the first infix expression, converting the first infix expression into a first postfix expression, and extracting the conditional variable name of the conditional acquisition variable in the first postfix expression; requesting the target value corresponding to the conditional acquisition variable according to the conditional variable name; replacing the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression; wherein, the second postfix expression represents a preset condition for starting to execute the data acquisition task; calculating the result of the second postfix expression and determining whether the result is correct; in response to the result being correct, starting to execute the data acquisition task and acquiring the target value of the target variable. Thus, by using the conditions described by expressions for conditional acquisition, when the cloud sends the acquisition conditions to the vehicle terminal, the vehicle terminal parses the acquisition conditions, and only starts to acquire and upload the signal to the cloud after meeting the conditions, improving the flexibility of the acquired signal, only transmitting valid signals, reducing the communication bandwidth and the amount of transmitted data, and eliminating the need for manual intervention, thereby improving communication stability.
[0016] The second object of the present invention is to propose a device for processing vehicle data based on the cloud. By using the conditions described by expressions for conditional acquisition, when the cloud sends the acquisition conditions to the vehicle terminal, the vehicle terminal parses the acquisition conditions, and only starts to acquire and upload the signal to the cloud after meeting the conditions, improving the flexibility of the acquired signal, only transmitting valid signals, reducing the communication bandwidth and the amount of transmitted data, and eliminating the need for manual intervention, thereby improving communication stability.
[0017] To achieve the above object, an embodiment of the second aspect of the present invention provides a processing device for vehicle data based on the cloud, including: a receiving module configured to receive a data acquisition instruction sent by the cloud and continuously parse the data acquisition instruction; a parsing module configured to, in response to parsing a first infix expression, convert the first infix expression into a first postfix expression and extract the conditional variable name of the conditional acquisition variable in the first postfix expression; a requesting module configured to request the target value corresponding to the conditional acquisition variable according to the conditional variable name; a replacing module configured to replace the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression; wherein the second postfix expression represents a preset condition for starting to execute a data acquisition task; a calculating module configured to calculate the result of the second postfix expression and determine whether the result is correct; and a responding module configured to, in response to the result being correct, start executing a data acquisition task.
[0018] According to the processing device for vehicle data based on the cloud of the embodiment of the present invention, the receiving module receives a data acquisition instruction sent by the cloud and continuously parses the data acquisition instruction; the parsing module, in response to parsing a first infix expression, converts the first infix expression into a first postfix expression and extracts the conditional variable name of the conditional acquisition variable in the first postfix expression; the requesting module requests the target value corresponding to the conditional acquisition variable according to the conditional variable name; the replacing module replaces the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression; wherein the second postfix expression represents a preset condition for starting to execute a data acquisition task; the calculating module calculates the result of the second postfix expression and determines whether the result is correct; and the responding module, in response to the result being correct, starts executing a data acquisition task. Thus, the device performs conditional acquisition by using the conditions described by expressions. After the cloud sends the acquisition conditions to the vehicle terminal, the vehicle terminal parses the acquisition conditions, and only starts to acquire and upload the signals to the cloud after meeting the conditions, improving the flexibility of the acquired signals, only transmitting valid signals, reducing the communication bandwidth and the amount of transmitted data, and not requiring manual intervention, thereby improving the communication stability.
[0019] To achieve the above object, an embodiment of the third aspect of the present invention provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned processing method for vehicle data based on the cloud.
[0020] An electronic device according to an embodiment of the present invention, by executing the above-mentioned method for processing vehicle data based on the cloud, performs conditional acquisition by using conditions described by expressions. After the cloud sends the acquisition conditions to the vehicle terminal, the vehicle terminal analyzes the acquisition conditions, and only starts to acquire and upload the signals to the cloud after meeting the conditions, improving the flexibility of the acquired signals, only transmitting valid signals, reducing the communication bandwidth and the amount of transmitted data, and eliminating the need for manual intervention, thus improving communication stability.
[0021] To achieve the above object, an embodiment of the fourth aspect of the present invention proposes a computer-readable storage medium storing computer instructions for causing a processor to execute the above-mentioned method for processing vehicle data based on the cloud.
[0022] A computer-readable storage medium according to an embodiment of the present invention, by executing the above-mentioned method for processing vehicle data based on the cloud, performs conditional acquisition by using conditions described by expressions. After the cloud sends the acquisition conditions to the vehicle terminal, the vehicle terminal analyzes the acquisition conditions, and only starts to acquire and upload the signals to the cloud after meeting the conditions, improving the flexibility of the acquired signals, only transmitting valid signals, reducing the communication bandwidth and the amount of transmitted data, and eliminating the need for manual intervention, thus improving communication stability.
[0023] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. Description of the Drawings
[0024] Figure 1 A flowchart of a method for processing vehicle data based on the cloud according to some embodiments of the present invention;
[0025] Figure 2 A schematic diagram of a method for processing vehicle data based on the cloud according to some other embodiments of the present invention;
[0026] Figure 3 A block diagram of a device for processing vehicle data based on the cloud according to some embodiments of the present invention;
[0027] Figure 4 A block diagram of an electronic device according to some embodiments of the present invention. Detailed Embodiments
[0028] To make the objectives, technical solutions, and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to specific embodiments and the accompanying drawings.
[0029] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present invention should have the ordinary meanings understood by those of ordinary skill in the art to which the present invention pertains. The "first", "second" and similar terms used in the embodiments of the present invention do not denote any order, quantity or importance, but are only used to distinguish different components. The terms such as "include" or "comprise" mean that the elements or objects appearing before this word cover the elements or objects listed after this word and their equivalents, without excluding other elements or objects. The terms such as "connect" or "couple" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The terms such as "upper", "lower", "left" and "right" are only used to represent relative positional relationships, and when the absolute position of the object being described changes, the relative positional relationship may also change accordingly.
[0030] As described in the background art section, in the vehicle signal acquisition method, various signals of the vehicle end can be acquired through the cloud to understand the operating state of the vehicle body. For example, it is necessary to acquire the battery voltage and current parameter values when the vehicle speed is greater than 80 km / h to monitor the battery state.
[0031] The applicant found in the process of implementing the present invention that in the related art, starting from a certain moment, the vehicle speed signal and the battery signal are simultaneously acquired, and then the battery signal when the vehicle speed is greater than 80 km / h is filtered out in the cloud. Or, the vehicle speed signal is acquired first, and when the acquired vehicle speed signal meets the requirement of being greater than 80 km / h, the battery signal is then acquired. However, both of these acquisition methods result in a large amount of acquired data, occupy more communication bandwidth, and have a large amount of transmitted data.
[0032] Next, the method for processing vehicle data based on the cloud, the device for processing vehicle data based on the cloud, the electronic device and the storage medium proposed by the embodiments of the present invention will be described with reference to the accompanying drawings.
[0033] Refer to Figure 1 , which is a flowchart of the method for processing vehicle data based on the cloud according to some embodiments of the present invention.
[0034] As Figure 1 shown, the method for processing vehicle data based on the cloud according to the embodiments of the present invention may include the following steps:
[0035] S101, receive the data acquisition instruction sent by the cloud and continuously parse the data acquisition instruction.
[0036] Specifically, the cloud sets data acquisition instructions based on the vehicle body signals to be collected as needed (such as driving speed, battery voltage, battery current, fuel consumption, and door status, etc.). Among them, the arithmetic symbols, arithmetic operation rules, logical operation rules, and relational operation rules included in the data acquisition instructions are set according to the set operation rules or the operation rules of the C language. Then, the cloud sends the data acquisition instructions to the vehicle terminal. The vehicle terminal receives the data acquisition instructions sent by the cloud. After receiving the instructions, the received data acquisition instructions are continuously parsed to understand the operating state of the vehicle body.
[0037] S102, in response to parsing the first infix expression, convert the first infix expression into a first postfix expression, and extract the conditional variable name of the conditional acquisition variable in the first postfix expression.
[0038] Specifically, when the first infix expression in the data acquisition instruction is parsed, among them, the more complex the first infix expression is, the stronger the conditional filtering ability is, and the more refined signal acquisition can be achieved. The first infix expression includes a start acquisition expression, and the start acquisition expression is used to instruct the vehicle terminal to start data acquisition. For example, the first infix expression can be [(A + B) * C] - [E - F], where A, B, C, E, and F are variable names, and +, *, - are operators. Convert the parsed first infix expression into a first postfix expression. The first postfix expression includes the conditional variable names of the conditional acquisition variables (such as driving speed, battery voltage, battery current, fuel consumption, door status, etc.). Among them, when converting the infix expression into a postfix expression, the predetermined order can be from left to right, and the preset conversion method is based on the dispatch yard algorithm. If the symbol is an operand or an operator, the symbol is pushed onto the operator stack or added to the output string according to the preset rules; if the symbol belongs to a function, obtain the function value of the function composed of the symbol and other surrounding symbols, and add the function value to the output string, skipping other symbols that belong to the function after the symbol. Then determine whether all symbols in the infix expression have been obtained. If so, add all the symbols in the operator stack to the output string to form a postfix expression. After all symbols in the infix expression have been obtained, all the symbols in the operator stack can be added to the output string in turn from the top of the stack. Otherwise, return to the step of obtaining a symbol from the infix expression in the predetermined order. Through the above method, the function parser can support infix expressions with embedded functions, making the function of the function parser more powerful and the applicable range wider.
[0039] After converting to the first postfix expression, extract the conditional variable names of the conditional acquisition variables in the first postfix expression.
[0040] As a specific embodiment, when the first infix expression (such as the start collection expression) in the data collection instruction is parsed, the parsed first infix expression can also be converted into a first prefix expression to facilitate the extraction of variable names in subsequent processes. Among them, when converting an infix expression into a prefix expression, the predetermined order can be from right to left, and the preset conversion method is based on the Shunting-yard algorithm. If the symbol is an operand or an operator, the symbol is pushed onto the operator stack or added to the output string according to the preset rules; if the symbol belongs to a function, the function value of the function composed of the symbol and other surrounding symbols is obtained, and the function value is added to the output string, skipping other symbols that belong to the function after the symbol. Then it is judged whether all the symbols in the infix expression have been obtained. If so, all the symbols in the operator stack are added to the output string to form a prefix expression. After all the symbols in the infix expression have been obtained, all the symbols in the operator stack can be added to the output string in turn from the top of the stack. Otherwise, return to the step of obtaining a symbol from the infix expression in the predetermined order. Through the above method, the function parser can support the infix expression with embedded functions, making the function of the function parser more powerful and the applicable range wider.
[0041] In some embodiments of the present invention, converting the first infix expression into a first postfix expression includes: parsing the data collection instruction to obtain the first infix expression; the first infix expression includes an operator and the conditional variable names of the conditional collection variables; the operator includes at least one of an arithmetic symbol, an arithmetic operation rule, a logical operation rule, and a relational operation rule; the position of the operator in the first infix expression is between at least two conditional variable names; converting the first infix expression to obtain the first postfix expression; wherein, the first postfix expression includes an operator and the conditional variable names of the conditional collection variables, and the position of the operator in the first postfix expression is after the position of the conditional variable name in the first postfix expression.
[0042] Specifically, after receiving the instruction, the data collection instruction sent by the cloud is parsed to obtain a first infix expression (such as a start collection expression). Herein, the first infix expression is edited by the cloud according to the signals that the vehicle needs to collect (i.e., the first preset condition). The first infix expression includes operators and the condition variable names of the conditional acquisition variables (a certain signal value of the vehicle). The operators include at least one of arithmetic operators (such as addition, subtraction, multiplication, division, AND, OR, NOT, etc.), arithmetic operation rules (such as the operation rules of addition, subtraction, multiplication, and division, etc.), logical operation rules (such as the operation rules of AND, OR, NOT, XOR, etc.), and relational operation rules (such as the operation rules of basic relational algebra operations, additional relational algebra operations, and extended relational algebra operations, etc.). The position of the operator in the first infix expression is between at least two condition variable names to perform operations on at least two condition variable names.
[0043] The parsed first infix expression is converted into a first postfix expression. The first postfix expression also includes operators and the condition variable names of the conditional acquisition variables. Herein, the operators and the condition variable names of the conditional acquisition variables included in the first postfix expression correspond one-to-one with the operators and the condition variable names of the conditional acquisition variables included in the first infix expression. The position of the operator in the first postfix expression is after at least two condition variable names to conform to the operation rules of the postfix expression when performing operations on the variable names.
[0044] In some embodiments of the present invention, the operator further includes an offline data symbol, and the offline data symbol indicates obtaining the historical value corresponding to the target variable.
[0045] Specifically, the operator in the first infix expression further includes an offline data symbol. Herein, the offline data symbol is used to indicate obtaining the historical value corresponding to a certain signal. This data symbol can be customized (such as @), and the arithmetic symbol of this data symbol is processed in the form of an array cache. For example, the offline data symbol can be the vehicle speed value at the previous moment or the door state (open or closed) at the previous moment, etc.
[0046] In some embodiments of the present invention, converting the first infix expression to obtain a first postfix expression includes: constructing at least one empty stack; traversing each condition variable name and operator of the first infix expression from left to right; sequentially filling the traversed condition variable names into the empty stack; and sequentially filling the traversed operators after all the condition variable names in the empty stack to obtain the first postfix expression.
[0047] Specifically, first, construct at least one empty stack. Here, an empty stack refers to an empty list without elements. Then, visit each conditional variable name and operator of the first infix expression one by one in the order from left to right, and fill each visited conditional variable name and operator into the empty stack in sequence, so that the stack contains elements (conditional variable names and operators). At this time, the stack can be used as the first postfix expression. For example, when the first infix expression is [(A + B) * C] - [E - F], the first postfix expression is AB + C * EF --.
[0048] As a specific embodiment, first, construct at least one empty stack, and then visit each conditional variable name and operator of the first infix expression one by one in the order from right to left, and fill each visited conditional variable name and operator into the empty stack in sequence, so that the stack contains elements (conditional variable names and operators). At this time, the stack can be used as the first prefix expression. For example, when the first infix expression is [(A + B) * C] - [E - F], the first prefix expression is -*+ABC - EF.
[0049] S103. Request the target value corresponding to the conditional acquisition variable according to the conditional variable name.
[0050] Specifically, after extracting the conditional variable name, request the target value corresponding to the conditional acquisition variable from the database according to the conditional variable name. For example, after extracting the conditional variable name as vehicle speed, request the current vehicle speed from the database.
[0051] S104. Replace the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression, where the second postfix expression represents the preset condition for starting to execute the data acquisition task.
[0052] Specifically, after obtaining the target value corresponding to the conditional acquisition variable, replace the conditional variable name in the first postfix expression with the target value to obtain an expression containing the target value corresponding to the conditional acquisition variable as the second postfix expression, where the second postfix expression represents the preset condition for starting to execute the data acquisition task. For example, after requesting the current vehicle speed of the vehicle from the database, replace the vehicle speed value into the postfix expression, and a new postfix expression will be obtained. For example, when the first postfix expression is AB + C * EF —, the target values corresponding to the conditional acquisition variables are A = 2, B = 3, C = 4, E = 5, F = 6. At this time, replace A, B, C, E, F in the first postfix expression with the corresponding target values, that is, the second postfix expression is 23 + 4 * 56 —.
[0053] S105. Calculate the result of the second postfix expression and determine whether the result is correct.
[0054] Specifically, after obtaining the second postfix expression, calculate the second postfix expression according to the set rules or follow the operation rules of the C language to obtain the final calculation result of the second postfix expression, and then determine whether the calculation result of the second postfix expression meets the first preset condition. Among them, the first preset condition exists in the first postfix expression, and the first preset condition is set by the cloud according to the vehicle body signals to be collected. For example, the first preset condition can be the battery voltage and current parameter values when the collected vehicle speed is greater than 80 km / h. According to whether the calculation result of the second postfix expression meets the first preset condition, it can be determined whether the result of the second postfix expression is correct, so as to be able to judge whether the current vehicle speed meets the vehicle speed to be collected.
[0055] In some embodiments of the present invention, calculating the result of the second postfix expression includes: constructing at least one calculation stack; traversing each target value and operator of the second postfix expression from left to right; during the traversal, fill the traversed target values into the calculation stack in the traversal order, and in response to traversing an operator, pop at least two target values at the end of the calculation stack; perform an operation on the traversed operator and at least two popped target values to obtain an operation result, fill the operation result into the calculation stack, and continue traversing until all elements of the second postfix expression are traversed to obtain the result of the second postfix expression.
[0056] Specifically, after obtaining the second postfix expression, first construct at least one calculation stack to facilitate the calculation of the second postfix expression in the subsequent operation process. Then, visit each target value and operator of the second postfix expression one by one in the order from left to right, and fill each target value of the accessed second postfix expression into the calculation stack. When an operator is accessed, pop at least two target values at the end of the calculation stack, perform an operation on the accessed operator and at least two popped target values to obtain an operation result, and then fill the operation result into the calculation stack. At this time, the calculation stack contains target values and operation results. Then continue to visit each target value and operator of the second postfix expression until all target values and operators of the second postfix expression are visited. At this time, the result of the second postfix expression can be obtained.
[0057] As a specific embodiment, after obtaining the second prefix expression, at least one calculation stack is first constructed to facilitate the calculation of the second prefix expression in subsequent operations. Then, each target value and operator of the second prefix expression are accessed one by one in the order from right to left, and each target value of the accessed second prefix expression is filled into the calculation stack. When an operator is accessed, at least two target values at the end of the calculation stack are popped, and the accessed operator and at least two popped target values are operated on to obtain an operation result, and then the operation result is filled into the calculation stack. At this time, the calculation stack contains target values and operation results. Then, continue to access each target value and operator of the second prefix expression until all target values and operators of the second prefix expression are accessed. At this time, the result of the second prefix expression can be obtained.
[0058] S106, in response to the correct result, start executing the data acquisition task to acquire the target value of the target variable.
[0059] Specifically, when the calculation result of the second postfix expression meets the first preset condition, it indicates that the result of the second postfix expression is correct. When the calculation result of the second postfix expression is correct, it indicates that the current vehicle speed meets the vehicle speed to be acquired. At this time, the vehicle starts to execute the data acquisition task and real-time acquires the target value of the target variable (such as the current vehicle speed of the vehicle). Among them, the target value of the target variable is given by the specific field of the instruction sent by the cloud. After the acquisition is completed, the vehicle uploads the acquired target value of the target variable to the cloud in real time, or saves the acquired target value of the target variable in a file. When the file reaches a certain size (such as 10M), the file is compressed and uploaded to the cloud. The cloud judges the running state of the vehicle according to the uploaded target value of the target variable. Thereby, the flexibility of the cloud to collect vehicle body signals can be increased, and only valid signals are transmitted, greatly reducing the occupied communication bandwidth and the amount of transmitted data, and improving the acquisition efficiency.
[0060] In some embodiments, when the result of the second postfix expression does not meet the first preset condition (indicating that the result of the second postfix expression is incorrect and the current vehicle speed does not meet the vehicle speed to be acquired), at this time, the vehicle continues to request the target value (vehicle speed) corresponding to the conditional acquisition variable from the database, and repeats the steps after the request to the database until the result of the second postfix expression meets the first preset condition (the result of the second postfix expression is correct and the current vehicle speed of the vehicle meets the vehicle speed to be acquired), and the vehicle starts to execute the data acquisition task.
[0061] In some embodiments of the present invention, after starting to execute the data acquisition task, the above method further includes: continuously parsing the data acquisition instruction; in response to parsing the second infix expression, converting the second infix expression into a third postfix expression, and extracting the end variable name of the end acquisition variable in the third postfix expression; requesting the end value corresponding to the end acquisition variable according to the end variable name; replacing the end variable name in the third postfix expression with the end value to obtain a fourth postfix expression; wherein, the fourth postfix expression represents a preset condition for ending the execution of the data acquisition task; calculating the result of the fourth postfix expression and determining whether the result is correct; in response to the result being correct, ending the execution of the data acquisition task.
[0062] Specifically, during the process of continuously parsing the data acquisition instruction, when the second infix expression is parsed, the second infix expression includes an end acquisition expression, and the end acquisition expression is used to instruct the vehicle end to end the data acquisition. The parsed second infix expression is converted into a third postfix expression, and the third postfix expression includes the end variable name of the end acquisition variable (such as driving speed, battery voltage, battery current, fuel consumption, and door status, etc.). Among them, the third postfix expression includes a second preset condition, and the second preset condition is set according to the vehicle body signals that need to end the acquisition. After being converted into the third postfix expression, the end variable name of the end acquisition variable in the third postfix expression is extracted. After the end variable name is extracted, the end value corresponding to the end acquisition variable is requested from the database according to the end variable name. After obtaining the end value corresponding to the end acquisition variable, the end variable name in the third postfix expression is replaced with the end value to obtain an expression including the end value corresponding to the end acquisition variable as the fourth postfix expression, wherein the fourth postfix expression represents a preset condition for ending the execution of the data acquisition task. For example, after requesting the current vehicle speed from the database and replacing the vehicle speed value into the postfix expression, a new postfix expression will be obtained.
[0063] After obtaining the fourth postfix expression, calculate the fourth postfix expression according to the set rules or follow the operation rules of the C language to obtain the final calculation result of the fourth postfix expression, and then determine whether the result of the fourth postfix expression meets the second preset condition. According to whether the result of the fourth postfix expression meets the second preset condition, it can be determined whether the result of the fourth postfix expression is correct, so as to determine whether the current vehicle speed meets the vehicle speed that needs to end the acquisition. When the result of the fourth postfix expression meets the second preset condition, it indicates that the result of the fourth postfix expression is correct. At this time, the vehicle ends the execution of the data acquisition task, and the vehicle uploads the target values of the target variables that have been acquired to the cloud, which can increase the flexibility of the cloud to collect vehicle body signals, and only transmit valid signals, greatly reducing the occupied communication bandwidth and the amount of transmitted data, and improving the acquisition efficiency.
[0064] When the result of the fourth postfix expression does not meet the second preset condition, it indicates that the result of the fourth postfix expression is incorrect. At this time, continue to request the end value corresponding to the collected variable from the database until the result of the fourth postfix expression meets the second preset condition (the result of the fourth postfix expression is correct), and the vehicle ends the data collection task. The vehicle uploads the target values of the target variables that have been collected to the cloud.
[0065] As a specific embodiment, during the continuous parsing of the data collection instruction, when the end data collection instruction is parsed, at this time, the vehicle ends the data collection task, and the vehicle uploads the target values of the target variables that have been collected to the cloud. The cloud determines the operating state of the vehicle based on the uploaded target values of the target variables.
[0066] In some embodiments of the present invention, the above-mentioned method for processing vehicle data based on the cloud further includes: in response to starting to execute the data collection task, obtaining the historical value corresponding to the target variable according to the offline data symbol, and caching the historical value; determining the second postfix expression according to the historical value.
[0067] Specifically, when starting to execute the data collection task, obtain the historical value corresponding to the target variable according to the offline data symbol, and cache the historical value for subsequent uploading of the historical value of a certain signal of the vehicle. Then, the second postfix expression can be determined according to the cached historical value and the target value corresponding to the conditional collection variable.
[0068] In some embodiments, as follows:
[0069]
[0070]
[0071] It can be seen from this that the begainExpression included in the collection instruction is the start collection condition, that is to say, the start collection condition is an expression. Calculate whether this expression is correct. If it is correct, the start collection condition is met; if it is incorrect, the start collection condition is not met. The signals to be collected are two signals in the dataName field. Upload the Odometer and CellTemp signals to the cloud.
[0072] It should be noted that ((Temperature + 12.4) * WaterTemp) > 20 && {(VehSpd) > 100 || {(DoorStatus @ 1) == 1 && (DoorStatus) == 0}} is an exemplary second suffix expression provided by an embodiment of the present invention. Herein, "+", "*", ">", "&", "||", "==" are operators; "Temperature", "WaterTemp", "VehSpd", "DoorStatus" are conditional variable names; "@" is an offline data symbol, which can be understood as an operator indicating the operation of obtaining the historical value corresponding to the target variable. The offline data symbol usually refers to a data symbol with a certain delay in data processing.
[0073] Specifically, vin: Vehicle Identification Number, which is used to uniquely identify a vehicle.
[0074] remoteCode: Remote code, which is used to identify the code of this remote instruction.
[0075] startTime and endTime: These two fields are empty, indicating that there are no specific start and end time limits.
[0076] messageId: Message ID, which is used to identify this message.
[0077] remoteBody: It contains the specific content of the remote instruction.
[0078] requestId: Request ID, which is used to identify this specific request.
[0079] begintime and endTime: They specify the start and end times of data collection (represented by Unix timestamps).
[0080] collectDataType: It specifies the data type to be collected. The value here is 5, which refers to a specific data type code.
[0081] Period: The time interval for data collection. Here it is 5000 milliseconds, that is, 5 seconds.
[0082] transmissionMode: Transmission mode, which includes the mode and the maximum file size.
[0083] Mode: The code of the transmission mode. The value here is 1, which refers to a specific transmission mode.
[0084] maxFileSize: The maximum file size, which is null here, indicating no limit.
[0085] collectMode: The collection mode, including mode and condition.
[0086] Mode: The code of the collection mode, and the value here is 2, referring to a specific collection mode.
[0087] Condition: The expression containing start and end conditions.
[0088] beginExpression: The condition expression for starting to collect data.
[0089] endExpression: The condition expression for ending to collect data.
[0090] begintimeWindow and endTimeWindow: The start and end time windows, both of which are 10 here.
[0091] endNumber: The quantity at the end, which is -1 here, indicating no specific end quantity.
[0092] dataName: The list of data names to be collected, including "Odometer" (odometer) and "CellTemp" (battery temperature) here.
[0093] The variables in the condition expression represent the following meanings:
[0094] Temperature: Temperature
[0095] WaterTemp: Water temperature
[0096] VehSpd: Vehicle speed
[0097] DoorStatus@1: Door status, and @1 indicates the door status 1 second ago.
[0098] DoorStatus: Door status
[0099] According to the condition expression, data collection starts in the following situations:
[0100] When the specific calculation results of temperature and water temperature are greater than 20, and the vehicle speed exceeds 80, or the door status 1 second ago is 1 and the current door status is 0.
[0101] Data collection ends in the following situations:
[0102] When the vehicle speed exceeds 100.
[0103] Among them, this instruction is used in a vehicle monitoring system to collect the mileage and battery temperature data of a vehicle under specific conditions.
[0104] In some embodiments, different operators and operation rules can be defined in the cloud, and different custom operators can be included. The vehicle terminal performs corresponding parsing according to the operator definition and operation rule definition, which can improve the flexibility of the collected signals, only transmit valid signals, reduce the communication bandwidth and the amount of transmitted data, and do not require manual intervention, thus improving the communication stability.
[0105] As a specific embodiment, as Figure 2 shown, the flowchart of the method for processing vehicle data based on the cloud of the present invention may include the following steps:
[0106] S201, Parse the data acquisition instruction to obtain a first infix expression.
[0107] S202, Convert the first infix expression to obtain a first postfix expression.
[0108] S203, Extract the conditional variable name of the conditional acquisition variable in the first postfix expression.
[0109] S204, Request the target value corresponding to the conditional acquisition variable according to the conditional variable name.
[0110] S205, Replace the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression.
[0111] S206, Calculate the result of the second postfix expression.
[0112] S207, Determine whether the result is correct. If yes, execute step S208; if not, return to step S204.
[0113] S208, Start executing the data acquisition task to collect the target value of the target variable.
[0114] S209, Parse the data acquisition instruction to obtain a second infix expression.
[0115] S210, Convert the second infix expression to obtain a third postfix expression.
[0116] S211, Extract the end variable name of the end acquisition variable in the third postfix expression.
[0117] S212, Request the end value corresponding to the end acquisition variable according to the end variable name.
[0118] S213, Replace the end variable name in the third postfix expression with the end value to obtain a fourth postfix expression.
[0119] S214, calculate the result of the fourth postfix expression.
[0120] S215, determine whether the result is correct. If yes, execute step S216; if no, return to step S212.
[0121] S216, end the execution of the data acquisition task.
[0122] S217, upload the target value of the target variable to the cloud.
[0123] In summary, according to the method for processing vehicle data based on the cloud in the embodiments of the present invention, a data acquisition instruction sent by the cloud is received, and the data acquisition instruction is continuously parsed; in response to parsing the first infix expression, the first infix expression is converted into a first postfix expression, and the conditional variable name of the conditional acquisition variable in the first postfix expression is extracted; the target value corresponding to the conditional acquisition variable is requested according to the conditional variable name; the conditional variable name in the first postfix expression is replaced with the target value to obtain a second postfix expression; wherein, the second postfix expression represents a preset condition for starting to execute the data acquisition task; calculate the result of the second postfix expression, and determine whether the result is correct; in response to the result being correct, start to execute the data acquisition task and acquire the target value of the target variable. Thus, this method performs conditional acquisition by using the conditions described by expressions. After the cloud sends the acquisition conditions to the vehicle side, the vehicle side parses the acquisition conditions, and only starts to acquire and upload the signal to the cloud after meeting the conditions, improving the flexibility of the acquired signal, only transmitting valid signals, reducing the communication bandwidth and the amount of transmitted data, and not requiring manual intervention, thereby improving the communication stability.
[0124] It should be noted that the method in the embodiments of the present invention can be executed by a single device, such as a computer or a server. The method in this embodiment can also be applied to a distributed scenario and completed by the cooperation of multiple devices. In this case of a distributed scenario, one of the multiple devices can only execute one or more steps in the method in the embodiments of the present invention, and these multiple devices will interact with each other to complete the above method.
[0125] It should be noted that some embodiments of the present invention have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be executed in a different order from those in the above embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the specific order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0126] Corresponding to the above embodiments, the present invention further provides a processing device for vehicle data based on the cloud.
[0127] As Figure 3 shown, the processing device for vehicle data based on the cloud in the embodiments of the present invention may include: a receiving module 310, a parsing module 320, a requesting module 330, a replacing module 340, a calculating module 350, and a responding module 360.
[0128] Among them, the receiving module 310 is configured to receive a data collection instruction sent by the cloud and continuously parse the data collection instruction. The parsing module 320 is configured to, in response to parsing the first infix expression, convert the first infix expression into a first postfix expression and extract the conditional variable name of the conditional collection variable in the first postfix expression. The requesting module 330 is configured to request the target value corresponding to the conditional collection variable according to the conditional variable name. The replacing module 340 is configured to replace the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression, where the second postfix expression represents a preset condition for starting to execute the data collection task. The calculating module 350 is configured to calculate the result of the second postfix expression and determine whether the result is correct. The responding module 360 is configured to start executing the data collection task in response to the result being correct.
[0129] In some embodiments of the present invention, the parsing module 320 converts the first infix expression into a first postfix expression, specifically: parsing the data collection instruction to obtain the first infix expression; the first infix expression includes an operator and the conditional variable name of the conditional collection variable; the operator includes at least one of an arithmetic operator, an arithmetic operation rule, a logical operation rule, and a relational operation rule; the position of the operator in the first infix expression is between at least two conditional variable names; converting the first infix expression to obtain the first postfix expression; where the first postfix expression includes an operator and the conditional variable name of the conditional collection variable, and the position of the operator in the first postfix expression is after the position of the conditional variable name in the first postfix expression.
[0130] In some embodiments of the present invention, the operator further includes an offline data symbol, and the offline data symbol indicates obtaining the historical value corresponding to the target variable.
[0131] In some embodiments of the present invention, the parsing module 320 converts the first infix expression into a first postfix expression, specifically: constructing at least one empty stack; traversing each conditional variable name and operator of the first infix expression from left to right; sequentially filling the traversed conditional variable names into the empty stack; sequentially filling the traversed operators after all the conditional variable names in the empty stack to obtain the first postfix expression.
[0132] In some embodiments of the present invention, the calculation module 350 calculates the result of the second postfix expression, specifically for: constructing at least one calculation stack; traversing each target value and operator of the second postfix expression from left to right; during the traversal, filling the traversed target values into the calculation stack in the traversal order, and in response to traversing an operator, popping at least two target values at the end of the calculation stack; performing an operation on the traversed operator and at least two popped target values to obtain an operation result, filling the operation result into the calculation stack, and continuing the traversal until all elements of the second postfix expression are traversed to obtain the result of the second postfix expression.
[0133] In some embodiments of the present invention, the parsing module 320 is further configured to, after starting to execute the data acquisition task, continuously parse the data acquisition instruction; in response to parsing a second infix expression, convert the second infix expression into a third postfix expression, extract the end variable name of the end acquisition variable in the third postfix expression; request the end value corresponding to the end acquisition variable according to the end variable name; replace the end variable name in the third postfix expression with the end value to obtain a fourth postfix expression; where the fourth postfix expression represents a preset condition for ending the execution of the data acquisition task; calculate the result of the fourth postfix expression, and determine whether the result is correct; in response to the result being correct, end the execution of the data acquisition task.
[0134] In some embodiments of the present invention, the response module 360 is further configured to, in response to starting to execute the data acquisition task, obtain the historical value corresponding to the target variable according to the offline data symbol, cache the historical value; and determine the second postfix expression according to the historical value.
[0135] It should be noted that for the details not disclosed in the cloud-based vehicle data processing device according to the embodiments of the present invention, please refer to the details disclosed in the cloud-based vehicle data processing method according to the embodiments of the present invention, and will not be elaborated here.
[0136] In summary, according to the vehicle data processing device based on the cloud in the embodiments of the present invention, the receiving module receives the data collection instruction sent by the cloud and continuously parses the data collection instruction; the parsing module, in response to parsing the first infix expression, converts the first infix expression into a first postfix expression and extracts the conditional variable name of the conditional collection variable in the first postfix expression; the requesting module requests the target value corresponding to the conditional collection variable according to the conditional variable name; the replacement module replaces the conditional variable name in the first postfix expression with the target value to obtain a second postfix expression; wherein, the second postfix expression represents a preset condition for starting to execute the data collection task; the calculation module calculates the result of the second postfix expression and determines whether the result is correct; the response module, in response to the correct result, starts to execute the data collection task. Thus, this device performs conditional collection by using the conditions described by expressions. After the cloud sends the collection conditions to the vehicle terminal, the vehicle terminal parses the collection conditions, and only starts to collect and upload the signals to the cloud after meeting the conditions, improving the flexibility of the collected signals, only transmitting valid signals, reducing the communication bandwidth and the amount of transmitted data, and eliminating the need for manual intervention, thereby improving communication stability.
[0137] For the sake of convenience of description, when describing the above system, various modules are separately described according to their functions. Of course, when implementing the present invention, the functions of each module can be implemented in one or more software and / or hardware.
[0138] The system of the above embodiment is used to implement the corresponding method in any of the foregoing embodiments and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0139] Corresponding to the above embodiment, the present invention also proposes an electronic device.
[0140] Referring to Figure 4 , which is a block diagram of an electronic device according to some embodiments of the present invention, showing a more specific schematic diagram of the hardware structure of the electronic device provided in this embodiment. The device may include: a processor 410, a memory 420, an input / output interface 430, a communication interface 440, and a bus 450. Among them, the processor 410, the memory 420, the input / output interface 430, and the communication interface 440 are communicatively connected to each other inside the device through the bus 450.
[0141] The processor 410 may be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0142] The memory 420 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 420 can store the operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 420 and called and executed by the processor 410.
[0143] The input / output interface 430 is used to connect to the input / output module to achieve information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Among them, the input devices can include keyboards, mice, touchscreens, microphones, various sensors, etc., and the output devices can include displays, speakers, vibrators, indicator lights, etc.
[0144] The communication interface 440 is used to connect to the communication module (not shown in the figure) to achieve communication and interaction between this device and other devices. Among them, the communication module can achieve communication through wired means (such as USB, network cable, etc.) or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0145] The bus 450 includes a path for transmitting information between various components of the device (such as the processor 410, the memory 420, the input / output interface 430, and the communication interface 440).
[0146] It should be noted that although the above device only shows the processor 410, the memory 420, the input / output interface 430, the communication interface 440, and the bus 450, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device may also only include the components necessary to implement the solutions of the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0147] The electronic device in the above embodiments is used to implement the corresponding method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0148] Based on the same inventive concept, corresponding to the method in any of the above embodiments, the present invention also provides a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method in any of the foregoing embodiments.
[0149] The above non-transitory computer-readable storage medium may be any available medium or data storage device accessible by a computer, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROM, EPROM, EEPROM, non-volatile memories (NAND FLASH), solid state drives (SSD)), etc.
[0150] The computer instructions stored in the storage medium of the above embodiments are used to cause a computer to execute the method of any one of the embodiments in the above exemplary method part, and have the beneficial effects of the corresponding method embodiments, which will not be elaborated herein.
[0151] In addition, although the operations of the method of the present invention are described in a specific order in the drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. On the contrary, the steps depicted in the flowchart may be changed in the order of execution. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution.
[0152] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
[0153] It should be noted that unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present invention should be the ordinary meanings understood by those of ordinary skill in the field to which the present invention pertains. The "first", "second", and similar terms used in the embodiments of the present invention do not denote any order, quantity, or importance, but are only used to distinguish different components. The terms such as "including" or "comprising" mean that the elements or items appearing before the term cover the elements or items listed after the term and their equivalents, without excluding other elements or items. The terms such as "connected" or "coupled" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The terms such as "upper", "lower", "left", "right", etc. are only used to represent relative positional relationships, and when the absolute position of the object being described changes, the relative positional relationship may also change accordingly.
[0154] Although the spirit and principles of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the specific embodiments disclosed, and the division of each aspect does not mean that the features in these aspects cannot be combined for benefit. This division is only for convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the appended claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Claims
1. A cloud-based vehicle data processing method, characterized in that: include: Receiving data collection instructions sent by the cloud, and continuously parsing the data collection instructions; In response to parsing to a first infix expression, converting the first infix expression into a first postfix expression, and extracting a conditional variable name of a conditional acquisition variable in the first postfix expression; Requesting a target value corresponding to the conditional acquisition variable according to the conditional variable name; The conditional variable name in the first suffix expression is replaced with the target value to obtain a second suffix expression; wherein the second suffix expression represents the preset condition for starting to execute the data collection task; Calculate the result of the second postfix expression, and determine whether the result is correct; In response to the result being correct, a data collection task is started to collect target values of the target variables.
2. The cloud-based vehicle data processing method according to claim 1, characterized in that: The converting the first infix expression into a first postfix expression comprises: The data acquisition instruction is parsed to obtain the first infix expression; the first infix expression includes an operator and a condition variable name of the condition acquisition variable; the operator includes at least one of an operation symbol, an arithmetic operation rule, a logical operation rule, and a relational operation rule; the position of the operator in the first infix expression is between at least two of the condition variable names; The first infix expression is converted to obtain the first postfix expression; wherein the first postfix expression includes the operator and the conditional variable name of the conditional acquisition variable, and the position of the operator in the first postfix expression is located after the position of the conditional variable name in the first postfix expression.
3. The cloud-based vehicle data processing method according to claim 2, characterized in that: The operator further includes an offline data operator, and the offline data operator indicates obtaining a historical value corresponding to the target variable.
4. The cloud-based vehicle data processing method according to claim 3, characterized in that: The converting the first infix expression to obtain the first postfix expression includes: Construct at least one empty stack; Traverse each of the condition variable names and the operators of the first infix expression from left to right; Fill the traversed condition variable names into the empty stack in sequence; After the traversed operators are sequentially filled into all the conditional variable names in the empty stack, the first suffix expression is obtained.
5. The cloud-based vehicle data processing method according to claim 4, characterized in that: The result of calculating the second postfix expression includes: Build at least one computing stack; Traverse each target value and operator of the second postfix expression from left to right; During the traversal process, the traversed target values are filled into the calculation stack in the traversal order, and in response to the traversal to the operator, at least two target values at the end of the calculation stack are popped out; The traversed operator and the at least two popped target values are operated to obtain a result of the operation, and the result of the operation is filled into the calculation stack. The traversal is continued until all elements of the second postfix expression are traversed to obtain the result of the second postfix expression.
6. The cloud-based vehicle data processing method according to claim 1, characterized in that: After the data collection task is started, the method further includes: Continuously parsing the data collection instructions; In response to parsing to a second infix expression, converting the second infix expression into a third postfix expression, and extracting an end variable name of an end acquisition variable in the third postfix expression; Requesting the end value corresponding to the end acquisition variable according to the end variable name; The end variable name in the third suffix expression is replaced with the end value to obtain a fourth suffix expression; wherein the fourth suffix expression represents a preset condition for ending the execution of the data collection task; Calculate the result of the fourth suffix expression, and determine whether the result is correct; In response to the result being correct, the data collection task is terminated.
7. The cloud-based vehicle data processing method according to claim 3, characterized in that: Also includes: In response to starting to execute the data collection task, obtaining a historical value corresponding to the target variable according to the offline data symbol, and caching the historical value; The second suffix expression is determined according to the historical value.
8. A vehicle data processing device based on the cloud, characterized in that: include: A receiving module is configured to receive a data collection instruction sent by the cloud and continuously parse the data collection instruction; A parsing module, configured to, in response to parsing a first infix expression, convert the first infix expression into a first postfix expression, and extract a conditional variable name of a conditional acquisition variable in the first postfix expression; A request module, configured to request a target value corresponding to the conditional acquisition variable according to the conditional variable name; A replacement module is configured to replace the conditional variable name in the first suffix expression with the target value to obtain a second suffix expression; wherein the second suffix expression represents a preset condition for starting to execute the data acquisition task; A calculation module, configured to calculate a result of the second suffix expression and determine whether the result is correct; The response module is configured to start executing the data collection task in response to the result being correct.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory in communication with the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud-based vehicle data processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud-based vehicle data processing method according to any one of claims 1 to 7 when executed.