[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109067735B - Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment - Google Patents

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

Info

Publication number
CN109067735B
CN109067735B CN201810847247.5A CN201810847247A CN109067735B CN 109067735 B CN109067735 B CN 109067735B CN 201810847247 A CN201810847247 A CN 201810847247A CN 109067735 B CN109067735 B CN 109067735B
Authority
CN
China
Prior art keywords
wireless communication
protocol
communication protocol
communication device
target
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
CN201810847247.5A
Other languages
Chinese (zh)
Other versions
CN109067735A (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 CN201810847247.5A priority Critical patent/CN109067735B/en
Publication of CN109067735A publication Critical patent/CN109067735A/en
Application granted granted Critical
Publication of CN109067735B publication Critical patent/CN109067735B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a dynamic configuration method of a communication protocol, a wireless communication device and intelligent equipment, wherein the method comprises the following steps: acquiring a communication protocol configuration instruction which is sent by terminal equipment and aims at a wireless communication device; determining a target wireless communication protocol to be configured for the wireless communication device according to the model or protocol standard parameters; modifying the current loading address information of the bootstrap program in the system-level chip module into the address information of a target partition corresponding to a stored target wireless communication protocol, 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 technical problems of high software coupling, high chip resource and high cost in the prior art are solved, and the technical effects of dynamically configuring a wireless communication protocol in a wireless communication device, reducing the requirements on the chip resource, reducing the production cost and reducing the software coupling are achieved.

Description

Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
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 an intelligent device.
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 intelligent equipment, and solves 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, protocols of two mutually competing clients can be operated at the same time, and chip resources and cost are increased. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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 first aspect of the present application provides a dynamic configuration method of a communication protocol, which is applied to an intelligent device having a wireless communication apparatus, where the wireless communication apparatus includes a system-on-chip module and a flash memory module, the flash memory module has a plurality of protocol partitions, and each protocol partition corresponds to and stores an independently operable wireless communication protocol, and the dynamic configuration method includes:
acquiring a communication protocol configuration instruction which is sent by a terminal device and aims at the wireless communication device, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at the intelligent device;
determining a target wireless communication protocol to be configured for the wireless communication device according to the model or protocol standard parameter;
modifying the current loading address information of the bootstrap program in the system-level chip module into the address information of a target partition correspondingly storing the target wireless communication protocol, 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, a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at an intelligent device, then a target wireless communication protocol to be configured of the wireless communication device is determined according to the model or protocol standard parameter, then the current loading address information of a bootstrap program in a system-level chip module is modified into the address information of a target partition which correspondingly stores the target wireless communication protocol, the wireless communication device is restarted, and finally 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 wireless communication protocol in the wireless communication device can be dynamically configured according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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 apparatus is provided, which is applied to an intelligent device, and includes a system-on-chip module and a flash memory module, wherein,
the flash memory module is provided with a plurality of protocol partitions, and each protocol partition is used for correspondingly storing a wireless communication protocol capable of independently operating;
the system-on-chip module includes a boot program and a processor, the processor to:
acquiring a communication protocol configuration instruction which is sent by a terminal device and aims at the wireless communication device, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at the intelligent device;
determining a target wireless communication protocol to be configured for the wireless communication device according to the model or protocol standard parameter;
modifying the current loading address information of the bootstrap program in the system-level chip module into the address information of a target partition correspondingly storing the target wireless communication protocol, 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.
The wireless communication device of the embodiment of the application obtains a communication protocol configuration instruction aiming at the wireless communication device and sent by a terminal device, wherein the communication protocol configuration instruction has model or protocol standard parameters aiming at intelligent equipment, then determines a target wireless communication protocol to be configured of the wireless communication device according to the model or protocol standard parameters, then modifies the current loading address information of a bootstrap program in a system level chip module into the address information of a target partition correspondingly storing the target wireless communication protocol, restarts the wireless communication device, and finally loads the target wireless communication protocol stored in the target partition through the bootstrap program in the restarting process of the wireless communication device. Therefore, the wireless communication protocol in the wireless communication device can be dynamically configured according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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 an intelligent device, including: the wireless communication device as set forth in the second aspect of the embodiments of the present application.
A fourth aspect of the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for dynamically configuring a communication protocol as set forth in 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, because a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at an intelligent device, then a target wireless communication protocol to be configured of the wireless communication device is determined according to the model or protocol standard parameter, then the current loading address information of a bootstrap program in a system level chip module is modified into the address information of a target partition correspondingly storing the target wireless communication protocol, the wireless communication device is restarted, and finally the target wireless communication protocol stored in the target partition is loaded through the bootstrap program in the process of restarting the wireless communication device, the problem that in the prior art, wireless communication among multiple protocols is realized through software compatibility with multiple protocols, the software coupling is high, and protocols of two mutually competing clients can be operated at the same time can be effectively solved, and the technical problems of the increase of chip resources and the increase of cost are caused, so that the dynamic configuration of the wireless communication protocol in the wireless communication device is realized according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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.
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, because the wireless hotspot function of the wireless communication device is restarted, after the wireless hotspot is restarted and the wireless communication connection with the terminal device is reestablished, the result information of the communication protocol of the wireless communication device configured this time is sent to the terminal device, so that the user can visually acquire the result information of the communication protocol of the wireless communication device configured this time, and analysis is facilitated.
On the other hand, when the wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, the wireless communication protocol used by the wireless communication device after the last communication protocol configuration is taken as the target wireless communication protocol, so that the success rate of loading the target wireless communication protocol by the bootstrap program can be ensured, the situation that the target wireless communication protocol cannot be loaded by the bootstrap program is prevented, and the wireless communication device can normally communicate.
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 method for dynamically configuring a communication protocol according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for dynamically configuring a communication protocol according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a wireless communication device according to a fourth embodiment of the present application.
Detailed Description
The present application mainly provides a dynamic configuration method of a communication protocol, aiming at the technical problems in the prior art.
According to the dynamic configuration method of the communication protocol, a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at an intelligent device, then a target wireless communication protocol to be configured of the wireless communication device is determined according to the model or protocol standard parameter, then the current loading address information of a bootstrap program in a system-level chip module is modified into the address information of a target partition which correspondingly stores the target wireless communication protocol, the wireless communication device is restarted, and finally 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 wireless communication protocol in the wireless communication device can be dynamically configured according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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 an intelligent device, and the intelligent device may be, for example, a household air conditioner, a television, a refrigerator, and other intelligent household appliances.
The wireless communication device can comprise a system-on-chip module and a flash memory module, wherein the flash memory module is provided with a plurality of protocol partitions, and each protocol partition correspondingly stores a wireless communication protocol capable of operating independently.
The 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 the intelligent equipment so as to realize networking, intellectualization and digitization of the intelligent equipment.
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 a plurality of protocol partitions, and each protocol partition may store a wireless communication protocol that can be independently executed, that is, each protocol partition is an operating system + protocol function application. It is understood that each protocol partition in the flash memory module corresponds to a partition address, and each protocol partition has an independent corresponding space size.
As an example, the protocol partition table of the flash memory module may be as shown in fig. 2, where fig. 2 is a schematic diagram of the protocol partition table of the flash memory module in this embodiment of the present application. The protocol partition table only lists partition schematic diagrams of multiple protocols, and each protocol partition in the protocol partition table sequentially stores corresponding protocols. For example, the protocol partition 1 stores the smart device protocol, and the partition Address corresponding to the smart device protocol is Address1, and the size of the space corresponding to the smart device protocol is size 1; the protocol partition 2 stores a smart device + e-commerce 1 (such as the kyoto protocol) protocol, the corresponding partition Address is Address2, and the corresponding space size is size 2; the protocol partition 3 stores a smart device + e-commerce 2 (such as ali) protocol, the corresponding partition Address is Address3, and the corresponding space size is size 3; in the protocol partition 4, the smart device + C protocol, etc., are stored, not to be enumerated here.
As shown in fig. 1, the method for dynamically configuring the communication protocol includes the following steps:
step 101, a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction comprises a model or protocol standard parameter aiming at an intelligent device.
In the embodiment of the application, the terminal device may be a hardware device having various operating systems, curved touch screens and/or display screens, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and the like.
Specifically, the terminal device may establish a wireless communication connection with the intelligent device in advance, and after the terminal device establishes the wireless communication connection with the intelligent device, the terminal device may send a communication protocol configuration instruction for the wireless communication apparatus to the intelligent device. Specifically, the user may send a communication protocol configuration instruction for the wireless communication apparatus to the smart device through an Application (APP) downloaded from the terminal device and controlling the smart device.
For example, the APP display interface of the terminal device may have different model or protocol standard parameter options, and the user may generate a communication protocol configuration instruction for the wireless communication apparatus by triggering a preset model or protocol standard parameter option. Optionally, a monitor may be disposed in the terminal device to monitor a triggering operation of the user, and after it is monitored that the user triggers the preset model or protocol standard parameter option, the terminal device may generate a communication protocol configuration instruction for the wireless communication apparatus.
Or, the user can also input the model or protocol standard parameters of the intelligent device in the APP display interface through voice or manually, and after the user input is completed, the terminal device can generate a communication protocol configuration instruction for the wireless communication apparatus.
After the terminal device generates a communication protocol configuration instruction, the terminal device may send the communication protocol configuration instruction to the intelligent device based on wireless communication connection, and accordingly, the intelligent device may receive the communication protocol configuration instruction sent by the terminal device, where the communication protocol configuration instruction has model or protocol standard parameters for the intelligent device, so as to determine, according to the model or protocol standard parameters of the intelligent device, a wireless communication protocol to be loaded by a bootstrap program from a pre-established comparison table, which is denoted as a target wireless communication protocol in the application. 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 smart device, 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.
And step 102, determining a target wireless communication protocol to be configured of the wireless communication device according to the model or protocol standard parameters.
In the embodiment of the application, after the intelligent device receives the communication protocol configuration instruction, a target wireless communication protocol to be configured of the wireless communication device can be determined from a plurality of wireless communication protocols correspondingly stored in a plurality of protocol partitions according to machine types or protocol standard parameters carried in the communication protocol configuration instruction.
Step 103, modifying the current loading address information of the bootstrap program in the system-on-chip module into the address information of the target partition corresponding to the storage 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 partition corresponding to the stored target wireless communication protocol can be determined, so that the address information of the target partition can be determined.
Alternatively, the correspondence 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 a target wireless communication protocol to be configured for the wireless communication apparatus is determined, the correspondence may be queried to obtain the address information of the target partition corresponding to the target wireless communication protocol.
It should be noted that the address information may be a first address of the target partition, for example, referring to fig. 2 and fig. 3, assuming that the target wireless communication protocol is protocol 2, the address information of the target partition corresponding to the storage protocol 2 may be determined as: 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 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 partition of the corresponding storage target wireless communication protocol, so that the boot program loads the target wireless communication protocol stored in the target partition according to the address information of the target partition. Further, since the identification of the target 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 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 partition can be loaded to run through the bootstrap program according to the address information of the target partition. Still taking the above example as an example, after determining that the first address of the target partition is 0x1234, the boot program may load the corresponding protocol 2 according to the first address to run.
As an application scenario, the dynamic configuration method of the communication protocol can be applied to after-sales of the intelligent device, and after-sales workers can modify protocol standard parameters in the terminal device of the user when installing the intelligent device, so that the configuration of the wireless communication protocol is realized.
In the embodiment of the application, the wireless communication protocol in the wireless communication device is dynamically configured according to the communication protocol configuration instruction triggered by the user, so that the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run the protocols at the same time can be avoided. In addition, 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 change of the protocol function can be reduced, and the change efficiency is improved. In addition, when the intelligent device 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, because a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at an intelligent device, then a target wireless communication protocol to be configured of the wireless communication device is determined according to the model or protocol standard parameter, then the current loading address information of a bootstrap program in a system level chip module is modified into the address information of a target partition correspondingly storing the target wireless communication protocol, the wireless communication device is restarted, and finally the target wireless communication protocol stored in the target partition is loaded through the bootstrap program in the process of restarting the wireless communication device, the problem that in the prior art, wireless communication among multiple protocols is realized through software compatibility with multiple protocols, the software coupling is high, and protocols of two mutually competing clients can be operated at the same time can be effectively solved, and the technical problems of the increase of chip resources and the increase of cost are caused, so that the dynamic configuration of the wireless communication protocol in the wireless communication device is realized according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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.
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 the sake of clarity of the above embodiment, the embodiment of the present application further provides another configuration method of a communication protocol, see embodiment 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 further include the following steps:
step 201, a wireless hotspot function of the wireless communication device is started.
Specifically, a user may start an Access Point (AP) function of a wireless communication device in the smart device.
Step 202, receiving a connection establishment request for the wireless hotspot sent by the terminal device, and establishing a wireless communication connection with the terminal device according to the connection establishment request.
In this embodiment of the application, after the wireless hotspot function of the wireless communication device is turned on, the terminal device may send a connection establishment request for the wireless hotspot to the intelligent device, for example, a user may turn on the WLAN function through a setting function in the terminal device, then select a corresponding wireless hotspot, generate a connection establishment request for the wireless hotspot, and send the connection establishment request to the intelligent device, and accordingly, the intelligent device may establish a wireless communication connection with the terminal device according to the connection establishment request after receiving the connection establishment request.
Step 203, receiving a communication protocol configuration instruction for the wireless communication device sent by the terminal equipment through the wireless communication connection.
In this embodiment of the application, after the terminal device establishes the wireless communication connection with the intelligent device, the terminal device may send a communication protocol configuration instruction for the wireless communication apparatus to the intelligent device based on the wireless communication connection. Specifically, a user may send a communication protocol configuration instruction for the wireless communication device to the intelligent device through an APP downloaded in the terminal device to control the intelligent device, and accordingly, the intelligent device may receive the communication protocol configuration instruction sent by the terminal device, where the communication protocol configuration instruction has a model or protocol standard parameter for the intelligent device.
Step 204, determining whether a wireless communication protocol corresponding to an organic type or a protocol standard parameter exists in a plurality of wireless communication protocols stored in a plurality of protocol partitions, if so, executing step 205, otherwise, executing step 206.
In this embodiment of the application, it may be determined whether a wireless communication protocol corresponding to an organic model or a protocol standard parameter exists in a plurality of wireless communication protocols stored in correspondence to a plurality of protocol partitions, for example, it may be determined whether a wireless communication protocol corresponding to the organic model exists in a plurality of wireless communication protocols stored in correspondence to a plurality of protocol partitions, or it may be determined whether a wireless communication protocol corresponding to the protocol standard parameter exists in a plurality of wireless communication protocols stored in correspondence to a plurality of protocol partitions, so as to determine a target wireless communication protocol to be configured for a wireless communication device from the plurality of wireless communication protocols according to a determination result.
Specifically, each protocol partition in the flash memory module may be traversed, the wireless communication protocol stored in each protocol partition may be matched with the wireless communication protocol corresponding to the model, or the wireless communication protocol stored in each protocol partition may be matched with the wireless communication protocol corresponding to the protocol standard parameter, and it is determined whether there is a wireless communication protocol corresponding to the model or the protocol standard parameter, if yes, step 205 is executed, otherwise, step 206 is executed.
And step 205, taking the wireless communication protocol corresponding to the model or protocol standard parameter as the target wireless communication protocol.
In this embodiment of the application, when a wireless communication protocol corresponding to the model exists in a plurality of wireless communication protocols stored in correspondence with a plurality of protocol partitions, the wireless communication protocol corresponding to the model may be used as a target wireless communication protocol. Alternatively, when the wireless communication protocol corresponding to the protocol standard parameter exists in the plurality of wireless communication protocols stored in correspondence with the plurality of protocol partitions, the wireless communication protocol corresponding to the protocol standard parameter may be set as the target wireless communication protocol.
Step 206, the wireless communication protocol used by the wireless communication device after the last communication protocol configuration is taken as the target wireless communication protocol.
In this embodiment, if there is no wireless communication protocol corresponding to the model among the plurality of wireless communication protocols stored in correspondence with the plurality of protocol partitions, the wireless communication protocol used by the wireless communication apparatus after the last communication protocol configuration may be used as the target wireless communication protocol. Alternatively, if there is no wireless communication protocol corresponding to the protocol standard parameter among the plurality of wireless communication protocols stored in correspondence with the plurality of protocol partitions, the wireless communication protocol used by the wireless communication apparatus after the last communication protocol configuration may be set as the target wireless communication protocol. For example, if the wireless communication protocol used after the last communication protocol configuration is the protocol 1 in fig. 2, the protocol 1 may be used as the target wireless communication protocol.
Step 207, modify the current loading address information of the bootstrap program in the system-on-chip module to the address information of the target partition corresponding to the storage target wireless communication protocol, and restart the wireless communication device.
In step 208, the target wireless communication protocol stored in the target partition is loaded by the bootstrap program during the reboot of the wireless communication device.
The process of steps 207-208 may refer to the process of steps 103-104 in the above embodiments, which is not described herein again.
Step 209, the wireless hotspot function of the wireless communication device is restarted.
In this embodiment, since the wireless communication apparatus is restarted in step 103, at this time, the wireless communication connection between the terminal device and the intelligent device is disconnected, and in order to enable the terminal device and the intelligent device to perform the communication again, the wireless hotspot function of the wireless communication apparatus may be restarted after the bootstrap program loads the target wireless communication protocol stored in the target partition according to the address information of the target partition.
Step 210, after the wireless hotspot is restarted and the wireless communication connection with the terminal device is reestablished, sending result information for the communication protocol of the wireless communication device configured this time to the terminal device.
Specifically, after the wireless hotspot is restarted and the wireless communication connection with the terminal device is reestablished, result information for the communication protocol of the wireless communication device configured this time is sent to the terminal device. For example, when there is a wireless communication protocol corresponding to an organic model or protocol standard parameter among a plurality of wireless communication protocols stored in correspondence with a plurality of protocol partitions, the wireless communication protocol corresponding to the model or protocol standard parameter may be set as a target wireless communication protocol, and the target wireless communication protocol stored in the target partition may be loaded by a bootstrap program, at this time, since the bootstrap program loads a new wireless communication protocol, a flag indicating that handover is successful may be transmitted to the APP of the terminal device, and when there is no wireless communication protocol corresponding to the organic model or protocol standard parameter among the plurality of wireless communication protocols stored in correspondence with the plurality of protocol partitions, the wireless communication protocol used by the wireless communication apparatus after last communication protocol configuration may be set as the target wireless communication protocol, and the target wireless communication protocol stored in the target partition may be loaded by the bootstrap program, at this time, because the bootstrap program does not load a new wireless communication protocol, but continues to load the wireless communication protocol used last time, the flag of the handover failure can be sent to the APP of the terminal device, so that the user can intuitively acquire result information of the communication protocol for configuring the wireless communication device this time, and analysis is facilitated.
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:
on one hand, due to the fact that the wireless hotspot function of the wireless communication device is restarted, after the wireless hotspot is restarted and when the wireless communication connection with the terminal equipment is reestablished, result information aiming at the communication protocol of the wireless communication device configured at this time is sent to the terminal equipment, a user can visually obtain the result information aiming at the communication protocol of the wireless communication device configured at this time, and analysis is facilitated.
On the other hand, when the wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, the wireless communication protocol used by the wireless communication device after the last communication protocol configuration is taken as the target wireless communication protocol, so that the success rate of loading the target wireless communication protocol by the bootstrap program can be ensured, and the situation that the target wireless communication protocol cannot be loaded by the bootstrap program is prevented.
For the sake of clarity of the above embodiment, the embodiment of the present application further provides another configuration method of a communication protocol, see embodiment three.
EXAMPLE III
Fig. 5 is a flowchart illustrating a method for dynamically configuring a communication protocol according to a third embodiment of the present invention.
As shown in fig. 5, on the basis of the embodiment shown in fig. 1, before step 102, the method for dynamically configuring a communication protocol may further include the following steps:
step 301, writing the model or protocol standard parameter into the designated partition.
In this embodiment, the flash memory module may further include a designated partition for storing the parameter, where the designated partition is preset, and the designated partition may be preset by a built-in program of the smart device, or may be set by a user, which is not limited thereto. For example, when the designated partition is preset for the built-in program of the smart device, the protocol partition arranged at the first bit in the plurality of protocol partitions may be used as the designated partition, or any one of the plurality of protocol partitions may be used as the designated partition, for example, the protocol partition arranged at the last bit in the plurality of protocol partitions may be used as the designated partition, without limitation.
In the embodiment of the application, after the designated partition is determined, the model or protocol standard parameter may be written into the designated partition.
Step 302, modifying the loading address information of the bootstrap program into the address information of the designated partition, and restarting the wireless communication device.
In the embodiment of the application, the address information of the designated partition may be a first address of the designated partition, a corresponding relationship between the designated partition and the address information of the designated partition may be established in advance, and after the designated partition is determined, the address information corresponding to the designated partition may be determined by querying the corresponding relationship. After determining the address information of the designated partition, the bootstrap loading address information can be modified into the address information of the designated partition, so as to read the model or protocol standard parameters in the designated partition according to the address information of the designated partition. Further, since the identification of the designated partition is performed in the boot program, the wireless communication apparatus needs to be restarted when the load address information of the boot program is modified.
Step 303, in the process of restarting the wireless communication device, reading the model or protocol standard parameter in the designated partition by the bootstrap program according to the address information of the designated partition.
In the embodiment of the application, in the process of restarting the wireless communication device, the model or protocol standard parameters stored in the designated partition can be read through the bootstrap program according to the address information of the designated partition. For example, when the first address of a given partition is: when the address is 0x1212, the designated partition may be found according to the initial address 0x1212, so as to read the model or protocol standard parameter stored in the designated partition.
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 is applied to an intelligent device, and the wireless communication apparatus 100 includes a system-on-chip module 110 and a flash memory module 120, wherein,
the flash memory module 120 has a plurality of protocol partitions 121, and each protocol partition 121 stores a wireless communication protocol that can be independently operated.
The system-on-chip module 110 includes a boot program 111 and a processor 112, the processor 112 is configured to: acquiring a communication protocol configuration instruction aiming at the wireless communication device 100, which is sent by a terminal device, wherein the communication protocol configuration instruction has model or protocol standard parameters aiming at intelligent equipment; determining a target wireless communication protocol to be configured of the wireless communication device 100 according to the model or protocol standard parameters; modifying the current loading address information of the bootstrap program 111 in the system level chip 110 module into the address information of the target partition corresponding to the storage 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 by the target partition is loaded by the boot program 111.
As one possible implementation, the processor 112 is configured to: turning on a wireless hotspot function of the wireless communication device 100; receiving a connection establishment request aiming at a wireless hotspot sent by terminal equipment, and establishing wireless communication connection with the terminal equipment according to the connection establishment request; a communication protocol configuration instruction for the wireless communication apparatus 100 transmitted by the terminal device is received through the wireless communication connection.
As one possible implementation, the processor 112 is configured to: judging whether a wireless communication protocol corresponding to an organic type or a protocol standard parameter exists in a plurality of wireless communication protocols stored correspondingly to a plurality of protocol partitions; and determining a target wireless communication protocol to be configured of the wireless communication device according to the judgment result.
As a possible implementation, the processor 112 is specifically configured to: when judging that the wireless communication protocol corresponding to the organic model or protocol standard parameter exists in the plurality of wireless communication protocols, taking the wireless communication protocol corresponding to the model or protocol standard parameter as a target wireless communication protocol; when it is determined that a wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, the wireless communication protocol used by the wireless communication device after the last communication protocol configuration is set as the target wireless communication protocol.
As one possible implementation, the flash module 120 further includes a designated partition to store the parameters, then the processor 112 is further configured to: before determining a target wireless communication protocol to be configured of the wireless communication device 100 according to the model or protocol standard parameters, writing the model or protocol standard parameters into a designated partition; modify the loading address information of the boot program to address information of the designated partition, and restart the wireless communication apparatus 100; during the restart of the wireless communication apparatus 100, the model or protocol standard parameter in the designated partition is read by the boot program 111 according to the address information of the designated partition.
As one possible implementation, the processor 112 is further configured to: restarting the wireless hotspot function of the wireless communication device 100 after loading the target wireless communication protocol stored by the target partition through the bootstrap program 111; after the wireless hotspot is restarted and the wireless communication connection with the terminal device is reestablished, result information for configuring the communication protocol of the wireless communication device 100 this time is sent to the terminal device.
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, because a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at an intelligent device, then a target wireless communication protocol to be configured of the wireless communication device is determined according to the model or protocol standard parameter, then the current loading address information of a bootstrap program in a system level chip module is modified into the address information of a target partition correspondingly storing the target wireless communication protocol, the wireless communication device is restarted, and finally the target wireless communication protocol stored in the target partition is loaded through the bootstrap program in the process of restarting the wireless communication device, the problem that in the prior art, wireless communication among multiple protocols is realized through software compatibility with multiple protocols, the software coupling is high, and protocols of two mutually competing clients can be operated at the same time can be effectively solved, and the technical problems of the increase of chip resources and the increase of cost are caused, so that the dynamic configuration of the wireless communication protocol in the wireless communication device is realized according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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.
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, because the wireless hotspot function of the wireless communication device is restarted, after the wireless hotspot is restarted and the wireless communication connection with the terminal device is reestablished, the result information of the communication protocol of the wireless communication device configured this time is sent to the terminal device, so that the user can visually acquire the result information of the communication protocol of the wireless communication device configured this time, and analysis is facilitated.
On the other hand, when the wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, the wireless communication protocol used by the wireless communication device after the last communication protocol configuration is taken as the target wireless communication protocol, so that the success rate of loading the target wireless communication protocol by the bootstrap program can be ensured, and the situation that the target wireless communication protocol cannot be loaded by the bootstrap program is prevented.
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 present application further provides an intelligent device corresponding to the fourth apparatus of the embodiment, see embodiment five.
EXAMPLE five
The intelligent device of the embodiment of the application comprises: 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, because a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at an intelligent device, then a target wireless communication protocol to be configured of the wireless communication device is determined according to the model or protocol standard parameter, then the current loading address information of a bootstrap program in a system level chip module is modified into the address information of a target partition correspondingly storing the target wireless communication protocol, the wireless communication device is restarted, and finally the target wireless communication protocol stored in the target partition is loaded through the bootstrap program in the process of restarting the wireless communication device, the problem that in the prior art, wireless communication among multiple protocols is realized through software compatibility with multiple protocols, the software coupling is high, and protocols of two mutually competing clients can be operated at the same time can be effectively solved, and the technical problems of the increase of chip resources and the increase of cost are caused, so that the dynamic configuration of the wireless communication protocol in the wireless communication device is realized according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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.
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, because the wireless hotspot function of the wireless communication device is restarted, after the wireless hotspot is restarted and the wireless communication connection with the terminal device is reestablished, the result information of the communication protocol of the wireless communication device configured this time is sent to the terminal device, so that the user can visually acquire the result information of the communication protocol of the wireless communication device configured this time, and analysis is facilitated.
On the other hand, when the wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, the wireless communication protocol used by the wireless communication device after the last communication protocol configuration is taken as the target wireless communication protocol, so that the success rate of loading the target wireless communication protocol by the bootstrap program can be ensured, and the situation that the target wireless communication protocol cannot be loaded by the bootstrap program is prevented.
Since the intelligent device introduced in the fifth embodiment of the present application is an intelligent device used for implementing the apparatus in the fourth embodiment of the present application, based on the apparatus introduced in the fourth embodiment of the present application, a person skilled in the art can understand the specific structure and the deformation of the intelligent device, and thus details are not described here. All intelligent devices adopted by the device in the fourth embodiment of the present application belong to the scope to be protected 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 embodiment to the third embodiment, which is shown in the sixth embodiment.
EXAMPLE six
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, because a communication protocol configuration instruction which is sent by a terminal device and aims at a wireless communication device is obtained, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at an intelligent device, then a target wireless communication protocol to be configured of the wireless communication device is determined according to the model or protocol standard parameter, then the current loading address information of a bootstrap program in a system level chip module is modified into the address information of a target partition correspondingly storing the target wireless communication protocol, the wireless communication device is restarted, and finally the target wireless communication protocol stored in the target partition is loaded through the bootstrap program in the process of restarting the wireless communication device, the problem that in the prior art, wireless communication among multiple protocols is realized through software compatibility with multiple protocols, the software coupling is high, and protocols of two mutually competing clients can be operated at the same time can be effectively solved, and the technical problems of the increase of chip resources and the increase of cost are caused, so that the dynamic configuration of the wireless communication protocol in the wireless communication device is realized according to the communication protocol configuration instruction triggered by the user, and the flexibility and the applicability of the method are improved. Moreover, wireless communication among multiple protocols is realized by adopting a partition loading mode, so that 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 run 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.
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, because the wireless hotspot function of the wireless communication device is restarted, after the wireless hotspot is restarted and the wireless communication connection with the terminal device is reestablished, the result information of the communication protocol of the wireless communication device configured this time is sent to the terminal device, so that the user can visually acquire the result information of the communication protocol of the wireless communication device configured this time, and analysis is facilitated.
On the other hand, when the wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, the wireless communication protocol used by the wireless communication device after the last communication protocol configuration is taken as the target wireless communication protocol, so that the success rate of loading the target wireless communication protocol by the bootstrap program can be ensured, and the situation that the target wireless communication protocol cannot be loaded by the bootstrap program is prevented.
Since the non-transitory computer-readable storage medium described in the sixth 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 (14)

1. A dynamic configuration method of a communication protocol is applied to an intelligent device having a wireless communication apparatus, the wireless communication apparatus includes a system-on-chip module and a flash memory module, the flash memory module has a plurality of protocol partitions, each protocol partition correspondingly stores an independently operable wireless communication protocol, the wireless communication protocols stored in the plurality of protocol partitions include protocols of at least two competing clients, the dynamic configuration method includes:
acquiring a communication protocol configuration instruction which is sent by a terminal device and aims at the wireless communication device, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at the intelligent device;
determining a target wireless communication protocol to be configured for the wireless communication device according to the model or protocol standard parameter;
modifying the current loading address information of the bootstrap program in the system-level chip module into the address information of a target partition correspondingly storing the target wireless communication protocol, 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;
the flash memory module further comprises a designated partition for storing parameters; determining a target wireless communication protocol to be configured for the wireless communication device according to the model or protocol standard parameter, wherein the method further comprises the following steps:
writing the model or protocol standard parameter into the designated partition;
modifying the loading address information of the bootstrap program into the address information of the designated partition, and restarting the wireless communication device;
and in the process of restarting the wireless communication device, reading the model or protocol standard parameters in the specified partition by the bootstrap program according to the address information of the specified partition.
2. The method for dynamically configuring communication protocol according to claim 1, wherein the obtaining of the communication protocol configuration instruction for the wireless communication apparatus sent by the terminal device comprises:
starting a wireless hotspot function of the wireless communication device;
receiving a connection establishment request aiming at the wireless hotspot sent by terminal equipment, and establishing wireless communication connection with the terminal equipment according to the connection establishment request;
and receiving a communication protocol configuration instruction which is sent by the terminal equipment and aims at the wireless communication device through the wireless communication connection.
3. 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 according to the model or protocol standard parameter comprises:
judging whether a wireless communication protocol corresponding to the model or protocol standard parameter exists in a plurality of wireless communication protocols stored correspondingly to the protocol partitions;
and determining a target wireless communication protocol to be configured of the wireless communication device according to the judgment result.
4. The method for dynamically configuring communication protocol according to claim 3, wherein the determining the target wireless communication protocol to be configured by the wireless communication apparatus according to the determination result comprises:
when judging that the wireless communication protocol corresponding to the model or protocol standard parameter exists in the plurality of wireless communication protocols, taking the wireless communication protocol corresponding to the model or protocol standard parameter as the target wireless communication protocol;
and when judging that the wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, taking the wireless communication protocol used by the wireless communication device after the last communication protocol configuration as the target wireless communication protocol.
5. The method for dynamically configuring a communication protocol according to any one of claims 2 to 4, wherein after loading the target wireless communication protocol stored by the target partition by the boot program, further comprising:
restarting a wireless hotspot function of the wireless communication device;
and after the wireless hotspot is restarted and the wireless communication connection with the terminal equipment is reestablished, sending result information aiming at the communication protocol of the wireless communication device configured at this time to the terminal equipment.
6. A method for dynamic configuration of a communication protocol according to any of claims 1 to 4, wherein the wireless communication device is a wireless WiFi communication device.
7. A wireless communication device applied to an intelligent device comprises a system-on-chip module and a flash memory module, wherein,
the flash memory module is provided with a plurality of protocol partitions, each protocol partition correspondingly stores a wireless communication protocol capable of operating independently, and the wireless communication protocols stored in the protocol partitions comprise protocols of at least two mutually competing clients;
the system-on-chip module includes a boot program and a processor, the processor to:
acquiring a communication protocol configuration instruction which is sent by a terminal device and aims at the wireless communication device, wherein the communication protocol configuration instruction has a model or protocol standard parameter aiming at the intelligent device;
determining a target wireless communication protocol to be configured for the wireless communication device according to the model or protocol standard parameter;
modifying the current loading address information of the bootstrap program in the system-level chip module into the address information of a target partition correspondingly storing the target wireless communication protocol, 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;
the flash memory module further comprises a designated partition for storing parameters; the processor is further configured to:
writing the model or protocol standard parameters into the designated subarea before determining a target wireless communication protocol to be configured of the wireless communication device according to the model or protocol standard parameters;
modifying the loading address information of the bootstrap program into the address information of the designated partition, and restarting the wireless communication device;
and in the process of restarting the wireless communication device, reading the model or protocol standard parameters in the specified partition by the bootstrap program according to the address information of the specified partition.
8. The wireless communications apparatus of claim 7, wherein the processor is configured to:
starting a wireless hotspot function of the wireless communication device;
receiving a connection establishment request aiming at the wireless hotspot sent by terminal equipment, and establishing wireless communication connection with the terminal equipment according to the connection establishment request;
and receiving a communication protocol configuration instruction which is sent by the terminal equipment and aims at the wireless communication device through the wireless communication connection.
9. The wireless communications apparatus of claim 7, wherein the processor is configured to:
judging whether a wireless communication protocol corresponding to the model or protocol standard parameter exists in a plurality of wireless communication protocols stored correspondingly to the protocol partitions;
and determining a target wireless communication protocol to be configured of the wireless communication device according to the judgment result.
10. The wireless communications apparatus of claim 9, wherein the processor is further configured to:
when judging that the wireless communication protocol corresponding to the model or protocol standard parameter exists in the plurality of wireless communication protocols, taking the wireless communication protocol corresponding to the model or protocol standard parameter as the target wireless communication protocol;
and when judging that the wireless communication protocol corresponding to the model or the protocol standard parameter does not exist in the plurality of wireless communication protocols, taking the wireless communication protocol used by the wireless communication device after the last communication protocol configuration as the target wireless communication protocol.
11. The wireless communications apparatus of any of claims 8-10, wherein the processor is further configured to:
restarting a wireless hotspot function of the wireless communication device after loading a target wireless communication protocol stored by the target partition by the bootstrap program;
and after the wireless hotspot is restarted and the wireless communication connection with the terminal equipment is reestablished, sending result information aiming at the communication protocol of the wireless communication device configured at this time to the terminal equipment.
12. The wireless communication device of any of claims 7 to 10, wherein the wireless communication device is a wireless WiFi communication device.
13. A smart device, comprising: the wireless communication device of any of claims 7 to 12.
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 6.
CN201810847247.5A 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment Active CN109067735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810847247.5A CN109067735B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810847247.5A CN109067735B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment

Publications (2)

Publication Number Publication Date
CN109067735A CN109067735A (en) 2018-12-21
CN109067735B true CN109067735B (en) 2021-08-20

Family

ID=64835773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810847247.5A Active CN109067735B (en) 2018-07-27 2018-07-27 Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment

Country Status (1)

Country Link
CN (1) CN109067735B (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
CN111030924B (en) * 2019-11-26 2022-03-08 浙江吉城云创科技有限公司 Gateway equipment, configuration method and working method
CN114827302B (en) * 2022-04-06 2024-03-12 广东万颗子智控科技有限公司 Communication protocol adaptation method, device, equipment and storage medium

Citations (6)

* 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
EP2693224A1 (en) * 2012-08-03 2014-02-05 Fluke Corporation Inc. Handheld devices, systems, and methods for measuring parameters
CN103607662A (en) * 2013-11-21 2014-02-26 乐视致新电子科技(天津)有限公司 Method and apparatus for communication protocol control in intelligent television equipment
CN103645924A (en) * 2013-12-27 2014-03-19 金三立视频科技(深圳)有限公司 Method and device for managing program parameters of embedded device
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2693224A1 (en) * 2012-08-03 2014-02-05 Fluke Corporation Inc. Handheld devices, systems, and methods for measuring parameters
CN103489298A (en) * 2013-09-10 2014-01-01 无锡聚为传感科技有限公司 Multi-protocol wireless meter reading device
CN103607662A (en) * 2013-11-21 2014-02-26 乐视致新电子科技(天津)有限公司 Method and apparatus for communication protocol control in intelligent television equipment
CN103645924A (en) * 2013-12-27 2014-03-19 金三立视频科技(深圳)有限公司 Method and device for managing program parameters of embedded device
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
CN109067735A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN113132185B (en) Equipment distribution network binding method, system, mobile terminal and storage medium
US9703353B2 (en) Method and electronic device for reducing current consumption by the electronic device
CN109067735B (en) Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
CN109067734B (en) Dynamic configuration method of communication protocol, wireless communication device and household appliance
CN112737899A (en) Intelligent device management method and device, storage medium and electronic device
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
US10257873B2 (en) Method and electronic device for providing tethering service
CN110784538B (en) Household appliance configuration file generation method and device, household appliance and storage medium
WO2019080719A1 (en) Data processing method and device, storage medium, processor, and system
CN112105009A (en) Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
CN113132967A (en) Fusion networking method, device, system and computer readable storage medium
US10715628B2 (en) Attribute operating method and device
US20210235245A1 (en) Terminal Application Activation Method, Apparatus, and System
US9820310B2 (en) Network connection method and system
US10284614B2 (en) Method for downloading contents of electronic device and electronic device thereof
CN108989117B (en) Configuration method of communication protocol, wireless communication device and household appliance
CN113726581B (en) Method and device for restoring factory configuration of network equipment and network equipment
CN108965019B (en) Dynamic configuration method of communication protocol, wireless communication device and related equipment
CN113132958A (en) Fusion networking method, device, system and computer readable storage medium
CN113647061A (en) Equipment discovery method and device, control terminal and Internet of things auxiliary equipment
US10635606B2 (en) Method and apparatus for maintaining continuity of on-going session over wired or wireless interface
CN108965018B (en) Dynamic configuration method of communication protocol, wireless communication device and household appliance
CN113448607B (en) Method and device for firmware upgrading and intelligent household appliance
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment

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