CN114489727A - Data programming method and device, air conditioner controller, air conditioner and storage medium - Google Patents

Data programming method and device, air conditioner controller, air conditioner and storage medium Download PDF

Info

Publication number
CN114489727A
CN114489727A CN202210078404.7A CN202210078404A CN114489727A CN 114489727 A CN114489727 A CN 114489727A CN 202210078404 A CN202210078404 A CN 202210078404A CN 114489727 A CN114489727 A CN 114489727A
Authority
CN
China
Prior art keywords
data
programming
storage module
module
level signal
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
CN202210078404.7A
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.)
Hisense Shandong Air Conditioning Co Ltd
Original Assignee
Hisense Shandong Air Conditioning 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 Hisense Shandong Air Conditioning Co Ltd filed Critical Hisense Shandong Air Conditioning Co Ltd
Priority to CN202210078404.7A priority Critical patent/CN114489727A/en
Publication of CN114489727A publication Critical patent/CN114489727A/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/65Updates
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/52Indication arrangements, e.g. displays
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/54Control or safety arrangements characterised by user interfaces or communication using one central controller connected to several sub-controllers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control 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/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/89Arrangement or mounting of control or safety devices

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a data programming method and device, an air conditioner controller, an air conditioner and a storage medium, wherein the method comprises the following steps: controlling the first power supply module to output a first level signal to the programming terminal so that the programming terminal can program data into the storage module; judging whether the data is successfully programmed into the storage module; if so, sending out a prompt message of successful programming, otherwise, controlling a second power supply module to output a second level signal to the programming terminal so that the programming terminal can again program data into the storage module. According to the invention, the first power supply module and the second power supply module are arranged to supply power to the storage module, and the power supply module matched with the storage module is determined, so that the problem of data programming failure in the storage module caused by a wrong power supply is avoided, and thus, the risk of programming is reduced, and the user experience is improved.

Description

Data programming method and device, air conditioner controller, air conditioner and storage medium
Technical Field
The invention relates to the technical field of air conditioners, in particular to a data programming method and device, an air conditioner controller, an air conditioner and a storage medium.
Background
In the air conditioning industry, an external storage medium is usually used to store partial data, the stored partial data may include air conditioning operation information, model information, protection state data, and the like, and an MCU (micro controller Unit) reads the data and implements product functions according to a program written by itself. In the past, an external eeprom (Electrically Erasable programmable read only memory) is usually adopted as a storage medium in the industry, and an IIC (Inter-Integrated Circuit, half-duplex synchronous communication) communication mode is adopted at an eeprom design end for data burning and reading, so that a controller chip and the eeprom also adopt the mode for data interaction, and along with the development of an MCU, the function of an internal storage space is added inside the eeprom, and the original eeprom of the air conditioner can be replaced, and the operation data required by the air conditioner is stored.
However, at present, two power supply specifications, such as 3.3V and 5V, generally exist for an MCU chip, wherein a 5V chip can recognize a power supply of 4V or more, a 3.3V chip can recognize a 2.7V-3.6V chip, and if a writer of a 3.3V power supply is used to write data, data writing of the 3.3V chip can be realized, but data writing of the 5V chip cannot be realized; if a programming device with a 5V power supply is used for programming, 3.3V and 5V chip data programming can be realized, but the 5V voltage exceeds the power supply range of a 3.3V chip, so that the chip can be burned.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art.
Therefore, a first object of the present invention is to provide a data writing method, in which a first power module is controlled to output a first level signal to a writing terminal, so that the writing terminal writes data into a storage module, and determines whether writing of data into the storage module is successful, when writing of data is successful, a prompt message indicating that writing is successful is sent, and when writing of data is failed, a second power module is controlled to output a second level signal to the writing terminal, so that the writing terminal writes data into the storage module again, and thus, by providing the first power module and the second power module to supply power to the storage module, a power module matched with the storage module is determined, thereby avoiding a problem of failure of writing of data in the storage module due to a power source failure, and improving user experience while reducing risk of writing.
Therefore, the second purpose of the invention is to provide a data programming device.
Therefore, the third purpose of the invention is to provide an air conditioner controller.
Therefore, the fourth purpose of the invention is to provide an air conditioner controller.
To this end, a fifth object of the present invention is to provide an air conditioner.
To this end, a sixth object of the invention is to propose a computer-readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention proposes a data writing method for an air conditioner controller, the air conditioner controller including: the method comprises the following steps of: controlling the first power supply module to output a first level signal to the programming terminal so that the programming terminal can program data into the storage module; judging whether the data is successfully programmed into the storage module; if so, sending prompt information of successful programming, otherwise, controlling the second power supply module to output a second level signal to the programming terminal so that the programming terminal again programs data into the storage module.
According to the data programming method provided by the embodiment of the invention, the first power module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
In some embodiments, determining whether writing data to the memory module is successful includes: judging whether the content of the data programmed into the storage module is consistent with the content of preset programming data or not; if the data content in the storage module is consistent with the content of the preset programming data, determining that the programming of the data in the storage module is successful; and if the data content in the storage module is inconsistent with the content of the preset programming data, determining that the programming of the data into the storage module fails.
In some embodiments, determining whether writing data to the memory module is successful includes: obtaining a checksum corresponding to data written in the storage module; judging whether the checksum is equal to a preset checksum or not; if the checksum is equal to the preset checksum, determining that data is successfully written into the storage module; and if the checksum is not equal to the preset checksum, determining that the data programming into the storage module fails.
In some embodiments, determining whether writing data to the memory module is successful includes: after the data programming is completed in the storage module, detecting whether the storage module receives a feedback signal; if the storage module receives the feedback signal, determining whether the data programming in the storage module is successful; and if the storage module does not receive the feedback signal, determining that the data programming to the storage module fails.
In some embodiments, after determining that the writing of the data into the memory module fails, the method further includes: controlling the second power supply module to output a second level signal to the programming terminal so that the programming terminal can program data into the storage module; judging whether the data is successfully programmed into the storage module; if so, sending out a prompt message of successful programming, otherwise, sending out fault alarm information.
To achieve the above object, an embodiment of a second aspect of the present invention proposes a data writing apparatus, including: the first control module is used for controlling the first power supply module to output a first level signal to the programming terminal so as to enable the programming terminal to program data into the storage module; the judging module is used for judging whether the data is successfully written into the storage module; and the second control module is used for sending prompt information of successful programming when the data programming is successful in the storage module, and controlling the second power supply module to output a second level signal to the programming terminal when the data programming is failed in the storage module, so that the programming terminal can again program the data in the storage module.
According to the data programming device provided by the embodiment of the invention, the first power supply module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power supply module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
To achieve the above object, an embodiment of a third aspect of the present invention proposes an air conditioner controller including: the first voltage module is used for outputting a first level signal; the second voltage module is used for outputting a second level signal; the programming terminal is used for programming data into the storage module according to the first level signal or the second level signal; and the control unit is used for executing the data programming method in the embodiment.
According to the air conditioner controller provided by the embodiment of the invention, the first power supply module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power supply module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
To achieve the above object, an embodiment of a fourth aspect of the present invention proposes an air conditioner controller including: the first voltage module is used for outputting a first level signal; the second voltage module is used for outputting a second level signal; the programming terminal is used for programming data into the storage module according to the first level signal or the second level signal; the data programming apparatus according to the above embodiment.
According to the air conditioner controller provided by the embodiment of the invention, the first power supply module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power supply module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
To achieve the above object, an embodiment of a fifth aspect of the present invention proposes an air conditioner including the air conditioner controller described in the above embodiment.
According to the air conditioner provided by the embodiment of the invention, the first power supply module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the success of the programming is sent, and when the data programming fails, the second power supply module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
To achieve the above object, an embodiment of a sixth aspect of the present invention provides a computer-readable storage medium, on which a data programming program is stored, and the data programming program, when executed by a processor, implements the data programming method according to the above embodiment.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of a hardware structure of an air conditioner controller according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of data programming according to one embodiment of the present invention;
FIG. 3 is a flow chart of a method of data programming in accordance with a specific embodiment of the present invention;
FIG. 4 is a block diagram of a data programming apparatus according to one embodiment of the present invention;
FIG. 5 is a block diagram of an air conditioner controller according to one embodiment of the present invention;
FIG. 6 is a block diagram of an air conditioner controller according to one embodiment of the present invention;
fig. 7 is a block diagram of an air conditioner according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below, the embodiments described with reference to the drawings being illustrative, and the embodiments of the present invention will be described in detail below.
In the embodiment, as shown in fig. 1, a schematic diagram of a hardware structure of an air conditioner controller according to an embodiment of the present invention is shown. The air conditioner controller comprises a first power supply module, a second power supply module, a programming terminal and a storage module, and when data programming is carried out, the programming of data in the storage module is realized based on the structure.
The data writing method according to the embodiment of the present invention will be explained below.
The data programming method according to the embodiment of the present invention is described below with reference to fig. 2 and 3, and as shown in fig. 2, the data programming method according to the embodiment of the present invention at least includes steps S1 to S3.
In step S1, when data is programmed, the first power module, for example, the 3.3V power module, is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the memory module.
When the memory module, such as an MCU chip, uses the programming terminal to program data into the memory module, first, the first power supply module, such as a 3.3V power supply module, is controlled to output a first level signal to the programming terminal, and the first level signal is output to the programming terminal, so that the programming terminal performs data programming on the memory module, such as an air conditioner controller.
In an embodiment, when data is programmed into a memory module, in order to prevent a chip from being damaged due to an excessive voltage, a first power module with a lower voltage is used to output a first level signal, so that a programming terminal performs data programming on the memory module according to the received first level signal.
And step S2, after the programming is finished, judging whether the programming of the data in the storage module is successful, and carrying out corresponding processing according to different results.
In an embodiment, after the programming terminal completes programming data into the storage module, the programming data in the storage module may be successfully programmed or may fail, and whether the programming data in the storage module is successfully programmed is determined by judging the programming data in the storage module.
And step S3, if the data is successfully programmed in the storage module, sending a prompt message of successful programming, and if the data is unsuccessfully programmed in the storage module, controlling the second power supply module to output a second level signal to the programming terminal so that the programming terminal again programs the data in the storage module.
In the embodiment, when the first power supply module is used for outputting the first level signal to the programming terminal, the programming terminal is used for programming data into the storage module, and whether the programming data is successful or not can be determined by judging the programming data in the storage module; if the programming fails, the first power module is considered to possibly be incapable of being used as a power module for programming the air conditioner controller, at the moment, the second power module is controlled to output a second level signal to the programming terminal, so that the programming terminal can again program data into the storage module, therefore, by arranging the two power modules, after the first power module fails to program the storage module, the second power module is controlled to output the second level signal to the programming terminal, so that the programming terminal can again program data into the storage module, the power module suitable for the storage module is determined, the problem that the voltage of the power module is improper, and the data programming failure in the storage module is caused is avoided, and the risk of programming is reduced.
According to the data programming method provided by the embodiment of the invention, the first power module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
In some embodiments, when determining whether to successfully write data into the storage module, it is necessary to determine whether content of the data written into the storage module is consistent with content of preset write data; if the data content in the storage module is consistent with the content of the preset programming data, determining that the programming of the data in the storage module is successful; and if the data content in the storage module is inconsistent with the content of the preset programming data, determining that the programming of the data into the storage module fails.
In an embodiment, when the first power module is used for outputting a first level signal to the programming terminal, so that the programming terminal writes data into the memory module, firstly, whether the data is successfully programmed into the memory module is judged, specifically, whether the content of the data programmed into the memory module is consistent with the content of preset programming data is judged, in other words, after the programming is completed, the programming data in the memory module is read, the read data is compared with the content of the preset programming data, and if the content of the read data is consistent with the content of the preset programming data, the data is considered to be successfully programmed into the memory module; and if the read data is inconsistent with the content of the preset programming data, the programming of the data into the storage module is considered to be failed. And comparing the read content of the programming data with the content of the preset programming data to judge whether the programming data is successful or not.
In some embodiments, when judging whether the data programming into the storage module is successful, acquiring a checksum corresponding to the data programming into the storage module; judging whether the checksum is equal to a preset checksum or not; if the checksum is equal to the preset checksum, determining that the data is successfully written into the storage module; and if the checksum is not equal to the preset checksum, determining that the data programming into the storage module fails.
In an embodiment, when determining whether to successfully write data in the storage module, a checksum corresponding to the data written in the storage module may be determined, for example, the data written in the storage module is summed to obtain a checksum, the obtained checksum is compared with a preset checksum, and if the checksum is equal to the preset checksum, it may be determined that the data written in the storage module is successful; and if the checksum and the preset checksum are not equal, determining that the data programming into the storage module fails, and comparing the relation between the checksum and the preset checksum after the data programming is completed so as to judge whether the data programming is successful.
In some embodiments, determining whether writing data to the memory module was successful comprises: after the data are programmed into the storage module, detecting whether the storage module receives a feedback signal; if the storage module receives the feedback signal, determining whether the data programming in the storage module is successful; and if the storage module does not receive the feedback signal, determining that the data programming to the storage module fails.
In an embodiment, when determining whether the data programming in the storage module is successful, it may be determined whether the data programming is successful according to IIC communication, specifically, after the data programming is completed, it is detected whether the storage module receives a feedback signal, if it is determined that the storage module receives the feedback signal, it is determined that the data programming in the storage module is successful, and if the storage module does not receive the feedback signal, it is determined that the data programming in the storage module is failed, so as to determine whether the data programming is successful.
In some embodiments, after determining that the data programming to the memory module fails, controlling the second power module to output a second level signal to the programming terminal, so that the programming terminal again programs the data to the memory module; judging whether the data is programmed into the storage module again successfully; if so, sending out a prompt message of successful programming, otherwise, sending out fault alarm information.
In an embodiment, after it is determined that the writing of the data into the memory module fails, the second power module is controlled to output the second level signal to the writing terminal, for example, the 5.5V power module is controlled to output the second level signal to the writing terminal, so that the writing terminal writes the data into the memory module again, at this time, it is determined whether the writing of the data into the memory module again succeeds, specifically, it may be determined whether the content of the data in the writing value storage module is consistent with the content of the preset writing data, or it is determined whether a checksum corresponding to the writing data in the memory module is equal to the preset checksum, or it is determined whether the memory module receives a feedback signal, so as to determine whether the writing of the data succeeds.
The data programming method according to the embodiment of the present invention is illustrated with reference to fig. 3, and as shown in fig. 3, is a flowchart of the data programming method according to the embodiment of the present invention.
Step S11, start.
In step S12, the control unit controls the first power module to output the first level signal to the programming terminal, so that the programming terminal programs data into the memory module.
Step S13, determining whether the data writing to the memory module is successful, if yes, executing step S14, and if not, executing step S15.
And step S14, sending out the prompt information of successful programming.
In step S15, the second power module is controlled to output the second level signal to the programming terminal, so that the programming terminal again programs data into the memory module.
In step S16, it is determined whether the data is successfully programmed into the storage module again, if so, step S14 is performed, and if not, step S17 is performed.
And step S17, sending out fault alarm information.
According to the data programming method provided by the embodiment of the invention, the first power module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
The data writing apparatus of the embodiment of the present invention is described below.
As shown in fig. 4, the data writing apparatus 2 according to the embodiment of the present invention includes: the memory module comprises a first control module 20, a judgment module 21 and a second control module 22, wherein the first control module 20 is used for controlling a first power supply module to output a first level signal to a programming terminal so that the programming terminal can program data into the memory module; the judging module 21 is used for judging whether the data programming to the storage module is successful; the second control module 22 is configured to send a prompt message that the data programming is successful when the data programming is successful in the memory module, and control the second power module to output a second level signal to the programming terminal when the data programming is unsuccessful in the memory module, so that the programming terminal again programs the data in the memory module.
According to the data programming device 2 provided by the embodiment of the invention, the first power module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
In some embodiments, the determining module 21 is specifically configured to: judging whether the content of the data programmed into the storage module is consistent with the content of the preset programming data; if the data content in the storage module is consistent with the content of the preset programming data, determining that the programming of the data in the storage module is successful; and if the data content in the storage module is inconsistent with the content of the preset programming data, determining that the programming of the data into the storage module fails.
In some embodiments, the determining module 21 is specifically configured to: acquiring a checksum corresponding to data programmed into a storage module; judging whether the checksum is equal to a preset checksum or not; if the checksum is equal to the preset checksum, determining that the data is successfully written into the storage module; and if the checksum is not equal to the preset checksum, determining that the data programming into the storage module fails.
In some embodiments, the determining module 21 is specifically configured to: after the data are programmed into the storage module, detecting whether the storage module receives a feedback signal; if the storage module receives the feedback signal, determining whether the data programming in the storage module is successful; and if the storage module does not receive the feedback signal, determining that the data programming to the storage module fails.
In some embodiments, the second control module 22 is specifically configured to: controlling the second power supply module to output a second level signal to the programming terminal so that the programming terminal can program data into the storage module; judging whether the data is successfully programmed into the storage module; if so, sending out a prompt message of successful programming, otherwise, sending out fault alarm information.
An air conditioner controller according to an embodiment of the present invention is described below.
As shown in fig. 5, the air conditioner controller 3 of the embodiment of the present invention includes: a first voltage module 30 for outputting a first level signal; a second voltage module 31, configured to output a second level signal; a programming terminal 32 for programming data into the memory module according to the first level signal or the second level signal; and a control unit 33 for executing the data programming method as in the above embodiment.
According to the air conditioner controller 3 provided by the embodiment of the invention, the first power supply module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power supply module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again, therefore, the first power supply module and the second power supply module are arranged to supply power to the storage module, the power supply module matched with the storage module is determined, the problem that the data programming fails in the storage module due to the wrong power supply is avoided, and the user experience is improved while the risk of programming is reduced.
An air conditioner controller according to an embodiment of the present invention is described below.
As shown in fig. 6, the air conditioner controller 4 of the embodiment of the present invention includes: the first voltage module 40 is configured to output a first level signal; the second voltage module 41 is configured to output a second level signal; the programming terminal 42 is used for programming data into the memory module according to the first level signal or the second level signal; the data writing device 2 of the above embodiment.
According to the air conditioner controller 3 provided by the embodiment of the invention, the first power supply module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power supply module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again, therefore, the first power supply module and the second power supply module are arranged to supply power to the storage module, the power supply module matched with the storage module is determined, the problem that the data programming fails in the storage module due to the wrong power supply is avoided, and the user experience is improved while the risk of programming is reduced.
An air conditioner according to an embodiment of the present invention is described below.
As shown in fig. 7, the air conditioner 5 of the embodiment of the present invention includes: the air conditioner controller 3 of the above embodiment or the air conditioner controller 4 of the above embodiment.
According to the air conditioner 5 provided by the embodiment of the invention, the first power supply module is controlled to output the first level signal to the programming terminal, so that the programming terminal can program data into the storage module, whether the data programming into the storage module is successful or not is judged, when the data programming is successful, the prompt message of the successful programming is sent, and when the data programming fails, the second power supply module is controlled to output the second level signal to the programming terminal, so that the programming terminal can program the data into the storage module again.
To achieve the above object, an embodiment of a fourth aspect of the present invention provides a computer-readable storage medium, on which a data programming program is stored, and the data programming program, when executed by a processor, implements the data programming method according to the above embodiment.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. A data burning method is used for an air conditioner controller, and the air conditioner controller comprises the following steps: the method comprises the following steps of:
controlling the first power supply module to output a first level signal to the programming terminal so that the programming terminal can program data into the storage module;
judging whether the data is successfully programmed into the storage module;
if so, sending prompt information of successful programming, otherwise, controlling the second power supply module to output a second level signal to the programming terminal so that the programming terminal again programs data into the storage module.
2. The data writing method according to claim 1, wherein the determining whether the writing of the data into the storage module is successful comprises:
judging whether the content of the data programmed into the storage module is consistent with the content of preset programming data or not;
if the data content in the storage module is consistent with the content of the preset programming data, determining that the programming of the data into the storage module is successful;
and if the data content in the storage module is inconsistent with the content of the preset programming data, determining that the programming of the data into the storage module fails.
3. The data writing method according to claim 1, wherein the determining whether the writing of the data into the storage module is successful comprises:
obtaining a checksum corresponding to data written in the storage module;
judging whether the checksum is equal to a preset checksum or not;
if the checksum is equal to the preset checksum, determining that data is successfully written into the storage module;
and if the checksum is not equal to the preset checksum, determining that the data programming into the storage module fails.
4. The data writing method according to claim 1, wherein the determining whether the writing of the data into the storage module is successful comprises:
after the data programming is completed in the storage module, detecting whether the storage module receives a feedback signal;
if the storage module receives the feedback signal, determining whether the data programming in the storage module is successful;
and if the storage module does not receive the feedback signal, determining that the data programming to the storage module fails.
5. The data burning method according to any one of claims 2 to 4, after determining that the data burning into the storage module fails, further comprising:
controlling the second power supply module to output the second level signal to the programming terminal so that the programming terminal can again program data into the storage module;
judging whether the data is programmed into the storage module again successfully;
if so, sending out a prompt message of successful programming, otherwise, sending out fault alarm information.
6. A data writing device, for use in an air conditioning controller, the air conditioning controller comprising: first power module, second power module, burn and write terminal and memory module, the device includes:
the first control module is used for controlling the first power supply module to output a first level signal to the programming terminal so as to enable the programming terminal to program data into the storage module;
the judging module is used for judging whether the data is successfully written into the storage module;
and the second control module is used for sending prompt information of successful programming when the data programming is successful in the storage module, and controlling the second power supply module to output a second level signal to the programming terminal when the data programming is failed in the storage module so that the programming terminal can again program the data in the storage module.
7. An air conditioner controller, comprising:
the first voltage module is used for outputting a first level signal;
the second voltage module is used for outputting a second level signal;
the programming terminal is used for programming data into the storage module according to the first level signal or the second level signal;
a control unit for executing the data programming method according to any one of claims 1 to 5.
8. An air conditioner controller, comprising:
the first voltage module is used for outputting a first level signal;
the second voltage module is used for outputting a second level signal;
the programming terminal is used for programming data into the storage module according to the first level signal or the second level signal;
the data writing apparatus of claim 6.
9. An air conditioner, comprising: an air conditioning controller as claimed in claim 7 or 8.
10. A computer-readable storage medium, on which a data programming program is stored, which when executed by a processor implements the data programming method according to any one of claims 1 to 5.
CN202210078404.7A 2022-01-24 2022-01-24 Data programming method and device, air conditioner controller, air conditioner and storage medium Pending CN114489727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210078404.7A CN114489727A (en) 2022-01-24 2022-01-24 Data programming method and device, air conditioner controller, air conditioner and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210078404.7A CN114489727A (en) 2022-01-24 2022-01-24 Data programming method and device, air conditioner controller, air conditioner and storage medium

Publications (1)

Publication Number Publication Date
CN114489727A true CN114489727A (en) 2022-05-13

Family

ID=81475505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210078404.7A Pending CN114489727A (en) 2022-01-24 2022-01-24 Data programming method and device, air conditioner controller, air conditioner and storage medium

Country Status (1)

Country Link
CN (1) CN114489727A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981683A (en) * 2023-03-20 2023-04-18 荣湃半导体(上海)有限公司 Euse automatic programming circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981683A (en) * 2023-03-20 2023-04-18 荣湃半导体(上海)有限公司 Euse automatic programming circuit
CN115981683B (en) * 2023-03-20 2023-07-11 荣湃半导体(上海)有限公司 Automatic efuse programming circuit

Similar Documents

Publication Publication Date Title
CN102033814B (en) Method for accessing flash memory and relevant memory device
US20030227796A1 (en) Nonvolatile semiconductor memory device capable of correcting over-erased memory cells
CN114489727A (en) Data programming method and device, air conditioner controller, air conditioner and storage medium
CN112291621A (en) System upgrading automation test method, device and test equipment
US8228018B2 (en) Control system for motor
KR101533813B1 (en) Apparatus and method for controlling power relay assembly
CN116880782A (en) Embedded memory and testing method thereof
CN109614118B (en) SPI Flash firmware burning method and device
CN113885416A (en) Method and system for automatically detecting servo motor parameters
JP4978476B2 (en) Power supply status detection device
CN108302724A (en) A kind of air-conditioner control system and method
US11823750B2 (en) One-time programmable memory and method for verification and access
CN113190259B (en) Data programming method and device, internet module and storage medium
CN111459726A (en) Chip and chip self-repairing method
CN112860582A (en) Local voice recognition module production test method
CN113777528A (en) IIC leakage current detection circuit, detection method and test tool
CN112988465A (en) Method for automatically recovering operation of single chip microcomputer in upgrading failure
JP2002150246A (en) Portable electronic device
CN106569861B (en) Chip IAP data updating control method and system
CN111400092A (en) Memory, program burning method thereof and liquid crystal display device
CN115497522B (en) Storage device and data protection method thereof
CN214897632U (en) Detection device of nonvolatile memory
CN219143810U (en) SPD (single-sided digital video recorder) burning device of DDR5 memory bank
CN113467842B (en) Method for starting embedded device suitable for industrial application scene, embedded device and computer readable storage medium
CN111414272B (en) Electronic device and reset method thereof

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Applicant after: Hisense Air Conditioning Co.,Ltd.

Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Applicant before: HISENSE (SHANDONG) AIR-CONDITIONING Co.,Ltd.