CN111578489A - EEPROM chip data reading method, control system, air conditioner and storage medium - Google Patents
EEPROM chip data reading method, control system, air conditioner and storage medium Download PDFInfo
- Publication number
- CN111578489A CN111578489A CN202010396887.6A CN202010396887A CN111578489A CN 111578489 A CN111578489 A CN 111578489A CN 202010396887 A CN202010396887 A CN 202010396887A CN 111578489 A CN111578489 A CN 111578489A
- Authority
- CN
- China
- Prior art keywords
- eeprom chip
- data
- mcu
- preset
- unit mcu
- 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
Links
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/88—Electrical aspects, e.g. circuits
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/30—Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
- F24F11/32—Responding to malfunctions or emergencies
- F24F11/38—Failure diagnosis
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/50—Control or safety arrangements characterised by user interfaces or communication
- F24F11/54—Control or safety arrangements characterised by user interfaces or communication using one central controller connected to several sub-controllers
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/62—Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
- F24F11/63—Electronic processing
- F24F11/64—Electronic processing using pre-stored data
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/62—Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
- F24F11/63—Electronic processing
- F24F11/65—Electronic processing for selecting an operating mode
Landscapes
- Engineering & Computer Science (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Signal Processing (AREA)
- Fuzzy Systems (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Biomedical Technology (AREA)
- Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention provides an EEPROM chip data reading method, a control system, an air conditioner and a storage medium, wherein the EEPROM chip data reading method comprises the following steps: the outer machine MCU is powered on or reset; reading the data of the EEPROM chip for the first time after electrifying or resetting; when the data of the EEPROM chip is failed to be read for the first time after the external unit MCU is powered on or reset, the external unit MCU executes a preset IIC bus unlocking flow; after the external unit MCU finishes the preset IIC bus unlocking process, reading EEPROM chip data again; when the external unit MCU finishes the preset IIC bus unlocking process and fails to read the EEPROM chip data again, executing a preset external unit control module resetting process; and when the external unit MCU successfully reads the data of the EEPROM chip again after the preset IIC bus unlocking process is executed, controlling the normal operation of the air conditioning unit. The invention can improve the success rate of reading the data of the EEPROM chip.
Description
Technical Field
The invention relates to the technical field of air conditioner control, in particular to an EEPROM chip data reading method, a control system, an air conditioner and a storage medium.
Background
The air conditioner operation related parameters are usually stored in an EEPROM memory chip, the MCU (micro control unit) reads the operation related parameters stored in the EEPROM memory chip after the air conditioner mainboard is powered on, and the air conditioner unit is controlled to operate according to the read operation related parameters. It can be seen that the successful reading of EEPROM data by the MCU (micro control unit) is a basic prerequisite for the normal operation of the air conditioner.
During the operation of the air conditioner, the reading of the EEPROM data may fail for various reasons. When EEPROM data reading fails, the existing air conditioner has no corresponding solution, and an air conditioning unit cannot normally operate, possibly bringing about after-sale complaints.
Disclosure of Invention
The invention solves the problem that when the EEPROM data reading of the existing air conditioner fails, no corresponding solution exists, and the air conditioning unit can not normally operate.
In order to solve the above problems, the present invention provides a method for reading data from an EEPROM chip, comprising:
the outer machine MCU is powered on or reset; reading the data of the EEPROM chip for the first time after electrifying or resetting; when the data of the EEPROM chip is successfully read for the first time after the outer unit MCU is powered on or reset, controlling the air conditioning unit to normally operate; when the data of the EEPROM chip is failed to be read for the first time after the external unit MCU is powered on or reset, the external unit MCU executes a preset IIC bus unlocking flow; after the external unit MCU finishes the preset IIC bus unlocking process, reading EEPROM chip data again; when the external unit MCU finishes the preset IIC bus unlocking process and fails to read the EEPROM chip data again, executing a preset external unit control module resetting process; and when the external unit MCU successfully reads the data of the EEPROM chip again after the preset IIC bus unlocking process is executed, controlling the normal operation of the air conditioning unit.
The IIC bus is unlocked when the data of the EEPROM chip fails to be read for the first time, so that the problem of data reading failure of the EEPROM chip caused by locking of the IIC bus can be solved, if the data of the EEPROM chip cannot be read successfully after the IIC bus is unlocked, the external machine control module is controlled to reset, the problem of data reading failure of the EEPROM chip caused by failure of the EEPROM chip is solved, and therefore the reading success rate of the EEPROM chip can be improved, and the failure rate of a unit and the after-sale complaint rate are reduced.
Optionally, the executing a preset external machine control module resetting process includes:
the outer machine MCU sends a reset request to the inner machine control module;
the indoor unit control module receives the reset request and then executes a preset reset operation, or, the indoor unit control module receives the reset request and then judges whether the number of times that the outer unit MCU sends the reset request is less than a preset number of times, if the number of times that the outer unit MCU sends the reset request is less than the preset number of times, then the execution of the preset reset operation is executed, wherein the preset reset operation comprises: and cutting off the working power supply of the external machine control module, and recovering the working power supply of the external machine control module after preset time.
The air conditioner has the advantages that the air conditioner is fully utilized to be provided with the inner machine control module and the outer machine control module (comprising the outer machine MCU and the EEPROM chip), the inner machine control module is utilized to control the on-off of the working power supply of the outer machine control module (further controlling the on-off of the working power supply of the EEPROM chip), the EEPROM chip can be reset on the premise of not additionally increasing the cost, the problem that data cannot be successfully read due to the failure of the EEPROM chip is solved, and the data reading success rate of the EEPROM chip is improved.
Optionally, after the internal machine control module receives the reset request, determining whether the number of times that the external machine MCU sends the reset request is less than a preset number of times, the method further includes:
and if the number of times of sending the reset request by the external unit MCU is greater than or equal to the preset number of times, sending a backup operation entering instruction to the external unit MCU. The problem that the air conditioner cannot normally operate due to the fact that data of the EEPROM chip cannot be read normally can be avoided, customer complaint rate is reduced, and the fact that a user can use the air conditioner in an emergency mode is guaranteed.
Optionally, after the power-on or reset of the external MCU, the method includes:
the external unit MCU judges whether a backup operation instruction is received or not; if yes, obtaining a backup operation parameter, and controlling the air conditioning unit to operate based on the backup operation parameter; and if not, executing the step of reading the EEPROM chip data for the first time after electrifying or resetting.
The air conditioner is controlled to enter a backup running state, so that the emergency use of a user is guaranteed, the problem that the air conditioner cannot run normally due to the fact that data of the EEPROM chip cannot be read normally is avoided, and the customer complaint rate is reduced.
Optionally, the backup operation parameter is stored in the external unit MCU. The backup operation parameters of the outdoor unit MCU can be conveniently and quickly obtained, and the outdoor unit MCU can quickly enter a backup operation state to ensure the stable operation of the air conditioner.
Optionally, after the external unit MCU determines whether a backup operation instruction is received, the method further includes:
and if the external unit MCU receives a backup operation instruction, acquiring backup operation parameters, controlling the air conditioning unit to operate based on the backup operation parameters, reporting an EEPROM data reading abnormal fault and prompting a user to maintain. The fault can be supervised and urged to be solved quickly, so that the air conditioner can enter normal operation as soon as possible, and the service life of the air conditioner is prolonged.
Optionally, the executing, by the external unit MCU, a preset IIC bus unlocking process includes:
resetting the IIC peripheral module of the external unit MCU;
configuring SCL and SDA pins of the outdoor unit MCU as GPIO modes;
configuring an SCL pin of the outdoor unit MCU as an output mode, and configuring an SDA pin as an input mode;
the external unit MCU controls the SCL to output N pulses by a GPIO output port, wherein N is an integer larger than the data frame bit number;
configuring SCL and SDA of the outdoor unit MCU as IIC mode;
and initializing the IIC peripheral module of the external unit MCU.
Through a relatively complete and sufficient IIC bus unlocking process, smooth unlocking of the IIC bus can be guaranteed, the IIC bus is further ensured to be in a normal state, the problem of data reading failure of an EEPROM chip caused by deadlock of the IIC bus is solved, and the data reading success rate of the EEPROM chip is improved.
The invention also proposes a control system comprising: the control system comprises an external machine control module and an internal machine control module, wherein the external machine control module comprises an external machine MCU, an EEPROM chip, a power supply unit and an external machine communication unit, the internal machine control module comprises an internal machine MCU, a power supply control unit and an internal machine communication unit, and the control system realizes the control of the air conditioner according to the data reading method of the EEPROM chip. Compared with the prior art, the control system and the data reading method of the EEPROM chip have the same advantages, and are not repeated herein.
The invention also provides an air conditioner which comprises the control system. Compared with the prior art, the air conditioner and the data reading method of the EEPROM chip have the same advantages, and are not repeated herein.
The invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is read and executed by a processor, the method for reading the data of the EEPROM chip is implemented. The advantages of the computer readable storage medium and the data reading method of the EEPROM chip are the same compared with the prior art, and are not repeated herein.
Drawings
FIG. 1 is a schematic diagram of an EEPROM chip data reading method according to an embodiment of the present invention;
FIG. 2 is a timing chart of IIC bus in the data reading method of the EEPROM chip of the present invention;
FIG. 3 is a schematic diagram of an embodiment of an IIC bus unlocking process preset in the data reading method of the EEPROM chip;
FIG. 4 is a schematic diagram of another embodiment of the data reading method for the EEPROM chip of the invention;
FIG. 5 is a schematic diagram of another embodiment of the data reading method for the EEPROM chip of the invention;
FIG. 6 is a schematic diagram of an embodiment of a control system of the present invention;
FIG. 7 is a schematic view of an air conditioner according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The invention provides an EEPROM chip data reading method (the full English name and Chinese name of EEPROM are respectively Electrically Erasable Programmable Read-Only Memory). FIG. 1 is a schematic diagram of an EEPROM chip data reading method according to an embodiment of the invention. As shown in fig. 1, the data reading method of the EEPROM chip includes:
step S10, the outer machine MCU is powered on or reset; wherein, the MCU English full name and the Chinese name are Microcontroller Unit microcontrol units respectively.
Step S20, the data of the EEPROM chip is read for the first time after being electrified or reset;
step S30, when the external unit MCU is powered on or reset and the EEPROM chip data is read successfully for the first time, controlling the normal operation of the air conditioning unit;
and the external unit MCU can read the data of the EEPROM chip according to the conventional IIC bus time sequence from the power-off state to the power-on state or after the external unit MCU is reset. And the external unit MCU and the EEPROM chip establish communication through the IIC bus time sequence.
The EEPROM chip stores the optimal operation parameters of the air conditioner, and the operation according to the optimal operation parameters can ensure that the air conditioning unit operates in the optimal state. When the data of the EEPROM chip is successfully read, the air conditioning unit is directly controlled to operate based on the read data, so that the operation can ensure that the MCU of the external unit can finish the reading of the data of the EEPROM chip at the highest speed in a normal state and can enter normal operation as soon as possible.
Optionally, the step S10 is followed by:
the external unit MCU judges whether a backup operation instruction is received or not; if yes, obtaining a backup operation parameter, and controlling the air conditioning unit to operate based on the backup operation parameter; if not, the step of step S20 is executed.
After the outer unit MCU is powered on or reset, it is first determined whether the inner unit control module has sent a backup operation command, if so, it enters a backup operation state, and if not, it executes step S20 and its subsequent steps.
After the outer unit MCU is powered on or reset, the outer unit MCU has no memory capacity on data before being powered on or reset, and cannot know whether a preset outer unit control module reset process is executed before the outer unit MCU and several preset outer unit control module reset processes are executed. And the backup operation parameters are stored in the external unit MCU.
Step S40, when the external unit MCU fails to read the EEPROM chip data for the first time after being powered on or reset, the external unit MCU executes a preset IIC bus unlocking process;
wherein the IIC bus (also denoted as I)2C bus) is a serial bus consisting of one data line SDA and one clock line SCL.
When the data reading of the EEPROM chip fails, the IIC bus is unlocked according to a preset IIC bus unlocking flow. Because the external unit MCU and the EEPROM chip establish communication through the IIC bus time sequence, if the IIC bus is deadlocked, the external unit MCU cannot establish normal communication with the EEPROM chip, and the external unit MCU cannot acquire the relevant operating parameters of the air conditioner to perform normal air conditioner operation control.
For the understanding of the embodiment of the present invention, the IIC bus deadlock is explained in detail as follows: in practical applications, the IIC bus may be locked due to the following conditions in the process of reading the data of the EEPROM chip by the external unit MCU: (1) because the working voltage ranges of the MCU chip and the EEPROM chip of the external unit are often inconsistent, when the working voltage of the EEPROM chip is lower than that of the MCU chip and the fluctuation of the power supply voltage is unstable, the MCU is reset, and the EEPROM chip still works normally; (2) the MCU is reset due to overflow of the watchdog, and the EEPROM chip still works normally; (3) the MCU is reset for other reasons, and the EEPROM chip still works normally. The reason why the IIC bus is locked is as follows: when the MCU reads the EEPROM chip by adopting the hardware IIC, if the MCU resets in the process of reading the EEPROM data by the MCU, the IIC bus can be locked. After the IIC bus is locked, the SCL is always at a high level, the SDA is always at a low level, and the MCU can not communicate with the EEPROM chip any more. Figure 2 shows the IIC bus timing diagram. If the external unit MCU (master device) just sends the 9 th clock pulse (the 9 th clock pulse is taken as an example here to illustrate the situation that other slave devices such as ACK response, slave device output data low level, etc. pull down the SDA), at this time, SCL is high level, and the EEPROM chip (slave device) pulls down the SDA to prepare for ACK response, the SCL becomes low after the MCU (master device) finishes sending the 9 th clock pulse normally, and the EEPROM chip (slave device) can release the SDA to high level. However, if the MCU (master device) is reset during the 9 th clock pulse, and the EEPROM chip (slave device) is still working normally, the release SCL after the MCU (master device) is reset will always be at high level, so the EEPROM chip (slave device) will not wait until SCL goes low level, the EEPROM chip (slave device) will continue to respond and cannot release SDA, and the SDA will always be at low level; after the MCU (master device) is reset, the SDA is found to be low all the time and is considered to be occupied, and the EEPROM chip (slave device) is waited for releasing the SDA to be high all the time. Thus, the MCU (master) and the EEPROM chip (slave) enter a mutually waiting deadlock.
Therefore, when data reading of the EEPROM chip fails, the IIC bus unlocking process is executed to ensure that the IIC bus is in a normal state, if the IIC bus is actually in a deadlock state, the preset IIC bus unlocking process is executed to unlock the IIC bus and ensure that the IIC bus is in a normal state, and if the IIC bus is actually in a normal state, the preset IIC bus unlocking process is executed to ensure that the IIC bus is in a normal state. After the preset IIC bus unlocking process, if the data of the EEPROM chip fails to be read again, the reason of the deadlock of the IIC bus can be eliminated, and other fault elimination modes are adopted.
Optionally, the preset IIC bus unlocking process includes: and controlling the SCL clock line to continuously generate N clock pulse signals, wherein N is an integer larger than the number of data frame bits. For example, when the number of data frame bits of the SDA data line transfer data is 8, 9 clock pulse signals may be output.
Optionally, as shown in fig. 3, the preset IIC bus unlocking process includes: resetting an IIC peripheral module of the external unit MCU; SCL and SDA pins of an external unit MCU are configured to be in a GPIO mode; configuring an SCL pin of an external unit MCU as an output mode, and configuring an SDA pin as an input mode; the external unit MCU controls the SCL to output N pulses by a GPIO output port, wherein N is an integer larger than the data frame bit number; configuring SCL and SDA of an external unit MCU as IIC modes; and initializing the IIC peripheral module of the external unit MCU.
Wherein, the GPIO full name and Chinese name are General-purpose input/output ports respectively.
Through a relatively complete and sufficient IIC bus unlocking process, smooth unlocking of the IIC bus can be guaranteed, the IIC bus is further ensured to be in a normal state, the problem of data reading failure of an EEPROM chip caused by deadlock of the IIC bus is solved, and the data reading success rate of the EEPROM chip is improved.
Step S50, after the external unit MCU finishes the preset IIC bus unlocking process, reading EEPROM chip data again;
and after the IIC bus is unlocked, the external unit MCU reads the data of the EEPROM chip according to the conventional IIC bus time sequence.
Step S60, when the external machine MCU finishes the preset IIC bus unlocking process and fails to read the EEPROM chip data again, executing a preset external machine control module resetting process;
in the foregoing process, the situation of the deadlock of the IIC bus is eliminated, and if the data of the EEPROM chip fails to be read again after the IIC bus is unlocked, the EEPROM chip itself or other reasons may cause a failure, so that the preset external machine control module reset process is executed.
Optionally, the preset external machine control module resetting process includes: and cutting off the power supply of the external machine control module, and recovering the power supply of the external machine control module after a certain time.
After the preset external machine control module reset process is executed, the external machine control module is powered on again, which is equivalent to re-executing step S10 and the subsequent steps. For ease of understanding, a specific embodiment is shown in FIG. 4:
step 1: and the MCU and the EEPROM chips of the external unit are electrified and reset.
Step 2: judging whether a backup operation instruction is received or not, and if the backup operation instruction is not received, entering Step 3; if a backup operation command is received, Step8 is entered.
Step 3: and the external unit MCU reads the data of the EEPROM chip according to the time sequence of the conventional IIC bus.
Step 4: judging whether the data of the EEPROM chip is successfully read or not, and if the data of the EEPROM chip is successfully read, entering Step 7; if the EEPROM data reading for the first time is unsuccessful, then Step5 is entered; if the second EEPROM data read check is unsuccessful, then Step6 is entered.
Step 5: and executing the IIC bus unlocking time sequence, and entering Step3 after IIC is unlocked.
Step 6: and sending an EEPROM chip reset request to the internal machine control module, and entering Step1 after resetting.
Step 7: and (5) normally operating the unit.
Step 8: and the external machine control module operates according to the backup operation parameters stored by the MCU, so that the emergency use of a user is guaranteed.
And step S70, when the external unit MCU successfully reads the EEPROM chip data again after the preset IIC bus unlocking process is executed, controlling the normal operation of the air conditioning unit.
And when the data of the EEPROM chip is successfully read, controlling the normal operation of the air conditioning unit based on the read related parameters.
Optionally, after the preset external machine control module reset flow is executed, if the EEPROM chip data fails to be read again, the preset external machine control module reset flow is executed again until the preset external machine control module reset flow is repeatedly executed for a preset number of times, if the EEPROM chip data fails to be read, the occurrence of a fault is prompted in a preset manner, and if the EEPROM chip data is successfully read, the air conditioning unit is controlled to normally operate.
The IIC bus is unlocked when the data of the EEPROM chip fails to be read for the first time, so that the problem of data reading failure of the EEPROM chip caused by locking of the IIC bus can be solved, if the data of the EEPROM chip cannot be read successfully after the IIC bus is unlocked, the external machine control module is controlled to reset, the problem of data reading failure of the EEPROM chip caused by failure of the EEPROM chip is solved, and therefore the reading success rate of the EEPROM chip can be improved, and the failure rate of a unit and the after-sale complaint rate are reduced.
Optionally, the executing a preset external machine control module resetting process includes:
the outer machine MCU sends a reset request to the inner machine control module; the indoor unit control module receives the reset request and then executes a preset reset operation, or, the indoor unit control module receives the reset request and then judges whether the number of times that the outer unit MCU sends the reset request is less than a preset number of times, if the number of times that the outer unit MCU sends the reset request is less than the preset number of times, then the execution of the preset reset operation is executed, wherein the preset reset operation comprises: and cutting off the working power supply of the external machine control module, and recovering the working power supply of the external machine control module after preset time.
The outer machine MCU sends a reset request to the inner machine control module, and the inner machine control module executes corresponding preset reset operation, namely, the working power supply of the outer machine control module is cut off and recovered. Optionally, after the internal machine control module receives the reset request, the preset reset operation may be executed immediately.
Optionally, after the internal unit control module receives the reset request, it is determined whether the number of times that the external unit MCU sends the reset request is less than a preset number of times, if so, the internal unit control module performs a preset reset operation, and if the number of times that the external unit MCU sends the reset request is greater than or equal to the preset number of times, it indicates that the preset reset operation cannot solve the problem that the current EEPROM chip data cannot be successfully read, and may send an instruction to the external unit MCU to prompt a fault, or directly report the fault by the internal unit control module to prompt maintenance, and no longer perform the preset reset operation.
The external unit MCU and the EEPROM chip have the same operating power source, so the external unit MCU cannot control the on/off of the operating power source of the EEPROM chip, and for this situation, another hardware module (such as a power control circuit) is usually configured to perform a preset reset operation, i.e., control the on/off of the operating power source of the EEPROM chip, but this requires additional hardware cost. The embodiment of the invention fully utilizes the characteristics that the air conditioner has the internal machine control module and the external machine control module (comprising the external machine MCU and the EEPROM chip), utilizes the internal machine control module to control the on-off of the working power supply of the external machine control module, can realize the reset of the EEPROM chip on the premise of not additionally increasing the cost, solves the problem that data cannot be successfully read due to the failure of the EEPROM chip, and improves the success rate of reading the data of the EEPROM chip.
The preset number of times may be selected to be 3 times.
By executing the preset IIC bus unlocking flow and the preset external machine control module resetting flow for multiple times, the possibility of automatically solving the problem of data reading failure of the EEPROM chip is improved, and further, the data reading success rate of the EEPROM chip is improved.
Optionally, after the internal machine control module receives the reset request, determining whether the number of times that the external machine MCU sends the reset request is less than a preset number of times, the method further includes:
and if the number of times of sending the reset request by the external unit MCU is greater than or equal to the preset number of times, sending a backup operation entering instruction to the external unit MCU.
When the number of times of sending the reset request by the outer unit MCU is greater than or equal to the preset number of times, the fact that the air conditioner cannot restore the normal data reading function of the EEPROM chip by itself is indicated, in order to avoid the situation that the air conditioner cannot normally operate and reduce the customer complaint rate due to the fact that the data of the EEPROM chip cannot be read normally, the inner unit control module sends a back-up operation entering instruction to the outer unit MCU, so that the outer unit MCU controls the air conditioner to enter a back-up operation state, and the emergency use of a user is guaranteed. Optionally, the backup operation parameters are stored in the external unit MCU, and the external unit MCU can obtain the backup operation parameters at any time. Optionally, the backup operation parameter may also be stored in the internal unit MCU, and when the internal unit control module sends a command for entering backup operation to the external unit MCU, the backup operation parameter is sent at the same time.
The EEPROM chip stores the optimal operation parameters which are specially matched for each model with different configurations, and the unit can be ensured to operate in the optimal state according to the optimal operation parameters. And the backup operation parameters stored by the external unit MCU can be selected as general operation parameters matched for all machine types, so that the unit can be ensured to operate in a reliable state, and the emergency use of a user can be ensured.
The outer machine MCU only needs to directly send a reset request to the inner machine control module, corresponding judgment operation is executed by the inner machine control module, the number of times of sending the reset request at the outer machine MCU is larger than or equal to the preset number of times, the problem that the current EEPROM chip data cannot be successfully read can be solved by the preset reset operation, the problem that the air conditioner cannot normally operate due to the fact that the EEPROM chip data cannot be normally read is solved, the customer complaint rate is reduced, an instruction of entering a backup operation is sent to the outer machine MCU, backup operation parameters are obtained by the outer machine MCU, the air conditioner is controlled to enter a backup operation state, and emergency use of a user is guaranteed. And the backup operation parameters are stored in the external unit MCU, and the external unit MCU can be obtained at any time.
As shown in fig. 5, in an embodiment, after the air conditioner is started to operate, the internal control module provides a working power supply to the external control module, and determines whether a reset request sent by the external MCU is received, if the reset request is received, it is further determined whether the reset request exceeds 3 times, if the reset request exceeds 3 times, an abnormal failure of EEPROM data reading is reported to prompt maintenance, and simultaneously a command for entering a backup operation is sent to the external MCU, if the reset request is less than or equal to 3 times, the internal control module cuts off the working power supply of the EEPROM chip, and after M min delay (M is a preset duration), the internal control module provides a working power supply to the EEPROM chip again, and returns to the step of determining whether the reset request sent by the external MCU is received.
Optionally, after the external unit MCU determines whether a backup operation instruction is received, the method further includes:
and if the external unit MCU receives a backup operation instruction, acquiring backup operation parameters, controlling the air conditioning unit to operate based on the backup operation parameters, reporting an EEPROM data reading abnormal fault and prompting a user to maintain. To supervise and urge the fault to be solved as soon as possible and ensure the normal operation of the air conditioner as soon as possible.
The invention also provides a control system. FIG. 6 is a schematic diagram of an embodiment of a control system according to the present invention.
As shown in fig. 6, the control system includes: the control system comprises an inner machine control module and an outer machine control module, wherein the inner machine control module comprises a power supply control unit, an inner machine communication unit and an inner machine processor, the outer machine control module comprises a power supply unit, an outer machine communication unit, the outer machine MCU and the EEPROM chip, and the control system realizes control over the air conditioner according to the EEPROM chip data reading method.
The internal machine control module can control the cut-off or supply of the working power supply of the external machine control module through the power supply control unit. The internal machine control module and the external machine control module exchange communication data through respective communication units. And the external machine MCU and the EEPROM unit in the external machine control module establish communication through the IIC bus time sequence to realize the reading and erasing of EEPROM data.
Optionally, the internal processor or the external MCU is an MCU microcontrol unit.
The invention also provides an air conditioner. Fig. 7 is a schematic view of an air conditioner according to an embodiment of the present invention. As shown in fig. 7, the air conditioner includes the control system as described above.
The invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is read and executed by a processor, the method for reading the data of the EEPROM chip is implemented.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. An EEPROM chip data reading method is characterized by comprising the following steps:
the outer machine MCU is powered on or reset;
reading the data of the EEPROM chip for the first time after electrifying or resetting;
when the data of the EEPROM chip is successfully read for the first time after the outer unit MCU is powered on or reset, controlling the air conditioning unit to normally operate;
when the data of the EEPROM chip is failed to be read for the first time after the external unit MCU is powered on or reset, the external unit MCU executes a preset IIC bus unlocking flow;
after the external unit MCU finishes the preset IIC bus unlocking process, reading EEPROM chip data again;
when the external unit MCU finishes the preset IIC bus unlocking process and fails to read the EEPROM chip data again, executing a preset external unit control module resetting process;
and when the external unit MCU successfully reads the data of the EEPROM chip again after the preset IIC bus unlocking process is executed, controlling the normal operation of the air conditioning unit.
2. The method for reading data from an EEPROM chip of claim 1, wherein the executing the preset external machine control module reset procedure comprises:
the outer machine MCU sends a reset request to the inner machine control module;
the indoor unit control module receives the reset request and then executes a preset reset operation, or, the indoor unit control module receives the reset request and then judges whether the number of times that the outer unit MCU sends the reset request is less than a preset number of times, if the number of times that the outer unit MCU sends the reset request is less than the preset number of times, then the execution of the preset reset operation is executed, wherein the preset reset operation comprises: and cutting off the working power supply of the external machine control module, and recovering the working power supply of the external machine control module after preset time.
3. The method for reading the data of the EEPROM chip of claim 2, wherein after the internal machine control module receives the reset request, and determines whether the number of times that the external machine MCU transmits the reset request is less than a preset number of times, the method further comprises:
and if the number of times of sending the reset request by the external unit MCU is greater than or equal to the preset number of times, sending a backup operation entering instruction to the external unit MCU.
4. The method for reading the data of the EEPROM chip according to any one of claims 1 to 3, wherein the power-on or reset of the external unit MCU comprises:
the external unit MCU judges whether a backup operation instruction is received or not;
if yes, obtaining a backup operation parameter, and controlling the air conditioning unit to operate based on the backup operation parameter;
and if not, executing the step of reading the EEPROM chip data for the first time after electrifying or resetting.
5. The method for reading data from an EEPROM chip of claim 4, wherein the backup operation parameter is stored in the external MCU.
6. The method for reading the data of the EEPROM chip of claim 4, wherein the external unit MCU further comprises, after determining whether a backup operation command is received, the steps of:
and if the external unit MCU receives a backup operation instruction, acquiring backup operation parameters, controlling the air conditioning unit to operate based on the backup operation parameters, reporting an EEPROM data reading abnormal fault and prompting a user to maintain.
7. The EEPROM chip data reading method of any one of claims 1 to 3, wherein the external unit MCU performing the preset IIC bus unlocking procedure includes:
resetting the IIC peripheral module of the external unit MCU;
configuring SCL and SDA pins of the outdoor unit MCU as GPIO modes;
configuring an SCL pin of the outdoor unit MCU as an output mode, and configuring an SDA pin as an input mode;
the external unit MCU controls the SCL to output N pulses by a GPIO output port, wherein N is an integer larger than the data frame bit number;
configuring SCL and SDA of the outdoor unit MCU as IIC mode;
and initializing the IIC peripheral module of the external unit MCU.
8. A control system, comprising: the outdoor unit control module comprises an outdoor unit MCU, an EEPROM chip, a power supply unit and an outdoor unit communication unit, and the indoor unit control module comprises an indoor unit MCU, a power supply control unit and an indoor unit communication unit, and is characterized in that the control system realizes the control of the air conditioner according to the EEPROM chip data reading method of any one of claims 1 to 7.
9. An air conditioner characterized by comprising the control system according to claim 8.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when read and executed by a processor, implements the EEPROM chip data reading method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010396887.6A CN111578489A (en) | 2020-05-12 | 2020-05-12 | EEPROM chip data reading method, control system, air conditioner and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010396887.6A CN111578489A (en) | 2020-05-12 | 2020-05-12 | EEPROM chip data reading method, control system, air conditioner and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111578489A true CN111578489A (en) | 2020-08-25 |
Family
ID=72115331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010396887.6A Pending CN111578489A (en) | 2020-05-12 | 2020-05-12 | EEPROM chip data reading method, control system, air conditioner and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111578489A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112254284A (en) * | 2020-09-02 | 2021-01-22 | 海信(山东)空调有限公司 | Air conditioner and remote upgrading method thereof |
CN113296995A (en) * | 2021-05-21 | 2021-08-24 | 深圳市极致兴通科技有限公司 | Method and device for realizing anti-deadlock of IIC (inter-Integrated Circuit) by hardware and computer storage medium |
CN114756496A (en) * | 2022-03-11 | 2022-07-15 | Tcl空调器(中山)有限公司 | Data reading method and system of EEPROM chip, air conditioner and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1766447A (en) * | 2004-10-28 | 2006-05-03 | 江苏新科电子集团空调器制造有限公司 | Circuit device of indoor unit of air conditioner, circuit device of window type air conditioner, and method for starting air conditioner after sudden power-off |
CN102878638A (en) * | 2012-09-14 | 2013-01-16 | 广东志高空调有限公司 | Air conditioner capable of adjusting control parameters intelligently and read-write method thereof |
CN103678198A (en) * | 2012-09-14 | 2014-03-26 | 京信通信系统(中国)有限公司 | Method, device and system for unlocking locked bus |
CN103940046A (en) * | 2014-04-24 | 2014-07-23 | 广东志高空调有限公司 | Method and system for updating data of frequency conversion outdoor plate controller and associated equipment |
CN105718406A (en) * | 2014-12-02 | 2016-06-29 | 魏廉 | Smart home control system based on improved I<2>C (Inter-Integrated Circuit) bus |
CN106953735A (en) * | 2017-04-27 | 2017-07-14 | 珠海格力电器股份有限公司 | IIC bus unlocking method and IIC bus-based communication system |
CN109388605A (en) * | 2017-08-10 | 2019-02-26 | 深圳市中兴微电子技术有限公司 | A kind of method and apparatus releasing I2C bus deadlock |
CN111007763A (en) * | 2019-12-03 | 2020-04-14 | 宁波奥克斯电气股份有限公司 | A kind of control method of IIC bus unlocking |
-
2020
- 2020-05-12 CN CN202010396887.6A patent/CN111578489A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1766447A (en) * | 2004-10-28 | 2006-05-03 | 江苏新科电子集团空调器制造有限公司 | Circuit device of indoor unit of air conditioner, circuit device of window type air conditioner, and method for starting air conditioner after sudden power-off |
CN102878638A (en) * | 2012-09-14 | 2013-01-16 | 广东志高空调有限公司 | Air conditioner capable of adjusting control parameters intelligently and read-write method thereof |
CN103678198A (en) * | 2012-09-14 | 2014-03-26 | 京信通信系统(中国)有限公司 | Method, device and system for unlocking locked bus |
CN103940046A (en) * | 2014-04-24 | 2014-07-23 | 广东志高空调有限公司 | Method and system for updating data of frequency conversion outdoor plate controller and associated equipment |
CN105718406A (en) * | 2014-12-02 | 2016-06-29 | 魏廉 | Smart home control system based on improved I<2>C (Inter-Integrated Circuit) bus |
CN106953735A (en) * | 2017-04-27 | 2017-07-14 | 珠海格力电器股份有限公司 | IIC bus unlocking method and IIC bus-based communication system |
CN109388605A (en) * | 2017-08-10 | 2019-02-26 | 深圳市中兴微电子技术有限公司 | A kind of method and apparatus releasing I2C bus deadlock |
CN111007763A (en) * | 2019-12-03 | 2020-04-14 | 宁波奥克斯电气股份有限公司 | A kind of control method of IIC bus unlocking |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112254284A (en) * | 2020-09-02 | 2021-01-22 | 海信(山东)空调有限公司 | Air conditioner and remote upgrading method thereof |
CN113296995A (en) * | 2021-05-21 | 2021-08-24 | 深圳市极致兴通科技有限公司 | Method and device for realizing anti-deadlock of IIC (inter-Integrated Circuit) by hardware and computer storage medium |
CN114756496A (en) * | 2022-03-11 | 2022-07-15 | Tcl空调器(中山)有限公司 | Data reading method and system of EEPROM chip, air conditioner and storage medium |
CN114756496B (en) * | 2022-03-11 | 2024-06-04 | Tcl空调器(中山)有限公司 | Data reading method and system of EEPROM chip, air conditioner and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111578489A (en) | EEPROM chip data reading method, control system, air conditioner and storage medium | |
EP1483668B1 (en) | System management controller negotiation protocol | |
US20140350772A1 (en) | Vehicle diagnostic system | |
CN113064747A (en) | Fault positioning method, system and device in server starting process | |
CN111007763B (en) | IIC bus unlocking control method | |
US12222787B2 (en) | Server firmware self-recovery system and server | |
US11687395B2 (en) | Detecting and recovering from fatal storage errors | |
US20240289243A1 (en) | Server and control method therefor | |
WO2022095896A1 (en) | Method for managing ecu on vehicle, and ecu and readable storage medium | |
CN108345464A (en) | A kind of the startup method and Android vehicle device of Android system | |
CN113946130A (en) | Motor controller chip awakens system up | |
CN114443544B (en) | I2C module-based master-slave mode switching method and device | |
CN101557307A (en) | Dispatch automation system application state management method | |
CN110928726A (en) | Embedded system self-recovery method and system based on watchdog and PXE | |
WO2010135966A1 (en) | Upgrade method and device for components in paired redundancy structure | |
CN112988465A (en) | Method for automatically recovering operation of single chip microcomputer in upgrading failure | |
KR102438148B1 (en) | Abnormality detection apparatus, system and method for detecting abnormality of embedded computing module | |
CN113626229B (en) | Motor control chip awakening method based on SBC | |
CN113050407B (en) | Method for determining and switching master controller and slave controller of distributed processing system | |
CN114510374A (en) | Automatic recovery system and method for peripheral mounting failure | |
CN218974903U (en) | Domestic server BIOS firmware backup device | |
CN111414272B (en) | Electronic device and reset method thereof | |
TWI790110B (en) | High-reliability server and multi-party key signal control method | |
CN112649725B (en) | MCU chip failure detection alarm circuit | |
CN116489063A (en) | Method, device, equipment and medium for monitoring switch hardware reset |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200825 |
|
RJ01 | Rejection of invention patent application after publication |