A method for globally regulating business logic based on a logic matrix table and a vehicle-mounted system

By adopting a global regulation business logic method based on logic matrix tables in automotive entertainment systems or multifunction module interactive systems, the problem of logical dispersion and high complexity of requests is solved, and priority coordination and logical memory of the overall application project module interface are realized. Function.

CN113282388BActive Publication Date: 2025-02-14HUIZHOU DESAY SV AUTOMOTIVE
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110454162.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-26
Publication Date
2025-02-14
Estimated Expiration
2041-04-26

AI Technical Summary

Technical Problem

In automotive entertainment systems or multifunction module interaction systems, the prior art requests are scattered, and each module is associated with other modules, resulting in high logic maintenance and interaction complexity.

Method used

The global regulation business logic method based on the logic matrix table is adopted to judge the priority of the adjustment instructions through the logic matrix table, and the on-board system is regulated according to the instruction code to achieve priority coordination of the overall application project module interface.

Benefits of technology

It simplifies the request logic, reduces the complexity of logic maintenance and interaction, realizes the logical memory and logic return functions, and ensures the correctness of the logic of the adjustment instructions before implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113282388B_ABST
    Figure CN113282388B_ABST
Patent Text Reader

Abstract

The present application relates to a method and an on-board system for globally regulating business logic based on a logic matrix table, which is applied to an on-board system provided with a logic matrix table, wherein the on-board system executes a current instruction, and the method comprises: obtaining an adjustment instruction; judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table; if so, obtaining the instruction code through the logic matrix table, and regulating the on-board system according to the instruction code; otherwise, regulating according to the priority order. The beneficial effects of the present application are as follows: the present application introduces a configurable logic matrix, and a method for realizing globally regulating business logic, which can coordinate the priorities of the module interfaces of an entire application project, and has the functional effects of logic memory and logic return.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automotive electronic technology, and more specifically, to a method for globally regulating business logic based on a logic matrix table and an in-vehicle system. Background Art

[0002] In a car entertainment system or a multi-function module interaction system, the request method for each module to switch to the foreground display is generally judged by a fixed priority (if the priority is high, it is allowed to switch to the foreground). This strategy causes the request logic to be relatively scattered. At the same time, each module will be related to other modules, and the logic maintenance and interaction complexity are high. Summary of the invention

[0003] In order to overcome the problems in the above-mentioned prior art that the request logic is relatively scattered due to the strategy, and each module is related to other modules, and the logic maintenance and interaction are highly complex, the present application provides a method and a vehicle-mounted system for globally controlling business logic based on a logic matrix table.

[0004] A method for globally regulating business logic based on a logic matrix table, characterized in that the method is applied to a vehicle-mounted system provided with a logic matrix table, the vehicle-mounted system executes a current instruction, and the method comprises:

[0005] Get adjustment instructions;

[0006] According to the logic matrix table, determining whether the priority of the adjustment instruction is greater than the priority of the current instruction;

[0007] If yes, the command code is obtained through a logic matrix table, and the vehicle-mounted system is regulated according to the command code;

[0008] Otherwise, control is performed according to the priority order.

[0009] Optionally, the logic matrix table is preset in the vehicle-mounted system, and the logic matrix table includes a two-dimensional array with adjustment instructions as rows and current instructions as columns.

[0010] Optionally, the instruction code is obtained by querying the rows and columns of the logic matrix table through the adjustment instruction and the current instruction.

[0011] The instruction code is a 4-bit field, and the instruction code includes processing action, recovery mode, and switching mode.

[0012] Optionally, the processing action includes any one or more of foreground switching, clearing the recovery list, re-adding to the front of the recovery list, background switching, not clearing the recovery list, not re-adding to the front of the recovery list, and not switching to the foreground.

[0013] Optionally, the recovery mode and the switching mode both include a mode transferred by the APP, a mode in which the APP switches to the Home / main interface mode, and any one of keeping the interface before exiting the background.

[0014] Optionally, judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table includes:

[0015] The priority of the adjustment instruction is determined according to whether the processing action is a foreground switch or a background switch or no foreground switch.

[0016] Optionally, after acquiring the adjustment instruction and 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 includes:

[0017] Determine whether the current state of the vehicle system is idle or foreground;

[0018] If yes, continue to execute the step of judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table;

[0019] Otherwise, no processing is performed;

[0020] The current state includes a stop state, an idle state, a waiting state, a history state, and a foreground state.

[0021] Optionally, regulating the vehicle-mounted system according to the instruction code includes:

[0022] By executing the processing action, the vehicle system is regulated.

[0023] Optionally, the regulating according to the priority order includes:

[0024] If the priority of the adjustment instruction is less than or equal to the priority of the current instruction, the current instruction is executed first, and then the adjustment instruction is executed after the current instruction is executed.

[0025] Optionally, obtaining the adjustment instruction includes: obtaining through APP communication input or obtaining through a vehicle-mounted hardware device.

[0026] In addition, the present application also discloses an in-vehicle system, including the above-mentioned method for globally regulating business logic based on a logic matrix table, and also including a storage module, a logic matrix analysis module, and a logic processing module;

[0027] The storage module is used to store the logic matrix table;

[0028] The logic matrix analysis module is used to receive the adjustment instruction and the current instruction, and to query the instruction code by calling the logic matrix table to determine the priority of the adjustment instruction;

[0029] The logic processing module is used to control the vehicle-mounted system according to the instruction code.

[0030] Compared with the prior art, the beneficial effects of the present application are: in the car entertainment system or the multi-functional module interaction system, the present application introduces a configurable logic matrix, and an implementation method that can globally control the business logic. The logic method can coordinate the priorities of the module interface of the entire application project, and at the same time have the functional effects of logic memory and logic return. The implementation method highly controls the switching logic of the module interface of the entire project from a global perspective, making the logic module configurable, and can also check and verify the correctness of the logic through the logic matrix, contributing to the early verification of the correctness of the logic of the adjustment instruction in the early stage of implementation. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a flow chart of an embodiment of the present application. DETAILED DESCRIPTION

[0032] The present application is further described below in conjunction with specific implementation methods.

[0033] The same or similar numbers in the drawings of the embodiments of the present application correspond to the same or similar parts; in the description of the present application, it should be understood that if the terms "upper", "lower", "left", "right", "top", "bottom", "inside", "outside", etc. indicate the orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as a limitation on this patent.

[0034] In addition, if there are terms such as "first" and "second", they are only used for descriptive purposes, mainly to distinguish different devices, elements or components (the specific types and structures may be the same or different), and are not used to indicate or imply the relative importance and quantity of the indicated devices, elements or components, and cannot be understood as indicating or implying relative importance.

[0035] In such Figure 1 In the illustrated embodiment, the present application provides a method for globally regulating business logic based on a logic matrix table, characterized in that the method is applied to a vehicle-mounted system provided with a logic matrix table, and the vehicle-mounted system executes a current instruction. The method includes:

[0036] 100, obtain the adjustment instruction; in step 100, the adjustment instruction is obtained through APP communication input or vehicle-mounted hardware device. The APP can be an APP that can communicate with the vehicle-mounted system; the signal of the adjustment instruction is obtained through the remote APP. The vehicle-mounted hardware device can be a button trigger, etc.

[0037] 200, judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table; in step 200, judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table, including: judging the priority of the adjustment instruction according to whether the processing action is foreground switching or background switching or not switching the foreground.

[0038] 300, if so, obtain the instruction code through the logic matrix table, and adjust the vehicle system according to the instruction code; in step 300, obtain the instruction code through the adjustment instruction and the current instruction, and adjust the vehicle system according to the instruction code, including: adjusting the vehicle system by executing the processing action.

[0039] 400, otherwise, adjust according to the priority order. In step 400, adjust according to the priority order, including: if the priority of the adjustment instruction is less than or equal to the priority of the current instruction, execute the current instruction first, wait until the current instruction is executed, and then execute the adjustment instruction.

[0040] This application introduces a configurable logic matrix in the car entertainment system or multi-function module interaction system, and an implementation method that can globally control the business logic. This logic method can coordinate the priorities of the module interface of the entire application project, and at the same time have the functional effects of logic memory and logic return. This implementation method highly controls the switching logic of the module interface of the entire project from a global perspective, making the logic module configurable, and can also check and verify the correctness of the logic through the logic matrix, contributing to the early verification of the correctness of the logic of the adjustment instruction before implementation.

[0041] Among them, this application first defines the adjustment instruction and the current instruction. Specifically, the request type of the adjustment instruction and the current instruction may include any one of the following table:

[0042]

[0043] Table 1

[0044] In some embodiments, the logic matrix table is preset in the vehicle system, and the logic matrix table includes a two-dimensional array with adjustment instructions as rows and current instructions as columns. In this embodiment, the logic matrix table can be defined according to the adjustment instructions and the current instructions: Specifically, Table 2 is as follows:

[0045]

[0046]

[0047] Table 2

[0048] Refer to the table above, where adjustment instructions are rows and current instructions are columns; they can form an operation scenario, which can determine the next execution action and recovery action of the app.

[0049] In one embodiment of the above embodiment, the instruction code is obtained by adjusting the row and column of the current instruction query logic matrix table, wherein the instruction code is a 4-bit field, and the instruction code includes processing action, recovery mode, and switching mode. See Table 2 for the meaning of the defined numerical values, and the execution action value of the instruction code: such as 0x0321, 03 is the processing action, 2 is the recovery mode, and 1 is the switching mode.

[0050] In some embodiments, the processing action includes any one or more of foreground switching, clearing the recovery list, re-adding to the front of the recovery list, background switching, not clearing the recovery list, not re-adding to the front of the recovery list, and not switching to the foreground. According to the adjustment instruction, 12 processing actions can be defined, see Table 3 below.

[0051]

[0052]

[0053] Table 3

[0054] In some embodiments, the recovery mode and the switching mode both include a mode transferred by the APP, a mode in which the APP switches to the Home / main interface mode, and any one of the modes of maintaining the interface before exiting the background.

[0055] Referring to Table 4, the third bit of the command code may represent the recovery mode, the fourth bit may represent the switching mode, and the first and second bits are the processing actions. In Table 5, the recovery mode and the switching mode both include the mode transmitted by the APP, the APP switching to the Home / main interface mode, and the instructions before exiting the background.

