CN113238767A - Interface multiplexing method, air conditioner external unit and readable storage medium - Google Patents

Interface multiplexing method, air conditioner external unit and readable storage medium Download PDF

Info

Publication number
CN113238767A
CN113238767A CN202110384774.9A CN202110384774A CN113238767A CN 113238767 A CN113238767 A CN 113238767A CN 202110384774 A CN202110384774 A CN 202110384774A CN 113238767 A CN113238767 A CN 113238767A
Authority
CN
China
Prior art keywords
interface
program
microcontroller
preset
air conditioner
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110384774.9A
Other languages
Chinese (zh)
Inventor
刘湘
张琴兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Air Conditioner Zhongshan Co Ltd
Original Assignee
TCL Air Conditioner Zhongshan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Air Conditioner Zhongshan Co Ltd filed Critical TCL Air Conditioner Zhongshan Co Ltd
Priority to CN202110384774.9A priority Critical patent/CN113238767A/en
Publication of CN113238767A publication Critical patent/CN113238767A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses an interface multiplexing method, an air conditioner external unit and a readable storage medium. The interface multiplexing method receives a control signal triggered based on a control program through a microcontroller, assigns a program debugging flag bit of the control program, if the program debugging flag bit is assigned to a preset first value, the microcontroller configures the program burning interface as a program debugging interface, and at this time, the program burning interface does not enable the multiplexing function and only serves as the program debugging interface, so that the program burning interface can repeatedly burn the program, and the problem of chip locking can not occur, if the program debugging flag bit is assigned to the preset second value, the microcontroller configures the program burning interface as an I/O interface, at which time the program burning interface enables a multiplexing function, the method and the device can realize the multiplexing of the program burning interface, can realize the repeated burning of the program by the program burning interface, and can not cause the problem of locking of a chip, thereby improving the efficiency of program debugging and simulation.

Description

Interface multiplexing method, air conditioner external unit and readable storage medium
Technical Field
The invention relates to the technical field of communication, in particular to an interface multiplexing method, an air conditioner external unit and a readable storage medium.
Background
At present, the outdoor unit of the inverter air conditioner on the market adopts a frequency conversion controller mainboard to control the operation of the outdoor unit, the core of the frequency conversion controller mainboard is an MCU (microcontroller), and when a chip needs to be simulated or a program needs to be programmed, the MCU often needs to be connected with an SWD interface of a simulator (program programmer) for the MCU of an ARM architecture supporting a Serial Wire Debug (SWD) mode.
Although many interfaces (i.e., pins) of an MCU In the prior art, for example, STM32F103ZET6, have a multiplexing function, that is, one interface may be used as a function pin, and may also be used as a normal I/O (input/output) interface, that is, a program burning interface of the MCU may be multiplexed as a normal I/O interface, when the program burning interface of the MCU enables the multiplexing function, a program may be burned In for the first time, and may not be burned In for the second time, so that the problem of locking up a chip of the MCU may occur, if the program needs to be burned again, the BOOT0 (BOOT mode select pin) of the MCU needs to be pulled up, the program is erased through an ISP (In-System Programming) serial port, and then the BOOT0 is pulled down, so that the program can be burned In a normal SWD interface, thereby causing low efficiency of debugging and simulating the MCU.
Disclosure of Invention
The application provides an interface multiplexing method, an air conditioner external unit and a readable storage medium, which aim to solve the problem that a chip is locked when a program burning interface of an MCU in the prior art is multiplexed.
In a first aspect, the present application provides an interface multiplexing method, which is applied to an air conditioner external unit, where the air conditioner external unit includes a microcontroller and a serial debug interface electrically connected to a program burning interface of the microcontroller;
the method comprises the following steps:
the microcontroller records a control program through the serial debugging interface;
the microcontroller receives a control signal triggered based on the control program, and assigns a program debugging flag bit of the control program according to the control signal;
if the program debugging flag bit is assigned as a preset first value, the microcontroller configures the program burning interface as a program debugging interface;
and if the program debugging flag bit is assigned as a preset second value, the microcontroller configures the program burning interface as an I/O interface, and the preset first value is different from the preset second value.
In some possible implementation manners, the receiving, by the microcontroller, a control signal triggered based on the control program, and assigning a value to a program debug flag bit of the control program according to the control signal includes:
the microcontroller receives a control signal triggered based on the control program;
if the control signal is a preset program debugging signal, the control signal assigns the program debugging flag bit to the preset first value;
and if the control signal is a preset volume production signal, the control signal assigns the program debugging zone bit to the preset second value.
In some possible implementations, the microcontroller configures the program burning interface as a program debugging interface, including:
and the microcontroller calls the program debugging address according to the preset first value so as to configure the program burning interface as a program debugging interface.
In some possible implementations, the microcontroller configures the program burning interface as an I/O interface, including:
and the microcontroller calls the I/O interface address according to the preset second value so as to configure the program burning interface as an I/O interface.
In some possible implementation manners, the air conditioner external unit further includes a light emitting diode, a positive electrode of the light emitting diode is electrically connected to the program burning interface, and a negative electrode of the light emitting diode is electrically connected to a power ground;
if the program debugging flag bit is assigned as a preset second value, the microcontroller configures the program burning interface as an I/O interface, including:
if the program debugging flag bit is assigned as a preset second value, the microcontroller configures the program burning interface as an I/O interface;
the microcontroller is in cyclic communication with the air conditioner internal unit, and the program burning interface alternately outputs high level signals and low level signals so as to alternately turn on and off the light emitting diodes.
In some possible implementations, the microcontroller is in cyclic communication with an air conditioner internal unit, and includes:
after a first time length is preset, the microcontroller sends a first data packet to the air conditioner internal unit;
and after a second time length is preset, the microcontroller receives a second data packet sent by the air conditioner indoor unit.
In some possible implementations, the preset first duration is equal to the preset second duration.
In some possible implementations, the program burning interface alternately outputs a high level signal and a low level signal to alternately turn on and off the light emitting diode, including:
if the microcontroller sends the first data packet to the air conditioner internal unit, the program burning interface outputs the high level signal, and the light emitting diode is lightened;
and if the microcontroller receives the second data packet sent by the air conditioner indoor unit, the program burning interface outputs the low level signal, and the light emitting diode is turned off.
In some possible implementations, before the microcontroller is in circulating communication with an air conditioner indoor unit, the method includes:
and the microcontroller performs power-on reset, if the microcontroller passes the power-on reset, the program burning interface outputs a high-level signal, and after the preset waiting time, the step of performing cyclic communication between the microcontroller and an air conditioner internal unit is executed.
In a second aspect, the present application further provides an outdoor unit of an air conditioner, including: the microcontroller comprises a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded by the processor to execute the interface multiplexing method.
In a third aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program being loaded by a processor to perform the above-mentioned interface multiplexing method.
The interface multiplexing method is applied to an air conditioner external unit, and the air conditioner external unit comprises a microcontroller and a serial debugging interface electrically connected with a program burning interface of the microcontroller. The interface multiplexing method comprises the steps that firstly, a microcontroller records a control program through a serial debugging interface, then the microcontroller receives a control signal triggered based on the control program, assigns a program debugging flag bit of the control program according to the control signal, if the program debugging flag bit is assigned to a preset first value, the microcontroller configures the program recording interface into the program debugging interface, and at the moment, the program recording interface does not start a multiplexing function, can not be used as an I/O interface and can only be used as the program debugging interface, so the program recording interface can repeatedly record the program without the problem of chip locking, if the program debugging flag bit is assigned to a preset second value, the microcontroller configures the program recording interface into the I/O interface, and at the moment, the program recording interface starts the multiplexing function and can be used as the I/O interface, namely, the interface multiplexing method not only can realize the multiplexing of the program recording interface of the microcontroller, the program can be repeatedly burned by the program burning interface without the problem of locking the chip, so that the efficiency of program debugging and simulation of the microcontroller is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an air conditioner outdoor unit according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an interface multiplexing method according to an embodiment of the present application;
fig. 3 is a logic diagram of an interface multiplexing method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features.
Referring to fig. 1 to 3, an embodiment of the present invention provides an interface multiplexing method applied to an air conditioner external unit, where the air conditioner external unit includes a microcontroller 100 and a serial debug interface 200 electrically connected to a program burning interface of the microcontroller 100. The interface multiplexing method comprises the following steps:
in step S1, the microcontroller 100 burns the control program through the serial debug interface 200.
Step S2, the microcontroller 100 receives a control signal triggered based on the control program, and assigns a value to the program debug flag of the control program according to the control signal.
In step S3, if the program debug flag is assigned to the preset first value, the microcontroller 100 configures the program burning interface as a program debug interface.
Step S4, if the program debug flag is assigned as the preset second value, the microcontroller 100 configures the program burning interface as an I/O interface, where the preset first value is different from the preset second value.
It should be noted that, in the prior art, the program burning interface of the MCU is a default function for starting the multiplexing function, which may cause the program to be burned in for the first time and not to be burned in for the second time, resulting in the problem of locking the chip of the MCU. In the present application, the microcontroller 100 receives a control signal triggered by a control program, assigns a program debug flag of the control program according to the control signal, and if the program debug flag is assigned to a preset first value, the microcontroller 100 configures the program burning interface as a program debug interface, at this time, the program burning interface does not enable a multiplexing function, but cannot be an I/O interface, but only can be the program debug interface, which is a default function of the program burning interface, so that the program burning interface can repeatedly burn programs without a chip lock problem, and if the program debug flag is assigned to a preset second value, the microcontroller 100 configures the program burning interface as an I/O interface, at this time, the program burning interface enables a multiplexing function, which can be an I/O interface, that is, the interface multiplexing method of the present application can not only realize multiplexing of the program burning interface of the microcontroller 100, the program can be repeatedly burned by the program burning interface without the problem of locking the chip, so that the efficiency of program debugging and simulation of the microcontroller 100 is improved.
In some embodiments, in order to facilitate the microcontroller 100 to assign the program debug flag bits quickly, the program debug flag bits may be binary values, and the preset first value may be 1 and the preset second value may be 0.
In some embodiments, referring to fig. 1, the serial debug interface 200 is a serial debug interface 200 of an emulator, the serial debug interface 200 includes a serial data input interface (SWDIO), a serial clock input interface (SWCLK), and a RESET interface (RESET), the serial data input interface of the serial debug interface 200 is electrically connected to a program burning interface of the microcontroller 100, the serial clock input interface of the serial debug interface 200 is electrically connected to a serial clock input interface of the microcontroller 100, and the RESET interface of the serial debug interface 200 is electrically connected to a RESET interface of the microcontroller 100.
In some embodiments, in step S2, the microcontroller 100 receives a control signal triggered by the control program, and assigns a program debug flag of the control program according to the control signal, including:
the microcontroller 100 receives a control signal triggered based on a control program, and if the control signal is a preset program debugging signal, the control signal assigns the program debugging flag bit to a preset first value, and if the control signal is a preset volume production signal, the control signal assigns the program debugging flag bit to a preset second value.
That is to say, when the control signal is the preset program debugging signal, the air conditioner external unit is in the program debugging simulation stage, and the engineer needs to repeatedly burn and debug the control program, at this time, the microcontroller 100 does not start the multiplexing function of the program burning interface, but only can be used as the program debugging interface, and the engineer can repeatedly burn and debug the control program through the serial debugging interface 200 and the program burning interface. When the control signal is the preset mass production signal, the air conditioner external unit is in the mass production stage, an engineer debugs the control program, and the control program does not need to be burned and debugged, so that the microcontroller 100 starts the multiplexing function of the program burning interface and configures the program burning interface into the I/O interface, and different functions of the program burning interface are correspondingly adopted when the air conditioner external unit is in different production stages, so that interface resources are saved, and the chip locking can be avoided.
In some embodiments, in step S3, the microcontroller 100 configures the program burning interface as a program debugging interface, including: the microcontroller 100 calls the program debug address according to the preset first value to configure the program burning interface as a program debug interface. That is to say, the program debugging flag bit of the control program corresponds to various address information in the register of the microcontroller 100, the first value corresponds to the program debugging address in advance, and after the microcontroller 100 calls the program debugging address, the multiplexing function of the program burning port is not started, but only the program debugging port is used as the program debugging interface, so that the chip lock can be avoided.
In some embodiments, in step S4, the microcontroller 100 configures the program burning interface as an I/O interface, including: the microcontroller 100 calls the I/O interface address according to the preset second value to configure the program burning interface as an I/O interface. That is, the program debugging flag bit of the control program corresponds to various address information in the register of the microcontroller 100, the preset second value corresponds to the I/O interface address, and after the microcontroller 100 calls the program debugging address, the multiplexing function of the program burning interface is enabled, and the program burning interface can be used as the I/O interface, thereby saving interface resources.
In some embodiments, the air conditioner outdoor unit further comprises a Light Emitting Diode (LED), wherein the anode of the LED is electrically connected with the program burning interface, and the cathode of the LED is electrically connected with the power ground;
in step S4, if the program debug flag is assigned as the preset second value, the microcontroller 100 configures the program burning interface as an I/O interface, which includes:
if the program debugging flag bit is assigned as a preset second value, the microcontroller 100 configures the program burning interface as an I/O interface, the microcontroller 100 performs cyclic communication with the air conditioner internal unit, and the program burning interface alternately outputs a high level signal and a low level signal so as to alternately turn on and off the light emitting diode LED.
That is to say, when the air conditioner external unit is in the mass production stage, and the program burning interface is reused as the I/O interface, at this time, the microcontroller 100 of the air conditioner external unit performs the circular communication with the air conditioner internal unit, and the program burning interface alternately outputs the high level signal and the low level signal to alternately turn on and off the light emitting diode LEDs, so that whether the air conditioner external unit and the air conditioner internal unit normally communicate can be judged by observing the on and off conditions of the light emitting diode LEDs, for example, when the light emitting diode LEDs normally flash, the air conditioner external unit and the air conditioner internal unit normally communicate, and when the light emitting diode LEDs normally turn on or normally off, the air conditioner external unit and the air conditioner internal unit cannot normally communicate. The microcontroller 100 in the prior art needs to be used for indicating the communication state through a first GPIO (General-purpose input/output) interface (i.e., a pin), and after the program burning interface is multiplexed into an I/O interface, the communication state can be indicated without indicating the communication state through the first GPIO interface, thereby further saving interface resources.
In this embodiment, after the program recording interface is reused as the I/O interface, the microcontroller 100 will cyclically execute its own communication control unit to perform cyclic communication with the air conditioner internal unit. In addition, the interface for the circulation communication between the air conditioner external unit and the air conditioner internal unit is a special communication interface instead of a program burning interface.
Further, in step S4, the microcontroller 100 performs a loop communication with the air conditioner internal unit, including: after the first time length is preset, the microcontroller 100 sends a first data packet to the air conditioner indoor unit, and after the second time length is preset, the microcontroller 100 receives a second data packet sent by the air conditioner indoor unit. That is to say, the sum of the preset first duration and the preset second duration is a period for the air conditioner external unit to send and receive data, so that when the air conditioner external unit and the air conditioner internal unit are in normal communication, the light emitting diode LED can blink periodically, and when the air conditioner external unit and the air conditioner internal unit are in abnormal communication, the light emitting diode LED can blink normally, normally off or aperiodically, so as to better indicate the communication state.
Further, the preset first duration is equal to the preset second duration. Namely, when the air conditioner external unit and the air conditioner internal unit are in normal communication, the light emitting diode LED can be lightened or extinguished after the same time, so that the LED flickers more regularly, and the communication state can be further conveniently indicated.
Further, in step S4, the program burning interface alternately outputs a high level signal and a low level signal to alternately turn on and off the light emitting diode LED, including: if the microcontroller 100 sends the first data packet to the air conditioner indoor unit, the program burning interface outputs a high level signal, the light emitting diode LED is lightened, and if the microcontroller 100 receives the second data packet sent by the air conditioner indoor unit, the program burning interface outputs a low level signal, and the light emitting diode LED is extinguished. That is to say, when the light emitting diode LED periodically flashes, it indicates that the air conditioner external unit and the air conditioner internal unit are in normal communication, when the light emitting diode LED is normally on, it indicates that the air conditioner external unit cannot receive the second data packet sent by the air conditioner internal unit, when the light emitting diode LED is normally off, it indicates that the air conditioner external unit cannot send the first data packet to the air conditioner internal unit, and when the light emitting diode LED aperiodically flashes, that is, when the flashing time is not equal, it indicates that the first data packet or the second data packet is lost in the communication process, so that the communication state of the air conditioner external unit and the air conditioner internal unit can be accurately determined.
Further, in step S4, before the microcontroller 100 performs loop communication with the air conditioner internal unit, the interface multiplexing method includes: and the microcontroller 100 performs power-on reset, if the microcontroller 100 passes the power-on reset, the program burning interface outputs a high-level signal, and after the preset waiting time, the step of performing cyclic communication between the microcontroller 100 and an air conditioner internal unit is executed. That is to say, before the air conditioner external unit communicates with the air conditioner internal unit, the air conditioner external unit is powered on and reset, the power-on reset process may include powering on, reading a preset delay function, and then reading an operating parameter (i.e., an E-square parameter), wherein the power-on reset process continues for a preset power-on reset duration, when the power-on reset process is normal, the program burning interface outputs a high-level signal, and lights the light emitting diode LED, which indicates that the power supply of the air conditioner external unit is normal, otherwise, the light emitting diode LED is turned off in the power-on reset process, which indicates that the power supply of the air conditioner external unit is abnormal.
The microcontroller 100 in the prior art needs to be used for indicating the power state through a second GPIO (General-purpose input/output) interface (i.e., a pin), and after the program burning interface is multiplexed into an I/O interface, the function of indicating the power state can be realized, so that the communication state does not need to be indicated through the second GPIO interface, and interface resources are further saved.
Based on the above interface multiplexing method, an embodiment of the present application further provides an air conditioner external unit, including: the microcontroller 100 comprises a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded by the processor to execute the interface multiplexing method.
Specifically, in this embodiment, the processor loads the executable file corresponding to the process of one or more application programs into the memory according to the following instructions, and the processor runs the application programs stored in the memory, thereby implementing various functions as follows:
microcontroller 100 burns the control program through serial debug interface 200.
The microcontroller 100 receives a control signal triggered based on the control program, and assigns a program debugging flag bit of the control program according to the control signal.
If the program debug flag is asserted to the predetermined first value, the microcontroller 100 configures the program burning interface as a program debug interface.
If the program debug flag is assigned to the preset second value, the microcontroller 100 configures the program burning interface as an I/O interface, where the preset first value is different from the preset second value.
Based on the above interface multiplexing method, an embodiment of the present application further provides a computer-readable storage medium, where the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. On which a computer program is stored which is loaded by a processor to perform the above-described interface multiplexing method. For example, the computer program may be loaded by a processor to perform the steps of:
the control program is burned through the serial debug interface 200.
And receiving a control signal triggered based on the control program, and assigning a program debugging flag bit of the control program according to the control signal.
And if the program debugging flag bit is assigned to be a preset first value, configuring the program burning interface as a program debugging interface.
And if the program debugging flag bit is assigned as a preset second value, configuring the program burning interface as an I/O interface, wherein the preset first value is different from the preset second value.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing embodiments, which are not described herein again.
The interface multiplexing method, the air conditioner external unit and the readable storage medium provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. An interface multiplexing method is applied to an air conditioner external unit and is characterized in that the air conditioner external unit comprises a microcontroller and a serial debugging interface electrically connected with a program burning interface of the microcontroller;
the method comprises the following steps:
the microcontroller records a control program through the serial debugging interface;
the microcontroller receives a control signal triggered based on the control program, and assigns a program debugging flag bit of the control program according to the control signal;
if the program debugging flag bit is assigned as a preset first value, the microcontroller configures the program burning interface as a program debugging interface;
and if the program debugging flag bit is assigned as a preset second value, the microcontroller configures the program burning interface as an I/O interface, and the preset first value is different from the preset second value.
2. The interface multiplexing method of claim 1, wherein the microcontroller receives a control signal triggered by the control program, and assigns a program debug flag bit of the control program according to the control signal, and the method comprises:
the microcontroller receives a control signal triggered based on the control program;
if the control signal is a preset program debugging signal, the control signal assigns the program debugging flag bit to the preset first value;
and if the control signal is a preset volume production signal, the control signal assigns the program debugging zone bit to the preset second value.
3. The interface multiplexing method of claim 1 wherein the microcontroller configures the program burn interface as a program debug interface comprising:
and the microcontroller calls the program debugging address according to the preset first value so as to configure the program burning interface as a program debugging interface.
4. The interface multiplexing method of claim 1 wherein the microcontroller configures the program burn interface as an I/O interface comprising:
and the microcontroller calls the I/O interface address according to the preset second value so as to configure the program burning interface as an I/O interface.
5. The interface multiplexing method according to any one of claims 1 to 4, wherein the outdoor unit further comprises a light emitting diode, a positive electrode of the light emitting diode is electrically connected to the program burning interface, and a negative electrode of the light emitting diode is electrically connected to a power ground;
if the program debugging flag bit is assigned as a preset second value, the microcontroller configures the program burning interface as an I/O interface, including:
if the program debugging flag bit is assigned as a preset second value, the microcontroller configures the program burning interface as an I/O interface;
the microcontroller is in cyclic communication with the air conditioner internal unit, and the program burning interface alternately outputs high level signals and low level signals so as to alternately turn on and off the light emitting diodes.
6. The interface multiplexing method of claim 5, wherein the microcontroller is in cyclic communication with an air conditioner internal unit, and comprises:
after a first time length is preset, the microcontroller sends a first data packet to the air conditioner internal unit;
and after a second time length is preset, the microcontroller receives a second data packet sent by the air conditioner indoor unit.
7. The interface multiplexing method of claim 6 wherein the predetermined first duration is equal to the predetermined second duration.
8. The interface multiplexing method of claim 6, wherein the program burning interface alternately outputs a high level signal and a low level signal to alternately turn on and off the light emitting diodes, comprising:
if the microcontroller sends the first data packet to the air conditioner internal unit, the program burning interface outputs the high level signal, and the light emitting diode is lightened;
and if the microcontroller receives the second data packet sent by the air conditioner indoor unit, the program burning interface outputs the low level signal, and the light emitting diode is turned off.
9. The interface multiplexing method of claim 5, wherein before the microcontroller is in cyclic communication with an air conditioner indoor unit, the method comprises:
and the microcontroller performs power-on reset, if the microcontroller passes the power-on reset, the program burning interface outputs a high-level signal, and after the preset waiting time, the step of performing cyclic communication between the microcontroller and an air conditioner internal unit is executed.
10. An outdoor unit for an air conditioner, comprising: the microcontroller comprises a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded by the processor to execute the interface multiplexing method of any one of claims 1 to 9.
11. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor to perform the interface multiplexing method of any one of claims 1 to 9.
CN202110384774.9A 2021-04-09 2021-04-09 Interface multiplexing method, air conditioner external unit and readable storage medium Pending CN113238767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110384774.9A CN113238767A (en) 2021-04-09 2021-04-09 Interface multiplexing method, air conditioner external unit and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110384774.9A CN113238767A (en) 2021-04-09 2021-04-09 Interface multiplexing method, air conditioner external unit and readable storage medium

Publications (1)

Publication Number Publication Date
CN113238767A true CN113238767A (en) 2021-08-10

Family

ID=77127880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110384774.9A Pending CN113238767A (en) 2021-04-09 2021-04-09 Interface multiplexing method, air conditioner external unit and readable storage medium

Country Status (1)

Country Link
CN (1) CN113238767A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579502A (en) * 2022-02-28 2022-06-03 湖南进芯电子科技有限公司 Burning interface system, microprocessor and burning method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389260A (en) * 2015-12-15 2016-03-09 合肥联宝信息技术有限公司 Basic input/output system (BIOS) debugging system and method
CN112506727A (en) * 2020-12-16 2021-03-16 珠海昇生微电子有限责任公司 Method and system for debugging, testing and updating firmware of chip

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389260A (en) * 2015-12-15 2016-03-09 合肥联宝信息技术有限公司 Basic input/output system (BIOS) debugging system and method
CN112506727A (en) * 2020-12-16 2021-03-16 珠海昇生微电子有限责任公司 Method and system for debugging, testing and updating firmware of chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579502A (en) * 2022-02-28 2022-06-03 湖南进芯电子科技有限公司 Burning interface system, microprocessor and burning method
CN114579502B (en) * 2022-02-28 2023-06-20 湖南进芯电子科技有限公司 Burning interface system, microprocessor and burning method

Similar Documents

Publication Publication Date Title
CN110634530B (en) Chip testing system and method
TWI525559B (en) Artificial intelligence editor, apparatus and method for achieving artificial intelligence behavior
CN111552486B (en) SSD firmware burning method and related components
CN110569158A (en) method and device for testing abnormal power failure in SSD random scene and computer equipment
CN113238767A (en) Interface multiplexing method, air conditioner external unit and readable storage medium
US20160092201A1 (en) Method and Device for Updating Program Data
CN111124803A (en) Method and device for controlling state of indicator light and computer readable storage medium
CN114138360B (en) Multi-core programming starting method and system for DSP (digital Signal processor) on Flash
CN105677429A (en) Program burning method, processor and electronic circuit
CN106547577B (en) Method and device for burning microcontroller chip
US20120047382A1 (en) Script engine for control of power management controllers
CN112181388A (en) SDK component initialization method, device, storage medium and control terminal
CN106919857B (en) Chip, and starting protection device and method of chip
CN112416376A (en) Chip burning method, burning equipment, chip and system
CN115273944A (en) EEPROM data storage circuit, writing method and air conditioner
CN112799683A (en) Terminal device program programming and testing method
CN109388531B (en) Testing device and testing method based on DSP board card
CN111813702B (en) Debugging system, debugging method, device, and computer-readable storage medium
CN100367147C (en) Method and device for setting working clock by detecting state of BIOS
CN113434179A (en) Online upgrade method, device, equipment and storage medium for programmable power supply
CN107194258A (en) Method, device and electronic equipment, the storage medium of monitoring code leak
TWI789185B (en) Processing system and method of dynamic adjust hardware kernel in booting
CN115114101B (en) Link testing method, device, system and storage medium
CN117891518A (en) Method for automatically identifying and loading serial screen drivers of various models
TW202125231A (en) A system and a method for providing a status indicator during a power-on self-test routine

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