[go: up one dir, main page]

CN216248810U - Board-level MCU data interaction storage system, controller and electrical equipment - Google Patents

Board-level MCU data interaction storage system, controller and electrical equipment Download PDF

Info

Publication number
CN216248810U
CN216248810U CN202122507348.8U CN202122507348U CN216248810U CN 216248810 U CN216248810 U CN 216248810U CN 202122507348 U CN202122507348 U CN 202122507348U CN 216248810 U CN216248810 U CN 216248810U
Authority
CN
China
Prior art keywords
mcu
communication
read
external storage
write
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.)
Withdrawn - After Issue
Application number
CN202122507348.8U
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202122507348.8U priority Critical patent/CN216248810U/en
Application granted granted Critical
Publication of CN216248810U publication Critical patent/CN216248810U/en
Withdrawn - After Issue legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The utility model relates to a board-level MCU data interaction storage system, a controller and electrical equipment, wherein the board-level MCU data interaction storage system comprises: the external storage chip, the read-write interlocking transmission assembly and the single chip microcomputer pair are arranged; the single chip microcomputer pair comprises two MCUs; the two MCUs are connected through the read-write interlocking transmission assembly, and the interlocking relation of the two MCUs is achieved. One MCU sends external storage use information and external storage read-write requirements to the other MCU; and the MCU for receiving the communication transmission data controls the read-write interlocking transmission assembly to unlock according to the external storage use information and the external storage read-write requirement, so that the MCU for sending the communication transmission data performs read-write operation on the external storage chip. According to the scheme, the storage capacity is expanded through the external storage chip, the storage efficiency is improved, interactive unlocking when the MCU accesses the external storage chip is realized through the interlocking relation of the two MCUs, and the storage confidentiality and the storage safety are improved.

Description

板级MCU数据交互存储系统、控制器和电器设备Board-level MCU data interactive storage system, controller and electrical equipment

技术领域technical field

本实用新型涉及数据交互存储技术领域,具体涉及一种板级MCU数据交互存储系统、控制器和电器设备。The utility model relates to the technical field of data interactive storage, in particular to a board-level MCU data interactive storage system, a controller and electrical equipment.

背景技术Background technique

控制器是各种电器设备的控制体系的核心部分,负责控制电器设备各个部件的功能运转。例如,空调控制器负责控制空调各部件的制冷、除湿、制热、自动、送风、开关、自检等功能运转。在人工智能和物联网盛行的今天,随着各种电器设备的智能化程度加深,控制器对嵌入式运算资源的需求进一步增加。单板多个MCU协同工作的情况越来越普遍,同时单个MCU对于运行内存的需求量也越来越大。The controller is the core part of the control system of various electrical equipment, and is responsible for controlling the functional operation of each component of the electrical equipment. For example, the air conditioner controller is responsible for controlling the functions of refrigeration, dehumidification, heating, automatic, air supply, switching, and self-checking of various components of the air conditioner. Today, with the prevalence of artificial intelligence and the Internet of Things, with the deepening of the intelligence of various electrical equipment, the controller's demand for embedded computing resources has further increased. It is more and more common for multiple MCUs on a single board to work together, and at the same time, a single MCU has an increasing demand for running memory.

现有技术中,电器设备的控制器的控制单板内的各个MCU之间的数据交互存储的内存较小并且无保密措施,影响了数据存储效率和存储安全性。In the prior art, the memory for data interactive storage among the MCUs in the control board of the controller of the electrical equipment is small and there is no security measure, which affects the data storage efficiency and storage security.

因此,如何提高板级各MCU之间数据交互存储的存储效率与存储安全性是本领域技术人员亟需解决的技术问题。Therefore, how to improve the storage efficiency and storage security of data interactive storage among the MCUs at the board level is a technical problem that needs to be solved urgently by those skilled in the art.

实用新型内容Utility model content

有鉴于此,本实用新型的目的在于提供一种板级MCU数据交互存储系统、控制器和电器设备,以解决现有技术中控制器的控制单板内的各个MCU之间的数据交互存储的内存较小并且无保密措施,影响了数据存储效率和存储安全性的问题。In view of this, the purpose of this utility model is to provide a board-level MCU data interactive storage system, controller and electrical equipment, so as to solve the problem of data interactive storage between each MCU in the control board of the controller in the prior art. The memory is small and there are no security measures, which affects the data storage efficiency and storage security.

为实现以上目的,本实用新型采用如下技术方案:To achieve the above purpose, the utility model adopts the following technical solutions:

一种板级MCU数据交互存储系统,包括:外置存储芯片、至少一组读写互锁传输组件和至少一组单片机对;所述读写互锁传输组件与所述单片机对一一对应;所述单片机对包括两个MCU;A board-level MCU data interactive storage system, comprising: an external memory chip, at least one group of read-write interlocking transmission components and at least one group of single-chip microcomputer pairs; the read-write interlocking transmission components and the single-chip microcomputer pairs are in one-to-one correspondence; The single-chip pair includes two MCUs;

每个所述MCU均通过所述读写互锁传输组件与所述外置存储芯片相连;Each of the MCUs is connected to the external memory chip through the read-write interlock transmission component;

两个所述MCU之间通过所述读写互锁传输组件相连,以实现两个所述MCU之间的互锁关系;The two MCUs are connected through the read-write interlocking transmission component, so as to realize the interlocking relationship between the two MCUs;

所述读写互锁传输组件用于控制两个所述MCU与所述外置存储芯片的通讯导通或通讯断开;The read-write interlock transmission component is used to control the communication conduction or communication disconnection between the two MCUs and the external memory chip;

两个所述MCU相连,一个所述MCU向另一个所述MCU发送通讯传输数据;所述通讯传输数据包括外置存储使用信息和外置存储读写需求;Two described MCUs are connected, and one described MCU sends communication transmission data to the other described MCU; the communication transmission data includes external storage usage information and external storage reading and writing requirements;

接收通讯传输数据的MCU根据所述外置存储使用信息和所述外置存储读写需求控制所述读写互锁传输组件解锁,以使发送通讯传输数据的MCU与所述外置存储芯片之间的通讯导通;The MCU receiving the communication transmission data controls the read-write interlocking transmission component to unlock according to the external storage usage information and the external storage read and write requirements, so that the MCU that sends the communication transmission data and the external storage chip can communicate with each other. communication between the

所述发送通讯传输数据的MCU根据所述外置存储使用信息和所述外置存储读写需求通过所述读写互锁传输组件对所述外置存储芯片进行读写操作。The MCU that sends the communication transmission data performs read and write operations on the external storage chip through the read-write interlock transmission component according to the external storage usage information and the external storage read and write requirements.

进一步地,上述板级MCU数据交互存储系统中,所述通讯传输数据还包括:工作交互信息;Further, in the above board-level MCU data exchange storage system, the communication transmission data further includes: work interaction information;

所述接收通讯传输数据的MCU根据所述发送通讯传输数据的MCU发送的所述通讯传输数据对预先存储的历史通讯传输数据进行更新,并根据所述工作交互信息进行工作。The MCU that receives the communication transmission data updates the pre-stored historical communication transmission data according to the communication transmission data sent by the MCU that sends the communication transmission data, and works according to the work interaction information.

进一步地,上述板级MCU数据交互存储系统中,所述发送通讯传输数据的MCU根据所述外置存储使用信息和所述外置存储读写需求通过所述读写互锁传输组件对所述外置存储芯片进行读写操作,包括:Further, in the above board-level MCU data interactive storage system, the MCU that sends the communication transmission data uses the read-write interlocking transmission component to transfer the data to the external storage according to the external storage usage information and the external storage read and write requirements. The external memory chip performs read and write operations, including:

若所述外置存储读写需求表示写入需求,所述发送通讯传输数据的MCU将所述工作交互信息通过所述读写互锁传输组件写入到所述外置存储芯片中,并根据所述工作交互信息的写入地址对所述外置存储使用信息进行更新;If the read-write request of the external storage indicates a write request, the MCU sending the communication transmission data writes the work interaction information into the external memory chip through the read-write interlock transmission component, and according to the The write address of the work interaction information updates the external storage usage information;

若所述外置存储读写需求表示读取需求,所述发送通讯传输数据的MCU根据所述外置存储使用信息,通过所述读写互锁传输组件从所述外置存储芯片中读取所述外置存储读写需求对应的目标信息。If the read-write request of the external storage indicates a read request, the MCU that sends the communication transmission data reads from the external memory chip through the read-write interlock transmission component according to the use information of the external storage The external storage stores target information corresponding to read and write requirements.

进一步地,上述板级MCU数据交互存储系统中,每组所述读写互锁传输组件均包括:存储通讯组件、传输电路和两组互锁电路;Further, in the above board-level MCU data interactive storage system, each group of the read-write interlocking transmission components includes: a storage communication component, a transmission circuit and two sets of interlocking circuits;

所述互锁电路与所述MCU一一对应;The interlock circuit is in one-to-one correspondence with the MCU;

所述互锁电路与所述互锁电路对应的MCU相连;the interlock circuit is connected to the MCU corresponding to the interlock circuit;

每组所述互锁电路均通过所述存储通讯组件与所述传输电路相连;Each group of the interlocking circuits is connected with the transmission circuit through the storage communication assembly;

所述传输电路与所述外置存储芯片相连;the transmission circuit is connected to the external memory chip;

所述接收通讯传输数据的MCU根据所述外置存储使用信息和所述外置存储读写需求,向所述发送通讯传输数据的MCU对应的互锁电路发送高电平信号;The MCU that receives the communication transmission data sends a high-level signal to the interlock circuit corresponding to the MCU that sends the communication transmission data according to the external storage usage information and the external storage reading and writing requirements;

所述发送通讯传输数据的MCU对应的互锁电路接收到所述高电平信号后,所述存储通讯组件与所述传输电路之间的通讯导通,以使所述发送通讯传输数据的MCU通过所述发送通讯传输数据的MCU对应的互锁电路、所述存储通讯组件和所述传输电路对所述外置存储芯片进行读写操作。After the interlock circuit corresponding to the MCU that sends the communication and transmission data receives the high-level signal, the communication between the storage communication component and the transmission circuit is turned on, so that the MCU that sends the communication and transmission data is turned on. The external memory chip is read and written through the interlock circuit corresponding to the MCU that sends the communication and transmission data, the storage communication component and the transmission circuit.

进一步地,上述板级MCU数据交互存储系统,还包括:硬件保护组件;Further, the above board-level MCU data interactive storage system further includes: a hardware protection component;

所述硬件保护组件与所述外置存储芯片相连,用于对所述外置存储芯片进行硬件保护。The hardware protection component is connected to the external storage chip, and is used for performing hardware protection on the external storage chip.

进一步地,上述板级MCU数据交互存储系统中,所述发送通讯传输数据的MCU对应的互锁电路包括:第一三极管、第一电阻和第二电阻;Further, in the above board-level MCU data interactive storage system, the interlock circuit corresponding to the MCU that sends the communication transmission data includes: a first transistor, a first resistor and a second resistor;

所述接收通讯传输数据的MCU对应的互锁电路包括:第二三极管、第三电阻和第四电阻;The interlock circuit corresponding to the MCU receiving the communication transmission data includes: a second transistor, a third resistor and a fourth resistor;

所述传输电路包括:第五电阻;The transmission circuit includes: a fifth resistor;

所述发送通讯传输数据的MCU的第一引脚通过所述第一电阻与所述第一三极管的基极相连;The first pin of the MCU that sends the communication transmission data is connected to the base of the first transistor through the first resistor;

所述第一三极管的集电极与所述接收通讯传输数据的MCU的第二引脚相连;The collector of the first triode is connected to the second pin of the MCU that receives the communication and transmission data;

所述第一三极管的发射极通过所述第二电阻接地;The emitter of the first triode is grounded through the second resistor;

所述接收通讯传输数据的MCU的第一引脚通过所述第三电阻与所述第二三极管的基极相连;The first pin of the MCU that receives the communication and transmission data is connected to the base of the second transistor through the third resistor;

所述第二三极管的集电极与所述发射通讯传输数据的MCU的第二引脚相连;The collector of the second triode is connected with the second pin of the MCU that transmits communication and transmits data;

所述第二三极管的发射极通过所述第四电阻接地;The emitter of the second triode is grounded through the fourth resistor;

所述第一三极管的发射极和所述第二三极管的发射极均通过所述存储通讯组件与所述第五电阻相连;Both the emitter of the first triode and the emitter of the second triode are connected to the fifth resistor through the storage communication component;

所述第五电阻与所述外置存储芯片相连;the fifth resistor is connected to the external memory chip;

所述接收通讯传输数据的MCU接收到所述外置存储使用信息和所述外置存储读写需求后,所述接收通讯传输数据的MCU的第二引脚向所述第一三极管的集电极发送高电平信号,以使所述第一三极管的发射极输出高电平信号,从而实现所述发送通讯传输数据的MCU与所述外置存储芯片之间的通讯导通;After the MCU that receives the communication transmission data receives the external storage usage information and the external storage read and write requirements, the second pin of the MCU that receives the communication transmission data sends the information to the first transistor. The collector sends a high-level signal, so that the emitter of the first transistor outputs a high-level signal, so as to realize the communication conduction between the MCU that sends the communication transmission data and the external memory chip;

所述发送通讯传输数据的MCU可以通过所述第一三极管的发射极、所述存储通讯组件和所述第五电阻对所述外置存储芯片进行读写操作。The MCU that sends the communication transmission data can perform read and write operations on the external memory chip through the emitter of the first transistor, the storage communication component and the fifth resistor.

进一步地,上述板级MCU数据交互存储系统中,所述硬件保护组件包括:第六电阻、第七电阻、第三三极管和第四三极管;Further, in the above board-level MCU data interactive storage system, the hardware protection component includes: a sixth resistor, a seventh resistor, a third transistor and a fourth transistor;

所述第三三极管的集电极与电源相连;The collector of the third triode is connected to the power supply;

所述发送通讯传输数据的MCU的第二引脚通过所述第六电阻与所述第三三极管的基极相连;The second pin of the MCU that sends the communication transmission data is connected to the base of the third triode through the sixth resistor;

所述第三三极管的发射极与所述第四三极管的集电极相连;The emitter of the third triode is connected to the collector of the fourth triode;

所述接收通讯传输数据的MCU的第二引脚通过所述第七电阻与所述第四三极管的基极相连;The second pin of the MCU that receives the communication and transmission data is connected to the base of the fourth transistor through the seventh resistor;

所述第四三极管的发射极与所述外置存储芯片相连。The emitter of the fourth triode is connected to the external memory chip.

进一步地,上述板级MCU数据交互存储系统,还包括:板间通讯组件;Further, the above board-level MCU data interactive storage system further includes: an inter-board communication component;

两个所述MCU通过所述板间通讯组件相连。The two MCUs are connected through the inter-board communication component.

进一步地,上述板级MCU数据交互存储系统中,所述板间通讯组件包括UART通讯组件;所述存储通讯组件包括:I2C总线。Further, in the above board-level MCU data interactive storage system, the inter-board communication component includes a UART communication component; the storage communication component includes an I2C bus.

进一步地,上述板级MCU数据交互存储系统中,所述两个MCU包括:外部交互MCU和专项任务MCU。Further, in the above board-level MCU data interaction storage system, the two MCUs include: an external interaction MCU and a special task MCU.

进一步地,上述板级MCU数据交互存储系统中,若所述发送通讯传输数据的MCU为外部交互MCU,所述接收通讯传输数据的MCU为专项任务MCU,则所述工作交互信息包括:所述外部交互MCU对应的机组信息数据、当前机组运行数据和第一程序运行中间数据;Further, in the above board-level MCU data interaction storage system, if the MCU that sends the communication transmission data is an external interaction MCU, and the MCU that receives the communication transmission data is a special task MCU, the work interaction information includes: the The unit information data corresponding to the external interactive MCU, the current unit operation data and the first program operation intermediate data;

若所述发送通讯传输数据的MCU为专项任务MCU,所述接收通讯传输数据的MCU为外部交互MCU,则所述工作交互信息包括:所述专项任务MCU对应的专项任务运行结果和第二程序运行中间数据。If the MCU that sends the communication and transmission data is a special task MCU, and the MCU that receives the communication and transmission data is an external interaction MCU, the work interaction information includes: the special task running result and the second program corresponding to the special task MCU Run intermediate data.

本实用新型还提供了一种控制器,包括:控制单板和上述板级MCU数据交互存储系统;The utility model also provides a controller, comprising: a control single board and the above board-level MCU data interactive storage system;

所述板级MCU数据交互存储系统设置在所述控制单板上。The board-level MCU data exchange storage system is arranged on the control board.

本实用新型还提供了一种电器设备,包括上述控制器。The utility model also provides an electrical equipment, including the above-mentioned controller.

一种板级MCU数据交互存储系统、控制器和电器设备,板级MCU数据交互存储系统包括:外置存储芯片、至少一组读写互锁传输组件和至少一组单片机对;读写互锁传输组件与单片机对一一对应;单片机对包括两个MCU;每个MCU均通过读写互锁传输组件与外置存储芯片相连;两个MCU之间通过读写互锁传输组件相连,以实现两个MCU之间的互锁关系;读写互锁传输组件用于控制两个MCU与外置存储芯片的通讯导通或通讯断开。一个MCU向另一个MCU发送通讯传输数据;通讯传输数据包括外置存储使用信息和外置存储读写需求;接收通讯传输数据的MCU根据外置存储使用信息和外置存储读写需求控制读写互锁传输组件解锁,以使发送通讯传输数据的MCU与外置存储芯片的通讯导通;发送通讯传输数据的MCU根据外置存储使用信息和外置存储读写需求通过所述读写互锁传输组件对外置存储芯片进行读写操作。采用本实用新型的技术方案,通过设置外置存储芯片扩展了存储容量,提高了存储效率,并且通过控制单板中两个MCU之间的互锁关系,实现了MCU访问外置存储芯片时的交互解锁,提高了存储保密性和安全性。A board-level MCU data interactive storage system, a controller and electrical equipment, the board-level MCU data interactive storage system comprises: an external storage chip, at least one group of read-write interlock transmission components and at least one group of single-chip pairs; read-write interlock One-to-one correspondence between transmission components and MCU pairs; MCU pairs include two MCUs; each MCU is connected to an external memory chip through a read-write interlock transmission component; the two MCUs are connected through a read-write interlock transmission component to achieve The interlocking relationship between two MCUs; the read-write interlocking transmission component is used to control the communication conduction or communication disconnection between the two MCUs and the external memory chip. One MCU sends communication transmission data to another MCU; the communication transmission data includes the external storage usage information and the external storage read and write requirements; the MCU receiving the communication transmission data controls the read and write according to the external storage usage information and the external storage read and write requirements The interlocking transmission component is unlocked, so that the communication between the MCU sending the communication transmission data and the external memory chip is conducted; the MCU sending the communication transmission data passes the read-write interlock according to the use information of the external storage and the reading and writing requirements of the external storage The transmission component performs read and write operations on the external memory chip. By adopting the technical scheme of the utility model, the storage capacity is expanded by arranging the external storage chip, the storage efficiency is improved, and the interlocking relationship between the two MCUs in the single board is controlled, so that the MCU can access the external storage chip. Interactive unlocking improves storage confidentiality and security.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本实用新型。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the invention.

附图说明Description of drawings

为了更清楚地说明本实用新型实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本实用新型的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present utility model or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are just some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本实用新型的板级MCU数据交互存储系统一种实施例提供的电路框图;1 is a circuit block diagram provided by an embodiment of a board-level MCU data interactive storage system of the present invention;

图2是本实用新型的板级MCU数据交互存储系统中读写互锁传输组件和硬件保护组件的电路连接图;2 is a circuit connection diagram of a read-write interlock transmission component and a hardware protection component in the board-level MCU data interactive storage system of the present invention;

图3是本实用新型的板级MCU数据交互存储方法一种实施例提供的流程图;3 is a flowchart provided by an embodiment of a method for interactive storage of board-level MCU data of the present invention;

图4是本实用新型的控制器一种实施例提供的结构框图。FIG. 4 is a structural block diagram provided by an embodiment of the controller of the present invention.

具体实施方式Detailed ways

为使本实用新型的目的、技术方案和优点更加清楚,下面将对本实用新型的技术方案进行详细的描述。显然,所描述的实施例仅仅是本实用新型一部分实施例,而不是全部的实施例。基于本实用新型中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所得到的所有其它实施方式,都属于本实用新型所保护的范围。In order to make the objectives, technical solutions and advantages of the present invention more clear, the technical solutions of the present invention will be described in detail below. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other implementations obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present invention.

图1是本实用新型的板级MCU数据交互存储系统一种实施例提供的电路框图,如图1所示,本实施例的板级MCU数据交互存储系统包括:外置存储芯片13、至少一组读写互锁传输组件12和至少一组单片机对11,其中,读写互锁传输组件12与单片机对11一一对应,即一组单片机对11对应一组读写互锁传输组件12。每组单片机对11均包括两个MCU,例如图1中的外部交互MCU111和专项任务MCU112。每个MCU均通过读写互锁传输组件12与外置存储芯片13相连;两个MCU之间通过读写互锁传输组件12相连,从而能够实现两个MCU之间的互锁关系。FIG. 1 is a circuit block diagram provided by an embodiment of the board-level MCU data interactive storage system of the present invention. As shown in FIG. 1 , the board-level MCU data interactive storage system of this embodiment includes: an external memory chip 13, at least one A group of read-write interlock transmission components 12 and at least one group of single-chip pairs 11 , wherein the read-write interlock transmission components 12 correspond to the single-chip pairs 11 one-to-one, that is, a group of single-chip pairs 11 corresponds to a group of read-write interlock transmission components 12 . Each set of microcontroller pairs 11 includes two MCUs, such as an external interaction MCU111 and a special task MCU112 in FIG. 1 . Each MCU is connected to the external memory chip 13 through the read-write interlock transmission component 12; the two MCUs are connected through the read-write interlock transmission component 12, so that the interlock relationship between the two MCUs can be realized.

读写互锁传输组件12可以控制两个MCU与外置存储芯片13的通讯导通或通讯断开。两个MCU相连中,一个MCU向另一个MCU发送通讯传输数据,其中,通讯传输数据包括外置存储使用信息和外置存储读写需求。接收通讯传输数据的MCU可以根据外置存储使用信息和外置存储读写需求控制读写互锁传输组件12解锁,以使发送通讯传输数据的MCU与外置存储芯片之间的通讯导通。这样,发送通讯传输数据的MCU便可以根据外置存储使用信息和外置存储读写需求通过读写互锁传输组件12对外置存储芯片进行读写操作。采用本实施例的技术方案,通过设置外置存储芯片13扩展了存储容量,提高了存储效率,并且通过控制单板中两个MCU之间的互锁关系,实现了MCU访问外置存储芯片13时的交互解锁,提高了存储保密性和安全性。The read-write interlock transmission component 12 can control the communication between the two MCUs and the external memory chip 13 to be turned on or off. When two MCUs are connected, one MCU sends communication transmission data to the other MCU, wherein the communication transmission data includes external storage usage information and external storage reading and writing requirements. The MCU receiving the communication transmission data can control the read-write interlocking transmission component 12 to unlock according to the external storage usage information and the external storage read and write requirements, so that the communication between the MCU sending the communication transmission data and the external storage chip is conducted. In this way, the MCU sending the communication transmission data can perform read and write operations on the external memory chip through the read-write interlocking transmission component 12 according to the external memory usage information and the read and write requirements of the external memory. By adopting the technical solution of this embodiment, the storage capacity is expanded by setting the external storage chip 13, the storage efficiency is improved, and the MCU access to the external storage chip 13 is realized by controlling the interlocking relationship between the two MCUs in the single board. The interactive unlocking at the same time improves the storage confidentiality and security.

