Remote data updating method, control device and air conditioning system
By obtaining the update data from the remote server in the device and writing it in the internal memory of the device, the problem of cumbersome device update process is solved, convenient and efficient device update is achieved, maintenance costs are reduced, and the security of the update process is improved. .
Patent Information
- Application Number
- CN202310116172.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology is difficult to provide a convenient method for device updating, especially when the device requires frequent updates during use, the update process is cumbersome and inconvenient.
The master device obtains the update data from the remote server and stores it in the external memory. Then the update data is sent to the slave device, and the Bootloader is started to write the update data into the device's internal memory to update the device. The method also includes security verification, functional division and communication protocols (such as Modbus protocol) to ensure the security and accuracy of data transmission.
It improves the convenience and speed of device updates, saves maintenance costs, simplifies product function expansion, and improves the security and efficiency of the update process through security verification and functional division.
Smart Images

Figure CN118540314A
Abstract
Description
Technical Field
[0001] The present disclosure relates to a remote data updating method, a control device, an air conditioning system and a computer-readable storage medium. Background Art
[0002] During the use of a device, it is sometimes necessary to update the device, so it is desired to provide a technology that facilitates the updating of the device. Summary of the invention
[0003] A brief overview of the disclosure is given below in order to provide a basic understanding of certain aspects of the disclosure. However, it should be understood that this overview is not an exhaustive overview of the disclosure. It is not intended to identify the key or important parts of the disclosure, nor is it intended to limit the scope of the disclosure. Its purpose is simply to give certain concepts of the disclosure in a simplified form as a prelude to a more detailed description given later.
[0004] In view of the above problems, an object of the present disclosure is to provide a remote data updating method, a control device, an air conditioning system and a computer-readable storage medium, which can facilitate device updating, for example.
[0005] According to one aspect of the present disclosure, a remote data update method is provided, comprising: obtaining update data from a remote server through a master device, and storing the update data in an external memory of the master device; sending the update data to at least one slave device through the master device to store in the external memory of at least one slave device; and enabling a device that needs to be updated among the master device and at least one slave device to start a Bootloader to write the update data in the external memory of the device that needs to be updated into the internal memory of the device that needs to be updated, so as to update the device that needs to be updated.
[0006] Optionally, the remote data update method may further include performing a security check on the update data in the external memory of the device to be updated. The update data is written from the external memory to the internal memory of the device to be updated only when the update data stored in the external memory of the device to be updated passes the security check.
[0007] Optionally, for each of the master device and at least one slave device, the external memory of the device is divided into multiple storage areas according to the function of the device, and update data is written only to the storage area corresponding to the function that needs to be updated.
[0008] Optionally, the device that needs to be updated starts the Bootloader only when the user is not using the device that needs to be updated.
[0009] Optionally, at least one slave device communicates with the master device via an RS485 cable based on the Modbus protocol, and the master device communicates with the remote server based on the Modbus protocol.
[0010] Optionally, each message sent based on the Modbus protocol contains a custom function code, which includes an instruction function code, a header and an instruction type code. The instruction function code is used to indicate the function corresponding to the message, the header is reserved identification information, and the instruction type code is used to indicate the information transmission stage corresponding to the message.
[0011] Optionally, the remote data update method may further include: adding additional information to each type of update data on the remote server side, wherein the additional information includes information related to the device update.
[0012] Optionally, the remote data update method may further include sending a data acquisition request to the remote server based on the additional information through the master device, wherein the data acquisition request includes a data block number, a data block size and a cyclic redundancy check code of the update data required by the master device.
[0013] Optionally, the remote data update method may also include: obtaining, by the master device, an update data reception status of the master device and at least one slave device based on additional information and the received update data, and sending feedback information to a remote server to indicate: the update data reception status; or the update data reception status and the operating status of the master device and at least one slave device.
[0014] Optionally, the remote data updating method may further include: displaying the updated data receiving status on the human-computer interaction page in real time according to the feedback information from the master device.
[0015] Optionally, the master device communicates with the remote server via wired communication or wireless communication, and the master device communicates with at least one slave device via wired communication or wireless communication.
[0016] Alternatively, the remote data update method may be initiated in response to a request from a remote server, a host device, or a user of the host device.
[0017] According to another aspect of the present disclosure, a control device is provided, including: a main controller configured to obtain update data from a remote server, store the update data in an external memory of a main device corresponding to the main controller, and send the update data to at least one slave device to be stored in the external memory of the at least one slave device. In the case where the update data is stored in the external memory of a device that needs to be updated among the main device and at least one slave device, the control device enables the device that needs to be updated to start a bootloader to write the update data in the external memory into the internal memory of the device that needs to be updated, so as to update the device that needs to be updated.
[0018] Optionally, the main controller can be configured to perform a security check on the update data written into the external memory of the device that needs to be updated in response to the bootloader of the device that needs to be updated being started. The update data in the external memory is written into the internal memory of the device that needs to be updated only if the update data stored in the external memory of the device that needs to be updated passes the security check.
[0019] Optionally, the control device may further include at least one slave controller corresponding to at least one slave device. The master controller may be configured to perform a security check on the update data written into the external memory of the master device in response to the bootloader of the master device being started. Each of the at least one slave controller may be configured to perform a security check on the update data written into the external memory of the slave device in response to the bootloader of the slave device corresponding to the slave controller being started. For the master device and at least one slave device, the update data in the external memory is written into the internal memory of the device only if the update data stored in the external memory of the device passes the security check.
[0020] Optionally, for each of the master device and at least one slave device, the external memory of the device is divided into a plurality of storage areas according to the function of the device. The master controller may only obtain update data corresponding to the function that needs to be updated from the remote server.
[0021] Optionally, the control device may enable the device that needs to be updated to start the Bootloader only when the user is not using the device that needs to be updated.
[0022] Optionally, at least one slave controller communicates with the master controller via an RS485 cable based on the Modbus protocol, and the master controller communicates with the remote server based on the Modbus protocol.
[0023] Optionally, each message sent based on the Modbus protocol contains a custom function code, which includes an instruction function code, a header and an instruction type code. The instruction function code is used to indicate the function corresponding to the message, the header is reserved identification information, and the instruction type code is used to indicate the information transmission stage corresponding to the message.
[0024] Optionally, each type of update data may be added with additional information, the additional information containing information related to the device update.
[0025] Optionally, the main controller may send a data acquisition request to the remote server based on the additional information, where the data acquisition request includes a data block number, a data block size, and a cyclic redundancy check code of the update data required by the main device.
[0026] Optionally, the main controller can obtain the update data reception status of the master device and at least one slave device based on the additional information and the received update data, and send feedback information to the remote server to indicate: the update data reception status; or the update data reception status and the operating status of the master device and at least one slave device.
[0027] Optionally, the control device may display the updated data receiving status on the human-computer interaction page in real time.
[0028] Optionally, the main controller communicates with the remote server via wired communication or wireless communication, and the main controller communicates with at least one slave controller via wired communication or wireless communication.
[0029] Alternatively, the master controller may obtain update data from a remote server in response to a request from the remote server, the master device, or a user of the master device.
[0030] According to yet another aspect of the present disclosure, there may be provided an air conditioning system including the above control apparatus, a master device, and at least one slave device.
[0031] According to other aspects of the present disclosure, a computer program code and a computer program product for implementing the method according to the present disclosure are also provided, as well as a computer-readable storage medium having the computer program code for implementing the method according to the present disclosure recorded thereon.
[0032] Other aspects of the embodiments of the present disclosure are given in the following description, wherein the detailed description is used to fully disclose the preferred embodiments of the embodiments of the present disclosure without imposing limitations thereon. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The present disclosure may be better understood by referring to the detailed description given below in conjunction with the accompanying drawings, wherein the same or similar reference numerals are used throughout the drawings to represent the same or similar components. The accompanying drawings, together with the following detailed description, are included in and form a part of this specification to further illustrate the preferred embodiments of the present disclosure and to explain the principles and advantages of the present disclosure. Among them:
[0034] Figure 1 is a flowchart showing an example of the flow of a remote data update method according to an embodiment of the present disclosure.
[0035] Figure 2 An example of a communication process between a host device and a remote server is shown.
[0036] Figure 3 Another example of the communication process between the host device and the remote server is shown.
[0037] Figure 4 An example of a communication process between a master device and a slave device is shown.
[0038] Figure 5 is a block diagram showing a functional configuration example of a control device according to an embodiment of the present disclosure.
[0039] Figure 6 is a block diagram showing another functional configuration example of the control device according to the embodiment of the present disclosure;
[0040] Figure 7 is a block diagram showing a functional configuration example of an air conditioning system according to an embodiment of the present disclosure;
[0041] Figure 8 is a schematic diagram showing an example of the architecture of an air conditioning system according to an embodiment of the present disclosure; and
[0042] Fig. 9 is a block diagram showing an example structure of a personal computer that can be employed in the embodiments of the present disclosure. DETAILED DESCRIPTION
[0043] Exemplary embodiments of the present disclosure will be described below in conjunction with the accompanying drawings. For the sake of clarity and conciseness, not all features of the actual implementation are described in the specification. However, it should be understood that many implementation-specific decisions must be made in the process of developing any such actual implementation in order to achieve the developer's specific goals, such as meeting those constraints related to the system and business, and these constraints may vary from implementation to implementation. In addition, it should be understood that although the development work may be very complex and time-consuming, it is only a routine task for those skilled in the art who benefit from the content of this disclosure.
[0044] It is also necessary to explain here that in order to avoid obscuring the present disclosure due to unnecessary details, only the device structure and / or processing steps closely related to the scheme according to the present disclosure are shown in the accompanying drawings, while other details that are not closely related to the present disclosure are omitted.
[0045] The embodiments according to the present disclosure are described in detail below with reference to the accompanying drawings.
[0046] First, refer to Figures 1 to 4 An implementation example of the remote data update method 100 according to an embodiment of the present disclosure is described. Figure 1 is a flowchart showing an example of the process of the remote data update method 100 according to an embodiment of the present disclosure. Figure 2 and Figure 3 An example of a communication process between a host device and a remote server is shown. Figure 4 An example of a communication process between a master device and a slave device is shown.
[0047] like Figure 1 As shown, the remote data update method 100 according to an embodiment of the present disclosure may start at the start step S102. For example, the remote data update method may start in response to a request from a remote server, a host device, or a user of the host device, but is not limited thereto.
[0048] In step S104, update data may be obtained from a remote server (e.g., a cloud) by the master device, and the update data may be stored in an external memory of the master device. For example, the update data may be a binary file, such as a binary file related to the update and / or upgrade of firmware (e.g., a controller), a binary file related to the update and / or upgrade of parameters (e.g., parameters of the controller), a binary file related to the update and / or upgrade of firmware and parameters, etc. For example, the update data may include data for updating and / or upgrading, but is not limited thereto. Accordingly, updating the device may include updating and / or upgrading the device, but is not limited thereto.
[0049] In step S106, the update data may be sent to at least one slave device by the master device to be stored in an external memory of at least one slave device. As an example, the master device may send the update data to at least one slave device after the master device receives the complete update data. For example, the master device may send the complete update data to each slave device in sequence. As another example, the master device may send the received update data to at least one slave device while the master device receives the update data.
[0050] In step S108, the device that needs to be updated among the master device and the slave device can be enabled to start the Bootloader to write the update data in the external memory of the device into the internal memory of the device to update the device. For example, the device that needs to be updated can be restarted to start the Bootloader to write the update data. For example, the remote data update method 100 can end after sending an instruction to start the Bootloader to the device that needs to be updated (step S110).
[0051] For example, the external memory may be a flash memory outside the controller associated with the master device, such as a 512K flash memory, but is not limited thereto. As an example, the controller associated with the master device may be a controller in the master device or a controller attached to the master device from the outside, but is not limited thereto. In addition, for example, the internal memory may be an on-chip flash memory in the controller, but is not limited thereto. For example, in the case where the master device and the slave device are included in a multi-split air conditioner, all boot bootloaders in the master device and the slave device may be simultaneously written with update data, thereby updating the master device and the slave device of the multi-split air conditioner at one time.
[0052] According to the remote data update method 100 of the embodiment of the present disclosure, the update data is first written into the external memory, and then the update data in the external memory is written into the internal memory. Because the writing speed of the update data in the external memory to the internal memory is much faster than the speed at which the master device receives the update data from the remote server and the speed at which the slave device receives the update data from the master device, the device update speed can be improved.
[0053] In addition, according to the remote data update method 100 of an embodiment of the present disclosure, the master device obtains update data from the remote server and sends the update data to each slave device, so only the master device needs to be connected to the remote server, which can improve convenience, save product maintenance costs, and facilitate the functional expansion of on-site products.
[0054] Note that "remote" in this article refers to not being physically in the same location and does not include a specific limit on distance. For example, a "remote server" may refer to a server that is not physically in the same location as the master device and the slave device, such as a remote server that is located in a different place or in a different location in the same place as the master device and / or the slave device.
[0055] For example, additional information may be added to each type of update data on the remote server side, and the additional information includes information related to device update, such as digital signature data, the version corresponding to the update data (such as firmware version), the size of the update data, etc. For example, the master device may obtain the additional information before obtaining the update data, so as to perform corresponding operations based on the information later, such as determining the reception status of the update data, determining whether to terminate the update data transmission process, etc. For example, the size of the additional information may be 16 bytes, but is not limited thereto.
[0056] The following will refer to Figure 2 The illustrated example flow illustrates an example of data transmission between a remote server and a host device when the remote data update method 100 is started in response to a request from a remote server.
[0057] like Figure 2 As shown, the administrator on the remote server side (e.g., the manufacturer, seller, maintainer, etc. of the master device and the slave device) can select the firmware that needs to be updated on the electronic device related to the remote server (e.g., computer, mobile phone, etc.), and send an update request to the master device, which includes information about the new firmware version. The master device can respond to the update request on the remote server side, determine whether the new firmware version is higher than the current firmware version of the master device, and feed back the determination result to the remote server. Although Figure 2 It is shown that the above firmware version determination process is performed by the main device, but the above firmware version determination process can be determined by an administrator or electronic device on the remote server side.
[0058] In the case where the new firmware version is higher than the current firmware version of the master device, the update data transfer process can be started. Figure 2As shown, the remote server can send a message to the master device to start the update data transmission process. The master device can send an update data information acquisition request to the remote server in response to the message to obtain information related to the update data from the remote server, such as the additional information described above. After receiving the update data information acquisition request, the remote server sends the update data related information to the master device. After receiving the update data related information, the master device sends a data block acquisition request to the remote server to obtain a data block (for example, a size of 16 bytes) of the update data. The data block acquisition request may include the size and number of the data block to be acquired, a cyclic redundancy check code (CRC), etc. In response to the data block acquisition request, the remote server can send a data block corresponding to the data block acquisition request to the master device. After the master device receives the data block, it can check the reception status of the update data based on the data block and the information related to the update data, such as whether the data block is the last data block of the update data, and then determine whether to terminate the update data transmission process. For example, in the case where the data block is the last data block of the update data, the master device can terminate the update data transmission process. On the other hand, if the data block is not the last data block of the updated data, the master device can continue to send a data block acquisition request to the remote controller. By sending the updated data in a manner where the master device sends a data acquisition request and the remote server responds to it, flexible data transmission, breakpoint resume, etc. can be achieved.
[0059] For example, the master device may obtain the update data reception status of the master device and at least one slave device based on the additional information and the received update data, and send feedback information to the remote server to indicate the update data reception status of the master device and at least one slave device, such as Figure 2 As shown. For example, when the remote server determines that the device to be updated in the master device and the slave device has received complete update data based on the update data reception status, the device to be updated can start the Bootloader to write the update data. In addition, the feedback information can also indicate the operating status of the master device and at least one slave device, that is, whether the master device and at least one slave device are running, so that the remote server can grasp the operating status of each device. For example, based on the feedback information, the remote server can start the Bootloader of the device only when the user is not using the device to be updated, thereby improving convenience.
[0060] For example, the remote data updating method 100 may further include displaying the updated data receiving status ( Figure 1(not shown), for example, the update data receiving status of the master device or the update data receiving status of the master device and the slave device, so that relevant personnel can grasp the update data receiving status in real time. For example, the human-computer interaction page can be on the remote server side or the user side.
[0061] For example, Figure 2 As shown, the sending of feedback information of the master device may be based on polling of the remote server. For example, the remote server may poll the master device during the transmission of update data and / or after the transmission of update data is completed.
[0062] Notice, Figure 2 The ellipsis in the figure indicates that the number of times of sending data block acquisition request, sending data block, sending feedback information and polling is not limited by the figure, but can be performed according to actual conditions.
[0063] Figure 3 1 shows an example of data transmission between the remote server and the master device in the case where the remote data update method 100 is started in response to a request from a user (ie, a user of the master device) or the master device. Figure 3 As shown, the main device or user (e.g., the user's electronic device, such as a smart phone, computer, etc.) can send a firmware version information acquisition request to a remote server. The remote server sends information about the new firmware version to the main device or user in response to the firmware version information acquisition request, and the main device or user can determine whether the new firmware version is higher than the current firmware version of the main device based on the information. In the case where the new firmware version is higher than the current firmware version of the main device, the update data transmission process can be started. Figure 3 Other processes and references in Figure 2 The process described is similar and therefore will not be described in detail.
[0064] For example, the update data transmission process between the master device and the slave device can be similar to the update data transmission process between the server and the master device, such as Figure 4 For example, in the case where the master device and the slave device are included in a multi-split air conditioner, the firmware version information of the slave device is known to the master device, so the firmware version information of the slave device can be omitted. Figure 4 The update request and determination result sending process in.
[0065] Note that although Figures 2 to 4 An example of updating firmware is described in , but the process depicted therein can be similarly applicable to the case of updating other objects (such as parameters).
[0066] For example, the master device can communicate with the remote server through a wired communication method or a wireless communication method (e.g., WIFI, 5G / 4G / 3G / 2G, NB-IOT, Lora, etc.) according to actual needs, thereby further improving flexibility. Similarly, the master device can communicate with at least one slave device through a wired communication method (e.g., RS485 connection, network cable, CAN, etc.) or a wireless communication method (e.g., WIFI, Bluetooth, Zigbee, etc.) according to actual needs, thereby further improving flexibility.
[0067] For example, the communication protocol used for communication between the master device and the remote server and the communication protocol used for communication between the master device and at least one slave device may support functions such as breakpoint resumption, thereby further improving flexibility.
[0068] For example, the communication protocol used for communication between the master device and the remote server may be the same as the communication protocol used for communication between the master device and at least one slave device. For example, when the master device communicates with the remote server based on the Modbus protocol, at least one slave device may be connected to the master device via an RS485 cable and communicate with the master device based on the Modbus protocol.
[0069] For example, each message sent based on the Modbus protocol may contain a custom function code. The custom function code may include an instruction function code, a header, and an instruction type code. The instruction function code may be used to indicate the function corresponding to the message, such as indicating that the message is related to remote update. Figures 2 to 4 In the flowchart shown, each message may include a function code for indicating remote update. The header may be reserved identification information for later application expansion. The instruction type code may be used to indicate the information transmission phase corresponding to the message. For example, the information transmission phase may include Figures 2 to 4 The update data information acquisition request sending phase, the data block acquisition request sending phase, the data block sending phase, etc. are shown, but are not limited to these.
[0070] For example, for each of the master device and at least one slave device, the external memory of the device is divided into multiple storage areas according to the function of the device, and only the update data is written to the storage area corresponding to the function that needs to be updated, thereby saving the update data writing time. For example, each of the master device and at least one slave device can only obtain the update data corresponding to the function that needs to be updated, and store the obtained update data in the storage area corresponding to the function that needs to be updated, thereby saving the update data acquisition time. For example, in the case where the master device and the slave device are devices in a multi-split air conditioner, the external memory can be divided into a storage area for a compressor control module, a storage area for a fan control module, a storage area for an electronic expansion valve control module, a storage area for a data communication module, an area for a sensor processing module, a storage area for other modules, a reserved storage area, etc., but not limited to this.
[0071] For example, the remote data update method 100 may further include: performing a security check on the update data in the external memory of the device to be updated ( Figure 1 (not shown). For example, the device that needs to be updated (e.g., a controller related to the device that needs to be updated) can verify the update data stored in the external memory of the device after starting the Bootloader, and only when the update data stored in the external memory of the device passes the security verification, the update data is written from the external memory to the internal memory of the device. Security can be improved through security verification.
[0072] For example, performing security verification on the update data may include: using hash256 to calculate a message digest for the update data stored in the external memory; encrypting the calculated message digest using the RSA algorithm and a public key (e.g., a public key obtained based on a predetermined algorithm) to obtain an encrypted message digest; and comparing the encrypted message digest with the message digest encrypted using the RSA algorithm and the public key received from the remote server, and determining that the security verification has been passed if the encrypted message digest is consistent with the message digest received from the remote server. The security verification process may be performed by the master device. That is, the master device performs security verification on the update data in the external memory in the master device and the slave device. Of course, the master device and the slave device may each perform security verification on the update data in the external memory in the device.
[0073] The remote data updating method 100 according to the embodiment of the present disclosure is described above. Figure 5 A control device 500 according to an embodiment of the present disclosure is described. Figure 5 is a block diagram showing a functional configuration example of a control device 500 according to an embodiment of the present disclosure.
[0074] like Figure 5 As shown, the control device 500 according to an embodiment of the present disclosure may include a main controller 502. The main controller 502 may be configured to obtain update data from a remote server, store the update data in an external memory of a master device corresponding to the main controller, and send the update data to at least one slave device to be stored in the external memory of at least one slave device. For example, the control device 500 may execute the remote control method 100 described above, so the specific details can be found in the description of the remote control method 100 above, and only a brief description is given here.
[0075] For example, the main controller 502 may be a controller in a main device or a controller externally attached to the main device.
[0076] For example, when update data is stored in the external memory of the device that needs to be updated among the master device and at least one slave device, the master controller 502 can enable the device that needs to be updated to start the Bootloader to write the update data in the external memory into the internal memory of the device that needs to be updated, so as to update the device that needs to be updated.
[0077] Similar to the remote data update method 100 according to the embodiment of the present disclosure, the control device 500 according to the embodiment of the present disclosure first writes the update data into the external memory, and then writes the update data in the external memory into the internal memory, thereby improving the device update speed.
[0078] In addition, according to the embodiment of the present disclosure, the main controller 502 obtains update data from the remote server and stores the update data in the master device and each slave device. Therefore, only the main controller 502 needs to be connected to the remote server, which can improve convenience, save product maintenance costs, and facilitate on-site product function expansion.
[0079] For example, each type of update data may be added with additional information, and the additional information includes information related to the device update, such as digital signature information, the version corresponding to the update data (e.g., firmware version), the size of the update data, etc. For example, the main controller 502 may obtain the additional information before obtaining the update data, so as to perform corresponding operations based on the information later.
[0080] For example, the communication process between the main controller 502 and the remote server can be similar to the communication process between the master device and the remote server described above, and the communication process between the main controller 502 and the slave device can be similar to the communication process between the master device and the slave device described above, so it will not be described in detail here.
[0081] For example, the main controller 502 can obtain the update data reception status of the master device and at least one slave device based on the additional information and the received update data, and send feedback information to the remote server to indicate the update data reception status of the master device and at least one slave device. In addition, the feedback information can also indicate the operating status of the master device and at least one slave device, that is, whether the master device and at least one slave device are running, so that the remote server can grasp the operating status of each device.
[0082] For example, the main controller 502 may enable the device that needs to be updated to start the Bootloader only when the user is not using the device that needs to be updated, thereby improving convenience.
[0083] For example, the main controller 502 can display the updated data receiving status on the human-computer interaction page in real time, such as the updated data receiving status of the master device or the updated data receiving status of the master device and the slave device, so that relevant personnel can grasp the updated data receiving status in real time. For example, the human-computer interaction page can be on the remote server side or the user side.
[0084] For example, the main controller 502 may be configured to perform a security check on the update data written into the external memory of the device in response to the bootloader of the device that needs to be updated being started.
[0085] For example, only when the update data stored in the external memory of the device to be updated passes the security check, the update data in the external memory is written into the internal memory of the device. In this way, security can be improved.
[0086] Figure 6 is a block diagram showing a functional configuration example of a control device 600 according to another embodiment of the present disclosure.
[0087] like Figure 6 As shown, the control device 600 according to an embodiment of the present disclosure may include a master controller 602 and at least one slave controller 604 .
[0088] The master controller 602 may be configured to obtain update data from a remote server, store the update data in an external memory of a master device corresponding to the master controller, and send the update data to at least one slave device to be stored in an external memory of the at least one slave device.
[0089] For example, when the external memory of the master device stores update data, if the master device needs to be updated, the master controller 602 can enable the master device to start the Bootloader to write the update data in the external memory into the internal memory of the master device to update the device that needs to be updated. For example, the master controller 602 can enable the master device to start the Bootloader only when the user is not using the master device, thereby improving convenience.
[0090] As an example, when the external memory of the slave device stores update data, if the slave device needs to be updated, the slave controller 604 corresponding to the slave device can enable the slave device to start the Bootloader to write the update data in the external memory to the internal memory of the slave device to update the slave device. For example, the slave controller 604 can enable the slave device to start the Bootloader only when the user does not use the slave device, thereby improving convenience. For example, the slave controller 604 can correspond one-to-one with the slave device.
[0091] For example, the control device 600 can execute the remote control method 100 described above. For example, the main controller 602 can control the main device to operate, and the slave controller 604 can control the corresponding slave device to operate. Therefore, the specific details can be found in the above description of the remote control method 100, and only a brief description is given here.
[0092] For example, the master controller 602 may be a controller in a master device or a controller externally attached to the master device. In addition, for example, the slave controller 604 may be a controller in a slave device corresponding to the slave controller 604 or a controller externally attached to the slave device.
[0093] Similar to the remote data update method 100 according to the embodiment of the present disclosure, the control device 600 according to the embodiment of the present disclosure first writes the update data into the external memory, and then writes the update data in the external memory into the internal memory, thereby improving the device update speed.
[0094] For example, the communication process between the master controller 602 and the slave controller 604 may be similar to the communication process between the master device and the slave device in the above method embodiment, and the communication process between the master controller 602 and the remote server may be similar to the communication process between the master device and the remote server in the above method embodiment. Therefore, the specific details can be found in the above description, and only a brief description is given here.
[0095] For example, the master controller 602 can communicate with the remote server through a wired communication mode or a wireless communication mode according to actual needs, thereby further improving flexibility. Similarly, the master controller 602 can communicate with at least one slave controller 604 through a wired communication mode according to actual needs, thereby further improving flexibility.
[0096] For example, the communication protocol used for communication between the master controller 602 and the remote server may be the same as the communication protocol used for communication between the master controller 602 and at least one slave controller 604. For example, when the master controller 602 communicates with the remote server based on the Modbus protocol, at least one slave controller 604 may be connected to the master device via an RS485 cable and communicate with the master controller 602 based on the Modbus protocol.
[0097] For example, the master controller 602 may be configured to perform a security check on the update data written into the external memory of the device in response to the bootloader of the master device being started, and only when the update data stored in the external memory of the master device needs to pass the security check, the update data in the external memory is written into the internal memory. Similarly, the slave controller 604 may be configured to perform a security check on the update data written into the external memory of the slave device in response to the bootloader of the slave device corresponding to the slave controller being started, and only when the update data stored in the external memory passes the security check, the update data in the external memory is written into the internal memory. In this way, security can be improved.
[0098] The following will refer to Figure 7 and Figure 8 An air conditioning system according to an embodiment of the present disclosure is described. Figure 7 is a block diagram showing a functional configuration example of an air conditioning system 700 according to an embodiment of the present disclosure. Figure 8 is a schematic diagram showing an example of the architecture of an air conditioning system 700 according to an embodiment of the present disclosure.
[0099] like Figure 7 As shown, the air conditioning system 700 according to the embodiment of the present disclosure may include a control device 702, a master device 704, and at least one slave device 706. For example, the control device 702 may be the control device 500 or 600 described above, and the master device 704 and the slave device 706 may be the master device and the slave device controlled by the control device 500 or 600, respectively. Therefore, the specific details can be found in the above description of the control device 500 or 600, and only a brief description is given here.
[0100] As an example, in the case where the control device 702 is the control device 500, the master controller included in the control device 702 may be externally attached to the master device 704 or integrated into the master device 704. As another example, in the case where the control device 702 is the control device 600, the master controller included in the control device 702 may be externally attached to the master device 704 or integrated into the master device 704, and the slave controller included in the control device 702 may be externally attached to the slave device 706 or integrated into the slave device 706.
[0101] For example, Figure 8 As shown, the air conditioning system 700 according to the embodiment of the present disclosure may be a multi-split air conditioner. For example, multiple outdoor units (in Figure 8 6, but not limited to this), establish a communication connection, designate one of the outdoor units as the master device 704, designate the other outdoor units as slave devices 706, and establish a communication connection between the master device 704 and the remote server 716. Figure 8 It is shown that the main device 704 establishes a wireless communication connection with the remote server 716 through the receiving board 710, via the data transmission unit 712, and the modem / router 714, but the connection method between the main device 704 and the remote server 716 is not limited to this, but can establish a communication connection in a wired manner or other wireless communication methods (for example, WIFI, 5G / 4G / 3G / 2G, NB-IOT, Lora, etc.) according to actual needs.
[0102] like Figure 8 As shown, the remote server 716 can be controlled by an electronic device 718 such as a computer or a mobile phone. The receiving board 710 can be connected to an indoor controller 722 for controlling an indoor unit (e.g., a thermostat) 724. The main device 704 can be electrically connected to an electric two-way valve 730. For example, the electric two-way valve 730 can be used to control floor heating or cooling. In addition, the main device 704 can be electrically connected to a compressor driver 726. The compressor driver 726 can be connected to a DC fan driver 728. For example, Figure 8 The portion outlined by the dotted line in the figure may be within the monoblock system.
[0103] For example, when the update data acquisition process is not performed in response to a request from a user of the air conditioning system 700, a request may be first sent to the user's electronic device 720 to obtain the user's authorization. The user's authorization may be used only for a one-time update data process or for an update data process within a predetermined time (e.g., several months, several years, several decades, etc.).
[0104] Note that although Figure 8702 is shown to be integrated in the master device 704, but as described above, various parts of the control device can be externally connected to the master device 704 and the slave device 706 or integrated into the master device 704 and the slave device 706 as needed. Figure 8 In the figure, the solid line represents an electrical connection, the dot-dashed line represents a wireless connection, and the double-dot-dashed line represents a connection via an RS485 cable, but the specific connection method of each part is not limited to that shown in the figure.
[0105] The above describes the functional configuration and operation of the remote data update method, control device and air-conditioning system according to the embodiments of the present disclosure, but this is only an example and not a limitation, and those skilled in the art may modify the above embodiments according to the principles of the present disclosure, for example, the functional modules and operations in each embodiment may be added, deleted or combined, and such modifications shall fall within the scope of the present disclosure.
[0106] In addition, it should be pointed out that the device and system embodiments here correspond to the above-mentioned method embodiments. Therefore, for the contents not described in detail in the method embodiments, please refer to the description of the corresponding parts of the method embodiments, and the description will not be repeated here.
[0107] In addition, the present disclosure also provides a storage medium and a program product. It should be understood that the machine-executable instructions in the storage medium and the program product according to the embodiments of the present disclosure can also be configured to execute the above-mentioned remote data update method, so the contents not described in detail here can refer to the description of the previous corresponding parts, and will not be repeated here.
[0108] Accordingly, the storage medium for carrying the program product including the machine executable instructions is also included in the disclosure of the present invention, including but not limited to a floppy disk, an optical disk, a magneto-optical disk, a memory card, a memory stick, and the like.
[0109] In addition, it should be noted that the above series of processing and control devices can also be implemented by software and / or firmware. In the case of being implemented by software and / or firmware, from a storage medium or a network to a computer with a dedicated hardware structure, such as Fig. 9 The general-purpose personal computer 1000 shown has programs constituting the software installed therein, and when the various programs are installed therein, the computer can execute various functions and the like.
[0110] exist Fig. 9 In the embodiment, a central processing unit (CPU) 1001 executes various processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 to a random access memory (RAM) 1003. In the RAM 1003, data required when the CPU 1001 executes various processes and the like is also stored as needed.
[0111] The CPU 1001, the ROM 1002, and the RAM 1003 are connected to one another via a bus 1004. To the bus 1004, an input / output interface 1005 is also connected.
[0112] The following components are connected to the input / output interface 1005: an input device 1006 including a keyboard, a mouse, etc.; an output device 1007 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage device 1008 including a hard disk, etc.; and a communication device 1009 including a network interface card such as a LAN card, a modem, etc. The communication device 1009 performs communication processing via a network such as the Internet.
[0113] A drive 1010 is also connected to the input / output interface 1005 as needed. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the drive 1010 as needed so that a computer program read therefrom is installed into the storage device 1008 as needed.
[0114] In the case where the above-described series of processing is realized by software, a program constituting the software is installed from a network such as the Internet or a storage medium such as the removable medium 1011 .
[0115] It should be understood by those skilled in the art that such storage media is not limited to Fig. 9 The removable medium 1011 shown has a program stored therein and is distributed separately from the device to provide the program to the user. Examples of the removable medium 1011 include magnetic disks (including floppy disks (registered trademark)), optical disks (including compact disk read-only memory (CD-ROM) and digital versatile disks (DVD)), magneto-optical disks (including minidiscs (MD) (registered trademark)), and semiconductor memories. Alternatively, the storage medium may be a ROM 1002, a hard disk included in the storage device 1008, or the like, in which the program is stored and distributed to the user together with the device containing them.
[0116] The preferred embodiments of the present disclosure are described above with reference to the accompanying drawings, but the present disclosure is certainly not limited to the above examples. Those skilled in the art may obtain various changes and modifications within the scope of the appended claims, and it should be understood that these changes and modifications will naturally fall within the technical scope of the present disclosure.
[0117] For example, a plurality of functions included in one unit in the above embodiments may be implemented by separate devices. Alternatively, a plurality of functions implemented by a plurality of units in the above embodiments may be implemented by separate devices, respectively. In addition, one of the above functions may be implemented by a plurality of units. Needless to say, such a configuration is included in the technical scope of the present disclosure.
[0118] In this specification, the steps described in the flowchart include not only the processing performed in time series in the order described, but also the processing performed in parallel or individually rather than necessarily in time series. In addition, even in the steps processed in time series, it goes without saying that the order can be appropriately changed.
Claims
1. A remote data updating method, comprising: Acquire update data from a remote server through a master device, and store the update data in an external memory of the master device; sending the update data to at least one slave device by the master device to be stored in an external memory of the at least one slave device; as well as The device that needs to be updated among the master device and the at least one slave device is enabled to start the Bootloader to write the update data in the external memory of the device that needs to be updated into the internal memory of the device that needs to be updated, so as to update the device that needs to be updated.
2. The remote data updating method according to claim 1, further comprising: Performing a security check on the update data in the external memory of the device that needs to be updated, The update data is written from the external memory to the internal memory of the device that needs to be updated only when the update data stored in the external memory of the device that needs to be updated passes the security check.
3. The remote data updating method according to claim 1, wherein: For each of the master device and the at least one slave device, an external memory of the device is divided into a plurality of storage areas according to a function of the device, and update data is written only to a storage area corresponding to a function that needs to be updated.
4. The remote data updating method according to claim 1, wherein: Only when the user does not use the device that needs to be updated, the device that needs to be updated starts the Bootloader.
5. The remote data updating method according to any one of claims 1 to 4, wherein: The at least one slave device communicates with the master device via RS485 cable based on Modbus protocol, and The master device communicates with the remote server based on the Modbus protocol.
6. The remote data updating method according to claim 5, wherein: Each message sent based on the Modbus protocol contains a custom function code, which includes an instruction function code, a header and an instruction type code. The instruction function code is used to indicate the function corresponding to the message, the header is reserved identification information, and the instruction type code is used to indicate the information transmission stage corresponding to the message.
7. The remote data updating method according to any one of claims 1 to 4, further comprising: Additional information is added to each type of update data on the remote server side, wherein the additional information includes information related to device update.
8. The remote data updating method according to claim 7, further comprising: The master device sends a data acquisition request to the remote server based on the additional information, wherein the data acquisition request includes a data block number, a data block size and a cyclic redundancy check code of the update data required by the master device.
9. The remote data updating method according to claim 8, further comprising: The master device obtains the update data reception status of the master device and the at least one slave device based on the additional information and the received update data, and sends feedback information to the remote server to indicate: the update data reception status; or the update data reception status and the operating status of the master device and the at least one slave device.
10. The remote data updating method according to claim 9, further comprising: The update data reception status is displayed in real time on the human-computer interaction page according to the feedback information from the main device.
11. The remote data updating method according to any one of claims 1 to 4, wherein: The main device communicates with the remote server via wired communication or wireless communication. The master device communicates with the at least one slave device via wired communication or wireless communication.
12. The remote data updating method according to any one of claims 1 to 4, wherein: The remote data update method starts in response to a request from the remote server, the host device, or a user of the host device.
13. A control device comprising: a master controller configured to obtain update data from a remote server, store the update data in an external memory of a master device corresponding to the master controller, and send the update data to at least one slave device to be stored in the external memory of the at least one slave device, Wherein, when the update data is stored in the external memory of the device that needs to be updated among the master device and the at least one slave device, the control device enables the device that needs to be updated to start the Bootloader to write the update data in the external memory into the internal memory of the device that needs to be updated, so as to update the device that needs to be updated.
14. The control device according to claim 13, wherein: The main controller is configured to perform security verification on update data written into the external memory of the device that needs to be updated in response to the bootloader of the device that needs to be updated being started, Only when the update data stored in the external memory of the device that needs to be updated passes the security check, the update data in the external memory is written into the internal memory of the device that needs to be updated.
15. The control apparatus according to claim 13, further comprising at least one slave controller corresponding to the at least one slave device, The main controller is configured to perform security verification on update data written into the external memory of the main device in response to the bootloader of the main device being started, Each of the at least one slave controller is configured to perform security verification on update data written into an external memory of the slave device in response to the bootloader of the slave device corresponding to the slave controller being started, in, For the master device and the at least one slave device, only when the update data stored in the external memory of the device passes the security check, the update data in the external memory is written into the internal memory of the device.
16. The control device according to claim 13, wherein: For each of the master device and the at least one slave device, an external memory of the device is divided into a plurality of storage areas according to a function of the device, The main controller obtains only update data corresponding to functions that need to be updated from the remote server.
17. The control device according to claim 13, wherein: The control device enables the device that needs to be updated to start the Bootloader only when the user does not use the device that needs to be updated.
18. The control device according to claim 15, wherein: The at least one slave controller communicates with the master controller via RS485 cable based on Modbus protocol, and The main controller communicates with the remote server based on the Modbus protocol.
19. The control device according to claim 18, wherein: Each message sent based on the Modbus protocol contains a custom function code, which includes an instruction function code, a header and an instruction type code. The instruction function code is used to indicate the function corresponding to the message, the header is reserved identification information, and the instruction type code is used to indicate the information transmission stage corresponding to the message.
20. The control device according to any one of claims 13 to 19, wherein: Each type of update data is added with additional information containing information related to the device update.
21. The control device according to claim 20, wherein: The main controller sends a data acquisition request to the remote server based on the additional information, wherein the data acquisition request includes a data block number, a data block size and a cyclic redundancy check code of the update data required by the main device.
22. The control device according to claim 20, wherein: The main controller obtains the update data reception status of the master device and the at least one slave device based on the additional information and the received update data, and sends feedback information to the remote server to indicate: the update data reception status; or the update data reception status and the operating status of the master device and the at least one slave device.
23. The control device according to claim 22, wherein: The control device displays the update data receiving status on the human-computer interaction page in real time.
24. The control device according to claim 15, wherein: The main controller communicates with the remote server via wired communication or wireless communication. The master controller communicates with the at least one slave controller via wired communication or wireless communication.
25. A control device according to any one of claims 13 to 19, wherein: The main controller acquires the update data from the remote server in response to a request from the remote server, the main device, or a user of the main device.
26. An air conditioning system, comprising: A control device according to any one of claims 13 to 25; the master device; as well as The at least one slave device. 27 . A computer-readable storage medium storing instructions, wherein when the instructions are executed by a computer, the computer is caused to execute the remote data update method according to claim 1 .
