CN116225401A - Service application development method, device, system and storage medium - Google Patents

Service application development method, device, system and storage medium Download PDF

Info

Publication number
CN116225401A
CN116225401A CN202310177812.2A CN202310177812A CN116225401A CN 116225401 A CN116225401 A CN 116225401A CN 202310177812 A CN202310177812 A CN 202310177812A CN 116225401 A CN116225401 A CN 116225401A
Authority
CN
China
Prior art keywords
target
target data
key value
condition expression
lua
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310177812.2A
Other languages
Chinese (zh)
Inventor
何涛
曹斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Reach Automotive Technology Shenyang Co Ltd
Original Assignee
Neusoft Reach Automotive Technology Shenyang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neusoft Reach Automotive Technology Shenyang Co Ltd filed Critical Neusoft Reach Automotive Technology Shenyang Co Ltd
Priority to CN202310177812.2A priority Critical patent/CN116225401A/en
Publication of CN116225401A publication Critical patent/CN116225401A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method, a device, a system and a storage medium for developing service application, which are applied to the field of automobiles. The method comprises the following steps: and when the target message is received, storing target data corresponding to the target message into a preset whole vehicle state table. And then determining the triggering state of target data based on a pre-configured triggering condition expression by storing the target data in a pre-set whole vehicle state table. And when the triggering state of the target data is successful triggering, executing target operation configuration corresponding to the target data. Thus, the subsequent target operation is performed only if the logic condition expression satisfies the preset condition, and transmission overhead is reduced compared with the transmission of a plurality of applications through the communication framework. In addition, the embodiment of the application only needs to configure the conditional expression based on the whole vehicle state table, so that the development efficiency is improved, and the development cost is reduced.

Description

