Multi-program hybrid control method and device, electronic equipment and storage medium

By adopting a single-chip control method in the indoor unit of the air conditioner and determining the master-slave function based on the number of interactive objects, the cost and electromagnetic error problems caused by the dual-chip solution are solved, and the master control and drive logic are effectively accommodated and operated independently.

CN118423813BActive Publication Date: 2025-11-21TCL AIR CONDITIONER ZHONGSHAN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410399117.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2025-11-21
Estimated Expiration
2044-04-02

AI Technical Summary

Technical Problem

The existing dual-chip solution for indoor air conditioners results in high costs, complex circuit design, and electromagnetic errors. How can the main control and drive logic be implemented on a single chip without causing conflicts?

Method used

By employing a single-chip control method in the indoor unit of an air conditioner, the master and slave functions are determined based on the number of interaction objects between the master and drive functions. The startup address of the slave function is then inserted into the master function, enabling the slave function to be called by the master function. This allows both master control and drive logic to be implemented on a single chip.

Benefits of technology

It enables the simultaneous integration of the main controller and driver program on a single chip, avoiding increased costs and circuit complexity, reducing electromagnetic errors, and ensuring efficient use of memory space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118423813B_ABST
    Figure CN118423813B_ABST
Patent Text Reader

Abstract

The application discloses a multi-program mixed control method and device, electronic equipment and storage medium, wherein the multi-program mixed control method comprises the following steps: if a control chip receives first data information of a first function and second data information of a second function, determining the quantity size relationship of an interactive object between the first function and the second function according to the first data information and the second data information; determining a master function and a slave function from the first function and the second function according to the quantity size relationship; and inserting the start address of the slave function into the master function, wherein the slave function is called by the master function based on the start address; the technical scheme aims to solve the problem of how to realize master control and driving logic by using a single chip, guarantee the effective and efficient use of memory space, and accommodate the programs of master control and driving without conflicts.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of air conditioners, and in particular to a multi-program hybrid control method and device, electronic equipment and a storage medium. BACKGROUND

[0002] At present, a double-chip scheme is generally used in the platform of an air conditioner indoor unit, one of which is used to realize main control logic and the other is used to realize motor driving, however, such a control mode will make the cost higher due to the high price of chips, and the double-chip will also produce more electromagnetic errors due to the complex circuit design, therefore, how to realize main control and driving logic with a single chip, ensure the effective and efficient use of memory space, and accommodate the programs of main control and driving without conflict. SUMMARY

[0003] The main purpose of the present application is to provide a multi-program hybrid control method and device, electronic equipment and a storage medium, which aims to solve the problem of how to realize main control and driving logic with a single chip, ensure the effective and efficient use of memory space, and accommodate the programs of main control and driving without conflict.

[0004] To achieve the above purpose, the multi-program hybrid control method proposed by the present application is applied to an air conditioner indoor unit of an air conditioner, the air conditioner indoor unit comprises a control chip, and the multi-program hybrid control method comprises:

[0005] If the control chip receives first data information for a first function and second data information for a second function, the number size relationship of the interaction objects between the first function and the second function is determined according to the first data information and the second data information;

[0006] The master function and the slave function are determined from the first function and the second function according to the number size relationship;

[0007] The start address of the slave function is inserted into the master function, wherein the slave function is called by the master function based on the start address.

[0008] In some embodiments, the first data information is first function annotation information, and the second data information is second function annotation information, and the number size relationship of the interaction objects between the first function and the second function is determined according to the first data information and the second data information, comprising:

[0009] The first interaction object number of the first function is determined according to the first function annotation information, and the second interaction object number of the second function is determined according to the first function annotation information;

[0010] The first number of interaction objects is compared with the second number of interaction objects to obtain a number size relationship.

[0011] In some embodiments, the first data information is first occupancy information, the second data information is second occupancy information, and the determining of the number size relationship between the first function and the second function based on the first data information and the second data information comprises:

[0012] The first occupancy information is compared with the second occupancy information to obtain a size comparison result.

[0013] The number size relationship between the first function and the second function is determined based on the size comparison result.

[0014] In some embodiments, the determining of the master-slave relationship between the first function and the second function based on the number of interaction objects between the first function and the second function to obtain a corresponding master function and a slave function comprises:

[0015] When the number of interaction objects of the first function is more than the number of interaction objects of the second function, the first function is set as the master function, and the second function is set as the slave function; or

[0016] When the number of interaction objects of the second function is more than the number of interaction objects of the first function, the second function is set as the master function, and the first function is set as the slave function.

[0017] In some embodiments, after the control chip receives the first data information for the first function and the second data information for the second function, the method further comprises:

[0018] The variable of the first function is determined based on the first data information, and the variable of the second function is obtained based on the second data information.

[0019] The same variable of the variable of the first function and the variable of the second function is set as a solidified interaction variable, wherein the solidified interaction variable is used to be called by the first function and the second function respectively.

[0020] In some embodiments, after the inserting of the start address into the master function to call the slave function in the master function through the start address, the method further comprises:

[0021] A preset update function is executed before the master function.

[0022] In some embodiments, the inserting the start address into the main function to call the slave function in the main function through the start address further comprises:

[0023] Obtaining at least one interactive object corresponding to the main function and the slave function;

[0024] Sorting the interactive objects of the main function and the interactive object of the slave function, and setting an interrupt order according to the sorting order;

[0025] When the first function or the second function is running, if a new target interactive object is detected, it is identified whether there is a current interactive object whose interrupt priority is higher than that of the target interactive object;

[0026] If there is, the execution of the current interactive object is interrupted, the target interactive object is executed, and after the execution of the target interactive object is completed, the original current interactive object is resumed.

[0027] The application further provides a multi-program hybrid control device applied to an air conditioner indoor unit of an air conditioner, the air conditioner indoor unit comprising a control chip, and the multi-program hybrid control device comprising:

[0028] A receiving module configured to receive first data information for a first function and second data information for a second function;

[0029] A first determining module configured to determine a quantity size relationship of interactive objects between the first function and the second function according to the first data information and the second data information;

[0030] A second determining module configured to determine a main function and a slave function from the first function and the second function according to the quantity size relationship;

[0031] An inserting module configured to insert a start address of the slave function into the main function, wherein the slave function is called by the main function based on the start address.

[0032] The application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the multi-program hybrid control method when executing the computer program.

[0033] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program implements the steps of the multi-program hybrid control method when executed by a processor.

[0034] The application determines the master control function as the master function from the first function and the second function by using the difference of the number of interactive objects between the master control function and the drive function, and inserts the start address of the slave function into the master function, so that the slave function can be called by the master function based on the start address, thereby storing the first function and the second function into one control chip at the same time, and realizing the running respectively, thereby realizing the master control and the drive logic at the same time by using the single chip, accommodating the programs of the master control and the drive without conflict while ensuring the effective use of the memory space, and avoiding the problems of the cost increase, the complex circuit design and the electromagnetic error caused by the double chip scheme in the indoor unit of the air conditioner. BRIEF DESCRIPTION OF DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only show some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from the structures shown in the drawings without creative labor.

[0036] Figure 1 The flowchart of an embodiment of the multi-program hybrid control method of the present application;

[0037] Figure 2 The flowchart of an embodiment of step S100 in the present application;

[0038] Figure 3 The flowchart of another embodiment of step S100 in the present application;

[0039] Figure 4 The flowchart of another embodiment of the multi-program hybrid control method of the present application;

[0040] Figure 5 The flowchart of still another embodiment of the multi-program hybrid control method of the present application;

[0041] Figure 6 The structural schematic diagram of an embodiment of the multi-program hybrid control device of the present application.

[0042] Explanation of the reference signs:

[0043] Reference Name Reference Name 710 receiving module 730 second determining module 720 first determining module 740 inserting module

[0044] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the drawings. DETAILED DESCRIPTION

[0045] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all the other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0046] In addition, the description such as "first", "second" and the like in the present application is only for the purpose of description, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can be explicitly or implicitly included at least one of the features. In addition, the technical solutions of various embodiments can be combined with each other, but it must be based on the fact that a person of ordinary skill in the art can realize it. When the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, and is not within the protection scope required by the present application.

[0047] The present application provides a multi-program hybrid control method, which is applied to an air conditioner indoor unit of an air conditioner, and the air conditioner indoor unit comprises a control chip.

[0048] With reference to Figure 1 In an embodiment, the multi-program hybrid control method comprises:

