Liquid heater, message generation method therefor, storage medium, and program product

CN122969730APending Publication Date: 2026-10-23KAILONG WEIRUI TECHNOLOGY RESEARCH (JIANGSU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611147305.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-30
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0004]本发明提供了一种液体加热器及其报文生成方法、存储介质及程序产品,以解决无法灵活配置不同客户需求的报文信息并高效传输的问题

Benefits of technology

[0015]本发明实施例提供的液体加热器的报文生成方法,获取目标客户的目标报文需求,以目标报文需求中的目标报文地址为索引依据,将目标报文地址与其他相关信息建立映射关系库,根据目标报文地址调用适配于目标客户的相应目标报文需求。对于CAN通信协议差异较大的不同主机厂的目标客户,在适配过程中可通过目标报文地址直接调用相应的目标报文需求,可有效缩短液体加热器对不同目标客户进行适配的适配周期。根据调用的目标报文需求中的预设参数定标条件,依据原始参数信息生成适配于目标客户的CAN通信协议传输的报文发送数据,以使液体加热器与外部设备之间实现通信传输。根据预设数据填充条件将报文发送数据填充至相应的数据位,与目标客户的CAN报文矩阵解耦,有效降低了液体加热器的维护成本。如此可使液体加热器灵活适配于不同目标客户的通信协议需求,有效缩短生产厂家对液体加热器的开发周期,实现液体加热器与外部设备之间进行报文信息的高效传输。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122969730A_ABST
    Figure CN122969730A_ABST
Patent Text Reader

Abstract

The application discloses a liquid heater and a message generation method thereof, a storage medium and a program product. The message generation method comprises the following steps: obtaining target message requirements; the target message requirements comprise a target message address, original parameter information, preset parameter indexing conditions and preset data filling conditions; a mapping relationship database is established and stored according to the target message requirements, and corresponding target message requirements are called from the mapping relationship database according to the target message address; wherein the mapping relationship database represents the index relationship of the target message address; and message sending data is generated from the original parameter information according to the preset parameter indexing conditions and the preset data filling conditions in the called target message requirements, and data filling is performed, so that the liquid heater sends messages to external equipment. The embodiment of the application can flexibly configure message information of different customer requirements for the liquid heater and efficiently transmit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of thermal management technology for new energy vehicles, and in particular to a liquid heater and its message generation method, storage medium and program product. Background Technology

[0002] With the rapid development of new energy vehicles, the requirements for vehicle thermal management systems are becoming increasingly stringent. High-pressure liquid heaters, as a core component, have a direct impact on vehicle performance.

[0003] However, traditional CAN communication for high-pressure liquid heaters suffers from drawbacks such as fixed and difficult-to-modify message content, inability to quickly respond to different customers' parameter calibration and customization needs, and high maintenance costs. As a result, it is impossible to flexibly configure message information according to different customer needs and transmit it efficiently. Summary of the Invention

[0004] This invention provides a liquid heater and its message generation method, storage medium, and program product to solve the problem of being unable to flexibly configure message information for different customer needs and transmit it efficiently.

[0005] According to one aspect of the present invention, a method for generating a message for a liquid heater is provided, comprising: Obtain the target message requirements; the target message requirements include the target message address, original parameter information, preset parameter calibration conditions, and preset data filling conditions; A mapping relationship library is established and stored according to the target message requirements. The corresponding target message requirements are called from the mapping relationship library according to the target message address. The mapping relationship library represents the index relationship of the target message addresses. Based on the preset parameter calibration conditions and preset data filling conditions in the target message requirement, message sending data is generated from the original parameter information and data filling is performed so that the liquid heater can send a message to an external device.

[0006] Optionally, the step of establishing and storing a mapping relationship library based on the target message requirement, and calling the corresponding target message requirement from the mapping relationship library based on the target message address, includes: Based on the target message requirements, establish a one-to-one index relationship between the target message address and the original parameter information, the preset parameter calibration conditions, and the preset data filling conditions, to form the mapping relationship library; Based on the first calibration parameter and the mapping relationship library, the target packet address is written to call the original parameter information with the index relationship, the preset parameter calibration condition and the preset data filling condition; wherein, the first calibration parameter and the target packet address have a matching relationship; Based on the second calibration parameter, a one-to-one correspondence is established between the original parameter information and the message storage address parameter, so as to read the original parameter information according to the message storage address parameter; wherein, the second calibration parameter and the message storage address parameter have a matching relationship.

[0007] Optionally, the target message address includes at least one; The step of establishing a one-to-one correspondence between the target message address and the original parameter information, the preset parameter scaling conditions, and the preset data filling conditions, based on the target message requirements, to form the mapping relationship library, includes: Establish the index relationship between at least one of the target message addresses and at least one of the original parameter information, the preset parameter scaling conditions, and the preset data filling conditions.

[0008] Optionally, the step of generating message transmission data from the original parameter information and filling in the data according to the preset parameter scaling conditions and preset data filling conditions in the target message requirement includes: According to the preset parameter calibration conditions, the original parameter information is converted into the message transmission data; The starting padding bit of the message transmission data is determined according to the third calibration parameter and the preset data padding condition; and the starting padding bit is filled sequentially according to the data length of the message transmission data; wherein the third calibration parameter and the preset data padding condition have a matching relationship.

[0009] Optionally, converting the original parameter information into the message transmission data according to the preset parameter calibration conditions includes: The preset parameter calibration conditions support linear or nonlinear transformation of the original parameter information.

[0010] Optionally, the step of sequentially filling the data according to the data length of the data sent in the message, using the starting padding bits, includes: Based on the data length of the data sent in the message, the starting padding bits are filled sequentially according to the Intel data format. Alternatively, the starting padding bits may be filled sequentially according to the Motorola data format, based on the data length of the data sent in the message.

[0011] Optionally, the message generation method for the liquid heater further includes: Obtain a preset scheduling strategy; wherein the preset scheduling strategy includes a time-based scheduling strategy or an event-based scheduling strategy; When the preset scheduling strategy is met, the liquid heater is controlled to send a message to an external device.

[0012] According to another aspect of the present invention, a liquid heater is provided, comprising: a control module and a communication module; the communication module is communicatively connected to the control module; The control module is used to execute the message generation method for the liquid heater as described in any embodiment of the first aspect, and to send messages through the communication module.

[0013] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the message generation method of the liquid heater according to any embodiment of the first aspect.

[0014] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the message generation method for a liquid heater according to any embodiment of the first aspect.

[0015] The message generation method for liquid heaters provided in this invention obtains the target message requirements of the target customer, uses the target message address in the target message requirements as an index, establishes a mapping relationship library between the target message address and other relevant information, and calls the corresponding target message requirements adapted to the target customer according to the target message address. For target customers from different OEMs with significantly different CAN communication protocols, the corresponding target message requirements can be directly called through the target message address during the adaptation process, which can effectively shorten the adaptation cycle of liquid heaters to different target customers. According to the preset parameter calibration conditions in the called target message requirements, message transmission data adapted to the CAN communication protocol of the target customer is generated based on the original parameter information, so as to enable communication transmission between the liquid heater and external devices. The message transmission data is filled into the corresponding data bits according to the preset data filling conditions, decoupling from the CAN message matrix of the target customer, effectively reducing the maintenance cost of the liquid heater. In this way, the liquid heater can flexibly adapt to the communication protocol requirements of different target customers, effectively shorten the development cycle of liquid heaters for manufacturers, and realize efficient transmission of message information between liquid heaters and external devices.

[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating a message generation method for a liquid heater according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the specific process of step S120 in a message generation method for a liquid heater according to an embodiment of the present invention; Figure 3 This is a schematic flowchart of step S130 in a message generation method for a liquid heater according to an embodiment of the present invention. Figure 4 This is a schematic flowchart illustrating a message generation method for a liquid heater according to an embodiment of the present invention. Figure 5 This is a schematic diagram of the internal structure of a liquid heater according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0021] As described in the background section, traditional CAN communication for high-pressure liquid heaters has the following drawbacks: First, because the message address and content sent by the controller of the high-pressure liquid heater are fixed, if the CAN message matrices required by different customers are different, the firmware inside the heater controller needs to be modified, and software programs adapted to the new customer requirements need to be redeveloped to adapt to the communication protocols of different equipment manufacturers, which results in a long software development cycle. Second, the encoding of the parameter calibration method for CAN messages is integrated into the software program, making it impossible to quickly respond to the corresponding customized requirements of different customers for parameter calibration methods. Third, the message data filling logic is strongly coupled with the CAN message matrix of the adapted customer, which greatly increases the maintenance cost. Due to the above-mentioned drawbacks of CAN communication, existing high-pressure liquid heaters cannot flexibly configure and efficiently transmit message information according to the needs of different customers.