进一步地,本实施例的板级MCU数据交互存储系统还包括板间通讯组件14,两个MCU通过板间通讯组件14相连。一个MCU可以通过板间通讯组件14向另一个MCU发送通讯传输数据。其中,板间通讯组件121优选采用UART通讯组件。Further, the board-level MCU data interactive storage system in this embodiment further includes an inter-board communication component 14 , and the two MCUs are connected through the inter-board communication component 14 . One MCU can send communication transmission data to another MCU through the inter-board communication component 14 . The inter-board communication component 121 preferably adopts a UART communication component.

进一步地,通讯传输数据还包括工作交互信息,接收通讯传输数据的MCU可以根据接收到的该通讯传输数据对预先存储的历史通讯传输数据进行更新,并且接收通讯传输数据的MCU还可以根据接收到的工作交互信息进行工作。Further, the communication transmission data also includes work interaction information, the MCU receiving the communication transmission data can update the pre-stored historical communication transmission data according to the received communication transmission data, and the MCU receiving the communication transmission data can also update the historical communication transmission data according to the received communication transmission data. work interaction information.

进一步地,当发送通讯传输数据的MCU发送的外置存储读写需求表示写入需求时,接收通讯传输数据的MCU控制读写互锁传输组件12解锁后,发送通讯传输数据的MCU将工作交互信息通过读写互锁传输组件12写入到外置存储芯片13中,并将外置存储使用信息更新为该工作交互信息的写入地址;当发送通讯传输数据的MCU发送的外置存储读写需求表示读取需求时,接收通讯传输数据的MCU控制读写互锁传输组件12解锁后,发送通讯传输数据的MCU根据外置存储使用信息,通过读写互锁传输组件12从外置存储芯片13中读取外置存储读写需求对应的目标信息。Further, when the external storage read/write request sent by the MCU that sends the communication and transmission data indicates a writing request, the MCU that receives the communication and transmission data controls the read-write interlocking transmission component 12 to unlock, and the MCU that sends the communication and transmission data will work interactively. The information is written into the external storage chip 13 through the read-write interlock transmission component 12, and the external storage usage information is updated to the write address of the working interaction information; When the writing demand indicates the reading demand, the MCU receiving the communication and transmission data controls the read-write interlocking transmission component 12 to unlock, and the MCU that sends the communication and transmission data uses the information from the external storage to store the data from the external storage through the read-write interlocking transmission component 12. The chip 13 reads the target information corresponding to the read and write requirements of the external storage.

具体地,两个MCU包括:外部交互MCU111和专项任务MCU112。外部交互MCU111可以用于外部交互、逻辑运算、负载驱动等;专项任务MCU112可以用于专项任务运行、模型运算等。Specifically, the two MCUs include: an external interaction MCU111 and a special task MCU112. The external interaction MCU 111 can be used for external interaction, logic operation, load driving, etc.; the special task MCU 112 can be used for special task operation, model operation, and the like.

当外部交互MCU111作为发送通讯传输数据的MCU,专项任务MCU112作为接收通讯传输数据的MCU时:When the external interaction MCU111 is used as the MCU for sending communication transmission data, and the special task MCU112 is used as the MCU for receiving communication transmission data:

第一,外部交互MCU111控制空调运行,专项任务MCU112等待外部交互MCU111传输数据。First, the external interaction MCU111 controls the operation of the air conditioner, and the special task MCU112 waits for the external interaction MCU111 to transmit data.

第二,外部交互MCU111和专项任务MCU112通过板间通讯组件14进行数据交互,外部交互MCU111向专项任务MCU112发送通讯传输数据,其中,该通讯传输数据包括:工作交互信息、外置存储使用信息和外置存储读写需求。外部交互MCU111发送的工作交互信息包括:本机型号和机组制冷量等机组信息数据、当前机组运行数据(比如,室内环境温度、室外环境温度、空调开关机状态、用户设定温度、用户设定空调模式等)和第一程序运行中间数据;外置存储使用信息包括:存放数据地址、存放数据种类及组数。Second, the external interaction MCU111 and the special task MCU112 conduct data interaction through the inter-board communication component 14, and the external interaction MCU111 sends communication transmission data to the special task MCU112, wherein the communication transmission data includes: work interaction information, external storage usage information and External storage read and write requirements. The work interaction information sent by the external interaction MCU111 includes: unit information data such as the model of the unit and the cooling capacity of the unit, and current unit operation data (for example, indoor ambient temperature, outdoor ambient temperature, air conditioner switch status, user set temperature, user set Air-conditioning mode, etc.) and the intermediate data of the first program operation; the external storage usage information includes: storage data address, storage data type and group number.

专项任务MCU112中存储有之前外部交互MCU111发送的历史通讯传输数据,当专项任务MCU112再次接收到外部交互MCU111发送的通讯传输数据后,便会根据最新接收的通讯传输数据对预先存储的历史通讯数据进行更新。并且,专利任务MCU在进行工作时,可能会应用到外部交互MCU111发送的工作交互信息,因此,专利任务MCU还可以根据该工作交互信息进行工作。The special task MCU112 stores the historical communication transmission data sent by the external interaction MCU111. When the special task MCU112 receives the communication transmission data sent by the external interaction MCU111 again, it will compare the pre-stored historical communication data according to the newly received communication transmission data. to update. In addition, when the patent task MCU is working, it may be applied to the work interaction information sent by the external interaction MCU 111 . Therefore, the patent task MCU can also work according to the work interaction information.

第三,专项任务MCU112根据外置存储使用信息和外置存储读写需求,控制读写互锁传输组件12解锁,以使外部交互MCU111与外置存储芯片13的通讯导通。Third, the special task MCU112 controls the read-write interlock transmission component 12 to unlock according to the external storage usage information and external storage read/write requirements, so that the communication between the external interaction MCU111 and the external storage chip 13 is conducted.

第四,如果外置存储读写需求表示写入需求,外部交互MCU111将机组信息数据、第一程序运行中间数据和工作交互信息通过读写互锁传输组件12写入到外置存储芯片13中,例如,向外置存储芯片13周期性写入多组当前机组运行数据(比如每分钟记录一次)。其中,外部交互MCU111可以只将外部交互MCU111本身空间无法存放的数据写入到外置存储芯片13。外部交互MCU111还需要根据各数据的写入地址对外置存储使用信息进行更新,以便外部交互MCU111需要读取数据时,可以根据外置存储使用信息查找数据的存储地址。Fourth, if the external storage read and write demand indicates a write demand, the external interaction MCU 111 writes the unit information data, the first program running intermediate data and the work interaction information into the external storage chip 13 through the read-write interlock transmission component 12 For example, multiple sets of current unit operation data are periodically written to the external storage chip 13 (for example, recorded once per minute). The external interaction MCU 111 may only write data that cannot be stored in the external interaction MCU 111's own space to the external memory chip 13 . The external interaction MCU 111 also needs to update the external storage usage information according to the write address of each data, so that when the external interaction MCU 111 needs to read data, it can search for the storage address of the data according to the external storage usage information.

如果外置存储读写需求表示读取需求,外部交互MCU111根据外置存储使用信息对应的地址,通过读写互锁传输组件12从外置存储芯片13中读取外置存储读写需求对应的目标信息。If the external storage read/write request indicates a read request, the external interaction MCU 111 reads the external storage read/write request from the external storage chip 13 through the read/write interlock transmission component 12 according to the address corresponding to the external storage usage information. target information.

当专项任务MCU112作为发送通讯传输数据的MCU,外部交互MCU111作为接收通讯传输数据的MCU时:When the special task MCU112 is used as the MCU for sending communication transmission data, and the external interaction MCU111 is used as the MCU for receiving communication transmission data:

第一,外部交互MCU111和专项任务MCU112通过板间通讯组件14进行数据交互,专项任务MCU112向外部交互MCU111发送通讯传输数据,其中,该通讯传输数据包括:工作交互信息、外置存储使用信息和外置存储读写需求。专项任务MCU112发送的工作交互信息包括:专项任务MCU112对应的专项任务运行结果(比如,物联网联网状态、云端设定开关机等)和第二程序运行中间数据;外置存储使用信息包括:存放数据地址、存放数据种类及组数。First, the external interaction MCU111 and the special task MCU112 conduct data interaction through the inter-board communication component 14, and the special task MCU112 sends communication transmission data to the external interaction MCU111, wherein the communication transmission data includes: work interaction information, external storage usage information and External storage read and write requirements. The work interaction information sent by the special task MCU112 includes: the running results of the special task corresponding to the special task MCU112 (for example, the status of the Internet of Things, the cloud setting on and off, etc.) and the intermediate data of the second program operation; the external storage usage information includes: storage Data address, storage data type and number of groups.

外部交互MCU111中存储有之前专项任务MCU112发送的历史通讯传输数据,当外部交互MCU111再次接收到专项任务MCU112发送的通讯传输数据后,便会根据最新接收的通讯传输数据对预先存储的历史通讯数据进行更新。并且,外部交互MCU111在进行工作时,可能会应用到专项任务MCU112发送的工作交互信息,因此,外部交互MCU111还可以根据该工作交互信息进行工作。The external interaction MCU111 stores the historical communication transmission data sent by the previous special task MCU112. When the external interaction MCU111 receives the communication transmission data sent by the special task MCU112 again, it will compare the pre-stored historical communication data according to the newly received communication transmission data. to update. In addition, when the external interaction MCU 111 performs work, it may be applied to the work interaction information sent by the special task MCU 112 , and therefore, the external interaction MCU 111 can also perform work according to the work interaction information.

第二,外部交互MCU111根据外置存储使用信息和外置存储读写需求,控制读写互锁传输组件12解锁,以使专项任务MCU112与外置存储芯片13的通讯导通。Second, the external interaction MCU 111 controls the read-write interlock transmission component 12 to unlock according to the external storage usage information and external storage read/write requirements, so that the communication between the special task MCU 112 and the external storage chip 13 is conducted.

第三,如果外置存储读写需求表示写入需求,专项任务MCU112将第二程序运行中间数据和工作交互信息通过读写互锁传输组件12写入到外置存储芯片13中,其中,专项任务MCU112可以只将专项任务MCU112本身空间无法存放的数据写入到外置存储芯片13。专项任务MCU112还需要根据各数据的写入地址对外置存储使用信息进行更新,以便专项任务MCU112需要读取数据时,可以根据外置存储使用信息查找数据的存储地址。Third, if the read and write requirements of the external storage indicate the writing requirements, the special task MCU 112 writes the second program running intermediate data and work interaction information into the external storage chip 13 through the read and write interlock transmission component 12, wherein the special task The task MCU 112 can only write the data that cannot be stored in the space of the special task MCU 112 to the external memory chip 13 . The special task MCU 112 also needs to update the external storage usage information according to the write address of each data, so that when the special task MCU 112 needs to read data, it can search for the storage address of the data according to the external storage usage information.

如果外置存储读写需求表示读取需求,专项任务MCU112根据外置存储使用信息对应的地址,通过读写互锁传输组件12从外置存储芯片13中读取外置存储读写需求对应的目标信息。If the read/write requirement of the external storage indicates a read requirement, the special task MCU 112 reads the corresponding address of the read/write requirement of the external storage from the external storage chip 13 through the read/write interlock transmission component 12 according to the address corresponding to the use information of the external storage. target information.

进一步地,本实施例中,每组读写互锁传输组件12均包括:存储通讯组件122、传输电路123和两组互锁电路121。互锁电路121与MCU一一对应,即每个MCU对应设置一组互锁电路121,并且每个MCU均与其对应的互锁电路121相连。每组互锁电路121均通过存储通讯组件122与传输电路123相连,传输电路123与外置存储芯片13相连。其中,存储通讯组件122包括I2C总线。Further, in this embodiment, each group of read-write interlocking transmission components 12 includes: a storage communication component 122 , a transmission circuit 123 and two sets of interlocking circuits 121 . The interlock circuits 121 are in one-to-one correspondence with the MCUs, that is, each MCU is provided with a set of interlock circuits 121 correspondingly, and each MCU is connected to its corresponding interlock circuit 121 . Each group of interlock circuits 121 is connected to the transmission circuit 123 through the storage communication component 122 , and the transmission circuit 123 is connected to the external memory chip 13 . Wherein, the storage communication component 122 includes an I2C bus.

接收通讯传输数据的MCU根据外置存储使用信息和外置存储读写需求,向发送通讯传输数据的MCU对应的互锁电路121发送高电平信号;发送通讯传输数据的MCU对应的互锁电路121接收到高电平信号后,存储通讯组件122与传输电路123之间的通讯导通,以使发送通讯传输数据的MCU通过其对应的互锁电路121、存储通讯组件122和传输电路123对外置存储芯片13进行读写操作。The MCU receiving the communication transmission data sends a high-level signal to the interlock circuit 121 corresponding to the MCU sending the communication transmission data according to the external storage usage information and the reading and writing requirements of the external storage; the interlock circuit corresponding to the MCU sending the communication transmission data After 121 receives the high-level signal, the communication between the storage communication component 122 and the transmission circuit 123 is turned on, so that the MCU that sends the communication transmission data passes the corresponding interlock circuit 121, the storage communication component 122 and the transmission circuit 123 to the outside world. The memory chip 13 is set to perform read and write operations.

本实施例设置了板间通讯组件14和存储通讯组件122,采用多路通讯的方式可以提高外置存储芯片13的保密性,并且多路通讯以及两个MCU共用外置存储,并设置两个MCU之间三种交互(两个MCU通讯交互、MCU与外置存储芯片13的读写交互以及外置存储读写互锁交互)的方式,能够提高数据获取速度,从而降低MCU的运算压力。In this embodiment, the inter-board communication component 14 and the storage communication component 122 are provided. The multi-channel communication method can improve the confidentiality of the external memory chip 13, and the multi-channel communication and the two MCUs share the external storage, and two Three modes of interaction between MCUs (communication interaction between two MCUs, read-write interaction between the MCU and the external memory chip 13 , and read-write interlock interaction of the external storage) can improve the data acquisition speed, thereby reducing the computing pressure of the MCU.

进一步地,本实施例的板级MCU数据交互存储系统,还包括:硬件保护组件。硬件保护组件与外置存储芯片13相连,用于对外置存储芯片13进行硬件保护。Further, the board-level MCU data interactive storage system in this embodiment further includes: a hardware protection component. The hardware protection component is connected to the external storage chip 13 and is used for hardware protection of the external storage chip 13 .

具体地,图2是本实用新型的板级MCU数据交互存储系统中读写互锁传输组件和硬件保护组件的电路连接图,如图2所示,MCU-A为发送通讯传输数据的MCU,MCU-B为接收通讯传输数据的MCU。本实施例中的发送通讯传输数据的MCU对应的互锁电路121包括:第一三极管Q1、第一电阻R1和第二电阻R2。接收通讯传输数据的MCU对应的互锁电路包括:第二三极管Q2、第三电阻R3和第四电阻R4。传输电路包括:第五电阻R5。MCU-A的第一引脚通过第一电阻R1与第一三极管Q1的基极相连;第一三极管Q1的集电极与MCU-B的第二引脚相连;第一三极管Q1的发射极通过第二电阻R2接地;MCU-B的第一引脚通过第三电阻R3与第二三极管Q2的基极相连;第二三极管Q2的集电极与MCU-A的第二引脚相连;第二三极管Q2的发射极通过第四电阻R4接地;第一三极管Q1的发射极和第二三极管Q2的发射极均通过存储通讯组件122与第五电阻R5相连;第五电阻R5与外置存储芯片13的引脚SDA相连。Specifically, Fig. 2 is a circuit connection diagram of a read-write interlock transmission component and a hardware protection component in the board-level MCU data interactive storage system of the present invention, as shown in Fig. 2, MCU-A is the MCU that sends the communication transmission data, MCU-B is the MCU that receives the communication transmission data. The interlock circuit 121 corresponding to the MCU that sends the communication transmission data in this embodiment includes: a first transistor Q1 , a first resistor R1 and a second resistor R2 . The interlock circuit corresponding to the MCU receiving the communication transmission data includes: a second transistor Q2, a third resistor R3 and a fourth resistor R4. The transmission circuit includes: a fifth resistor R5. The first pin of MCU-A is connected to the base of the first transistor Q1 through the first resistor R1; the collector of the first transistor Q1 is connected to the second pin of MCU-B; the first transistor Q1 is connected to the second pin of MCU-B; The emitter of Q1 is grounded through the second resistor R2; the first pin of MCU-B is connected to the base of the second transistor Q2 through the third resistor R3; the collector of the second transistor Q2 is connected to the MCU-A The second pin is connected; the emitter of the second transistor Q2 is grounded through the fourth resistor R4; the emitter of the first transistor Q1 and the emitter of the second transistor Q2 are connected to the fifth through the storage communication component 122 The resistor R5 is connected; the fifth resistor R5 is connected to the pin SDA of the external memory chip 13 .

MCU-B接收到外置存储使用信息和外置存储读写需求后,MCU-B的第二引脚向第一三极管Q1的集电极发送高电平信号MCU-A-LOCK,第一三极管Q1具有开关作用,当第一三极管Q1的集电极为低电平时,第一三极管Q1发射极的信号I2C_SDA无法拉高,从而无法导通MCU-A与外置存储芯片13之间的通讯,因此,只有高电平信号MCU-A-LOCK使得第一三极管Q1导通,才能使第一三极管Q1的发射极输出的信号I2C_SDA为高电平,从而实现MCU-A与外置存储芯片13之间的通讯导通,MCU-A可以通过第一三极管Q1的发射极通过存储通讯组件122与第五电阻R5连通,以使MCU-A可以对外置存储芯片13进行读写操作。After MCU-B receives the external storage usage information and external storage reading and writing requirements, the second pin of MCU-B sends a high-level signal MCU-A-LOCK to the collector of the first transistor Q1, and the first The transistor Q1 has a switching function. When the collector of the first transistor Q1 is at a low level, the signal I2C_SDA of the emitter of the first transistor Q1 cannot be pulled high, so that the MCU-A and the external memory chip cannot be turned on. Therefore, only when the high-level signal MCU-A-LOCK makes the first transistor Q1 turn on, can the signal I2C_SDA output by the emitter of the first transistor Q1 be at a high level, thereby realizing The communication between the MCU-A and the external memory chip 13 is turned on, and the MCU-A can communicate with the fifth resistor R5 through the storage communication component 122 through the emitter of the first transistor Q1, so that the MCU-A can be connected to the external memory chip 13. The memory chip 13 performs read and write operations.

具体地,如图2所示,硬件保护组件包括:第六电阻R6、第七电阻R7、第三三极管Q3和第四三极管Q4;第三三极管Q3的集电极与电源VDD相连;MCU-A的第二引脚通过第六电阻R6与第三三极管Q3的基极相连;第三三极管Q3的发射极与第四三极管Q4的集电极相连;MCU-B的第二引脚通过第七电阻R7与第四三极管Q4的基极相连;第四三极管Q4的发射极与外置存储芯片13的引脚WP相连。Specifically, as shown in FIG. 2, the hardware protection component includes: a sixth resistor R6, a seventh resistor R7, a third transistor Q3 and a fourth transistor Q4; the collector of the third transistor Q3 and the power supply VDD Connected; the second pin of MCU-A is connected with the base of the third transistor Q3 through the sixth resistor R6; the emitter of the third transistor Q3 is connected with the collector of the fourth transistor Q4; MCU- The second pin of B is connected to the base of the fourth transistor Q4 through the seventh resistor R7 ; the emitter of the fourth transistor Q4 is connected to the pin WP of the external memory chip 13 .

具体地,MCU-A的第五引脚通过存储通讯组件122与第八电阻R8相连,第八电阻R8与外置存储芯片13的引脚SCL相连。MCU-A的第三引脚通过UART通讯组件中的RX线与MCU-B的第三引脚相连;MCU-A的第四引脚通过UART通讯组件中的TX线与MCU-B的第四引脚相连。第三三极管Q3的发射极分别通过第九电阻R9和第一电容C1接地;外置存储芯片13的引脚A0、A1、A2、GND均接地;外置存储芯片13的引脚A0、A1、A2、GND均通过第二电容C2与电源VDD相连。外置存储芯片13的引脚SCL通过第十电阻R10与电源VDD相连;外置存储芯片13的引脚SDA通过第十一电阻R11与电源VDD相连。Specifically, the fifth pin of the MCU-A is connected to the eighth resistor R8 through the storage communication component 122 , and the eighth resistor R8 is connected to the pin SCL of the external memory chip 13 . The third pin of MCU-A is connected to the third pin of MCU-B through the RX line in the UART communication component; the fourth pin of MCU-A is connected to the fourth pin of MCU-B through the TX line in the UART communication component. pins are connected. The emitter of the third transistor Q3 is grounded through the ninth resistor R9 and the first capacitor C1 respectively; the pins A0, A1, A2 and GND of the external memory chip 13 are all grounded; A1, A2, and GND are all connected to the power supply VDD through the second capacitor C2. The pin SCL of the external memory chip 13 is connected to the power supply VDD through the tenth resistor R10; the pin SDA of the external memory chip 13 is connected to the power supply VDD through the eleventh resistor R11.

为了更全面,对应于本实用新型实施例提供的板级MCU数据交互存储系统,本申请还提供了板级MCU数据交互存储方法。In order to be more comprehensive, corresponding to the board-level MCU data interactive storage system provided by the embodiment of the present invention, the present application also provides a board-level MCU data interactive storage method.

图3是本实用新型的板级MCU数据交互存储方法一种实施例提供的流程图,如图3所示,本实施例的板级MCU数据交互存储方法应用于上述实施例所述的板级MCU数据交互存储系统,板级MCU数据交互存储方法具体包括如下步骤:FIG. 3 is a flowchart provided by an embodiment of the method for interactive storage of board-level MCU data of the present invention. As shown in FIG. 3 , the method for interactive storage of board-level MCU data in this embodiment is applied to the board-level MCU described in the above embodiment. The MCU data interactive storage system, and the board-level MCU data interactive storage method specifically includes the following steps:

S101、一个MCU向另一个MCU发送通讯传输数据。通讯传输数据包括外置存储使用信息和外置存储读写需求。S101. One MCU sends communication transmission data to another MCU. Communication transmission data includes external storage usage information and external storage read and write requirements.

S102、接收通讯传输数据的MCU根据通讯传输数据中包含的外置存储使用信息和外置存储读写需求控制读写互锁传输组件12解锁,以使发送通讯传输数据的MCU与外置存储芯片13的通讯导通。S102, the MCU receiving the communication transmission data controls the read-write interlocking transmission component 12 to unlock according to the external storage usage information and the reading and writing requirements of the external storage included in the communication transmission data, so that the MCU sending the communication transmission data and the external storage chip The communication of 13 is turned on.

S103、发送通讯传输数据的MCU根据外置存储使用信息和外置存储读写需求通过读写互锁传输组件12对外置存储芯片13进行读写操作。S103 , the MCU sending the communication transmission data performs read and write operations on the external storage chip 13 through the read-write interlocking transmission component 12 according to the external storage usage information and the read and write requirements of the external storage.

采用本实施例的技术方案,通过设置外置存储芯片13扩展了存储容量,提高了存储效率,并且通过控制单板中两个MCU之间的互锁关系,实现了MCU访问外置存储芯片13时的交互解锁,提高了存储保密性和安全性。By adopting the technical solution of this embodiment, the storage capacity is expanded by setting the external storage chip 13, the storage efficiency is improved, and the MCU access to the external storage chip 13 is realized by controlling the interlocking relationship between the two MCUs in the single board. The interactive unlocking at the same time improves the storage confidentiality and security.

进一步地,本实施例的板级MCU数据交互存储方法中,通讯传输数据还包括:工作交互信息。板级MCU数据交互存储方法,还包括:Further, in the method for interactive storage of board-level MCU data in this embodiment, the communication and transmission data further includes: work interaction information. The board-level MCU data interactive storage method also includes:

接收通讯传输数据的MCU根据发送通讯传输数据的MCU发送的通讯传输数据对预先存储的历史通讯传输数据进行更新,并根据工作交互信息进行工作。The MCU that receives the communication transmission data updates the pre-stored historical communication transmission data according to the communication transmission data sent by the MCU that sends the communication transmission data, and works according to the work interaction information.

进一步地,本实施例的板级MCU数据交互存储方法中,步骤S103具体包括如下步骤:Further, in the method for interactive storage of board-level MCU data in this embodiment, step S103 specifically includes the following steps:

第一,若外置存储读写需求表示写入需求,发送通讯传输数据的MCU将工作交互信息通过读写互锁传输组件12写入到外置存储芯片13中,并根据工作交互信息的写入地址对外置存储使用信息进行更新;First, if the read and write requirements of the external storage indicate the write requirements, the MCU that sends the communication transmission data writes the working interaction information into the external storage chip 13 through the read-write interlocking transmission component 12, and writes the working interaction information according to the writing of the working interaction information. The incoming address updates the external storage usage information;

第二,若外置存储读写需求表示读取需求,发送通讯传输数据的MCU根据外置存储使用信息,通过读写互锁传输组件12从外置存储芯片13中读取外置存储读写需求对应的目标信息。Second, if the read and write requirements of the external storage indicate the read requirements, the MCU sending the communication transmission data reads the external storage read and write from the external storage chip 13 through the read-write interlock transmission component 12 according to the use information of the external storage. The target information corresponding to the requirement.

关于上述实施例中的方法,其中各个步骤执行操作的具体方式已经在有关板级MCU数据交互存储系统的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the methods in the foregoing embodiments, the specific manners of performing operations in each step have been described in detail in the embodiments of the board-level MCU data interactive storage system, and will not be described in detail here.

图4是本实用新型的控制器一种实施例提供的结构框图,如图4所示,本实施例的控制器包括:控制单板21和上述实施例所述的板级MCU数据交互存储系统22。板级MCU数据交互存储系统22设置在控制单板21上。采用本实施例的技术方案,板级MCU数据交互存储系统22通过设置外置存储芯片13扩展了存储容量,提高了存储效率,并且通过控制单板21中两个MCU之间的互锁关系,实现了MCU访问外置存储芯片13时的交互解锁,提高了存储保密性和安全性。FIG. 4 is a structural block diagram provided by an embodiment of the controller of the present invention. As shown in FIG. 4 , the controller of this embodiment includes: a control board 21 and the board-level MCU data exchange storage system described in the above embodiment twenty two. The board-level MCU data exchange storage system 22 is arranged on the control board 21 . By adopting the technical solution of this embodiment, the board-level MCU data interactive storage system 22 expands the storage capacity by setting the external storage chip 13, improves the storage efficiency, and controls the interlocking relationship between the two MCUs in the single board 21, The interactive unlocking when the MCU accesses the external storage chip 13 is realized, and the storage confidentiality and security are improved.

本实用新型还提供了一种电器设备,电器设备包括上述实施例所述的控制器,这样,本实施例的电器设备可以通过在控制器中设置外置存储芯片13扩展了存储容量,提高了存储效率,并且通过控制器中两个MCU之间的互锁关系,实现了MCU访问外置存储芯片13时的交互解锁,提高了存储保密性和安全性。The present invention also provides an electrical device, the electrical device includes the controller described in the above embodiments, so that the electrical device of this embodiment can expand the storage capacity by setting the external memory chip 13 in the controller, and improve the storage capacity. The storage efficiency is improved, and through the interlocking relationship between the two MCUs in the controller, the interactive unlocking when the MCU accesses the external storage chip 13 is realized, and the storage confidentiality and security are improved.

可以理解的是,上述各实施例中相同或相似部分可以相互参考,在一些实施例中未详细说明的内容可以参见其他实施例中相同或相似的内容。It can be understood that, the same or similar parts in the above embodiments may refer to each other, and the content not described in detail in some embodiments may refer to the same or similar content in other embodiments.

需要说明的是,在本实用新型的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本实用新型的描述中,除非另有说明,“多个”的含义是指至少两个。It should be noted that, in the description of the present invention, the terms "first", "second" and the like are only used for the purpose of description, and cannot be understood as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise specified, the meaning of "plurality" means at least two.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本实用新型的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管上面已经示出和描述了本实用新型的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本实用新型的限制,本领域的普通技术人员在本实用新型的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations of the present invention, and those of ordinary skill in the art are within the scope of the present invention Variations, modifications, substitutions and variations can be made to the above-described embodiments.

Claims (13)

1. A board-level MCU data interaction storage system is characterized by comprising: the device comprises an external storage chip, at least one group of read-write interlocking transmission components and at least one group of singlechip pairs; the read-write interlocking transmission assemblies correspond to the single chip microcomputer in a one-to-one manner; the single chip microcomputer pair comprises two MCUs;
each MCU is connected with the external storage chip through the read-write interlocking transmission assembly;
the two MCUs are connected through the read-write interlocking transmission assembly to achieve the interlocking relationship between the two MCUs;
the read-write interlocking transmission assembly is used for controlling the communication connection or disconnection between the two MCUs and the external storage chip;
the two MCUs are connected, and one MCU sends communication transmission data to the other MCU; the communication transmission data comprises external storage use information and external storage read-write requirements;
the MCU receiving the communication transmission data controls the read-write interlocking transmission assembly to unlock according to the external storage use information and the external storage read-write requirement so as to enable the communication between the MCU sending the communication transmission data and the external storage chip to be conducted;
and the MCU for sending communication transmission data carries out read-write operation on the external storage chip through the read-write interlocking transmission assembly according to the external storage use information and the external storage read-write requirement.
2. The board-level MCU data interaction storage system of claim 1, wherein the communicating and transmitting data further comprises: work interaction information;
and the MCU receiving the communication transmission data updates pre-stored historical communication transmission data according to the communication transmission data sent by the MCU sending the communication transmission data, and works according to the work interaction information.
3. The board-level MCU data interaction storage system of claim 2, wherein the MCU sending communication transmission data performs read-write operation on the external storage chip through the read-write interlock transmission component according to the external storage use information and the external storage read-write requirement, and comprises:
if the external storage read-write requirement represents a write-in requirement, the MCU sending the communication transmission data writes the working interaction information into the external storage chip through the read-write interlocking transmission assembly, and updates the external storage use information according to a write-in address of the working interaction information;
and if the external storage read-write requirement represents a read requirement, the MCU sending the communication transmission data reads the target information corresponding to the external storage read-write requirement from the external storage chip through the read-write interlocking transmission assembly according to the external storage use information.
4. The board-level MCU data interaction storage system of claim 1, wherein each set of the read-write interlock transmission components comprises: the device comprises a storage communication component, a transmission circuit and two groups of interlocking circuits;
the interlocking circuits correspond to the MCUs one by one;
the interlocking circuit is connected with the MCU corresponding to the interlocking circuit;
each group of the interlocking circuits is connected with the transmission circuit through the storage communication assembly;
the transmission circuit is connected with the external storage chip;
the MCU receiving the communication transmission data sends a high-level signal to an interlocking circuit corresponding to the MCU sending the communication transmission data according to the external storage use information and the external storage read-write requirement;
and after the interlocking circuit corresponding to the MCU for sending the communication transmission data receives the high-level signal, the communication between the storage communication assembly and the transmission circuit is conducted, so that the MCU for sending the communication transmission data performs read-write operation on the external storage chip through the interlocking circuit corresponding to the MCU for sending the communication transmission data, the storage communication assembly and the transmission circuit.
5. The board-level MCU data interaction storage system of claim 4, further comprising: a hardware protection component;
the hardware protection component is connected with the external storage chip and used for performing hardware protection on the external storage chip.
6. The board-level MCU data interaction storage system of claim 5, wherein the interlock circuit corresponding to the MCU transmitting the communication transmission data comprises: the circuit comprises a first triode, a first resistor and a second resistor;
the interlocking circuit that MCU that the receipt communication transmitted data corresponds includes: the second triode, the third resistor and the fourth resistor;
the transmission circuit includes: a fifth resistor;
a first pin of the MCU for sending communication transmission data is connected with a base electrode of the first triode through the first resistor;
the collector of the first triode is connected with the second pin of the MCU for receiving the communication transmission data;
the emitter of the first triode is grounded through the second resistor;
the first pin of the MCU for receiving communication transmission data is connected with the base electrode of the second triode through the third resistor;
the collector of the second triode is connected with the second pin of the MCU for transmitting the communication transmission data;
the emitter of the second triode is grounded through the fourth resistor;
the emitting electrode of the first triode and the emitting electrode of the second triode are connected with the fifth resistor through the storage communication component;
the fifth resistor is connected with the external memory chip;
after the MCU receiving the communication transmission data receives the external storage use information and the external storage read-write requirement, a second pin of the MCU receiving the communication transmission data sends a high level signal to a collector of the first triode so that an emitter of the first triode outputs the high level signal, and therefore communication conduction between the MCU sending the communication transmission data and the external storage chip is achieved;
the MCU for sending communication transmission data can perform read-write operation on the external memory chip through the emitter of the first triode, the memory communication component and the fifth resistor.
7. The board-level MCU data interaction storage system of claim 6, wherein the hardware protection component comprises: the third triode is connected with the fourth resistor;
the collector of the third triode is connected with a power supply;
a second pin of the MCU for sending communication transmission data is connected with a base electrode of the third triode through the sixth resistor;
the emitter of the third triode is connected with the collector of the fourth triode;
the second pin of the MCU for receiving the communication transmission data is connected with the base electrode of the fourth triode through the seventh resistor;
and the emitter of the fourth triode is connected with the external memory chip.
8. The board-level MCU data interaction storage system of claim 4, further comprising: an inter-board communication component;
and the two MCUs are connected through the inter-board communication assembly.
9. The board-level MCU data interaction storage system of claim 8, wherein the inter-board communication component comprises a UART communication component; the storage communication assembly comprises: I2C bus.
10. The board-level MCU data interaction storage system of claim 2, wherein the two MCUs comprise: and the MCU and the special task MCU are interacted outside.
11. The board-level MCU data interaction storage system of claim 10, wherein if the MCU transmitting the communication transmission data is an external interaction MCU and the MCU receiving the communication transmission data is a dedicated task MCU, the work interaction information comprises: the unit information data, the current unit operation data and the first program operation intermediate data corresponding to the external interaction MCU;
if the MCU for sending the communication transmission data is a special task MCU and the MCU for receiving the communication transmission data is an external interaction MCU, the work interaction information comprises: and the special task operation result corresponding to the special task MCU and the second program operation intermediate data.
12. A controller, comprising: a control single board and the board-level MCU data interaction storage system according to any one of claims 1-11;
the board-level MCU data interaction storage system is arranged on the control single board.
13. An electrical device, comprising: the controller of claim 12.
CN202122507348.8U 2021-10-18 2021-10-18 Board-level MCU data interaction storage system, controller and electrical equipment Withdrawn - After Issue CN216248810U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202122507348.8U CN216248810U (en) 2021-10-18 2021-10-18 Board-level MCU data interaction storage system, controller and electrical equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202122507348.8U CN216248810U (en) 2021-10-18 2021-10-18 Board-level MCU data interaction storage system, controller and electrical equipment

Publications (1)

Publication Number Publication Date
CN216248810U true CN216248810U (en) 2022-04-08

Family

ID=80988766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202122507348.8U Withdrawn - After Issue CN216248810U (en) 2021-10-18 2021-10-18 Board-level MCU data interaction storage system, controller and electrical equipment

Country Status (1)

Country Link
CN (1) CN216248810U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113848795A (en) * 2021-10-18 2021-12-28 珠海格力电器股份有限公司 Board-level MCU data interactive storage system, method, controller and electrical device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113848795A (en) * 2021-10-18 2021-12-28 珠海格力电器股份有限公司 Board-level MCU data interactive storage system, method, controller and electrical device
CN113848795B (en) * 2021-10-18 2025-05-06 珠海格力电器股份有限公司 Board-level MCU data interactive storage system, method, controller and electrical equipment

Similar Documents

Publication Publication Date Title
CN108616610A (en) Address distribution method, host, slave and bus system
CN208188815U (en) BMC module system
CN102081568B (en) Multi-Motherboard Server System
CN201448966U (en) Air conditioner multi-split online control controller
CN108234562B (en) Equipment control method, control equipment and controlled equipment
CN216248810U (en) Board-level MCU data interaction storage system, controller and electrical equipment
CN111478837B (en) Data communication method, air conditioner, air conditioning system and storage medium
CN202257553U (en) Protocol converter for converting universal serial port to MODBUS
CN108664440A (en) Interface server and cabinet
CN201464898U (en) Intelligent household GSM remote monitoring system
CN212112457U (en) a bus controller
CN100489807C (en) Computer system status monitoring circuit
CN113848795B (en) Board-level MCU data interactive storage system, method, controller and electrical equipment
CN105135634A (en) Multi-mode air conditioner networking control device
CN109446144A (en) A kind of general purpose I 2C bus control unit for supporting User Agreement
CN102195800A (en) Server network address setting method
CN104348756A (en) Switch system
CN220526221U (en) Industrial control management equipment
CN105425917A (en) Miniature server
CN213334860U (en) Remote control system and air conditioner
CN105653483B (en) The extensive usb expansion device of tandem and method of work, system
CN222421332U (en) Display screen conversion circuit and industrial personal computer
CN103200248A (en) Electric-power parameter monitoring communication method based on embedded system
CN217927389U (en) Bus communication type valve actuator
CN108848016B (en) Household appliance data interaction bus design method

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
AV01 Patent right actively abandoned
AV01 Patent right actively abandoned
AV01 Patent right actively abandoned

Granted publication date: 20220408

Effective date of abandoning: 20250506

AV01 Patent right actively abandoned

Granted publication date: 20220408

Effective date of abandoning: 20250506