[0056] NO. bit meaning Analysis 1 [4:1] Switch mode The processing mode passed to the requesting app ( 2 [8:5] Recovery mode Used to resume app usage (ResumeLastApp) 3 [16:9] Processing Actions 12 types of action processing

[0057] Table 4

[0058] NO. Mode type definition Mode value Analysis 1 DEFAULT_MODE 0x00 Mode transmitted by APP 2 HOME_MODE 0x01 APP switches to Home / main interface mode 3 HOLD_MODE 0x02 Keep the interface before exiting the background

[0059] Table 5

[0060] In some embodiments, judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table includes: judging the priority of the adjustment instruction according to whether the processing action is a foreground switch or a background switch or not switching the foreground. In the present application, according to the instruction code, the first and second digits are read to know the corresponding processing action, so as to judge whether the priority of the adjustment instruction is greater than the priority of the current instruction.

[0061] In some embodiments, after obtaining the adjustment instruction, before judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table, it also includes: judging whether the current state of the vehicle-mounted system is an idle state or a foreground state; if so, continue to execute according to the logic matrix table to judge whether the priority of the adjustment instruction is greater than the priority of the current instruction; otherwise, no processing is performed; wherein the current state includes 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 step according to judging whether the current state of the vehicle-mounted system is an idle state or a foreground state.

[0062]

[0063] Table 6

[0064] In some embodiments, regulating the vehicle system according to the instruction code includes: regulating the vehicle system by executing a processing action. In the car entertainment system or the multi-functional module interaction system, the switching types of the project APP are summarized. Each switching type is a specific operation action. From the current operation to the next operation, it is a switching scene. Then, the execution action is determined for each scene, and the so-called configurable two-dimensional matrix is ​​formed to manage the logical switching of each module.

[0065] In addition, the present application also discloses an in-vehicle system, including the above-mentioned method for globally regulating business logic based on a logic matrix table, and also including a storage module, a logic matrix analysis module, and a logic processing module;

[0066] A storage module, used for storing a logic matrix table;

[0067] The logic matrix analysis module is used to receive the adjustment instruction and the current instruction, query the instruction code by calling the logic matrix table, and determine the priority of the adjustment instruction;

[0068] The logic processing module is used to control the vehicle system according to the instruction code.

[0069] In this embodiment, the logic matrix analysis module requests the respective switching demand logic processing modules through the request interface to process the request instructions of each module, and determines and makes the current processing execution switching action and the recovery action to be saved.

[0070] In the car entertainment system or multi-functional module interaction system, this application introduces a configurable logic matrix and a method for implementing the global control of business logic. This logic method can coordinate the priorities of the module interface of the entire application project, and has the functional effects of logic memory and logic return. This implementation method highly controls the switching logic of the module interface of the entire project from a global perspective, making the logic module configurable, and can verify the correctness of the logic through the logic matrix, contributing to the early verification of the correctness of the logic of the adjustment instruction before implementation.

[0071] Obviously, the above embodiments of the present application are merely examples for clearly illustrating the present application, and are not intended to limit the implementation methods of the present application. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all implementation methods here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present application should be included in the protection scope of the claims of the present application.

Claims

1. A method for globally regulating business logic based on a logic matrix table, characterized in that: Applied to a vehicle-mounted system provided with a logic matrix table, the vehicle-mounted system executes a current instruction, the method comprising: Get adjustment instructions; According to the logic matrix table, determining whether the priority of the adjustment instruction is greater than the priority of the current instruction; If yes, obtain the instruction code through the logic matrix table, and control the vehicle system according to the instruction code; Otherwise, regulation is carried out according to the order of priority; The instruction code is obtained by querying the rows and columns of the logic matrix table through the adjustment instruction and the current instruction. The instruction code is a 4-bit field. The instruction code includes a processing action, a recovery mode, and a switching mode. The first and second bits of the instruction code are the processing action, the third bit of the instruction code is the recovery mode, and the fourth bit of the instruction code is the switching mode. The processing action includes any one or more of switching to the foreground, clearing the recovery list, re-adding to the front of the recovery list, switching to the background, not clearing the recovery list, not re-adding to the front of the recovery list, and not switching to the foreground; The recovery mode and switching mode include the mode transmitted by the APP, the mode in which the APP switches to the Home / main interface, and any one of the modes before the APP exits the background; Wherein, after acquiring the adjustment instruction and 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 includes: Determine whether the current state of the vehicle system is idle or foreground; If yes, continue to execute the step of judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table; Otherwise, no processing is performed; The current state includes a stop state, an idle state, a waiting state, a history state, and a foreground state.

2. According to claim 1, a method for globally regulating business logic based on a logic matrix table is characterized in that: The logic matrix table is preset in the vehicle-mounted system, and the logic matrix table includes a two-dimensional array with adjustment instructions as rows and current instructions as columns.

3. A method for globally regulating business logic based on a logic matrix table according to claim 1, characterized in that: The recovery mode and the switching mode both include the mode transmitted by the APP, the mode in which the APP switches to the Home / main interface, and any one of the modes in which the interface before exiting the background is maintained.

4. The method for globally regulating business logic based on a logic matrix table according to claim 1, characterized in that: The step of judging whether the priority of the adjustment instruction is greater than the priority of the current instruction according to the logic matrix table includes: The priority of the adjustment instruction is determined according to whether the processing action is a foreground switch or a background switch or no foreground switch.

5. The method for globally regulating business logic based on a logic matrix table according to claim 1, characterized in that: The step of regulating the vehicle-mounted system according to the instruction code comprises: By executing the processing action, the vehicle system is regulated.

6. The method for globally regulating business logic based on a logic matrix table according to claim 1, characterized in that: The obtaining of the adjustment instruction comprises: Obtained through APP communication input or vehicle-mounted hardware devices.

7. A vehicle-mounted system, characterized in that: A method for globally regulating business logic based on a logic matrix table according to any one of claims 1 to 6, further comprising a storage module, a logic matrix analysis module, and a logic processing module; The storage module is used to store the logic matrix table; The logic matrix analysis module is used to receive the adjustment instruction and the current instruction, and query the instruction code by calling the logic matrix table; The logic processing module is used to control the vehicle-mounted system according to the instruction code.

Citation Information

Patent Citations

  • Task switching method based on radio logic interruption table and radio

    CN112130971A