[0022] Based on the above-mentioned technical problems, the present invention proposes the following technical solution: This invention provides a method for generating messages for a liquid heater. Figure 1 This is a flowchart illustrating a message generation method for a liquid heater according to an embodiment of the present invention. This embodiment is applicable to situations where a high-pressure liquid heater can flexibly generate messages to meet the different message information requirements of various customers. The method can be executed by a control device within the high-pressure liquid heater, which can be implemented in hardware and / or software and is configured within the high-pressure liquid heater. Figure 1 As shown, the message generation method for this liquid heater specifically includes the following steps: S110. Obtain the target message requirements; the target message requirements include the target message address, original parameter information, preset parameter calibration conditions, and preset data filling conditions.

[0023] Specifically, since different customers may have different needs for message information, when configuring the liquid heater, it is necessary to first obtain the corresponding message requirements of different customers, i.e., target message requirements. Target message requirements can include multiple pieces of information. Among them, the target message address is the target message ID, which has a matching relationship with the corresponding target customer. That is, once the target customer is determined, the corresponding target message address can be determined, which can serve as an index for finding the corresponding message information of the target customer. The original parameter information consists of the relevant physical parameters of the liquid heater and the corresponding required values, such as water temperature and heating power. The preset parameter calibration conditions are the data conversion types required by the target customer, and the preset data filling conditions are the rules for the target customer to fill the data bits in the generated message data.

[0024] S120. Establish and store a mapping relationship library based on the target message requirements. Based on the target message address, call the corresponding target message requirements from the mapping relationship library. The mapping relationship library represents the index relationship of the target message address.

[0025] Specifically, based on the target customer's target message requirements, a mapping database of target message addresses and other relevant information is established using the target message address as an index, and stored in the control board of the liquid heater. This allows the target customer to access the corresponding target message requirements from the mapping database via the target message address during the use of the liquid heater, and apply them to the liquid heater for execution. This enables the liquid heater to be flexibly adapted to target customers from different OEMs with significantly different CAN communication protocols, allowing them to access the corresponding target message requirements via the target message address, effectively shortening the adaptation cycle for different target customers; for example, the adaptation cycle for a new target customer's CAN protocol can be shortened from two weeks to one day.

[0026] S130. Based on the preset parameter calibration conditions and preset data filling conditions in the target message request, generate message sending data from the original parameter information and fill in the data so that the liquid heater can send a message to the external device.

[0027] Specifically, based on the preset parameter calibration conditions in the target message requirements adapted to the target customer, message transmission data of the data type adapted to the CAN communication protocol of the target customer can be generated according to the original parameter information of the liquid heater, so that the liquid heater of the target customer can communicate and transmit with external devices. Compared with related technologies that integrate the relevant encoding of the CAN message parameter calibration conditions into the software program, the communication code of the liquid heater needs to be rewritten for target customers with different CAN protocol requirements, resulting in a long software development cycle before delivery. This embodiment of the invention establishes a one-to-one mapping relationship between the preset parameter calibration conditions and the target message address, which can quickly respond to the target customer's data type requirements according to the target message address. The generated message transmission data is filled into the corresponding data bits according to the preset data filling conditions called from the mapping relationship library, so that the data filling logic is decoupled from the CAN message matrix adapted to the target customer, which can effectively reduce the maintenance cost of the liquid heater. This allows the liquid heater to flexibly adapt to the communication protocol requirements of different target customers and generate corresponding message information, which greatly shortens the software development cycle of the liquid heater before delivery and enables the liquid heater to efficiently transmit message information to other external devices.

[0028] The message generation method for liquid heaters provided in this invention obtains the target message requirements of the target customer, uses the target message address in the target message requirements as an index, establishes a mapping relationship library between the target message address and other relevant information, and calls the corresponding target message requirements adapted to the target customer according to the target message address. For target customers from different OEMs with significantly different CAN communication protocols, the corresponding target message requirements can be directly called through the target message address during the adaptation process, which can effectively shorten the adaptation cycle of liquid heaters to different target customers. According to the preset parameter calibration conditions in the called target message requirements, message transmission data adapted to the CAN communication protocol of the target customer is generated based on the original parameter information, so as to enable communication transmission between the liquid heater and external devices. The message transmission data is filled into the corresponding data bits according to the preset data filling conditions, decoupling from the CAN message matrix of the target customer, effectively reducing the maintenance cost of the liquid heater. In this way, the liquid heater can flexibly adapt to the communication protocol requirements of different target customers, effectively shorten the development cycle of liquid heaters for manufacturers, and realize efficient transmission of message information between liquid heaters and external devices.

[0029] Based on the above embodiments, Figure 2 This is a schematic flowchart illustrating step S120 of a message generation method for a liquid heater according to an embodiment of the present invention. See also... Figure 2Optionally, step S120, which involves establishing and storing a mapping database based on the target message requirements, and retrieving the corresponding target message requirements from the mapping database based on the target message address, specifically includes the following steps: S121. Based on the target message requirements, establish a one-to-one index relationship between the target message address and the original parameter information, preset parameter calibration conditions, and preset data filling conditions to form a mapping relationship library.

[0030] Specifically, based on the target message requirements obtained from the target customer, and using the target message address as an index, an index relationship is established between each target message address corresponding to the target customer and the original parameter information, preset parameter calibration conditions, and preset data filling conditions, thus forming a mapping relationship library. The mapping relationship library for the liquid heater can include the target message requirements of at least one target customer. When multiple different target customers' target message requirements are included, relevant information can be accurately retrieved through the target message address. In other words, given the target customer's target message address, the original parameter information, preset parameter calibration conditions, and preset data filling conditions adapted to the target customer can be retrieved based on the target message address. Compared to the adaptation process in related technologies, which requires rewriting fixed communication code adapted to the corresponding target customer each time, this approach effectively shortens the software development cycle by establishing mapping relationships between data and flexibly invoking them.

[0031] S122. Based on the first calibration parameters and the mapping relationship library, write the target message address to call the original parameter information with index relationship, the preset parameter calibration conditions and the preset data filling conditions; wherein, the first calibration parameters and the target message address have a matching relationship.

[0032] Specifically, based on the established mapping relationship library and the first calibration parameters adapted to the data communication interface of the corresponding target customer, the target message address can be determined by the first calibration parameters. The target message address suitable for the target customer is dynamically written, and the originally written target message address is modified. In this way, the target message address can be modified by matching the first calibration parameters to modify the relevant variable parameters in the liquid heater, thereby realizing the flexible configuration of the CAN protocol related parameters of the liquid heater.

[0033] S123. Based on the second calibration parameter, establish a one-to-one correspondence between the original parameter information and the message storage address parameter, so as to read the original parameter information according to the message storage address parameter; wherein, the second calibration parameter and the message storage address parameter have a matching relationship.

[0034] Specifically, the message storage address parameter indicates the data location of the message data within the motherboard of the liquid heater. For example, for the same raw parameter information, such as water temperature, different target customers may require different storage addresses. For instance, customer A requires the water temperature data to be stored in data bits 01, while customer B requires it to be stored in data bits 100. When retrieving the corresponding raw parameter information based on the target message address, it is necessary to determine the specific data bits on the motherboard where the corresponding raw parameter information can be read, so that the corresponding raw parameter information can be accurately read and configured during liquid heater configuration. Therefore, a correspondence can be established between the various raw parameter information of the liquid heater required by the target customer and the dedicated message storage address parameter based on the second calibration parameter, so that accurate raw parameter information can be read based on the message storage address parameter. For example, the second calibration parameter can be set according to actual needs and is not limited here. The second calibration parameter contains matching information related to the corresponding message storage address.

[0035] Based on the above embodiments, the target message address includes at least one. For example, the target message address can be set to one, two, or more depending on the amount and length of data included in the target message requirements; no limitation is imposed here. Optionally, step S121, which establishes a one-to-one correspondence between the target message address and the original parameter information, preset parameter calibration conditions, and preset data filling conditions according to the target message requirements, forming a mapping relationship library, specifically includes the following steps: Establish an index relationship between at least one target message address and at least one of the following: original parameter information, preset parameter scaling conditions, and preset data filling conditions.

[0036] Specifically, based on the original parameter information, preset parameter calibration conditions, and preset data filling conditions, an index relationship can be established between data of appropriate length and the corresponding target packet address. The data indexed to different target packet addresses can be arbitrarily arranged and combined, without restriction. For example, assuming the target customer provides two target packet addresses, target address a and target address b, an index relationship can be established between the original parameter information and preset parameter calibration conditions and target address a, while the preset data filling conditions can be indexed between target address b.

[0037] Based on the above embodiments, Figure 3 This is a schematic flowchart illustrating step S130 of a message generation method for a liquid heater according to an embodiment of the present invention. See also... Figure 3 Optionally, step S130, which involves generating message transmission data from the original parameter information and filling in the data based on the preset parameter scaling conditions and preset data filling conditions in the target message requirement, specifically includes the following steps: S131. Based on the preset parameter calibration conditions, convert the original parameter information into message transmission data.