Service application development method, device, system and storage medium
Technical Field
The present invention relates to the field of vehicle service, and in particular, to a method, an apparatus, a system, and a storage medium for developing a service application.
Background
The in-vehicle service application refers to a series of service applications of system level embedded in the in-vehicle service system, such as in-vehicle air conditioner, multimedia application, etc. At present, in development of vehicle service applications, messages are often received and processed and calculated through a communication framework, and then sent to other applications through the communication framework.
When a message needs to be sent to multiple applications simultaneously through a communication framework, especially for cross-core communication, the transmission performance overhead is large. Wherein, the overhead refers to the proportion of the redundant data in the source data. Based on this, reducing the transmission performance overhead is a technical problem to be solved.
Disclosure of Invention
In view of this, the present application provides a method, apparatus, system and storage medium for developing service applications, which aims to reduce transmission performance overhead by providing a whole vehicle state table composed of an expandable trigger frame and a buffer table.
In a first aspect, the present application provides a method for developing a service application, where the method includes:
responding to receiving a target message, and storing target data corresponding to the target message into a preset whole vehicle state table;
determining the triggering state of the target data based on a pre-configured triggering condition expression by the target data stored in the pre-set whole vehicle state table; the pre-configured triggering condition expression is a condition expression configured based on the pre-set whole vehicle state table;
and when the triggering state of the target data is successful triggering, executing target operation configuration corresponding to the target data.
Optionally, the pre-configured trigger condition expression is a lua language-based logic condition expression; the logic condition expression consists of a key value anti-serialization object in the preset whole vehicle state table and an attribute of the key value anti-serialization object.
Optionally, determining the trigger state of the target message based on a pre-configured trigger condition expression includes:
initializing an lua executor, analyzing the pre-configured trigger condition expression, determining a key value list corresponding to target data and generating an expression character string to be executed in the lua executor; the key value list corresponding to the target data comprises at least one target key value; the expression character string to be executed is an expression character string comprising lua global variables;
traversing the key value list, and acquiring a value corresponding to the target key value from the preset vehicle state list; converting the value corresponding to the target key value into a serialized character string form;
and transmitting the serialized target key value in the form of the character string to a lua code through a lua global variable, and determining the triggering state of the target data by a lua function.
Said determining, by the lua function, a trigger state of said destination data, comprising:
traversing the target key value in the lua global variable, and inversely serializing the target key value to obtain an inversely serialized object of the target key value;
setting the target key value and the inverse sequence object of the target key value into the lua global variable;
and dynamically executing the expression character string to be executed containing the lua global variable, and determining the trigger state of the target data.
Optionally, the preconfigured trigger condition expression includes at least one of a data update trigger condition expression, a data timeout trigger condition expression, or a timer trigger condition expression.
Optionally, the executing the target operation configuration corresponding to the target data includes:
and selecting one of python, C++, or C language to execute the target operation configuration corresponding to the target data.
In a second aspect, the present application provides a device for developing a service application, the device comprising:
the response unit is used for responding to the received target message and storing target data corresponding to the target message into a preset whole vehicle state table;
the triggering unit is used for determining the triggering state of the target data based on a pre-configured triggering condition expression, wherein the target data is stored in the pre-set whole vehicle state table;
and the execution unit is used for executing the target operation configuration corresponding to the target data when the triggering state of the target data is successful.
Optionally, the pre-configured trigger condition is expressed as a logical condition expression based on lua language; the logic condition expression consists of a key value anti-serialization object in the preset whole vehicle state table and an attribute of the key value anti-serialization object.
In a third aspect, the present application provides a vehicle system comprising a development device of the service application as in the second aspect.
In a fourth aspect, the present application provides a computer storage medium having code stored therein, which when executed, causes an apparatus for executing the code to carry out the method of any one of the preceding aspects.
The application discloses a method, a device, a system and a storage medium for developing service applications. When the method is executed: and when the target message is received, storing target data corresponding to the target message into a preset whole vehicle state table. And then determining the triggering state of the target data based on a pre-configured triggering condition expression by storing the target data in a pre-set whole vehicle state table. And when the triggering state of the target data is successful triggering, executing target operation configuration corresponding to the target data. Therefore, the subsequent target operation is executed only if the logic condition expression meets the preset condition, and compared with a plurality of applications on the communication framework side, the transmission overhead is reduced. In addition, the embodiment of the application only needs to configure the conditional expression based on the whole vehicle state table, so that the development efficiency is improved, and the development cost is reduced.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of a cross-core communication method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a manner of performing cross-core communication based on a whole vehicle state table according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for developing a service application according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a development device for service application according to an embodiment of the present application.
Detailed Description
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
As described above, in development of the vehicle service application, the message is often received and processed through the communication framework, and then sent to other applications through the communication framework. When a message needs to be sent to multiple applications simultaneously through a communication framework, especially for cross-core communication, the transmission performance overhead is large.
As shown in fig. 1, a schematic diagram of a cross-core communication manner provided in this embodiment of the present application is that a service application pub (publishing end) of a core 2 sends out a target message AA0, and the target message is transmitted to three applications sub (subscribing ends) AA1, AA2 and AA3 of the core 1 through three sets of network communication Ethernet. I.e. multiple network transmissions are required to send one message to multiple applications.
Based on the above, the embodiment of the application provides a method for developing service application, and when a target message is received, target data corresponding to the target message is stored in a preset whole vehicle state table. And then determining the triggering state of the target data based on a pre-configured triggering condition expression by storing the target data in a pre-set whole vehicle state table. And when the triggering state of the target data is successful triggering, executing target operation configuration corresponding to the target data. Therefore, the subsequent target operation is executed only if the logic condition expression meets the preset condition, and the transmission overhead is reduced. In addition, the embodiment of the application only needs to configure the conditional expression based on the whole vehicle state table, so that the development efficiency is improved, and the development cost is reduced.
As shown in fig. 2, a schematic diagram of a manner of performing cross-core communication based on a whole vehicle state table according to an embodiment of the present application is provided. The service application pub (publishing end) of the core 2 sends out a target message AA0, and the target message AA0 is transmitted to the whole vehicle state table of the core 1sub (subscribing end) through one time Ethernet, wherein the whole vehicle state table comprises a message center and a shared memory, and one message is sent to 3 applications AA1, AA2 and AA3. In this way, only one network communication is required, and it is possible to implement one message to transmit a plurality of applications. In this way, transmission performance overhead is reduced.
In the development of the extended service, the embodiment of the application only needs to configure the conditional expression based on the whole vehicle state table to determine the triggering state of the target message. And when the triggering state of the target message is successful triggering, executing the target operation configuration corresponding to the target message. Compared with the configuration of service application by using an upper computer configuration tool and the writing of service application programs by using a C++ development language, the development efficiency is improved and the development cost is reduced.
The following describes the method for developing service application provided in the embodiment of the present application in detail and in full with reference to fig. 3 to 4.
Referring to fig. 3, a flowchart of a method for developing a service application according to an embodiment of the present application is provided, where the method is applied to a vehicle service application system. The method comprises the following steps:
s31: and in response to receiving the target message, storing target data corresponding to the target message into a preset whole vehicle state table.
Illustratively, the target message is an AA0 message in core 2 described in fig. 1 or fig. 2, and may be a trigger condition expression configured by a user.
The whole vehicle state table is a service application and is used for receiving the target message and storing target data corresponding to the target message into the shared memory, and simultaneously providing the target data for a plurality of applications through the shared memory.
Exemplary: as shown in fig. 2, the message center in the core 1 receives the target message AA1 sent by the core 2, stores the target data corresponding to the target message AA1 in the shared memory, and sends the target data to 3 applications through the shared memory.
The whole vehicle state table is also pre-configured with a trigger condition expression, and service application development is expanded through script configuration. Compared with the configuration tool of the upper computer, the configuration tool configures the service application, writes the service application program based on the C++ development language to receive and send the information, has high development efficiency and low development cost.
S32: and determining the triggering state of the target data based on a pre-configured triggering condition expression by the target data stored in a pre-set whole vehicle state table.
The trigger condition expression is used for judging whether to execute the sending of the target data corresponding to the target message to the application. In one possible manner, the pre-configured trigger condition expression is a lua language-based logic condition expression, wherein the logic condition expression is composed of a key value anti-sequence object and an attribute of the key value anti-sequence object in the whole vehicle state table.
Example 1: the trigger condition expression is "" condition ": { "expr": "return $ { topic1}. Speed >10" } ", where $ { topic1} is the anti-serialized object in the whole vehicle state table where key is the value corresponding to topic1, and $ { topic1}. Speed represents the speed attribute of the anti-serialized object where key is the value corresponding to topic1. The above-mentioned trigger condition expression is the value corresponding to topic1 and the speed >10 of the reverse-sequenced object, when the condition is True, the trigger state of the target data is determined to be successful.
Illustratively, the complete script of the pre-configured trigger condition expression is as follows:
Figure BDA0004102187950000061
Figure BDA0004102187950000071
specifically configuring a trigger mode trigger_mode, triggering a key value trigger_key, and enabling a trigger condition to represent conditions and executing action actions. In this example, python closing indicates that a door locking application is implemented using python.
In one possible implementation, the pre-configured target trigger condition expression includes at least one of a data update trigger condition expression, a data timeout trigger condition expression, or a timer trigger condition expression.
It can be understood that, the pre-configured target trigger condition expression may be any one of the trigger condition expressions, or may be two or three trigger condition expressions formed by combining.
Example 2: the following is a configuration of a trigger condition expression formed based on a combination of a data update datachange trigger condition expression, a data timeout datatimeout trigger condition expression, and a timer trigger condition expression.
Figure BDA0004102187950000072
/>
Figure BDA0004102187950000081
Wherein, $ { topic1}, name = 'AB' and $ { topic1}, age <60, name of the reverse-sequenced object whose value corresponds to key topic1 is AB, and age is less than 60.
Based on the trigger condition expression of the data update datachange and the trigger condition expression of the data overtime datatimeout, the trigger source of the trigger is different from the trigger source of the timer trigger condition expression, the principle of the checking and executing process of the trigger is the same, namely the logic condition expression is judged, and when the logic condition expression returns to True, the action script action is executed.
In one possible implementation, the trigger condition expression of the pre-configured trigger includes at least one of a data update trigger condition expression, a data timeout trigger condition expression, or a timer trigger condition expression.
When the data is changed, determining a pre-configured target trigger condition expression as a data update trigger condition expression.
Exemplary: for example 2, when the data changes and the key value of interest changes, "trigger_mode": "datachange", "trigger_key": the preconfigured target trigger condition expression is determined as "condition" { "expr": "return $ { topic1}, name = 'AB' and $ { topic1}, age <60" }.
When the data is overtime, determining that the pre-configured target trigger condition expression is a data overtime trigger condition expression.
Exemplary: for example 2, when the data times out and the key value of interest changes, i.e. "trigger_mode": "datatimeout", "trigger": the preconfigured target trigger condition expression is determined as "condition" { "expr": "return $ { topic1}, name = 'AB' and $ { topic1}, age <60" }.
When the timer occurs, the pre-configured target trigger condition expression is determined to be the timer trigger condition expression.
Exemplary: for example 2, when the timer triggers and the time triggers the interval time, "trigger_mode": "timer", "interval" to "30s", the pre-configured target trigger condition expression is determined to be "condition": { "expr": "return $ { topic1}, name = 'AB' and $ { topic1}, age <60" }.
In one possible implementation manner, for the above pre-configured target Trigger condition expression, a Parse function provided by TriggerConf may be used to Parse to form a plurality of Trigger objects. The 1 Trigger object comprises a Condition and 1 action, and an Exec method is provided for executing the Trigger object, and the specific execution mode is as follows: the BooeExpression function of the condition is executed first to return True, and then the action is executed.
The following describes in detail the determination of the trigger state of a target message based on a target trigger condition expression, in conjunction with specific embodiments.
An initialization stage: initializing the lua executor, analyzing a pre-configured trigger condition expression, determining a key value list corresponding to target data, and generating an expression character string to be executed in the lua executor. Wherein the list of key values comprises at least one target key value and the expression string to be executed comprises an expression string of the lua global variable.
Exemplary description: assuming that the pre-configured trigger condition expression is return $ { topic1}. Speed >30, the target key value topic1 is resolved. The lua executor is initialized, i.e. subsequent operations are performed using the luaexeuter class. The expression string to be executed in the lua executor is generated as return g_ kvt { 'topic1' }.speed >30. Where g_ kvt is the lua global variable, and includes a key value key and an anti-serialization object of a value corresponding to the key value. Wherein the deserialized object includes an attribute, such as a speed attribute.
The execution stage: c++ based execution, specifically including: traversing the key value list acquired in the initialization stage, acquiring a value corresponding to the target key value and converting the value into a serialized character string form. And transmitting the target key value in the form of the serialized character string to the lua code through the lua global variable, and determining the triggering state of the target data by the lua function.
Such as: and calling the IsExprTrue function of lua to process the target key value in the serialized character string form, and acquiring the triggering state of the target data.
Determining the trigger state of the target data by the lua function specifically comprises:
traversing the target key value in the lua global variable, and inversely serializing the target key value to obtain an inversely serialized object of the target key value. And setting the target key value and the anti-serialization object of the target key value into the lua global variable, dynamically executing the expression character string to be executed containing the lua global variable, and determining the triggering state of the target data.
Exemplary: traversing the serialization lua global variable, and acquiring a data type character string corresponding to the target key value key from a pre-generated key_value type_table table. The key_value_table table is used for storing key values and data type character strings corresponding to key value attributes, and is a table generated and stored by a tool in the whole vehicle state table construction stage. The specific manner of construction is not particularly limited in the embodiments of the present application.
And calling a decode function provided by luaproto, wherein a value corresponding to the deserialized key is used as an attribute of the deserialized object. The key and the anti-serialization object for the key are set into g_ kvt. And dynamically executing the execution expression of the lua global variable through load (exp) (), and returning the bool value of the execution result. When the bool value is True, the trigger state is determined to be successful in triggering. Otherwise, the triggering fails.
And when the triggering is successful, namely the condition check is passed, executing action script action. The action is an execution command in the sub-thread, and can select the voice development of python and the like, and also select the languages of C++, C and the like according to the needs of a user. And the data type definition file, the whole vehicle state table and the communication API used in the development process all provide the API interfaces of the corresponding languages. The development method is various and flexible by developing the extension service in a script mode.
The embodiment of the application provides a method for developing service application. First, when a target message is received, the target message is stored in a preset whole vehicle state table. And then determining the triggering state of the target message based on a pre-configured triggering condition expression by storing the target message in a pre-set whole vehicle state table. And when the triggering state of the target message is successful triggering, executing the target operation configuration corresponding to the target message. Therefore, the subsequent communication operation is executed only if the logic condition expression meets the preset condition, and the transmission overhead is reduced. In addition, the embodiment of the application only needs to configure the conditional expression based on the whole vehicle state table, so that the development efficiency is improved, and the development cost is reduced.
In addition, the embodiment of the application also provides a device for developing the service application.
Referring to fig. 4, a schematic structural diagram of a development device 400 for a service application according to an embodiment of the present application is provided. The apparatus 400 includes:
a response unit 401, configured to store, in response to receiving the target message, target data corresponding to the target message into a preset whole vehicle state table;
the triggering unit 402 is configured to determine a triggering state of target data based on a pre-configured triggering condition expression, where the target data is stored in a pre-set whole vehicle state table;
and the execution unit 403 is configured to execute the target operation configuration corresponding to the target data when the trigger state of the target data is that the trigger is successful.
Optionally, the pre-configured trigger condition expression is a lua language-based logic condition expression; the logic condition expression consists of the attribute of the key value anti-serialization object in the whole vehicle state table.
Optionally, the apparatus 400 further includes:
a determining unit, configured to determine a pre-configured target trigger condition expression according to a condition execution result;
the triggering unit 402 is specifically configured to:
initializing the lua executor, analyzing a pre-configured trigger condition expression, determining a key value list corresponding to target data and generating an expression character string to be executed in the lua executor; the key value list corresponding to the target data comprises at least one target key value; the expression character string to be executed is an expression character string comprising lua global variables;
traversing the key value list, and acquiring a value corresponding to a target key value from a preset vehicle state list; converting the value corresponding to the target key value into a serialized character string form;
and transmitting the target key value in the form of the serialized character string to the lua code through the serialized lua global variable, and determining the trigger state of the target data by the lua function.
Optionally, traversing the target key value in the lua global variable, and inversely serializing the target key value to obtain an inversely serialized object of the target key value;
setting a target key value and an inverse sequence object of the target key value into the lua global variable;
and dynamically executing the expression character string to be executed of the lua global variable, and determining the trigger state of the target data.
Optionally, the pre-configured trigger condition expression includes at least one of a data update trigger condition expression, a data timeout trigger condition expression, or a timer trigger condition expression.
Optionally, executing the target operation configuration corresponding to the target data includes:
and selecting one of python, C++, and C language to execute the target operation configuration corresponding to the target data.
The embodiment of the application provides a device for developing service application. And the response unit 401 stores the target message into a preset whole vehicle state table when receiving the target message. The triggering unit 402 then determines the triggering state of the target message based on the pre-configured triggering condition expression by storing the target message in the pre-set whole vehicle state table. And the execution unit 403 executes the target operation configuration corresponding to the target message when the trigger state of the target message is that the trigger is successful. Therefore, the subsequent communication operation is executed only if the logic condition expression meets the preset condition, and the transmission overhead is reduced. In addition, the embodiment of the application only needs to configure the conditional expression based on the whole vehicle state table, so that the development efficiency is improved, and the development cost is reduced.
The embodiment of the application also provides a vehicle system, which comprises the development device of the service application.
The embodiment of the application also provides corresponding equipment and a computer readable storage medium, which are used for realizing the scheme provided by the embodiment of the application.
The device comprises a memory and a processor, wherein the memory is used for storing instructions or codes, and the processor is used for executing the instructions or codes to enable the device to execute the development method of the service application.
In practical applications, the computer-readable storage medium may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of developing a service application, the method comprising:
responding to receiving a target message, and storing target data corresponding to the target message into a preset whole vehicle state table;
determining the triggering state of the target data based on a pre-configured triggering condition expression by the target data stored in the pre-set whole vehicle state table; the pre-configured triggering condition expression is a condition expression configured based on the pre-set whole vehicle state table;
and when the triggering state of the target data is successful triggering, executing target operation configuration corresponding to the target data.
2. The method of claim 1, wherein the pre-configured trigger condition expression is a lua language-based logic condition expression; the logic condition expression consists of a key value anti-serialization object in the preset whole vehicle state table and an attribute of the key value anti-serialization object.
3. The method of claim 2, wherein the determining the trigger state of the target data based on the pre-configured trigger condition expression comprises:
initializing an lua executor, analyzing the pre-configured trigger condition expression, determining a key value list corresponding to target data and generating an expression character string to be executed in the lua executor; the key value list corresponding to the target data comprises at least one target key value; the expression character string to be executed is an expression character string comprising lua global variables;
traversing the key value list, and acquiring a value corresponding to the target key value from the preset vehicle state list; converting the value corresponding to the target key value into a serialized character string form;
and transmitting the target key value in the form of the serialized character string to a lua code through a lua global variable, and determining the trigger state of the target data by a lua function.
4. A method according to claim 3, wherein said determining the trigger state of the destination data by the lua function comprises:
traversing the target key value in the lua global variable, and inversely serializing the target key value to obtain an inversely serialized object of the target key value;
setting the target key value and the inverse sequence object of the target key value into the lua global variable;
and dynamically executing the expression character string to be executed of the lua global variable, and determining the trigger state of the target data.
5. The method of claim 1, wherein the pre-configured trigger condition expression comprises at least one of a data update trigger condition expression, a data timeout trigger condition expression, or a timer trigger condition expression.
6. The method of claim 1, wherein the performing the target operational configuration corresponding to the target data comprises:
and selecting one of python, C++, or C language to execute the target operation configuration corresponding to the target data.
7. A device for developing a service application, the device comprising:
the response unit is used for responding to the received target message and storing target data corresponding to the target message into a preset whole vehicle state table;
the triggering unit is used for determining the triggering state of the target data based on a pre-configured triggering condition expression, wherein the target data is stored in the pre-set whole vehicle state table;
and the execution unit is used for executing the target operation configuration corresponding to the target data when the triggering state of the target data is successful.
8. The apparatus of claim 7, wherein the pre-configured trigger condition expression is a lua language-based logic condition expression; the logic condition expression consists of a key value anti-serialization object in the preset whole vehicle state table and an attribute of the key value anti-serialization object.
9. A vehicle system comprising a development device of the service application of any one of claims 7 or 8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon code which, when run, performs the steps of the method according to any of claims 1-6.
CN202310177812.2A 2023-02-28 2023-02-28 Service application development method, device, system and storage medium Pending CN116225401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310177812.2A CN116225401A (en) 2023-02-28 2023-02-28 Service application development method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310177812.2A CN116225401A (en) 2023-02-28 2023-02-28 Service application development method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN116225401A true CN116225401A (en) 2023-06-06

Family

ID=86578296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310177812.2A Pending CN116225401A (en) 2023-02-28 2023-02-28 Service application development method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN116225401A (en)

Similar Documents

Publication Publication Date Title
US8626786B2 (en) Dynamic language checking
US8458672B2 (en) Facilitating the utilization of complex data objects
US20120159439A1 (en) Using appropriate level of code to be executed in runtime environment using metadata describing versions of resources being used by code
CN110191021B (en) Protocol testing method and device, electronic equipment and storage medium
CN109669787B (en) Data transmission method and device, storage medium and electronic equipment
US11934287B2 (en) Method, electronic device and computer program product for processing data
CN112463256A (en) Method, system, electronic device and storage medium for determining configuration file
CN110888862A (en) Data storage method, data query method, data storage device, data query device, server and storage medium
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
US20070180531A1 (en) Analyzing interpretable code for harm potential
CN113448756A (en) Inter-process communication system and method and computing device
US7818726B2 (en) Script-based object adaptation
CN110457132A (en) A kind of creation method of functional object, device and terminal device
CN116225401A (en) Service application development method, device, system and storage medium
US9811335B1 (en) Assigning operational codes to lists of values of control signals selected from a processor design based on end-user software
CN113141407B (en) Page resource loading method and device and electronic equipment
CN113326172B (en) Operation and maintenance knowledge processing method, device and equipment
CN109725944A (en) Remote procedure calling (PRC) method and device, electronic equipment, storage medium
CN113849449A (en) Communication system and information interaction method, device and medium
CN110929186B (en) Client, information display method, electronic device and medium
CN112689199A (en) Method and device for loading plug-in of television homepage, television and storage medium
CN109918209B (en) Method and equipment for communication between threads
CN113553040B (en) Registration realization method, device, equipment and medium for visible and spoken identification function
CN113596118B (en) Communication method and device for bridging two isolated network domains and electronic equipment
CN113495794B (en) Module bridging method and device for Android system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination