CN113282388B - A method for globally regulating business logic based on a logic matrix table and a vehicle-mounted system - Google Patents
A method for globally regulating business logic based on a logic matrix table and a vehicle-mounted system Download PDFInfo
- Publication number
- CN113282388B CN113282388B CN202110454162.2A CN202110454162A CN113282388B CN 113282388 B CN113282388 B CN 113282388B CN 202110454162 A CN202110454162 A CN 202110454162A CN 113282388 B CN113282388 B CN 113282388B
- Authority
- CN
- China
- Prior art keywords
- logic
- instruction
- matrix table
- logic matrix
- vehicle
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to a method for globally regulating and controlling business logic based on a logic matrix table and a vehicle-mounted system, which are applied to the vehicle-mounted system provided with the logic matrix table, wherein the vehicle-mounted system executes a current instruction; judging whether the priority of the regulating instruction is greater than the priority of the current instruction according to the logic matrix table, if so, acquiring the instruction code through the logic matrix table, regulating and controlling the vehicle-mounted system according to the instruction code, and otherwise, regulating and controlling according to the priority sequence. The application has the beneficial effects that the application introduces a configurable logic matrix and can globally regulate and control the realization method of business logic, and the logic method can coordinate and cooperate the priorities of the module interfaces of the whole application project, and has the functional effects of logic memory and logic return.
Description
Technical Field
The application relates to the technical field of automobile electronics, in particular to a method for globally regulating and controlling business logic based on a logic matrix table and a vehicle-mounted system.
Background
In an automobile entertainment system or a multifunctional module interaction system, a request method for each module to switch to a foreground display is generally judged by a fixed priority (if the priority is high, the request method is allowed to switch to the foreground), the strategy causes request logic to be more dispersed, and meanwhile, each module is associated with other modules, so that logic maintenance and interaction complexity is high.
Disclosure of Invention
The application provides a method for globally regulating and controlling business logic based on a logic matrix table and a vehicle-mounted system, which aims to solve the problems that in the prior art, the strategy causes decentralized comparison of request logic, each module is associated with other modules, and the logic maintenance and interaction complexity are high.
The method for globally regulating and controlling service logic based on the logic matrix table is characterized by being applied to a vehicle-mounted system provided with the logic matrix table, wherein the vehicle-mounted system executes a current instruction, and the method comprises the following steps:
acquiring an adjusting instruction;
Judging whether the priority of the regulating instruction is greater than the priority of the current instruction according to the logic matrix table;
if yes, acquiring the instruction codes through a logic matrix table, and regulating and controlling the vehicle-mounted system according to the instruction codes;
otherwise, regulating and controlling according to the priority order.
Optionally, the logic matrix table is preset in the vehicle-mounted system, and the logic matrix table includes a two-dimensional array with a row as the adjustment instruction and a column as the current instruction.
Optionally, the instruction code is obtained by querying the rows and columns of the logic matrix table for the adjustment instruction, the current instruction,
The instruction code is a 4-bit field and comprises a processing action, a recovery mode and a switching mode.
Optionally, the processing actions include any one or more of foreground switching, clearing recovery list, re-adding to recovery list front end, background switching, not clearing recovery list, not re-adding to recovery list front end, not switching foreground.
Optionally, the recovery mode and the switching mode include any one of an APP transfer mode, an APP switching to a Home/main interface mode, and an interface before exiting the background.
Optionally, the determining, according to the logic matrix table, whether the priority of the adjustment instruction is greater than the priority of the current instruction includes:
And judging the priority of the regulating instruction according to whether the processing action is foreground switching or background switching or not.
Optionally, after the acquiring the adjustment instruction, before the determining, according to the logic matrix table, whether the priority of the adjustment instruction is greater than the priority of the current instruction, the method further includes:
Judging whether the current state of the vehicle-mounted system is an idle state or a foreground state;
If yes, continuing to execute the control instruction according to the logic matrix table, and judging whether the priority of the control instruction is greater than the priority of the current instruction;
Otherwise, not processing;
the current state comprises a stop state, an idle state, a waiting state, a history state and a foreground state.
Optionally, the adjusting the vehicle-mounted system according to the instruction code includes:
And performing vehicle-mounted system regulation and control by executing the processing action.
Optionally, the adjusting and controlling according to the priority order includes:
and if the priority of the regulating instruction is smaller than or equal to the priority of the current instruction, executing the current instruction first, and executing the regulating instruction after the current instruction is executed.
Optionally, the acquisition adjustment instruction comprises acquisition through APP communication input or acquisition through vehicle-mounted hardware equipment.
In addition, the application also discloses a vehicle-mounted system, which comprises the method for globally regulating and controlling the business logic based on the logic matrix table, a storage module, a logic matrix analysis module and a logic processing module;
The storage module is used for storing the logic matrix table;
the logic matrix analysis module is used for receiving the adjusting instruction and the current instruction, inquiring an instruction code by calling the logic matrix table, and judging the priority of the adjusting instruction;
and the logic processing module is used for regulating and controlling the vehicle-mounted system according to the instruction code.
Compared with the prior art, the method has the beneficial effects that in an automobile entertainment system or a multifunctional module interaction system, the method introduces a configurable logic matrix, and the method can globally regulate and control the realization method of business logic, and the logic method can coordinate and cooperate the priorities of the module interfaces of the whole application project, and has the functional effects of logic memory and logic return. The realization method highly controls the switching logic of the module interface of the whole project from the global angle, so that the logic module can be configured, and meanwhile, the correctness of the logic can be checked and verified through the logic matrix, thereby contributing to the early detection of the correctness of the logic in the early implementation stage of the regulating instruction.
Drawings
FIG. 1 is a flow chart of an embodiment of the present application.
Detailed Description
The application is further described below in connection with the following detailed description.
In the description of the present application, it should be understood that, if the terms "upper", "lower", "left", "right", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, they are merely used to facilitate description of the present application and simplify the description, and do not indicate or imply that the devices or elements being referred to must have a specific orientation, be configured and operated in a specific orientation, so that the terms describing the positional relationships in the drawings are merely for illustration, and are not to be construed as limiting of the present patent.
Furthermore, the terms "first," "second," and the like, if any, are used for descriptive purposes only and are primarily for distinguishing between different devices, elements, or components (the particular categories and configurations may be the same or different) and are not intended to indicate or imply relative importance or quantity of the devices, elements, or components indicated, but are not to be construed as indicating or implying relative importance.
In the embodiment shown in fig. 1, the application provides a method for globally regulating and controlling service logic based on a logic matrix table, which is characterized in that the method is applied to a vehicle-mounted system provided with the logic matrix table, and the vehicle-mounted system executes current instructions, and the method comprises the following steps:
100, acquiring an adjusting instruction, and acquiring through APP communication input or vehicle-mounted hardware equipment in step 100. The APP can be an APP capable of communicating with the vehicle-mounted system, and the signal of the adjusting instruction is obtained through a remote APP. The in-vehicle hardware device may be a key trigger or the like.
In step 200, whether the priority of the regulating instruction is greater than the priority of the current instruction is judged according to the logic matrix table, including judging whether the priority of the regulating instruction is foreground switching or background switching or not according to whether the processing action is foreground switching or not.
And 300, if so, acquiring an instruction code through the logic matrix table and regulating the vehicle-mounted system according to the instruction code, wherein in step 300, the instruction code is acquired through the regulation instruction and the current instruction, and the vehicle-mounted system is regulated according to the instruction code, including the regulation and the control of the vehicle-mounted system through executing the processing action.
400, Otherwise, regulating and controlling according to the priority order. In step 400, the control is performed according to the priority order, including executing the current instruction if the priority of the control instruction is less than or equal to the priority of the current instruction, and executing the control instruction after waiting for the execution of the current instruction.
The application introduces a configurable logic matrix into an automobile entertainment system or a multifunctional module interaction system, and can globally regulate and control the realization method of business logic, the logic method can coordinate and cooperate the priorities of the module interfaces of the whole application project, and has the functional effects of logic memory and logic return. The realization method highly controls the switching logic of the module interface of the whole project from the global angle, so that the logic module can be configured, and meanwhile, the correctness of the logic can be checked and verified through the logic matrix, thereby contributing to the early detection of the correctness of the logic in the early implementation stage of the regulating instruction.
The application defines the adjusting instruction and the current instruction, specifically, the request types of the adjusting instruction and the current instruction can include any one of the following tables:
TABLE 1
In some embodiments, the logic matrix table is preset in the vehicle-mounted system, and the logic matrix table includes a two-dimensional array of adjustment instructions in rows and current instructions in columns. In this embodiment, the logic matrix table may be defined according to the adjustment instruction, the current instruction, specifically table 2 as follows:
TABLE 2
With reference to the above table, the adjustment instruction is a row, the current instruction is a column, an operation scene can be formed, and the next execution action and recovery action of the app can be determined.
In one embodiment of the foregoing embodiments, the instruction code is obtained by adjusting the row and column of the instruction, current instruction query logic matrix table, where the instruction code is a 4-bit field, and the instruction code includes a processing action, a recovery mode, and a switching mode. Referring to Table 2, the values of the instruction code are defined, and the execution action value of the instruction code is 0x0321,03 is the processing action, 2 is the recovery mode, and 1 is the switching mode.
In some embodiments, the processing actions include any one or more of a foreground switch, clearing a recovery list, re-adding to a recovery list front end, a background switch, not clearing a recovery list, not re-adding to a recovery list front end, not switching a foreground. Based on the adjustment instructions, 12 processing actions can be defined, see table 3 below.
TABLE 3 Table 3
In some embodiments, the recovery mode and the switch mode each include any of an APP transfer mode, an APP switch to Home/main interface mode, and an interface before exiting the background.
Referring to Table 4, the third bit of the instruction code may represent a recovery mode, the fourth bit may represent a switch mode, and the first bit is a processing action. In table 5, the recovery mode and the switching mode include instructions such as a mode of APP transfer, APP switching to Home/main interface mode, and keeping the state before exiting the background.
| NO. | bit | Meaning of | Resolution |
| 1 | [4:1] | Switching mode | Processing mode delivered to requesting app |
| 2 | [8:5] | Recovery mode | For resuming app use (ResumeLastApp) |
| 3 | [16:9] | Processing actions | 12 Kinds of processing action actions |
TABLE 4 Table 4
| NO. | Mode type definition | Mode value | Resolution |
| 1 | DEFAULT_MODE | 0x00 | Mode of APP delivery |
| 2 | HOME_MODE | 0x01 | APP is switched to Home/main interface mode |
| 3 | HOLD_MODE | 0x02 | Maintaining exit from the background pre-interface |
TABLE 5
In some embodiments, determining whether the priority of the adjustment instruction is greater than the priority of the current instruction based on the logic matrix table includes determining the priority of the adjustment instruction based on whether the processing action is a foreground switch or a background switch or a non-switching foreground. In the application, the corresponding processing action can be known by reading the first binary number value according to the instruction code, so as to judge whether the priority of the regulating instruction is greater than the priority of the current instruction.
In some embodiments, after the adjustment instruction is acquired, before judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table, the method further comprises judging whether the current state of the vehicle-mounted system is an idle state or a foreground state, if so, continuing to execute the method for judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table, and if not, performing no processing, wherein the current state comprises a stop state, an idle state, a waiting state, a history state and a foreground state. Referring to table 6, the present application defines the current state of the vehicle-mounted system, and performs the next operation according to determining whether the current state of the vehicle-mounted system is the idle state or the foreground state.
TABLE 6
In some embodiments, regulating the in-vehicle system according to the command code includes regulating the in-vehicle system by performing a processing action. In an automobile entertainment system or a multifunctional module interaction system, the switching types of the project APP are summarized, each switching type is a specific operation action, and a switching scene is formed from the current operation to the next operation. Determining the execution of actions for each scene forms a so-called configurable two-dimensional matrix to manage the logical switching of each module.
In addition, the application also discloses a vehicle-mounted system, which comprises the method for globally regulating and controlling the business logic based on the logic matrix table, a storage module, a logic matrix analysis module and a logic processing module;
the storage module is used for storing the logic matrix table;
The logic matrix analysis module is used for receiving the adjusting instruction and the current instruction, inquiring the instruction code by calling the logic matrix table, and judging the priority of the adjusting instruction;
And the logic processing module is used for regulating and controlling the vehicle-mounted system according to the instruction codes.
In this embodiment, the logic matrix parsing module requests, through the request interface, the respective switching requirement logic processing module to process the request instruction of each module, and determines and makes the current processing to execute the switching action and the recovery action to be saved.
In an automobile entertainment system or a multifunctional module interaction system, the application introduces a configurable logic matrix, and can globally regulate and control the realization method of business logic, the logic method can coordinate and cooperate the priorities of the module interfaces of the whole application project, and has the functional effects of logic memory and logic return. The realization method highly controls the switching logic of the module interface of the whole project from the global angle, so that the logic module can be configured, and meanwhile, the correctness of the logic can be checked and verified through the logic matrix, thereby contributing to the early detection of the correctness of the logic in the early implementation stage of the regulating instruction.
It is to be understood that the above examples of the present application are provided by way of illustration only and not by way of limitation of the embodiments of the present application. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are desired to be protected by the following claims.
Claims (7)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110454162.2A CN113282388B (en) | 2021-04-26 | 2021-04-26 | A method for globally regulating business logic based on a logic matrix table and a vehicle-mounted system |
| PCT/CN2021/102241 WO2022227254A1 (en) | 2021-04-26 | 2021-06-25 | Method for globally regulating service logic based on logical matrix table, and vehicle-mounted system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110454162.2A CN113282388B (en) | 2021-04-26 | 2021-04-26 | A method for globally regulating business logic based on a logic matrix table and a vehicle-mounted system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113282388A CN113282388A (en) | 2021-08-20 |
| CN113282388B true CN113282388B (en) | 2025-02-14 |
Family
ID=77275739
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110454162.2A Active CN113282388B (en) | 2021-04-26 | 2021-04-26 | A method for globally regulating business logic based on a logic matrix table and a vehicle-mounted system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113282388B (en) |
| WO (1) | WO2022227254A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116841686B (en) * | 2023-08-29 | 2024-05-31 | 荣耀终端有限公司 | Application page display method |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112130971A (en) * | 2020-08-17 | 2020-12-25 | 惠州市德赛西威汽车电子股份有限公司 | A task switching method and radio based on radio logic interrupt table |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7774585B2 (en) * | 2003-11-12 | 2010-08-10 | Infineon Technologies Ag | Interrupt and trap handling in an embedded multi-thread processor to avoid priority inversion and maintain real-time operation |
| US7363409B2 (en) * | 2006-02-08 | 2008-04-22 | Texas Instruments Incorporated | Interrupt control system and method for reducing interrupt latency |
| CN105446715A (en) * | 2014-08-18 | 2016-03-30 | 惠州市德赛西威汽车电子股份有限公司 | Method for managing interface switching logic |
| CN108829469B (en) * | 2018-04-18 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Application page display method and device |
| CN111338766B (en) * | 2020-03-12 | 2022-10-25 | 腾讯科技(深圳)有限公司 | Transaction processing method, apparatus, computer equipment and storage medium |
-
2021
- 2021-04-26 CN CN202110454162.2A patent/CN113282388B/en active Active
- 2021-06-25 WO PCT/CN2021/102241 patent/WO2022227254A1/en not_active Ceased
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112130971A (en) * | 2020-08-17 | 2020-12-25 | 惠州市德赛西威汽车电子股份有限公司 | A task switching method and radio based on radio logic interrupt table |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113282388A (en) | 2021-08-20 |
| WO2022227254A1 (en) | 2022-11-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20090177899A1 (en) | Multi-regulator power supply chip with common control bus | |
| CN108597143A (en) | Vehicle access method, mechanical garage management system and storage medium | |
| US20030163680A1 (en) | Remote boot system for multiple client terminals and method thereof | |
| CN113282388B (en) | A method for globally regulating business logic based on a logic matrix table and a vehicle-mounted system | |
| CN104123252A (en) | Multi-channel direct memory access controller and control method thereof | |
| US20070021847A1 (en) | Distributed control system | |
| CN111190610B (en) | Vehicle-mounted system | |
| CN110633094B (en) | Remote upgrading method for power terminal, main station and power system | |
| US8274972B2 (en) | Communication system with switchable connection | |
| CN112463420B (en) | Information scheduling method of car machine desktop system and electronic equipment | |
| US10841860B2 (en) | Control device, communication relay device, communication system and communication control method | |
| US12112206B2 (en) | Control device for controlling multiple applications based on priority-based message encryption arbitration | |
| CN111190927A (en) | SQL query command processing method, device, equipment and readable storage medium | |
| US20180176831A1 (en) | Access control method and apparatus for service in broadband cluster system, and cluster terminal | |
| US20040117049A1 (en) | Method and assembly for operating and/or observing a device that monitors an industrial controller | |
| CN105120083B (en) | The control method and device that input equipment is registered in input processing example | |
| CN112051973A (en) | Vehicle-mounted information entertainment system and multi-screen linkage method | |
| US6732362B1 (en) | Object-oriented exchange managing system and exchange resources installing method | |
| US20060142902A1 (en) | Method for the informative assistance of a vehicle driver by means of an on-board multimedia system | |
| CN107809323B (en) | Resource control method, device and system | |
| US11184190B2 (en) | Communication method automatically incrementing IDs of ICs having daisy chain connection structure, and IC communication device performing the method | |
| CN117215958B (en) | Vehicle-mounted application separation design software and test method thereof | |
| CN113507645A (en) | Video preview method, device, equipment and computer readable storage medium | |
| CN108172010A (en) | Vehicles management method, system and storage medium | |
| US20130137481A1 (en) | Apparatus and method for controlling sim card in wireless terminal |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |