CN108965019B - Dynamic configuration method of communication protocol, wireless communication device and related equipment - Google Patents

Dynamic configuration method of communication protocol, wireless communication device and related equipment Download PDF

Info

Publication number
CN108965019B
CN108965019B CN201810848328.7A CN201810848328A CN108965019B CN 108965019 B CN108965019 B CN 108965019B CN 201810848328 A CN201810848328 A CN 201810848328A CN 108965019 B CN108965019 B CN 108965019B
Authority
CN
China
Prior art keywords
wireless communication
protocol
communication protocol
partition
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
CN201810848328.7A
Other languages
Chinese (zh)
Other versions
CN108965019A (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 CN201810848328.7A priority Critical patent/CN108965019B/en
Publication of CN108965019A publication Critical patent/CN108965019A/en
Application granted granted Critical
Publication of CN108965019B publication Critical patent/CN108965019B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a dynamic configuration method and equipment of a communication protocol. The method is applied to a wireless communication device, the wireless communication device comprises a system-on-chip module and a flash memory module, and the configuration 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 engineering mode partition through the bootstrap program in the system-on-chip module so as to detect the target wireless communication protocol supported by the household appliance; determining a target partition corresponding to a storage target wireless communication protocol from a flash memory module; modifying the loading address information of the bootstrap program into the address information of the target partition, and restarting the wireless communication device; during a reboot of the wireless communication device, a target wireless communication protocol stored by the target partition is loaded by the boot program. The embodiment of the invention realizes the wireless communication among various protocols by adopting a partition loading mode, can reduce the requirements on chip resources and further reduces the production cost.

Description

Dynamic configuration method of communication protocol, wireless communication device and related equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a dynamic configuration method of a communication protocol, a wireless communication device, a home appliance, and a computer-readable storage medium.
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, for a chip in a wireless communication device, supporting multiple protocols on the same chip necessarily increases chip resources, and also increases cost. Therefore, how to dynamically configure a communication protocol in a wireless communication device while reducing the requirement for chip resources has become an urgent problem to be solved.
Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present invention is to propose a method for dynamic configuration of a communication protocol. The method solves the technical problems of high software coupling, high chip resource and high cost in the prior art.
A second objective of the present invention is to provide a wireless communication device.
A third object of the invention is to propose a household appliance.
A fourth object of the present invention is to provide another wireless communication apparatus.
A fifth object of the invention is to propose a non-transitory computer-readable storage medium.
To achieve the above object, a dynamic configuration method for a communication protocol according to an embodiment of a first aspect of the present invention 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 type of a wireless communication protocol supported by a target device, and each protocol partition stores a wireless communication protocol that can be independently run, 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 detecting a target wireless communication protocol supported by a household appliance;
determining a target partition corresponding to the target wireless communication protocol from the flash memory module;
modifying the loading address information of the bootstrap program into the address information of the target partition, and restarting the wireless communication device;
loading, by the bootstrap program, a target wireless communication protocol stored by the target partition during a reboot of the wireless communication device.
According to the dynamic configuration method of the communication protocol, the technical problems that in the prior art, wireless communication among multiple protocols is realized by software compatibility of multiple protocols, software coupling is high, protocols of two mutually competing clients can be operated at the same time, and chip resources and cost are increased are caused are solved effectively, dynamic configuration of the wireless communication protocol in a wireless communication device is realized, wireless communication among the multiple protocols is realized by adopting a partition loading mode, a bootstrap program can be ensured to load only one target wireless communication protocol to operate at the same time, the requirement on the chip resources can be reduced, production cost is reduced, and the situation that protocols of two mutually competing clients are operated 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 achieve the above object, a wireless communication device according to a second aspect of the present invention 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 target equipment, 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:
loading a logic application in the project mode partition through the bootstrap program when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, wherein the logic application is used for detecting a target wireless communication protocol supported by a household appliance;
determining a target partition corresponding to the target wireless communication protocol from the flash memory module;
modifying the loading address information of the bootstrap program into the address information of the target partition, and restarting the wireless communication device;
loading, by the bootstrap program, a target wireless communication protocol stored by the target partition during a reboot of the wireless communication device.
According to the wireless communication device provided by the embodiment of the invention, the technical problems that the wireless communication among multiple protocols is realized by software compatibility with multiple protocols in the prior art, the software coupling is high, the protocols of two mutually competing clients can be operated at the same time, and the chip resource and cost are increased are caused are effectively solved, so that the dynamic configuration of the wireless communication protocol in the wireless communication device is realized, the wireless communication among the multiple protocols is realized by adopting a partition loading mode, the condition that only one target wireless communication protocol is loaded to be operated by a bootstrap program at the same time can be ensured, the requirement on the chip resource can be reduced, the production cost is reduced, and meanwhile, the condition that the protocols of the two mutually competing clients are operated 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 achieve the above object, a household appliance according to a third aspect of the present invention includes: an electronic control module and a wireless communication device, wherein,
the electric control module is used for sending a detection instruction aiming at a wireless communication protocol supported by the household appliance to the wireless communication device;
the wireless communication device comprises 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 target equipment, and each protocol partition correspondingly stores an independently operable wireless communication protocol;
the system-on-chip module includes a boot program and a processor, and the processor is configured to execute the method for dynamically configuring a communication protocol according to the embodiment of the first aspect of the present invention.
In order to achieve the above object, a wireless communication device according to a fourth aspect of the present invention 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 target equipment, 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 a communication protocol according to the embodiment of the first aspect of the present invention.
To achieve the above object, a non-transitory computer-readable storage medium is provided in an embodiment of a fifth aspect of the present invention, and a computer program is stored thereon, and when executed by a processor, the computer program implements the method for dynamically configuring a communication protocol according to the embodiment of the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow diagram of a method for dynamic configuration of a communication protocol according to one embodiment of the invention;
FIG. 2 is a schematic diagram of a partition table of a flash memory module according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a header address of a target protocol partition, according to an embodiment of the invention;
FIG. 4 is a flow diagram of a method for dynamic configuration of a communication protocol according to another embodiment of the invention;
FIG. 5 is an exemplary diagram of a method for dynamic configuration of a communication protocol in accordance with one particular embodiment of the present invention;
fig. 6 is a schematic structural diagram of a wireless communication device according to one embodiment of the present invention;
fig. 7 is a schematic structural diagram of a home appliance according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A dynamic configuration method of a communication protocol, a wireless communication apparatus, a home appliance, and a non-transitory computer-readable storage medium of an embodiment of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flow diagram of a method for dynamic configuration of a communication protocol in accordance with one embodiment of the present invention. It should be noted that the method for dynamically configuring a communication protocol according to the embodiment of the present invention is applicable to the wireless communication apparatus according to the embodiment of the present invention. The wireless communication device can comprise a system-on-chip module and a flash memory 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 applications used for detecting wireless communication protocol types supported by target equipment (such as household appliances), and each protocol partition correspondingly stores an independently operable wireless communication protocol.
For example, taking the case that the wireless communication device is a wireless WiFi communication device (or called WiFi module), and the wireless communication protocol is a wireless WiFi communication protocol, 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 and a plurality of protocol partitions, the engineering mode partition and the logical application are used for storing a wireless communication protocol type supported by a target device, and each protocol partition may correspondingly store an independently operable wireless communication protocol, that is, each protocol partition is an operating system + protocol function application. For example, as shown in fig. 2, the partition table is a schematic view of a flash memory module, and the partition table only lists partition schematic views of multiple protocols, where a first partition in the partition table is the engineering mode partition, and subsequent partitions sequentially store corresponding protocols. It can be understood that each partition in the flash memory module corresponds to a partition address, and each partition has an independent corresponding space size.
As shown in fig. 1, the method for dynamically configuring the communication protocol may include:
s110, when the wireless communication protocol configured by the wireless communication device at present is determined to be updated, loading the logic application in the engineering mode partition through the bootstrap program in the system-on-chip module, wherein the logic application is used for detecting the target wireless communication protocol supported by the household appliance.
It should be noted that the wireless communication device of the embodiment of the present invention belongs to the transmission layer of the internet of things, and has the function of converting a serial port or TTL level into an embedded module that conforms to the wireless network communication standard, and the embedded module is embedded into a household appliance to realize networking, intelligence and digitization of the household appliance. In practical application, when the household appliance leaves a factory, the wireless communication device therein may be compatible with a plurality of protocols, so that after the user purchases the household appliance home, if the wireless communication protocol used by the internet of things in the home may not be consistent with the default communication protocol of the wireless communication device in the household appliance, at this time, the user may trigger the household appliance to dynamically configure the wireless communication protocol in the wireless communication device, that is, update the wireless communication protocol currently configured by the wireless communication device.
For example, in the embodiment of the present invention, 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 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 project mode partition can be loaded through a bootstrap program in the system level chip module, wherein the logic application is used for detecting a target wireless communication protocol supported by the household appliance.
It can be understood that the boot program (Bootloader, corresponding to english language) refers to a program for booting an operating system, and the boot program is run before an operating system kernel runs, and can initialize hardware devices and establish a memory space map, so that a software and hardware environment of the system reaches an appropriate state, so as to prepare a correct environment for finally calling the operating system kernel.
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 to 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 the home appliance, and detect a target 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, Addr is an address for a bootstrap program to read loading address information, after the loading address is read, an Addr address value becomes 0x1234, and 0x1234 is a first address corresponding to a logic application that is actually required to be run to detect a target wireless communication protocol supported by a home appliance. That is, when it is determined that the wireless communication protocol currently configured for 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, reading a first address 0x1234 in the loading address information, and finding a corresponding engineering mode partition according to the first address to realize the loading of the logic application in the engineering mode partition. When the logic application is in operation, the logic application can send an instruction for reading a model or protocol standard to an electric control module of the household appliance, and can detect which wireless communication protocol is supported by the household appliance according to the model or protocol standard when the model or protocol standard fed back by the electric control module is obtained, and use the wireless communication protocol supported by the household appliance as a wireless communication protocol (namely, the target wireless communication protocol) to be configured by the wireless communication device.
And S120, determining a target partition corresponding to the storage target wireless communication protocol from the flash memory module.
Optionally, after detecting the target wireless communication protocol supported by the household appliance through the logic application, the target partition corresponding to the target wireless communication protocol may be determined from the partitions in the flash memory module.
S130, modifying the loading address information of the bootstrap program into the address information of the target partition, and restarting the wireless communication device.
And S140, loading the target wireless communication protocol stored in the target partition by the bootstrap program in the process of restarting the wireless communication device.
Optionally, when the target partition corresponding to the storage target wireless communication protocol is determined, the current loading address information of the bootstrap program may be modified to the address information of the target partition, and the wireless communication device is restarted, so that the wireless communication device loads partition content, which is stored in the flash memory module and is consistent with the wireless communication protocol supported by the household appliance, through the bootstrap program in the restart process, so that the wireless communication device is configured to the wireless communication protocol supported by the household appliance, thereby completing dynamic configuration of the wireless communication protocol of the wireless communication device. Still taking the above example as an example, after determining that the head address of the target partition is 0x1234, the boot program may load the corresponding protocol 1 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.
According to the dynamic configuration method of the communication protocol, 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, wherein the logic application is used for detecting the target wireless communication protocol supported by the household appliance, then the target partition corresponding to the stored target wireless communication protocol is determined from the flash memory module, the loading address information of the bootstrap program is modified into the address information of the target partition, the wireless communication device is restarted, and then the target wireless communication protocol stored in the target partition is loaded through the bootstrap program in the restarting process of the wireless communication device. Therefore, the technical problems that in the prior art, wireless communication among multiple protocols is realized by software compatibility with multiple protocols, software coupling is high, two mutually competing protocols can be operated at the same time, and chip resource increase and cost increase are caused are solved, dynamic configuration of the wireless communication protocols in the wireless communication device is realized, wireless communication among the multiple protocols is realized by adopting a partition loading mode, it can be ensured that at the same time, a bootstrap program only loads one target wireless communication protocol to operate, requirements on the chip resources can be reduced, production cost is reduced, and meanwhile, the situation that two mutually competing protocols are operated 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 addition, 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.
Fig. 4 is a flow diagram of a method for dynamic configuration of a communication protocol according to another embodiment of the invention. Fig. 5 is an exemplary diagram of a method for dynamic configuration of a communication protocol in accordance with one embodiment of the present invention. As shown in fig. 4 and 5, the method for dynamically configuring the communication protocol may include:
s410, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device is determined to be stored.
Optionally, in the embodiment of the present invention, 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 the 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 the engineering mode, i.e., the detection instruction for the wireless communication protocol supported by the home appliance, to the wireless communication device (S2). When receiving a detection instruction for a wireless communication protocol supported by the household appliance, which is sent by the household appliance, the wireless communication device may determine that the wireless communication protocol currently configured by the wireless communication device is to be updated, and may feed back confirmation information to the electronic control module (S3). Thereafter, the wireless communication device can determine a corresponding protocol partition storing a wireless communication protocol currently configured by the wireless communication device.
S420, obtaining the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device.
S430, storing the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device to the designated position in the flash memory module.
That is, 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 stored in the designated location in the flash memory module for backup (S4), so that when an abnormal condition occurs during the dynamic configuration process, the backup wireless communication protocol may be found from the designated location for operation, and it is ensured that the wireless communication device can communicate normally.
S440, 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 detecting a target wireless communication protocol supported by the household appliance.
As an example, the address information of the engineering mode partition may be obtained, and the loading address information of the boot program may be modified into the 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 boot program (S7), where 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 target wireless communication protocol supported by the home appliance through the model or protocol standard.
S450, judging whether the wireless communication protocols supported by the household appliance are stored in the plurality of wireless communication protocols stored in the plurality of protocol partitions.
Alternatively, when a target wireless communication protocol supported by the home appliance is detected through the logic application, it may be determined whether the wireless communication protocol supported by the home appliance is stored among the plurality of wireless communication protocols stored in the plurality of protocol partitions (S10).
And S460, if yes, taking a wireless communication protocol matched with the wireless communication protocol supported by the household appliance in the plurality of wireless communication protocols as the target wireless communication protocol, and taking a corresponding protocol partition as the target partition.
And S470, if not, taking the wireless communication protocol stored in the protocol partition corresponding to the address information stored in the designated position as the target wireless communication protocol, and taking the protocol partition corresponding to the address information stored in the designated position as the target partition.
S480, the loading address information of the bootstrap program is modified into the address information of the target partition, and the wireless communication device is restarted.
That is, when it is determined that the wireless communication protocol supported by the home appliance is stored among the plurality of wireless communication protocols stored in the plurality of protocol partitions, the loading address information of the boot program may be modified to the address information of the target partition, and the wireless communication device may be restarted to configure the communication protocol of the wireless communication device to the wireless communication protocol supported by the home appliance (S11).
When it is determined that the wireless communication protocol supported by the household appliance is not included in the plurality of wireless communication protocols stored in the plurality of protocol partitions, configuration failure information (if the wireless communication protocol is not supported by the wireless communication device) may be sent to the electronic control module, and the loading address information of the boot program may be configured as an address backed up before (S12), that is, the communication protocol of the wireless communication device is restored to the communication protocol used in the previous configuration.
S490, loading the target wireless communication protocol stored in the target partition by the bootstrap program in the process of restarting the wireless communication device.
According to the dynamic configuration method of the communication protocol of the embodiment of the invention, when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, the partition address of the wireless communication protocol currently configured by the wireless communication device can be backed up first, so that when the logic application judges that the wireless communication protocol supported by the household appliance does not exist in the plurality of wireless communication protocols stored in the plurality of protocol partitions, the loading address of the bootstrap program is restored to the previously backed up address, and the communication of the wireless communication device is ensured to be normal.
Fig. 6 is a schematic structural diagram of a wireless communication device according to an embodiment of the present invention. As shown in fig. 6, the wireless communication apparatus 600 may include: flash memory module 610 and system-on-chip module 620. The flash memory module 610 may have an engineering mode partition storing a logic application for detecting a type of a wireless communication protocol supported by a target device, and a plurality of protocol partitions, each of which stores an independently operable wireless communication protocol.
System-on-chip module 620 may include a boot program and a processor to:
s61', when the wireless communication protocol configured by the wireless communication device is determined to be updated, loading the logic application in the project mode partition through the bootstrap program, wherein the logic application is used for detecting the target wireless communication protocol supported by the household appliance;
as an example, when receiving a detection instruction sent by the home appliance for a wireless communication protocol supported by the home appliance, the processor determines to update a wireless communication protocol currently configured by the wireless communication device, and at this time, may load a logic application in the engineering mode partition through a bootstrap program, where the logic application is used to detect a target wireless communication protocol supported by the home appliance.
Optionally, the processor may obtain address information of the engineering mode partition, modify loading address information of the bootstrap program into address information of the engineering mode partition, then restart the wireless communication device, and load, through the bootstrap program, a logic application in the engineering mode partition corresponding to the modified loading address information, where the logic application is configured to send an instruction for reading a model or protocol standard to an electronic control module of the home appliance, and detect, through the model or protocol standard, a target wireless communication protocol supported by the home appliance.
S62', determining the target partition corresponding to the storage target wireless communication protocol from the flash memory module;
optionally, in an embodiment of the present invention, the processor is further configured to: determining a protocol partition corresponding to a wireless communication protocol currently configured by the wireless communication device prior to loading the logical application in the engineering mode partition by 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 storing the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device to a specified position in the flash memory module.
As an example, the specific implementation process of the processor determining the target partition corresponding to the storage target wireless communication protocol from the flash memory module may be as follows: judging whether a plurality of wireless communication protocols stored in the plurality of protocol partitions store the wireless communication protocols supported by the household appliance; if so, taking a wireless communication protocol matched with the wireless communication protocol supported by the household appliance in the plurality of wireless communication protocols as the target wireless communication protocol, and taking a corresponding protocol partition as the target partition; if not, taking the wireless communication protocol stored in the protocol partition corresponding to the address information stored in the designated position as the target wireless communication protocol, and taking the protocol partition corresponding to the address information stored in the designated position as the target partition.
S63', modifying the loading address information of the bootstrap program into the address information of the target partition, and restarting the wireless communication device;
s64', during the reboot of the wireless communication device, the target wireless communication protocol stored in the target partition is loaded by the boot program.
According to the wireless communication device provided by the embodiment of the invention, the technical problems that the wireless communication among multiple protocols is realized by software compatibility with multiple protocols in the prior art, the software coupling is high, the protocols of two mutually competing clients can be operated at the same time, and the chip resource and cost are increased are caused are effectively solved, so that the dynamic configuration of the wireless communication protocol in the wireless communication device is realized, the wireless communication among the multiple protocols is realized by adopting a partition loading mode, the condition that only one target wireless communication protocol is loaded to be operated by a bootstrap program at the same time can be ensured, the requirement on the chip resource can be reduced, the production cost is reduced, and meanwhile, the condition that the protocols of the two mutually competing clients are operated 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.
Fig. 7 is a schematic structural diagram of a home appliance according to an embodiment of the present invention. As shown in fig. 7, the home appliance 700 may include: an electronic control module 710 and a wireless communication device 600. The electronic control module 710 may be configured to send a detection instruction for a wireless communication protocol supported by the household appliance 700 to the wireless communication device 600.
The wireless communication device 600 may include a flash memory module 610 and a system-on-chip module 620. The flash memory module 610 may have an engineering mode partition storing a logic application for detecting a type of a wireless communication protocol supported by a target device, and a plurality of protocol partitions, each of which stores an independently operable wireless communication protocol.
System-on-chip module 620 may include a boot program and a processor for performing the method for dynamic configuration of a communication protocol according to any of the above-described embodiments of the present invention.
In order to implement the above embodiments, the present invention further provides another wireless communication apparatus. The wireless communication device can comprise 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 applications used for detecting wireless communication protocol types supported by target equipment, 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 dynamic configuration method of the communication protocol according to any of the above embodiments of the present invention is implemented.
In order to implement the above embodiments, the present invention further proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for dynamically configuring a communication protocol according to any of the above embodiments of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (14)

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 used for detecting the type of the wireless communication protocol supported by a target device, each protocol partition correspondingly stores an independently operable wireless communication protocol, the wireless communication protocols stored by 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 detecting a target wireless communication protocol supported by a household appliance;
determining a target partition corresponding to the target wireless communication protocol from the flash memory module;
modifying the loading address information of the bootstrap program into the address information of the target partition, and restarting the wireless communication device;
loading, by the bootstrap program, a target wireless communication protocol stored by the target partition during a reboot of the wireless communication device.
2. The method of claim 1, wherein determining that the wireless communication protocol currently configured for the wireless communication device is to be updated comprises:
when a detection instruction which is sent by the household appliance and aims at the wireless communication protocol supported by the household appliance is received, the wireless communication protocol currently configured by the wireless communication device is determined to be updated.
3. The method according to claim 1, wherein loading a logic application in the engineering mode partition through a boot program in the system-on-chip module, the logic application being configured to detect a target wireless communication protocol supported by a home appliance, comprises:
acquiring address information of the engineering mode partition;
modifying the loading address information of the bootstrap program into the address information of the engineering mode partition;
and restarting the wireless communication device, and loading the logic application in the engineering mode partition corresponding to the modified loading address information through the bootstrap program, wherein the logic application is used for sending a command for reading a model or protocol standard to an electric control module of the household appliance and detecting a target wireless communication protocol supported by the household appliance through the model or protocol standard.
4. The method of claim 1, wherein before loading the logical application in the engineering mode partition by a boot program in the system-on-chip module, further comprising:
determining a protocol partition corresponding to a wireless communication protocol currently configured by the wireless communication device;
acquiring address information of the protocol partition correspondingly storing the wireless communication protocol currently configured by the wireless communication device;
and storing the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device to a specified position in the flash memory module.
5. The method of claim 4, wherein determining the target partition corresponding to the target wireless communication protocol from the flash memory module comprises:
judging whether a plurality of wireless communication protocols stored in the plurality of protocol partitions store the wireless communication protocols supported by the household appliance;
if so, taking a wireless communication protocol matched with the wireless communication protocol supported by the household appliance in the plurality of wireless communication protocols as the target wireless communication protocol, and taking a corresponding protocol partition as the target partition;
if not, taking the wireless communication protocol stored in the protocol partition corresponding to the address information stored in the designated position as the target wireless communication protocol, and taking the protocol partition corresponding to the address information stored in the designated position as the target partition.
6. A wireless communication device, which is provided in a household appliance, 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 the type of a wireless communication protocol supported by target equipment, each protocol partition correspondingly stores an independently operable wireless communication protocol, and the wireless communication protocols stored by the plurality of 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:
loading a logic application in the project mode partition through the bootstrap program when the wireless communication protocol currently configured by the wireless communication device is determined to be updated, wherein the logic application is used for detecting a target wireless communication protocol supported by a household appliance;
determining a target partition corresponding to the target wireless communication protocol from the flash memory module;
modifying the loading address information of the bootstrap program into the address information of the target partition, and restarting the wireless communication device;
loading, by the bootstrap program, a target wireless communication protocol stored by the target partition during a reboot of the wireless communication device.
7. The wireless communications apparatus of claim 6, wherein the processor is further configured to:
when a detection instruction which is sent by the household appliance and aims at the wireless communication protocol supported by the household appliance is received, the wireless communication protocol currently configured by the wireless communication device is determined to be updated.
8. The wireless communications apparatus of claim 6, wherein the processor is further configured to:
acquiring address information of the engineering mode partition;
modifying the loading address information of the bootstrap program into the address information of the engineering mode partition;
and restarting the wireless communication device, and loading the logic application in the engineering mode partition corresponding to the modified loading address information through the bootstrap program, wherein the logic application is used for sending a command for reading a model or protocol standard to an electric control module of the household appliance and detecting a target wireless communication protocol supported by the household appliance through the model or protocol standard.
9. The wireless communications apparatus of claim 6, wherein the processor is further configured to:
determining a protocol partition corresponding to a wireless communication protocol currently configured by the wireless communication device prior to loading the logical application in the engineering mode partition by 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 storing the address information of the protocol partition corresponding to the wireless communication protocol currently configured by the wireless communication device to a specified position in the flash memory module.
10. The wireless communications apparatus of claim 9, wherein the processor is configured to:
judging whether a plurality of wireless communication protocols stored in the plurality of protocol partitions store the wireless communication protocols supported by the household appliance;
if so, taking a wireless communication protocol matched with the wireless communication protocol supported by the household appliance in the plurality of wireless communication protocols as the target wireless communication protocol, and taking a corresponding protocol partition as the target partition;
if not, taking the wireless communication protocol stored in the protocol partition corresponding to the address information stored in the designated position as the target wireless communication protocol, and taking the protocol partition corresponding to the address information stored in the designated position as the target partition.
11. The wireless communication device of claim 6, wherein the wireless communication device is a wireless WiFi communication device.
12. A household appliance, characterized in that it comprises: an electronic control module and a wireless communication device, wherein,
the electric control module is used for sending a detection instruction aiming at a wireless communication protocol supported by the household appliance to the wireless communication device;
the wireless communication device comprises 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 target equipment, and each protocol partition correspondingly stores an independently operable wireless communication protocol;
the system-on-chip module comprises a boot program and a processor for performing the method of dynamic configuration of a communication protocol according to any of claims 1 to 5.
13. 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 target equipment, 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 5 when executing the program.
14. 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 5.
CN201810848328.7A 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and related equipment Active CN108965019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810848328.7A CN108965019B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810848328.7A CN108965019B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and related equipment

Publications (2)

Publication Number Publication Date
CN108965019A CN108965019A (en) 2018-12-07
CN108965019B true CN108965019B (en) 2021-08-20

Family

ID=64465461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810848328.7A Active CN108965019B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and related equipment

Country Status (1)

Country Link
CN (1) CN108965019B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114125902A (en) * 2021-11-30 2022-03-01 上海移远通信技术股份有限公司 WWAN equipment and configuration method, device and storage medium thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN105160282A (en) * 2015-07-31 2015-12-16 美的集团股份有限公司 Machine type selecting system and method and domestic 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

Family Cites Families (1)

* 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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN105160282A (en) * 2015-07-31 2015-12-16 美的集团股份有限公司 Machine type selecting system and method and domestic 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
CN108965019A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108965019B (en) Dynamic configuration method of communication protocol, wireless communication device and related equipment
US9182998B2 (en) Remote bios update in system having multiple computers
CN109067734B (en) Dynamic configuration method of communication protocol, wireless communication device and household appliance
US20070266120A1 (en) System and method for handling instructions in a pre-boot execution environment
EP2372491B1 (en) Power lock-up setting method and electronic apparatus using the same
CN106909081B (en) Household electrical appliance and expansion platform based on same
EP4274190A1 (en) Smart device control method and apparatus, electronic device, and computer readable medium
CN110012527B (en) Awakening method and electronic equipment
CN113746821B (en) Intelligent device control method and device, storage medium and electronic device
CN110618889A (en) Service availability detection method and device, computer equipment and storage medium
CN110853323B (en) Upgrading method and device for remote control equipment
CN113412468A (en) SDK plug-in loading method and device, mobile terminal and storage medium
CN109067735B (en) Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
CN104657292A (en) Method and device for separating hardware drive from operating system
CN108536545B (en) Information processing method and device for terminal equipment
CN113138852A (en) Resource loading method and device, chip and electronic equipment
CN102571491B (en) Method and device for detecting whether network is usable
CN109450757B (en) Method for starting CANopen master station and overall management device thereof
CN108989117B (en) Configuration method of communication protocol, wireless communication device and household appliance
CN105357078A (en) Detection method and system of network state of intelligent equipment
CN108965018B (en) Dynamic configuration method of communication protocol, wireless communication device and household appliance
CN110177364B (en) Bluetooth device pairing connection method and device, storage medium and electronic device
CN111142949B (en) Information processing method and electronic equipment
CN110830305B (en) Method and device for wireless device to access WIFI network, electronic device and storage medium
CN112134771B (en) Half-duplex communication method for refrigerator and refrigerator

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