[0038] Specifically, based on the preset parameter calibration conditions required by the target customer, the original parameter information can be converted into message transmission data according to the specified data type. The data type can include integer, decimal, character, and Boolean types. For example, the preset parameter calibration conditions support linear or non-linear transformations of the original parameter information. Linear transformation is suitable for scenarios where the input original parameter information and the output message transmission data have a linear relationship; non-linear transformation is suitable for scenarios where the input original parameter information and the output message transmission data do not have a linear relationship. The appropriate data conversion method can be selected based on the data characteristics of the message transmission data required by the target customer, and no restrictions are imposed here.

[0039] S132. Determine the starting padding bit of the message transmission data according to the third calibration parameter and the preset data padding condition; and fill the data in sequence from the starting padding bit according to the data length of the message transmission data; wherein the third calibration parameter and the preset data padding condition have a matching relationship.

[0040] Specifically, based on the acquired preset data filling conditions and the third calibration parameter, the starting filling bit of the converted message transmission data can be determined during data filling, and data is sequentially filled into each data bit by the starting filling bit in a certain filling order. For example, in this embodiment of the invention, the third calibration parameter can support filling the message transmission data with any starting filling bit, and data of any length can be filled; and it also supports combining any starting filling bit with the data length.

[0041] Based on the above embodiments, optionally, step S132, which involves sequentially filling the data according to the data length of the message data, starting with the start padding bits, specifically includes the following steps: Depending on the length of the data to be sent in the message, the starting padding bits are filled sequentially according to the Intel data format; or, depending on the length of the data to be sent in the message, the starting padding bits are filled sequentially according to the Motorola data format.

[0042] Specifically, Intel data format and Motorola data format are two commonly used data formats in scenarios such as CAN messages. Intel data format corresponds to little-endian mode, meaning data is filled from the smallest start padding bit to the largest padding bit; Motorola data format corresponds to big-endian mode, meaning data is filled from the largest start padding bit to the smallest padding bit. For example, in the data filling process of this embodiment, it is supported to fill data sequentially from the smallest start padding bit to the largest padding bit, i.e., according to the Intel data format; it is also supported to fill data sequentially from the largest start padding bit to the smallest padding bit, i.e., according to the Motorola data format. No limitation is made here.

[0043] Based on the above embodiments, Figure 4 This is a schematic flowchart illustrating another message generation method for a liquid heater provided in an embodiment of the present invention. See also... Figure 4 Optional, S210. Obtain the target message requirements; the target message requirements include the target message address, original parameter information, preset parameter calibration conditions, and preset data filling conditions.

[0044] S220. Establish and store a mapping relationship library based on the target message requirements. Based on the target message address, call the corresponding target message requirements from the mapping relationship library. The mapping relationship library represents the index relationship of the target message address.

[0045] S230. Based on the preset parameter calibration conditions and preset data filling conditions in the target message request, generate message sending data from the original parameter information and fill in the data so that the liquid heater can send a message to the external device.

[0046] S240. Obtain the preset scheduling strategy; wherein, the preset scheduling strategy includes a time scheduling strategy or an event scheduling strategy.

[0047] Specifically, the preset scheduling strategy indicates the method of controlling the liquid heater to send messages. The time-based scheduling strategy involves sending messages to external devices periodically and cyclically according to the message sending time cycle required by the target customer; for example, the message sending cycle can be 1 second, but this is not limited. The event-based scheduling strategy indicates that the liquid heater is triggered to send a message when a certain condition is met during operation; for example, the event that triggers the liquid heater to send a message can be the vehicle air conditioning temperature falling below 24°C, but this is not limited.

[0048] It should be noted that one target customer can correspond to one scheduling strategy to trigger the liquid heater to send a message, meaning that only one of the time scheduling strategy and event scheduling strategy can be applied.

[0049] S250. When the preset scheduling strategy is met, control the liquid heater to send a message to the external device.

[0050] Specifically, based on the monitoring of time or related parameters by timers or corresponding sensors, when the time scheduling strategy or event scheduling strategy required by the target customer is met, the liquid heater is triggered to send a message to the external device.

[0051] This invention also provides a liquid heater. Figure 5 This is a schematic diagram of the internal structure of a liquid heater according to an embodiment of the present invention. See also... Figure 5 The liquid heater 000 includes a control module 100 and a communication module 200; the communication module 200 is communicatively connected to the control module 100.

[0052] The control module 100 is used to execute the message generation method of the liquid heater provided in any of the above embodiments, and to send messages through the communication module 200.

[0053] The liquid heater provided in this embodiment of the invention can execute the message generation method of the liquid heater provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method, which will not be elaborated here.

[0054] The liquid heater provided in this embodiment of the invention can be mounted in an electronic device. Figure 6 This is a schematic diagram of an electronic device provided for an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0055] like Figure 6As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0056] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0057] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the message generation method for a liquid heater.

[0058] In some embodiments, the message generation method for the liquid heater can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the message generation method for the liquid heater described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the message generation method for the liquid heater by any other suitable means (e.g., by means of firmware).

[0059] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0060] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0061] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0062] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0063] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0064] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0065] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0066] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for generating a message for a liquid heater, characterized in that, include: Requirements for obtaining the target message; The target message requirements include the target message address, original parameter information, preset parameter calibration conditions, and preset data filling conditions; A mapping relationship library is established and stored according to the target message requirements. The corresponding target message requirements are called from the mapping relationship library according to the target message address. The mapping relationship library represents the index relationship of the target message addresses. Based on the preset parameter calibration conditions and preset data filling conditions in the target message requirement, message sending data is generated from the original parameter information and data filling is performed so that the liquid heater can send a message to an external device.

2. The message generation method for a liquid heater according to claim 1, characterized in that, The step of establishing and storing a mapping relationship library based on the target message requirement, and retrieving the corresponding target message requirement from the mapping relationship library based on the target message address, includes: Based on the target message requirements, establish a one-to-one index relationship between the target message address and the original parameter information, the preset parameter calibration conditions, and the preset data filling conditions, to form the mapping relationship library; Based on the first calibration parameter and the mapping relationship library, the target packet address is written to call the original parameter information with the index relationship, the preset parameter calibration condition and the preset data filling condition; wherein, the first calibration parameter and the target packet address have a matching relationship; Based on the second calibration parameter, a one-to-one correspondence is established between the original parameter information and the message storage address parameter, so as to read the original parameter information according to the message storage address parameter; wherein, the second calibration parameter and the message storage address parameter have a matching relationship.

3. The message generation method for a liquid heater according to claim 2, characterized in that, The target message address includes at least one; The step of establishing a one-to-one correspondence between the target message address and the original parameter information, the preset parameter scaling conditions, and the preset data filling conditions, based on the target message requirements, to form the mapping relationship library, includes: Establish the index relationship between at least one of the target message addresses and at least one of the original parameter information, the preset parameter scaling conditions, and the preset data filling conditions.

4. The message generation method for a liquid heater according to claim 1, characterized in that, The step of generating message transmission data and filling in the data based on the preset parameter scaling conditions and preset data filling conditions in the target message requirement includes: According to the preset parameter calibration conditions, the original parameter information is converted into the message transmission data; The starting padding bit of the message transmission data is determined according to the third calibration parameter and the preset data padding condition; and the starting padding bit is filled sequentially according to the data length of the message transmission data; wherein the third calibration parameter and the preset data padding condition have a matching relationship.

5. The message generation method for a liquid heater according to claim 4, characterized in that, The step of converting the original parameter information into the message transmission data according to the preset parameter calibration conditions includes: The preset parameter calibration conditions support linear or nonlinear transformation of the original parameter information.

6. The message generation method for a liquid heater according to claim 4, characterized in that, The step of sequentially filling the data according to the data length of the message data, using the starting padding bits, includes: Based on the data length of the data sent in the message, the starting padding bits are sequentially filled according to the Intel data format. Alternatively, the starting padding bits may be filled sequentially according to the Motorola data format, based on the data length of the data sent in the message.

7. The message generation method for a liquid heater according to claim 1, characterized in that, Also includes: Obtain a preset scheduling strategy; wherein the preset scheduling strategy includes a time-based scheduling strategy or an event-based scheduling strategy; When the preset scheduling strategy is met, the liquid heater is controlled to send a message to an external device.

8. A liquid heater, characterized in that, include: A control module and a communication module; the communication module is communicatively connected to the control module; The control module is used to execute the message generation method of the liquid heater as described in any one of claims 1-7, and to send messages through the communication module.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the message generation method of the liquid heater according to any one of claims 1-7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the message generation method for a liquid heater according to any one of claims 1-7.