[0049] S100, if the control chip receives first data information for a first function and second data information for a second function, the number size relationship of the interaction objects between the first function and the second function is determined according to the first data information and the second data information;

[0050] In the embodiment, the first function and the second function are input into the control chip when the air conditioner indoor unit is produced and tested. In the present application, only one control chip is used, and for the air conditioner indoor unit, not only the main control program needs to be input to drive the WiFi module, the remote control module, the timer and other functional modules to work, but also the drive monitoring program needs to be input to control the drive monitoring module to monitor the working state of the motor. At this time, the functions corresponding to the two programs are input into the control chip at the same time. The control chip needs to determine the number size relationship of the interaction objects of the first function and the second function according to the first data information and the second data information obtained, for example, according to the instruction information carried by the function when it is written, or according to the size of the function body, etc. It can be determined that the first function or the second function has more interaction objects, and the number size relationship of the interaction objects is determined.

[0051] S200, determining the master function and the slave function from the first function and the second function according to the number size relationship;

[0052] In the embodiment, since the main control program needs to drive multiple function modules, and the interactive object controlled by the drive monitoring program is only the drive monitoring module, the number of the interactive objects between the first function and the second function can be used to determine the program corresponding to the first function and the second function, that is, the main control program has more interactive objects, and the drive monitoring program has less interactive objects.

[0053] It should be noted that, when the air conditioner is working, the main control program needs to coordinate various function modules to maintain the normal operation of the air conditioner, and the drive monitoring program only needs to be executed when the R&D personnel need to maintain, debug or upgrade the motor, and the like. Therefore, for the control chip, the main control program is the main function, and the drive monitoring program is the slave function called by the main function.

[0054] Specifically, the master-slave relationship between the first function and the second function is determined according to the number of interactive objects between the first function and the second function, to obtain the corresponding main function and slave function, including:

[0055] When the number of interactive objects of the first function is more than the number of interactive objects of the second function, the first function is set as the main function, and the second function is set as the slave function; or

[0056] When the number of interactive objects of the second function is more than the number of interactive objects of the first function, the second function is set as the main function, and the first function is set as the slave function.

[0057] S300, inserting the start address of the slave function into the main function, wherein the slave function is called by the main function based on the start address.

[0058] In the embodiment, the initialization and function of the function module corresponding to the drive program which is not the main function may be invalid due to the difference of the compiler when multiple programs are used together. If it is needed to insert the running of the module corresponding to the drive program in the running of the function module corresponding to the main control program, a function pointer, that is, a start address, needs to be used for calling to realize normally.

[0059] After the control chip determines the master-slave relationship between the first function and the second function through the first data information and the second data information, the control chip stores the starting address of the second function, when receiving an external control instruction to call the second function, the control chip reads the starting address, calls the slave function, interrupts the execution of the master function, starts to execute the program corresponding to the slave function, until the slave function ends the execution of the corresponding program, and continues to execute the interrupted program of the master function. Thus, different control programs can share one chip, mixed control can be realized and the independence of respective compilation is guaranteed, the function modules or interactive objects are independent, the development is modularized, meanwhile, the communication function of the driver program and the master control program is independent and not affected, and the hardware is shared, and the secondary development of the programs can be independently performed.

[0060] The technical scheme of the present application determines the master control function as the master function from the first function and the second function according to the different number of interactive objects between the master control function and the driver function, and inserts the starting address of the remaining function as the slave function into the master function, so that the slave function can be called by the master function based on the starting address, thereby storing the first function and the second function into one control chip at the same time, and realizing the running respectively, so that the master control and the driving logic can be realized at the same time by using a single chip, the programs of the master control and the driving can be accommodated without conflict while ensuring the effective use of the memory space, the problems of cost increase, complex circuit design and electromagnetic error caused by the double-chip scheme in the current air conditioner indoor unit are avoided.

[0061] Reference Figure 2 In an embodiment, the first data information is first function annotation information, the second data information is second function annotation information, and the number size relationship of the interactive objects between the first function and the second function is determined according to the first data information and the second data information, including:

[0062] S111, determining the first interactive object number of the first function according to the first function annotation information, and determining the second interactive object number of the second function according to the first function annotation information;

[0063] S112, comparing the first interactive object number with the second interactive object number to obtain the number size relationship.

[0064] In the embodiment, when the control chip receives the program corresponding to the function, if the engineer attaches an explanatory text when writing the program, the explanatory text is also input together with the program, and the explanatory text is the function annotation information. After the control chip receives the first function and the second function, the control chip reads the first function and the second function, obtains the first function annotation information and the second function annotation information carried by the first function and the second function, determines the interaction object corresponding to each function through the function annotation information, counts the read interaction objects, accumulates the first interaction object quantity from the first function annotation information, and accumulates the second interaction object quantity from the second function annotation information, so as to compare the accumulated two values, and directly determine the quantity size relationship of the interaction objects between the first function and the second function.

[0065] With reference to Figure 3 In an embodiment, the first data information is first occupation information, the second data information is second occupation information, and the quantity size relationship of the interaction objects between the first function and the second function is determined according to the first data information and the second data information, including:

[0066] S121, comparing the first occupation information and the second occupation information in size to obtain a size comparison result.

[0067] S122, determining the quantity size relationship of the interaction objects between the first function and the second function according to the size comparison result.

[0068] In the embodiment, the occupation information is the occupation of the program corresponding to the function in the memory, and the unit can be KB, MB, etc.

[0069] After the control chip receives the first function and the second function, the occupation space of the memory in the control chip is reduced. The control chip can directly read the storage space occupied by the first function and the second function to obtain the corresponding first occupation information and second occupation information. It can be understood that, for the main control program, the number of interaction objects is large, so the length of the program is longer when programming, and a more complex control program needs to be generated. Therefore, when the first function is stored, the required storage space is larger, and for the drive monitoring program, the interaction quantity is limited to the drive monitoring module, and the operation to be performed is only monitoring and information feedback of the motor, so that when the second function is stored, the required storage space is much smaller than that of the first function.

[0070] Therefore, comparing the first occupation information and the second occupation information in size can determine the quantity size relationship of the interaction objects between the first function and the second function.

[0071] With reference toFigure 4 In an embodiment, after the control chip receives the first data information for the first function and the second data information for the second function, the method further comprises:

[0072] S410, determining the variable of the first function according to the first data information, and obtaining the variable of the second function according to the second data information;

[0073] S420, setting the same variable in the variable of the first function and the variable of the second function as a solidified interaction variable, wherein the solidified interaction variable is used to be called by the first function and the second function respectively.

[0074] In the embodiment, when the host program and the drive monitoring program drive the interaction object respectively, the same variable may be needed to be called, such as the rotating speed of the motor, the voltage of the direct and alternating axes, etc. Since the interaction between the variables of the two functions cannot be called through normal external declaration, in this case, the control chip compares the variable in the first data information with the variable in the second data information, obtains the same variable in the two, and fixes the same variable in the memory through the address to set as the solidified interaction variable, so that the solidified interaction variable is called through the fixed address, and the effective interaction between the host program and the drive monitoring program and the interaction object is realized.

[0075] In an embodiment, after the control chip inserts the start address into the host function to call the slave function in the host function through the start address, the method further comprises:

[0076] S500, executing a preset update function before the host function.

[0077] In the embodiment, the single chip is used to realize the host control and the drive logic, and the effective and efficient use of the memory space needs to be ensured to simultaneously accommodate the host control, the drive and the system boot update.

[0078] The control flow of the whole program gives priority to the boot (start program) update after power on, and then jumps to the host function of the host program, wherein the function corresponding to the drive program is solidified in a certain address of the Flash according to the protocol, and when the host program corresponding to the host function is run, the code and initialization of the host program are not affected, the drive monitoring program is used as the called slave function and has the interrupt function, and the start address of the slave function is used as the function pointer when the slave function is called, so that the slave function can be called, the host function is interrupted, and the slave function is controlled to normally run. Figure 5 In an embodiment, after the control chip inserts the start address into the host function to call the slave function in the host function through the start address, the method further comprises:

[0079] S610, acquire at least one interactive object corresponding to the main function and the slave function;

[0080] S620, sort the interactive objects of the main function and the interactive object of the slave function, and set the interrupt order according to the sorting order;

[0081] S630, when the first function or the second function is running, if a new target interactive object is detected, it is identified whether there is a current interactive object with a higher interrupt priority than the target interactive object;

[0082] S640, if so, interrupt the execution of the current interactive object, execute the target interactive object, and after executing the target interactive object, resume the execution of the original current interactive object.

[0083] It can be understood that in the present design, since a single chip is used as a platform for development, interrupt resources need to be effectively allocated to ensure the effective operation of the main control interactive object and the driving monitoring interactive object, and mutual interference is avoided.

[0084] In the present embodiment, the control chip stores an interrupt order set in advance by the R&D personnel according to actual needs. When the control chip runs the main control program and controls one of the interactive objects, if a calling instruction for other interactive objects is received at this time, the interrupt priorities between the current interactive object and the interactive object to be called are compared, and the interactive object with a higher interrupt priority is interrupted, and the control program corresponding to the interactive object with a lower interrupt priority is executed preferentially.

[0085] Specifically, the control objects of the control chip include IPM (intelligent power module) protection, driving sampling module, timer and Uat communication. The interrupt order is IPM protection > driving sampling module > timer > Uart communication. When the control chip controls the IPM protection, if a control instruction of the timer is received at this time, the current work of the IPM protection is interrupted, the control program of the timer is executed, and the execution of the IPM protection is continued until the control of the timer is completed. If the Uart communication is currently executed, and a control instruction of the timer is received, the current work of the Uart communication will not be interrupted, and the timer will be executed after the control of the Uart communication is completed.

[0086] Reference Figure 6 In an embodiment, an air conditioner indoor unit applied to an air conditioner, the air conditioner indoor unit comprises a control chip, and the multi-program mixed control device comprises:

[0087] The receiving module 710 is configured to receive first data information for the first function and second data information for the second function.

[0088] The first determining module 720 is configured to determine a quantity size relationship of the interaction objects between the first function and the second function according to the first data information and the second data information.

[0089] The second determining module 730 is configured to determine a master function and a slave function from the first function and the second function according to the quantity size relationship.

[0090] The inserting module 740 is configured to insert a start address of the slave function into the master function, and the slave function is called by the master function based on the start address.

[0091] In the embodiment, when the user programs the indoor unit of the air conditioner, the receiving module 710 receives the functions corresponding to the master program and the drive monitoring program, i.e., the first function and the second function, at the same time, and outputs them to the first determining module 720. The first determining module 720 needs to determine the quantity size relationship of the interaction objects of the first function and the second function according to the obtained first data information and the second data information, for example, according to the instruction information carried by the function when it is written, or according to the size of the function body, etc., which can determine who has more interaction objects in the first function and the second function, determine the quantity size relationship of the interaction objects, and output the result to the second determining module 730.

[0092] Since the master program needs to drive multiple function modules, and the interaction objects controlled by the drive monitoring program are only the drive monitoring modules, the programs corresponding to the first function and the second function can be determined according to the quantity size relationship, i.e., among the first function and the second function, the master program has more interaction objects, and the drive monitoring program has fewer interaction objects.

[0093] Specifically, when the number of interaction objects of the first function is more than the number of interaction objects of the second function, the second determining module 730 sets the first function as the master function and sets the second function as the slave function; or,

[0094] When the number of interaction objects of the second function is more than the number of interaction objects of the first function, the second determining module 730 sets the second function as the master function and sets the first function as the slave function.

[0095] After the second determining module 730 determines the master-slave relationship between the first function and the second function through the first data information and the second data information, the result is output to the insertion module 740, the insertion module 740 stores the starting address of the second function, when receiving the external control instruction to call the second function, the starting address is read, the slave function is called, the execution of the master function is interrupted, the program corresponding to the slave function is executed, until the slave function ends the execution of the corresponding program, and the interrupted program of the master function is continued to be executed.

[0096] The electronic device comprises the multi-program hybrid control method, and the specific steps of the multi-program hybrid control method refer to the above embodiments.

[0097] The computer readable storage medium comprises the multi-program hybrid control method, and the specific steps of the multi-program hybrid control method refer to the above embodiments.

[0098] The above is only optional embodiments of the present application, and does not limit the patent scope of the present application, and any equivalent structural transformation, direct / indirect application in other related technical fields within the concept of the present application, and the contents of the present application are included in the patent protection scope of the present application.

Claims

1. A multi-program hybrid control method, characterized by, The application discloses an air conditioner indoor unit applied to an air conditioner, and a multi-program mixed control method. If the control chip receives first data information of a first function and second data information of a second function, the quantity size relationship of the interactive objects between the first function and the second function is determined according to the first data information and the second data information. The master function and the slave function are determined from the first function and the second function according to the quantity size relationship, wherein the determination of the master function and the slave function from the first function and the second function according to the quantity size relationship comprises: determining the master-slave relationship between the first function and the second function according to the quantity of the interactive objects between the first function and the second function, so as to obtain the corresponding master function and slave function, which specifically comprises: when the quantity of the interactive objects of the first function is more than that of the second function, setting the first function as the master function and the second function as the slave function; or when the quantity of the interactive objects of the second function is more than that of the first function, setting the second function as the master function and the first function as the slave function. The start address of the slave function is inserted into the master function, wherein the slave function is called by the master function based on the start address.

2. The multi-program mix control method of claim 1, wherein The first data information is first function annotation information, and the second data information is second function annotation information, and the determination of the quantity size relationship of the interactive objects between the first function and the second function according to the first data information and the second data information comprises: The first quantity of the interactive objects of the first function is determined according to the first function annotation information, and the second quantity of the interactive objects of the second function is determined according to the first function annotation information. The first quantity of the interactive objects is compared with the second quantity of the interactive objects to obtain the quantity size relationship.

3. The multi-program mix control method of claim 1, wherein The first data information is first occupation information, and the second data information is second occupation information, and the determination of the quantity size relationship of the interactive objects between the first function and the second function according to the first data information and the second data information comprises: The first occupation information is compared with the second occupation information to obtain a size comparison result. The quantity size relationship of the interactive objects between the first function and the second function is determined according to the size comparison result.

4. The multi-program mix control method of claim 1, wherein After the control chip receives the first data information of the first function and the second data information of the second function, the following steps are further included: The variable of the first function is determined according to the first data information, and the variable of the second function is obtained according to the second data information. The same variable in the variable of the first function and the variable of the second function is set as a solidified interactive variable, wherein the solidified interactive variable is used to be called by the first function and the second function respectively.

5. The multi-program mix control method of claim 1, wherein After the start address of the slave function is inserted into the master function, the following steps are further included: A preset update function is executed before the master function.

6. The multi-program mix control method of claim 1, wherein The inserting the start address of the slave function after the master function further includes: Obtaining at least one interactive object corresponding to the master function and the slave function; Sorting the interactive objects of the master function and the interactive object of the slave function, and setting an interrupt order according to the sorting order; When the first function or the second function is running, if a new target interactive object is detected, it is identified whether a current interactive object with a higher interrupt priority than the target interactive object is running; If so, the execution of the current interactive object is interrupted, the target interactive object is executed, and after the target interactive object is executed, the original current interactive object is resumed.

7. A multi-program mix control apparatus characterized by comprising: The air conditioner indoor unit applied to an air conditioner, the air conditioner indoor unit includes a control chip, and the multi-program mixed control device includes: A receiving module for receiving first data information for a first function and second data information for a second function; A first determining module for determining the quantity size relationship of interactive objects between the first function and the second function according to the first data information and the second data information; A second determining module for determining a master function and a slave function from the first function and the second function according to the quantity size relationship; wherein the second determining module is specifically configured to determine the master-slave relationship between the first function and the second function according to the quantity of interactive objects between the first function and the second function, to obtain the corresponding master function and slave function; the second determining module is specifically further configured to set the first function as the master function and the second function as the slave function when the quantity of interactive objects of the first function is more than the quantity of interactive objects of the second function; or set the second function as the master function and the first function as the slave function when the quantity of interactive objects of the second function is more than the quantity of interactive objects of the first function; An inserting module for inserting a start address of the slave function into the master function, wherein the slave function is called by the master function based on the start address.

8. An electronic device, comprising: The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps in the multi-program mixed control method of any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps in the multi-program mixed control method of any one of claims 1-6.

Citation Information

Patent Citations

  • Method and system for calling singlechip program

    CN102479105A

  • Integrated operation system and method of single-core DSP (Digital Signal Processor)

    CN116225733A