CN109067734B - Dynamic configuration method of communication protocol, wireless communication device and household appliance - Google Patents

Dynamic configuration method of communication protocol, wireless communication device and household appliance Download PDF

Info

Publication number
CN109067734B
CN109067734B CN201810847216.XA CN201810847216A CN109067734B CN 109067734 B CN109067734 B CN 109067734B CN 201810847216 A CN201810847216 A CN 201810847216A CN 109067734 B CN109067734 B CN 109067734B
Authority
CN
China
Prior art keywords
wireless communication
protocol
partition
communication protocol
communication device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810847216.XA
Other languages
Chinese (zh)
Other versions
CN109067734A (en
Inventor
霍伟明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
GD Midea Air Conditioning Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GD Midea Air Conditioning Equipment Co Ltd filed Critical GD Midea Air Conditioning Equipment Co Ltd
Priority to CN201810847216.XA priority Critical patent/CN109067734B/en
Publication of CN109067734A publication Critical patent/CN109067734A/en
Application granted granted Critical
Publication of CN109067734B publication Critical patent/CN109067734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings

Abstract

The application provides a dynamic configuration method of a communication protocol, a wireless communication device and a household appliance, wherein the method comprises the following steps: when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, loading the logic application in the project mode partition through a bootstrap program in the system level chip module, and detecting the wireless communication protocol supported by the household appliance; determining a target wireless communication protocol to be configured of the wireless communication device according to the detection result; modifying the loading address information of the bootstrap program into address information of a target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device; during the restart of the wireless communication device, the target wireless communication protocol stored in the target protocol partition is loaded by the bootstrap program. The technical problems of high software coupling, high chip resources and high cost in the prior art are solved, and the technical effects of reducing the requirements on the chip resources and reducing the production cost and the software coupling are achieved.

Description

Dynamic configuration method of communication protocol, wireless communication device and household appliance
Technical Field
The present application relates to the field of communications technologies, and in particular, to a dynamic configuration method of a communication protocol, a wireless communication device, and a home appliance.
Background
With the rapid development of the internet technology and the field of household appliances, more and more intelligent household appliances are produced. In order to realize modern smart home, more and more smart home appliances are built with wireless communication devices, so that the smart home appliances are connected to the internet of things through the wireless communication devices of the smart home appliances. However, as the variety of communication protocols in intelligent appliances increases, the general industry generally implements wireless communication between multiple protocols through software-compatible multiple protocols.
However, the present inventors have found that the above-mentioned techniques have at least the following technical problems:
the technical problem is that: for chips in a wireless communication device, supporting multiple protocols on the same chip necessarily increases chip resources and also increases cost;
the second technical problem is that: by software compatible multi-protocols, it may happen that two competing customers' protocols are run at the same time, for example, the protocols of both the ali and the kyoto are run simultaneously;
the technical problem three is as follows: the software coupling is high, and when the protocol function is changed, the complexity and the change efficiency are high.
Disclosure of Invention
The embodiment of the application provides a dynamic configuration method of a communication protocol, a wireless communication device and a household appliance, and solves the technical problems that in the prior art, wireless communication among multiple protocols is realized by software compatibility with multiple protocols, the software coupling is high, the protocols of two mutually competing clients can be operated at the same time, and the increase of chip resources and the increase of cost are caused. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
An embodiment of a first aspect of the present application provides a dynamic configuration method of a communication protocol, which is applied to a wireless communication device, where the wireless communication device includes a system-on-chip module and a flash memory module, the flash memory module has an engineering mode partition and a plurality of protocol partitions, the engineering mode partition stores a logic application for detecting a wireless communication protocol type supported by a home appliance, and each protocol partition stores an independently operable wireless communication protocol, and the dynamic configuration method includes:
when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, loading a logic application in the engineering mode partition through a bootstrap program in the system-on-chip module, wherein the logic application is used for reading model or protocol standard parameters of a household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameters;
according to the detection result of the logic application, determining a target wireless communication protocol to be configured of the wireless communication device from a communication protocol corresponding to backup protocol partition address information stored in an electric control module of the household appliance and a plurality of wireless communication protocols corresponding to the protocol partitions;
modifying the loading address information of the bootstrap program into address information of a target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device;
and loading the target wireless communication protocol stored in the target protocol partition by the bootstrap program in the process of restarting the wireless communication device.
The dynamic configuration method of the communication protocol of the embodiment of the application loads the logic application in the project mode partition through the bootstrap program in the system-on-chip module when determining to update the wireless communication protocol currently configured by the wireless communication device, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, determines the target wireless communication protocol to be configured of the wireless communication device from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then modifies the loading address information of the bootstrap program into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device, and finally loading the target wireless communication protocol stored in the target protocol partition through a bootstrap program in the process of restarting the wireless communication device. Therefore, the dynamic configuration of the wireless communication protocols in the wireless communication device can be realized, the wireless communication among various protocols is realized by adopting a partition loading mode, the condition that only one target wireless communication protocol is loaded to run by a bootstrap program at the same time can be ensured, the requirement on chip resources can be reduced, the production cost is reduced, and meanwhile, the condition that two mutually competing clients operate the protocols at the same time can be avoided. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
In a second aspect of the present application, a wireless communication device is provided, which includes a flash memory module and a system-on-chip module, wherein,
the flash memory module is provided with an engineering mode partition and a plurality of protocol partitions, the engineering mode partition stores logic application used for detecting wireless communication protocol types supported by the household appliance, and each protocol partition correspondingly stores an independently operable wireless communication protocol;
the system-on-chip module includes a boot program and a processor, the processor to:
when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, loading a logic application in the engineering mode partition through a bootstrap program in the system-on-chip module, wherein the logic application is used for reading model or protocol standard parameters of a household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameters;
according to the detection result of the logic application, determining a target wireless communication protocol to be configured of the wireless communication device from a communication protocol corresponding to backup protocol partition address information stored in an electric control module of the household appliance and a plurality of wireless communication protocols corresponding to the protocol partitions;
modifying the loading address information of the bootstrap program into address information of a target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device;
and loading the target wireless communication protocol stored in the target protocol partition by the bootstrap program in the process of restarting the wireless communication device.
In the wireless communication device of the embodiment of the application, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the logic application in the engineering mode partition is loaded through the bootstrap program in the system-on-chip module, the logic application is used for reading the model or protocol standard parameter of the household appliance, the wireless communication protocol supported by the household appliance is detected through the model or protocol standard parameter, then according to the detection result of the logic application, the target wireless communication protocol to be configured of the wireless communication device is determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then the loading address information of the bootstrap program is modified into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device, and finally loading the target wireless communication protocol stored in the target protocol partition through a bootstrap program in the process of restarting the wireless communication device. Therefore, the dynamic configuration of the wireless communication protocols in the wireless communication device can be realized, the wireless communication among various protocols is realized by adopting a partition loading mode, the condition that only one target wireless communication protocol is loaded to run by a bootstrap program at the same time can be ensured, the requirement on chip resources can be reduced, the production cost is reduced, and meanwhile, the condition that two mutually competing clients operate the protocols at the same time can be avoided. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
An embodiment of a third aspect of the present application provides a household appliance, including: the wireless communication device as set forth in the second aspect of the embodiments of the present application.
In a fourth aspect of the present application, another wireless communication device is provided, which includes a flash memory module and a system on chip module, wherein,
the flash memory module is provided with an engineering mode partition and a plurality of protocol partitions, the engineering mode partition stores logic application used for detecting wireless communication protocol types supported by the household appliance, and each protocol partition correspondingly stores an independently operable wireless communication protocol;
the system-on-chip module includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the processor implements the method for dynamically configuring the communication protocol as proposed in the embodiment of the first aspect of the present application.
An embodiment of a fifth aspect of the present application proposes a non-transitory computer-readable storage medium, on which a computer program is stored, where the program is configured to, when executed by a processor, implement the method for dynamically configuring a communication protocol as proposed in an embodiment of the first aspect of the present application.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: on one hand, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the logic application in the engineering mode partition is loaded through the bootstrap program in the system-on-chip module, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, the target wireless communication protocol to be configured of the wireless communication device is determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then the loading address information of the bootstrap program is modified into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and the wireless communication device is restarted, finally, in the process of restarting the wireless communication device, the target wireless communication protocol stored in the target protocol partition is loaded through the bootstrap program, can effectively solve the problems that the prior art realizes the wireless communication among a plurality of protocols by software compatibility with a plurality of protocols, has high software coupling, there may occur technical problems in that protocols of two competing customers are operated at the same time, and that causes an increase in chip resources and an increase in cost, thereby realizing dynamic configuration of wireless communication protocols in the wireless communication device, realizing wireless communication among a plurality of protocols by adopting a partition loading mode, can ensure that the bootstrap program only loads one target wireless communication protocol to operate at the same time, can reduce the requirement on chip resources, thereby reducing the production cost and simultaneously avoiding the situation that the protocols of two mutually competing clients are operated at the same time. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
On the other hand, the wireless WiFi communication device which is high in popularization rate and mature in technology is adopted as the wireless communication device, so that the applicability of the method can be improved.
In another aspect, when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, a reading instruction for the backup protocol partition address information is sent to the electronic control module, the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module, and then the communication protocol corresponding to the read backup protocol partition address information is used as the wireless communication protocol.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a method for dynamically configuring a communication protocol according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a protocol partition table of a flash memory module according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a header address of a target protocol partition in an embodiment of the present application;
fig. 4 is a flowchart illustrating a dynamic configuration method of a communication protocol according to a second embodiment of the present application;
fig. 5 is a flowchart illustrating a method for dynamically configuring a communication protocol according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of a wireless communication device according to a fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of a wireless communication device according to a sixth embodiment of the present application.
Detailed Description
The method for dynamically configuring the communication protocol mainly aims at the technical problems that in the prior art, wireless communication among multiple protocols is realized through software compatibility with multiple protocols, software coupling is high, two mutually competing clients can run at the same time, and chip resources and cost are increased.
The dynamic configuration method of the communication protocol of the embodiment of the application loads the logic application in the project mode partition through the bootstrap program in the system-on-chip module when determining to update the wireless communication protocol currently configured by the wireless communication device, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, determines the target wireless communication protocol to be configured of the wireless communication device from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then modifies the loading address information of the bootstrap program into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device, and finally loading the target wireless communication protocol stored in the target protocol partition through a bootstrap program in the process of restarting the wireless communication device. Therefore, the dynamic configuration of the wireless communication protocols in the wireless communication device can be realized, the wireless communication among various protocols is realized by adopting a partition loading mode, the condition that only one target wireless communication protocol is loaded to run by a bootstrap program at the same time can be ensured, the requirement on chip resources can be reduced, the production cost is reduced, and meanwhile, the condition that two mutually competing clients operate the protocols at the same time can be avoided. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
In order to better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments. Before describing the embodiments of the present application in detail, for the sake of understanding, common technical terms are first introduced:
the boot program (Bootloader) is a program for booting the operating system, which runs before the operating system kernel runs, and can initialize hardware devices and establish a memory space mapping diagram, so that the software and hardware environment of the system reaches a proper state, and a correct environment is prepared for finally calling the operating system kernel.
Example one
Fig. 1 is a flowchart illustrating a dynamic configuration method of a communication protocol according to an embodiment of the present application.
The embodiment of the present application is exemplified by configuring the dynamic configuration method of the communication protocol in a wireless communication device, where the wireless communication device may be applied to a household appliance, and the household appliance may be, for example, a household air conditioner, a television, a refrigerator, and other intelligent household appliances.
The hardware of the household appliance mainly comprises an electric control module and a wireless communication device. The electric control module is used as the central nerve of the whole household appliance and has control and protection functions on the household appliance, for example, the electric control module of the variable frequency air conditioner has the functions of a frequency converter, a temperature controller, a timer, a protector and the like. A wireless communication device belongs to the transmission layer of the Internet of things, has the function of converting a serial port or TTL level into an embedded module which accords with the wireless network communication standard and is embedded into household appliances so as to realize networking, intellectualization and digitization of the household appliances.
In this embodiment, the wireless communication device may include a system on chip module and a flash memory module, where the flash memory module has an engineering mode partition and a plurality of protocol partitions, the engineering mode partition stores a logic application for detecting a wireless communication protocol type supported by the home appliance, and each protocol partition stores an independently operable wireless communication protocol.
For example, taking the WIreless communication device as a WIreless-Fidelity (WiFi) communication device (or referred to as a WiFi module), and the WIreless communication protocol as a WIreless WiFi communication protocol as an example, the main components of the WiFi module are: a WiFi SOC chip (i.e., a system on a chip) and a Flash memory module (Flash). The flash memory module may have an engineering mode partition for storing a logic application for detecting a type of a wireless communication protocol supported by the home appliance, and a plurality of protocol partitions, each of which may store an independently operable wireless communication protocol, that is, each of which is an application of an operating system + a protocol function. It is understood that each partition in the flash memory module corresponds to a partition address, and each partition has an independent corresponding space size.
As an example, the partition table of the flash memory module may be as shown in fig. 2, where fig. 2 is a schematic view of the partition table of the flash memory module in this embodiment. The partition table only lists partition schematic diagrams of multiple protocols, and each partition in the partition table sequentially stores corresponding protocols. For example, partition 1 may be an engineering mode partition, in which a logic application for detecting the type of wireless communication protocol supported by the household appliance is stored, and the corresponding partition Address is Address0, and the corresponding space size is size 0; the partitions 2, 3, 4 and … are protocol partitions, wherein the household appliance protocol is stored in the partition 2, the corresponding partition Address is Address1, and the corresponding space size is size 1; the protocol partition 3 stores a protocol of household appliance + e-commerce 1 (such as the kyoto), the corresponding partition Address is Address2, and the corresponding space size is size 2; the protocol partition 4 stores a household appliance + e-commerce 2 (such as ali) protocol, the corresponding partition Address is Address3, and the corresponding space size is size 3; in the protocol section 5, the household appliance + C protocol, etc. are stored, which are not listed here.
As shown in fig. 1, the method for dynamically configuring the communication protocol includes the following steps:
step 101, when it is determined that the wireless communication protocol currently configured for the wireless communication device is to be updated, loading a logic application in the engineering mode partition through a bootstrap program in the system-on-chip module, wherein the logic application is used for reading model or protocol standard parameters of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameters.
In practical application, when the household appliance leaves a factory, the wireless communication device in the household appliance can be compatible with a plurality of protocols, so that after a user purchases the household appliance home, if the wireless communication protocol used by the internet of things in the home is not consistent with the default communication protocol of the wireless communication device in the household appliance, the user can dynamically configure the wireless communication protocol in the wireless communication device by triggering the household appliance, namely, the wireless communication protocol currently configured by the wireless communication device is updated.
For example, the embodiment of the application can set a trigger button on the household appliance or on a remote controller corresponding to the household appliance, and a user can trigger the household appliance through the trigger button to dynamically configure the wireless communication protocol in the wireless communication device. When the household appliance detects that a user triggers the button, the wireless communication device can determine that the wireless communication protocol currently configured by the wireless communication device is to be updated when receiving a detection instruction which is sent by the household appliance and aims at the wireless communication protocol supported by the household appliance, and at the moment, the logic application in the engineering mode partition can be loaded through a bootstrap program (Bootloader) in the system level chip module, wherein the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter.
Alternatively, the wireless communication protocol supported by the household appliance may be determined from a pre-established comparison table according to model or protocol standard parameters of the household appliance. The pre-established comparison table may have a correspondence between a model and a wireless communication protocol type, or a correspondence between a protocol standard parameter and a wireless communication protocol type. For example, the protocol standard parameter is used to indicate an identifier of a type of wireless communication protocol supported by the household appliance, for example, the protocol standard parameter is 01, which may be denoted as a type a wireless communication protocol, the protocol standard parameter is 02, which may be denoted as a type B wireless communication protocol, and the like.
As an example, when it is determined that a wireless communication protocol currently configured for a wireless communication device is to be updated, address information of an engineering mode partition may be acquired, and loading address information of a bootstrap program is modified into address information of the engineering mode partition, and then, the wireless communication device may be restarted, and a logic application in the engineering mode partition corresponding to the modified loading address information is loaded through the bootstrap program, where the logic application is configured to send an instruction for reading a model or protocol standard to an electronic control module of a home appliance, and detect the wireless communication protocol supported by the home appliance through the model or protocol standard. It should be noted that the address information may be a first address of the engineering mode partition.
For example, as shown in fig. 3, Address2 is an Address for the bootstrap program to read the loaded Address information, after the loaded Address is read, the Address2 Address value becomes 0x1234, and 0x1234 is the first Address corresponding to the logical application that needs to be actually run to detect the wireless communication protocol supported by the home appliance. That is, when it is determined that the wireless communication protocol currently configured by the wireless communication apparatus is to be updated, the loading address information of the boot program may be modified to the first address 0x1234 of the engineering mode partition, and then the wireless communication apparatus is restarted. When the wireless communication device is restarted, in the boot program starting process, the first address 0x1234 in the loading address information is read, and the corresponding engineering mode partition is found through the first address, so that the loading of the logic application in the engineering mode partition is realized. When the logic application is in operation, the logic application can send an instruction for reading the model or protocol standard to the electric control module of the household appliance, and can detect which wireless communication protocol the household appliance supports according to the model or protocol standard when the model or protocol standard fed back by the electric control module is obtained.
And step 102, determining a target wireless communication protocol to be configured by the wireless communication device from a communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and a plurality of wireless communication protocols corresponding to the protocol partitions according to the detection result of the logic application.
In this embodiment of the application, the backup protocol partition address information is preset, for example, the backup protocol partition address information may be address information corresponding to a protocol partition arranged on the first bit in a plurality of protocol partitions, or the backup protocol partition address information may be address information corresponding to any one protocol partition in the plurality of protocol partitions, for example, address information corresponding to a protocol partition arranged on the last bit, or address information corresponding to a protocol partition storing a wireless communication protocol currently configured by the wireless communication apparatus may be used as the backup protocol partition address information, which is not limited in this respect.
In the embodiment of the application, after the logic application detects the wireless communication protocol supported by the household appliance through the model or protocol standard parameters, a target wireless communication protocol to be configured of the wireless communication device can be determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols corresponding to the plurality of protocol partitions according to the detection result of the logic application. That is, in the present application, it is possible to detect which wireless communication protocol is supported by the home appliance according to the model or the protocol standard, and use the wireless communication protocol supported by the home appliance as the wireless communication protocol (i.e., the target wireless communication protocol) to which the wireless communication device is to be configured.
Specifically, it may be determined whether a wireless communication protocol corresponding to a model or protocol standard parameter exists in a plurality of wireless communication protocols stored in correspondence to the plurality of protocol partitions, and when the logic application detects that the corresponding wireless communication protocol exists in the plurality of wireless communication protocols according to the model or protocol standard parameter, the wireless communication protocol corresponding to the model or protocol standard parameter may be used as the target wireless communication protocol. And when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, the communication protocol corresponding to the backup protocol partition address information can be used as the target wireless communication protocol.
And 103, modifying the loading address information of the bootstrap program into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device.
In the embodiment of the application, each protocol partition in the flash memory module corresponds to one partition address, and each protocol partition has an independent corresponding space size. After the target wireless communication protocol to be configured by the wireless communication device is determined, the target protocol partition corresponding to the stored target wireless communication protocol can be determined, so that the address information of the target protocol partition can be determined.
Optionally, a corresponding relationship between each protocol partition, the wireless communication protocol stored in the protocol partition, and the address information of the protocol partition may be pre-established, and after a target wireless communication protocol to be configured by the wireless communication device is determined, the corresponding relationship may be queried to obtain the address information of the target protocol partition corresponding to the target wireless communication protocol.
It should be noted that the address information may be a first address of the target protocol partition, for example, referring to fig. 2 and fig. 3, assuming that the target wireless communication protocol is protocol 2, it may be determined that the address information of the target protocol partition corresponding to the storage protocol 2 is: address2, assuming that the first Address corresponding to the protocol partition storing protocol 2 is: 0x1234, it may be determined that the address information of the target partition is 0x 1234.
In the embodiment of the application, after the address information of the target protocol partition of the target wireless communication protocol is determined, the current loading address information of the boot program in the system-on-chip module may be modified to the address information of the target protocol partition of the corresponding storage target wireless communication protocol, so that the boot program loads the target wireless communication protocol stored in the target protocol partition according to the address information of the target protocol partition. Further, since the identification of the target protocol partition is performed in the boot program, the wireless communication apparatus needs to be restarted when the currently loaded address information of the boot program is modified.
And 104, loading the target wireless communication protocol stored in the target protocol partition by the bootstrap program in the process of restarting the wireless communication device.
In the embodiment of the application, in the process of restarting the wireless communication device, the target wireless communication protocol stored in the target protocol partition can be loaded to run through the bootstrap program according to the address information of the target protocol partition. Still taking the above example as an example, after determining that the head address of the target protocol partition is 0x1234, the bootstrap program may load the corresponding protocol 2 according to the head address to run.
In the embodiment of the application, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that the condition that a bootstrap program only loads one target wireless communication protocol to operate at the same time can be ensured, the requirement on chip resources can be reduced, the production cost is reduced, and meanwhile, the condition that two mutually competing clients operate the protocols at the same time can be avoided. And the software coupling can be reduced, for example, when the function of the protocol 3 needs to be changed, only the code corresponding to the protocol 3 needs to be changed, and the codes corresponding to other protocols do not need to be changed, so that the complexity of the function change of the protocol can be reduced, and the change efficiency is improved. In addition, when the household appliance is produced, only the supported wireless communication protocol needs to be written, the firmware can be commonly used in a plurality of products, the applicability of the method can be improved, and the complexity in production can be reduced.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the logic application in the engineering mode partition is loaded through the bootstrap program in the system-on-chip module, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, the target wireless communication protocol to be configured of the wireless communication device is determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then the loading address information of the bootstrap program is modified into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and the wireless communication device is restarted, finally, in the process of restarting the wireless communication device, the target wireless communication protocol stored in the target protocol partition is loaded through the bootstrap program, can effectively solve the problems that the prior art realizes the wireless communication among a plurality of protocols by software compatibility with a plurality of protocols, has high software coupling, there may occur technical problems in that protocols of two competing customers are operated at the same time, and that causes an increase in chip resources and an increase in cost, thereby realizing dynamic configuration of wireless communication protocols in the wireless communication device, realizing wireless communication among a plurality of protocols by adopting a partition loading mode, can ensure that the bootstrap program only loads one target wireless communication protocol to operate at the same time, can reduce the requirement on chip resources, thereby reducing the production cost and simultaneously avoiding the situation that the protocols of two mutually competing clients are operated at the same time. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
On the other hand, the wireless WiFi communication device which is high in popularization rate and mature in technology is adopted as the wireless communication device, so that the applicability of the method can be improved.
For clarity of the above embodiment, the embodiment of the present application provides another dynamic configuration method of communication protocol, see
Example two.
Example two
Fig. 4 is a flowchart illustrating a dynamic configuration method of a communication protocol according to a second embodiment of the present invention.
As shown in fig. 4, the method for dynamically configuring a communication protocol may include the following steps:
step 201, when it is determined that the wireless communication protocol currently configured by the wireless communication device is to be updated, determining a protocol partition corresponding to and storing the wireless communication protocol currently configured by the wireless communication device.
Step 202, acquiring address information of a protocol partition corresponding to a wireless communication protocol currently configured by the wireless communication device.
In the embodiment of the application, after the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device is determined, the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device may be determined. For example, a correspondence relationship between each protocol partition, the wireless communication protocol stored in the protocol partition, and the address information of the protocol partition may be established in advance, and after the protocol partition of the wireless communication protocol currently configured by the wireless communication apparatus is determined, the correspondence relationship may be queried to acquire the address information corresponding to the protocol partition.
For example, referring to fig. 5, in the embodiment of the present application, a trigger button may be disposed on the household appliance or on a remote controller corresponding to the household appliance, and a user may trigger the household appliance through the trigger button to dynamically configure a wireless communication protocol in the wireless communication device. When the home appliance detects that the user triggers the button (S1), the electronic control module in the home appliance may transmit an instruction to enter an engineering mode, i.e., a detection instruction for a wireless communication protocol supported by the home appliance, to the wireless communication device (S2). When the wireless communication device receives a detection instruction, sent by the household appliance, for a wireless communication protocol supported by the household appliance, it may be determined that the wireless communication protocol currently configured by the wireless communication device is to be updated, and then the wireless communication device may determine a protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device, and send address information (i.e., address information of the original protocol) corresponding to the protocol partition storing the wireless communication protocol currently configured by the wireless communication device to the electronic control module (S3), and at the same time, may feed back confirmation information to the electronic control module (S4).
Step 203, taking the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device as the backup protocol partition address information, and sending the backup protocol partition address information to the electronic control module for storage.
That is to say, when it is determined that the wireless communication protocol currently configured by the wireless communication device is to be updated, the address of the wireless communication protocol currently used by the wireless communication device may be used as the backup protocol partition address information and sent to the electronic control module for storage, that is, the address of the wireless communication protocol currently used by the wireless communication device is stored in the electronic control module, so that when an abnormal condition occurs in the dynamic configuration process, the backup protocol partition address information may be found from the electronic control module, and thus the wireless communication protocol corresponding to the backup protocol partition address information is loaded for operation, and it is ensured that the wireless communication device can communicate normally.
And step 204, loading the logic application in the engineering mode partition through a bootstrap program in the system-on-chip module, wherein the logic application is used for reading the model or protocol standard parameters of the household appliance.
And step 205, detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter.
Referring to fig. 5, address information of the engineering mode partition may be acquired, and the loading address information of the bootstrap program may be modified to address information of the engineering mode partition (S5), and then, the wireless communication device may be restarted (S6), and a logic application in the engineering mode partition corresponding to the modified loading address information is loaded through the bootstrap program (S7), wherein the logic application is configured to send an instruction to read a model or protocol standard to an electronic control module of the home appliance (S8), receive the model or protocol standard returned by the electronic control module (S9), and then, may detect a wireless communication protocol supported by the home appliance through the model or protocol standard.
And step 206, when the logic application detects that the corresponding wireless communication protocol exists in the plurality of wireless communication protocols according to the model or protocol standard parameters, taking the wireless communication protocol corresponding to the model or protocol standard parameters as a target wireless communication protocol.
And step 207, when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, sending a reading instruction for the backup protocol partition address information to the electronic control module, wherein the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module.
And step 208, taking the communication protocol corresponding to the read backup protocol partition address information as a target wireless communication protocol.
Step 209, modify the loading address information of the bootstrap program into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and restart the wireless communication device.
Alternatively, when the wireless communication protocol supported by the household appliance is detected by the logic application, it may be determined whether the wireless communication protocol supported by the household appliance is stored in the plurality of wireless communication protocols stored in the plurality of protocol partitions (S10), and if so, that is, when it is determined that the wireless communication protocol supported by the household appliance is stored in the plurality of wireless communication protocols stored in the plurality of protocol partitions, the loading address information of the bootstrap program may be modified to the address information of the target protocol partition (for example, marked as address n), and the wireless communication apparatus may be restarted to configure the communication protocol of the wireless communication apparatus to the wireless communication protocol supported by the household appliance (S11).
If not, that is, when it is determined that there is no wireless communication protocol supported by the home appliance in the plurality of wireless communication protocols stored in the plurality of protocol partitions, configuration failure information may be sent to the electronic control module (for example, the wireless communication device does not support the wireless communication protocol), and an instruction may be sent to the electronic control module to obtain backup protocol partition address information (i.e., a previously backed-up address) (S12), and accordingly, the electronic control module may send the backup protocol address information to the wireless communication device (S13), and then, the wireless communication device may restore the loading address information of the bootstrap program to the previously backed-up address, that is, restore the communication protocol of the wireless communication device to the communication protocol used in the previous configuration, and restart the wireless communication device (S14).
Step 210, loading the target wireless communication protocol stored in the target protocol partition by the bootstrap program in the process of restarting the wireless communication device.
Compared with the previous embodiment, the technical solution in the embodiment of the present application at least has the following further technical effects or advantages:
when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, a reading instruction for the backup protocol partition address information is sent to the electronic control module, the reading instruction is used for indicating the electronic control module to read the backup protocol partition address information, and then the communication protocol corresponding to the read backup protocol partition address information is used as the wireless communication protocol.
Based on the same inventive concept, the embodiment of the present application further provides apparatuses corresponding to the methods in the first to third embodiments, see the fourth embodiment.
Example four
Fig. 6 is a schematic structural diagram of a wireless communication device according to a fourth embodiment of the present application.
As shown in fig. 6, the wireless communication apparatus 100 includes: flash memory module 110 and system-on-chip module 120, wherein,
the flash memory module 110 has an engineering mode partition 111 and a plurality of protocol partitions 112, the engineering mode partition 111 stores a logic application for detecting a type of wireless communication protocol supported by the home appliance, and each protocol partition 112 stores an independently operable wireless communication protocol.
The system-on-chip 120 module includes a boot program 121 and a processor 122, and the processor 122 is configured to: when it is determined that the wireless communication protocol currently configured by the wireless communication device 100 is to be updated, loading a logic application in the engineering mode partition 111 through a bootstrap program 121 in the system-on-chip 120 module, where the logic application is used to read model or protocol standard parameters of the home appliance and detect the wireless communication protocol supported by the home appliance through the model or protocol standard parameters; according to the detection result of the logic application, determining a target wireless communication protocol to be configured of the wireless communication device 100 from a communication protocol corresponding to backup protocol partition address information stored in an electric control module of the household appliance and a plurality of wireless communication protocols corresponding to a plurality of protocol partitions; modifying the loading address information of the bootstrap program into address information of a target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device 100; during the reboot of the wireless communication device 100, the target wireless communication protocol stored in the target protocol partition is loaded by the boot program 121.
As one possible implementation, the processor 122 is configured to: when the logic application detects that the corresponding wireless communication protocol exists in a plurality of wireless communication protocols according to the model or protocol standard parameters, taking the wireless communication protocol corresponding to the model or protocol standard parameters as a target wireless communication protocol; when the logic application detects that the corresponding wireless communication protocol does not exist in a plurality of wireless communication protocols according to the model or protocol standard parameters, sending a reading instruction aiming at the backup protocol partition address information to the electronic control module, wherein the reading instruction is used for indicating the electronic control module to read the backup protocol partition address information; and taking the communication protocol corresponding to the read backup protocol partition address information as a target wireless communication protocol.
As one possible implementation, the processor 122 is further configured to: after determining to update the wireless communication protocol currently configured by the wireless communication apparatus 100, before loading the logic application in the engineering mode partition 111 through the bootstrap program 121 in the system on chip 120 module, determining a protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication apparatus 100; acquiring address information corresponding to a protocol partition storing a wireless communication protocol currently configured by the wireless communication apparatus 100; and the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device 100 is stored as the backup protocol partition address information, and is sent to the electronic control module for storage.
As one possible implementation, the wireless communication device 100 is a wireless WiFi communication device; the wireless communication protocol is a wireless WiFi communication protocol.
It should be noted that the explanations of the first to third embodiments of the dynamic configuration method of the communication protocol are also applicable to the wireless communication apparatus 100 of this embodiment, and are not repeated herein.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the logic application in the engineering mode partition is loaded through the bootstrap program in the system-on-chip module, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, the target wireless communication protocol to be configured of the wireless communication device is determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then the loading address information of the bootstrap program is modified into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and the wireless communication device is restarted, finally, in the process of restarting the wireless communication device, the target wireless communication protocol stored in the target protocol partition is loaded through the bootstrap program, can effectively solve the problems that the prior art realizes the wireless communication among a plurality of protocols by software compatibility with a plurality of protocols, has high software coupling, there may occur technical problems in that protocols of two competing customers are operated at the same time, and that causes an increase in chip resources and an increase in cost, thereby realizing dynamic configuration of wireless communication protocols in the wireless communication device, realizing wireless communication among a plurality of protocols by adopting a partition loading mode, can ensure that the bootstrap program only loads one target wireless communication protocol to operate at the same time, can reduce the requirement on chip resources, thereby reducing the production cost and simultaneously avoiding the situation that the protocols of two mutually competing clients are operated at the same time. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
On the other hand, the wireless WiFi communication device which is high in popularization rate and mature in technology is adopted as the wireless communication device, so that the applicability of the method can be improved.
In another aspect, when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, a reading instruction for the backup protocol partition address information is sent to the electronic control module, the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module, and then the communication protocol corresponding to the read backup protocol partition address information is used as the wireless communication protocol.
Since the wireless communication device 100 described in the fourth embodiment of the present application is a device for implementing the methods described in the first to third embodiments of the present application, those skilled in the art can understand the specific structure and variations of the device based on the methods described in the first to third embodiments of the present application, and thus will not be described herein again. All the devices adopted in the methods of the first to third embodiments of the present application belong to the scope of the present application.
Based on the same inventive concept, the embodiment of the application also provides the household appliance corresponding to the fourth device of the embodiment, which is shown in the fifth embodiment.
EXAMPLE five
The domestic appliance of the embodiment of this application includes: the wireless communication device 100 according to the fourth embodiment of the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the logic application in the engineering mode partition is loaded through the bootstrap program in the system-on-chip module, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, the target wireless communication protocol to be configured of the wireless communication device is determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then the loading address information of the bootstrap program is modified into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and the wireless communication device is restarted, finally, in the process of restarting the wireless communication device, the target wireless communication protocol stored in the target protocol partition is loaded through the bootstrap program, can effectively solve the problems that the prior art realizes the wireless communication among a plurality of protocols by software compatibility with a plurality of protocols, has high software coupling, there may occur technical problems in that protocols of two competing customers are operated at the same time, and that causes an increase in chip resources and an increase in cost, thereby realizing dynamic configuration of wireless communication protocols in the wireless communication device, realizing wireless communication among a plurality of protocols by adopting a partition loading mode, can ensure that the bootstrap program only loads one target wireless communication protocol to operate at the same time, can reduce the requirement on chip resources, thereby reducing the production cost and simultaneously avoiding the situation that the protocols of two mutually competing clients are operated at the same time. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
On the other hand, the wireless WiFi communication device which is high in popularization rate and mature in technology is adopted as the wireless communication device, so that the applicability of the method can be improved.
In another aspect, when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, a reading instruction for the backup protocol partition address information is sent to the electronic control module, the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module, and then the communication protocol corresponding to the read backup protocol partition address information is used as the wireless communication protocol.
Since the household appliance described in the fifth embodiment of the present application is a household appliance used for implementing the device described in the fourth embodiment of the present application, based on the device described in the fourth embodiment of the present application, a person skilled in the art can understand the specific structure and the deformation of the household appliance, and thus the details are not described herein. All household appliances adopted by the device in the fourth embodiment of the present application belong to the protection scope of the present application.
Based on the same inventive concept, the embodiment of the present application further provides a wireless communication device corresponding to the first to third embodiments, which are shown in the sixth embodiment.
EXAMPLE six
Fig. 7 is a schematic structural diagram of a wireless communication device according to a sixth embodiment of the present application.
As shown in fig. 7, the wireless communication apparatus 100 includes: flash memory module 110 and system-on-chip module 120, wherein,
the flash memory module 110 has an engineering mode partition 111 and a plurality of protocol partitions 112, the engineering mode partition 111 stores a logic application for detecting a type of wireless communication protocol supported by the home appliance, and each protocol partition 112 stores an independently operable wireless communication protocol.
The system-on-chip module 120 includes a memory 123, a processor 122, and a computer program stored in the memory 123 and capable of running on the processor 122, and when the processor 122 executes the computer program, the method for dynamically configuring a communication protocol as set forth in the first to third embodiments of the present application is implemented.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the logic application in the engineering mode partition is loaded through the bootstrap program in the system-on-chip module, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, the target wireless communication protocol to be configured of the wireless communication device is determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then the loading address information of the bootstrap program is modified into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and the wireless communication device is restarted, finally, in the process of restarting the wireless communication device, the target wireless communication protocol stored in the target protocol partition is loaded through the bootstrap program, can effectively solve the problems that the prior art realizes the wireless communication among a plurality of protocols by software compatibility with a plurality of protocols, has high software coupling, there may occur technical problems in that protocols of two competing customers are operated at the same time, and that causes an increase in chip resources and an increase in cost, thereby realizing dynamic configuration of wireless communication protocols in the wireless communication device, realizing wireless communication among a plurality of protocols by adopting a partition loading mode, can ensure that the bootstrap program only loads one target wireless communication protocol to operate at the same time, can reduce the requirement on chip resources, thereby reducing the production cost and simultaneously avoiding the situation that the protocols of two mutually competing clients are operated at the same time. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
On the other hand, the wireless WiFi communication device which is high in popularization rate and mature in technology is adopted as the wireless communication device, so that the applicability of the method can be improved.
In another aspect, when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, a reading instruction for the backup protocol partition address information is sent to the electronic control module, the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module, and then the communication protocol corresponding to the read backup protocol partition address information is used as the wireless communication protocol.
Since the wireless communication device described in the sixth embodiment of the present application is a wireless communication device used for implementing the methods described in the first to third embodiments of the present application, based on the methods described in the first to third embodiments of the present application, those skilled in the art can understand the specific structure and modifications of the wireless communication device, and thus, no further description is given here. The wireless communication devices adopted in the methods of the first to third embodiments of the present application all belong to the scope of protection intended by the present application.
Based on the same inventive concept, the embodiment of the present application further provides a non-transitory computer-readable storage medium corresponding to the method in the first to third embodiments, see embodiment seven.
EXAMPLE seven
The non-transitory computer readable storage medium of the embodiment of the present application, on which the computer program is stored, is characterized in that the program, when executed by the processor, implements the method for dynamically configuring the communication protocol as set forth in the foregoing first to third embodiments of the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
on one hand, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the logic application in the engineering mode partition is loaded through the bootstrap program in the system-on-chip module, the logic application is used for reading the model or protocol standard parameter of the household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameter, then according to the detection result of the logic application, the target wireless communication protocol to be configured of the wireless communication device is determined from the communication protocol corresponding to the backup protocol partition address information stored in the electric control module of the household appliance and the plurality of wireless communication protocols correspondingly stored in the plurality of protocol partitions, then the loading address information of the bootstrap program is modified into the address information of the target protocol partition corresponding to the stored target wireless communication protocol, and the wireless communication device is restarted, finally, in the process of restarting the wireless communication device, the target wireless communication protocol stored in the target protocol partition is loaded through the bootstrap program, can effectively solve the problems that the prior art realizes the wireless communication among a plurality of protocols by software compatibility with a plurality of protocols, has high software coupling, there may occur technical problems in that protocols of two competing customers are operated at the same time, and that causes an increase in chip resources and an increase in cost, thereby realizing dynamic configuration of wireless communication protocols in the wireless communication device, realizing wireless communication among a plurality of protocols by adopting a partition loading mode, can ensure that the bootstrap program only loads one target wireless communication protocol to operate at the same time, can reduce the requirement on chip resources, thereby reducing the production cost and simultaneously avoiding the situation that the protocols of two mutually competing clients are operated at the same time. In addition, the software coupling can be reduced, and the complexity of protocol function change is reduced, so that the change efficiency is improved.
On the other hand, the wireless WiFi communication device which is high in popularization rate and mature in technology is adopted as the wireless communication device, so that the applicability of the method can be improved.
In another aspect, when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, a reading instruction for the backup protocol partition address information is sent to the electronic control module, the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module, and then the communication protocol corresponding to the read backup protocol partition address information is used as the wireless communication protocol.
Since the non-transitory computer-readable storage medium described in the seventh embodiment of the present application is a non-transitory computer-readable storage medium used for implementing the method in the first to third embodiments of the present application, a person skilled in the art can understand a specific structure and a modification of the computer-readable storage medium based on the method described in the first to third embodiments of the present application, and thus details are not described herein again. Any non-transitory computer readable storage medium used in the methods of embodiments one to three of the present application is within the scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, device, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (11)

1. A dynamic configuration method of a communication protocol is applied to a wireless communication device, the wireless communication device is arranged in a household appliance, the wireless communication device comprises a system-on-chip module and a flash memory module, the flash memory module has an engineering mode partition and a plurality of protocol partitions, the engineering mode partition stores a logic application for detecting the type of the wireless communication protocol supported by the household appliance, each protocol partition correspondingly stores an independently operable wireless communication protocol, the wireless communication protocols stored in the plurality of protocol partitions comprise protocols of at least two competing clients, and the dynamic configuration method comprises the following steps:
when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, loading a logic application in the engineering mode partition through a bootstrap program in the system-on-chip module, wherein the logic application is used for reading model or protocol standard parameters of a household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameters;
according to the detection result of the logic application, determining a target wireless communication protocol to be configured of the wireless communication device from a communication protocol corresponding to backup protocol partition address information stored in an electric control module of the household appliance and a plurality of wireless communication protocols corresponding to the protocol partitions;
modifying the loading address information of the bootstrap program into address information of a target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device;
and loading the target wireless communication protocol stored in the target protocol partition by the bootstrap program in the process of restarting the wireless communication device.
2. The method for dynamically configuring a communication protocol according to claim 1, wherein determining a target wireless communication protocol to be configured for the wireless communication device from a communication protocol corresponding to backup protocol partition address information stored in an electronic control module of the home appliance and a plurality of wireless communication protocols corresponding to the plurality of protocol partitions according to the detection result of the logic application comprises:
when the logic application detects that the corresponding wireless communication protocol exists in the plurality of wireless communication protocols according to the model or protocol standard parameters, taking the wireless communication protocol corresponding to the model or protocol standard parameters as the target wireless communication protocol;
when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, sending a reading instruction aiming at the backup protocol partition address information to the electronic control module, wherein the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module;
and taking the communication protocol corresponding to the read backup protocol partition address information as the target wireless communication protocol.
3. The method for dynamically configuring a communication protocol according to claim 2, wherein the backup protocol partition address information is previously transmitted to the electronic control module by:
after determining to update the wireless communication protocol currently configured by the wireless communication device, determining a protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device before loading the logic application in the engineering mode partition through a bootstrap program in the system-on-chip module;
acquiring address information of the protocol partition correspondingly storing the wireless communication protocol currently configured by the wireless communication device;
and taking the address information of the protocol partition which correspondingly stores the wireless communication protocol configured by the wireless communication device at present as the backup protocol partition address information, and sending the backup protocol partition address information to the electronic control module for storage.
4. The method for dynamic configuration of a communication protocol as claimed in claim 1 wherein the wireless communication device is a wireless WiFi communication device.
5. A wireless communication device provided in a home appliance, the wireless communication device including a flash memory module and a system on chip module, wherein,
the flash memory module is provided with an engineering mode partition and a plurality of protocol partitions, the engineering mode partition stores logic application used for detecting the type of a wireless communication protocol supported by the household appliance, each protocol partition correspondingly stores an independently operable wireless communication protocol, and the wireless communication protocols stored in the protocol partitions comprise protocols of at least two mutually competitive clients;
the system-on-chip module includes a boot program and a processor, the processor to:
when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, loading a logic application in the engineering mode partition through a bootstrap program in the system-on-chip module, wherein the logic application is used for reading model or protocol standard parameters of a household appliance and detecting the wireless communication protocol supported by the household appliance through the model or protocol standard parameters;
according to the detection result of the logic application, determining a target wireless communication protocol to be configured of the wireless communication device from a communication protocol corresponding to backup protocol partition address information stored in an electric control module of the household appliance and a plurality of wireless communication protocols corresponding to the protocol partitions;
modifying the loading address information of the bootstrap program into address information of a target protocol partition corresponding to the stored target wireless communication protocol, and restarting the wireless communication device;
and loading the target wireless communication protocol stored in the target protocol partition by the bootstrap program in the process of restarting the wireless communication device.
6. The wireless communications apparatus of claim 5, wherein the processor is configured to:
when the logic application detects that the corresponding wireless communication protocol exists in the plurality of wireless communication protocols according to the model or protocol standard parameters, taking the wireless communication protocol corresponding to the model or protocol standard parameters as the target wireless communication protocol;
when the logic application detects that the corresponding wireless communication protocol does not exist in the plurality of wireless communication protocols according to the model or protocol standard parameters, sending a reading instruction aiming at the backup protocol partition address information to the electronic control module, wherein the reading instruction is used for indicating that the backup protocol partition address information is read from the electronic control module;
and taking the communication protocol corresponding to the read backup protocol partition address information as the target wireless communication protocol.
7. The wireless communications apparatus of claim 6, wherein the processor is further configured to:
after determining to update the wireless communication protocol currently configured by the wireless communication device, determining a protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device before loading the logic application in the engineering mode partition through a bootstrap program in the system-on-chip module;
acquiring address information of the protocol partition correspondingly storing the wireless communication protocol currently configured by the wireless communication device;
and taking the address information of the protocol partition which correspondingly stores the wireless communication protocol configured by the wireless communication device at present as the backup protocol partition address information, and sending the backup protocol partition address information to the electronic control module for storage.
8. The wireless communications apparatus of claim 5, wherein the wireless communications apparatus is a wireless WiFi communications apparatus.
9. A household appliance, characterized in that it comprises: the wireless communication device of any of claims 5 to 8.
10. A wireless communication device comprising a flash memory module and a system-on-chip module, wherein,
the flash memory module is provided with an engineering mode partition and a plurality of protocol partitions, the engineering mode partition stores logic application used for detecting wireless communication protocol types supported by the household appliance, and each protocol partition correspondingly stores an independently operable wireless communication protocol;
the system-on-chip module comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method for dynamic configuration of a communication protocol according to any one of claims 1 to 4 when executing the program.
11. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method for dynamic configuration of a communication protocol according to any one of claims 1 to 4.
CN201810847216.XA 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and household appliance Active CN109067734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810847216.XA CN109067734B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and household appliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810847216.XA CN109067734B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and household appliance

Publications (2)

Publication Number Publication Date
CN109067734A CN109067734A (en) 2018-12-21
CN109067734B true CN109067734B (en) 2021-08-20

Family

ID=64835796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810847216.XA Active CN109067734B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and household appliance

Country Status (1)

Country Link
CN (1) CN109067734B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113207A (en) * 2019-05-08 2019-08-09 广州创想云科技有限公司 A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium
CN112311736B (en) * 2019-07-31 2023-10-27 广东美的制冷设备有限公司 Remote control device, household appliance and communication protocol configuration method and device thereof
CN112231010B (en) * 2020-09-28 2023-06-06 四川新网银行股份有限公司 Method for managing and dynamically updating application configuration information based on OSGI (open service gateway initiative) specification
CN113961260B (en) * 2021-12-21 2022-04-15 比亚迪股份有限公司 System control software operation method, system, computer device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282478A1 (en) * 2013-03-15 2014-09-18 Silicon Graphics International Corp. Tcp server bootloader
CN103489298A (en) * 2013-09-10 2014-01-01 无锡聚为传感科技有限公司 Multi-protocol wireless meter reading device
CN103645924A (en) * 2013-12-27 2014-03-19 金三立视频科技(深圳)有限公司 Method and device for managing program parameters of embedded device
CN105160282B (en) * 2015-07-31 2018-09-14 美的集团股份有限公司 Unit-type sclection system and Unit-type sclection method and household electrical appliance
CN106440386A (en) * 2016-09-24 2017-02-22 广东万家乐燃气具有限公司 WiFi water heater using multiple protocols
CN107018050A (en) * 2017-03-09 2017-08-04 广东美的制冷设备有限公司 Appliances equipment control method, Internet of Things module and home appliance

Also Published As

Publication number Publication date
CN109067734A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109067734B (en) Dynamic configuration method of communication protocol, wireless communication device and household appliance
RU2698915C2 (en) Time slot communication system
EP3185482A1 (en) Intelligent home controller and communication method thereof
US10162646B2 (en) System for programmably configuring a motherboard
TWI446683B (en) Distributed battery management system and method for distributing identifications thereof
CN110784538B (en) Household appliance configuration file generation method and device, household appliance and storage medium
CN109067735B (en) Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
CN104503798A (en) Method and device for configuring server
JP7345921B2 (en) OTA differential update method and system for master-slave architecture
CN108965019B (en) Dynamic configuration method of communication protocol, wireless communication device and related equipment
US10715628B2 (en) Attribute operating method and device
CN108989117B (en) Configuration method of communication protocol, wireless communication device and household appliance
CN114401250A (en) Address allocation method and device
CN108965018B (en) Dynamic configuration method of communication protocol, wireless communication device and household appliance
CN105843046B (en) Intelligent household electrical appliance master control communication method and system
CN112099902A (en) Network adapter configuration method and device of virtual machine, electronic device and storage medium
CN109450757B (en) Method for starting CANopen master station and overall management device thereof
CN112188486B (en) Household appliance, networking method thereof, local area network system and storage medium
CN112311736B (en) Remote control device, household appliance and communication protocol configuration method and device thereof
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN112134771B (en) Half-duplex communication method for refrigerator and refrigerator
CN112069113A (en) I2C equipment configuration method and system
CN111885564A (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN114095145B (en) Half-duplex communication method for refrigerator and refrigerator
CN116232889A (en) Data processing method and device based on network topology structure

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant