Code scanning configuration method for wireless control equipmentTechnical Field
The invention relates to the technical field of wireless control, in particular to a code scanning configuration method of wireless control equipment.
Background
The wireless control device needs to be configured to set a secret key or an identification code used for wireless communication at both or one of a control (such as a control switch) and a controlled (such as a lamp) so that a required control signal or communication data can be correctly distinguished in a shared space. The existing products on the market have the following configuration modes: 1. delivery pairing; 2. matching in a learning mode; 3. and pairing through a smart phone or a computer.
However, the existing three configuration modes have respective disadvantages, which are not beneficial to configuration pairing of the wireless control device.
Disclosure of Invention
Based on the technical problems in the background art, the invention provides a code scanning configuration method for wireless control equipment.
The invention provides a code scanning configuration method of wireless control equipment, which comprises the following steps:
s1: configuring a foundation: the method comprises the steps that two-dimensional code scanning is adopted for configuration, the two-dimensional code comprises a unique code and a device type of a device, and an access key and other information of a controlled device can be contained;
s2: the configuration process comprises the following steps: during configuration, a smartphone or a computer and the like are needed to scan the two-dimensional codes of one or more controlled devices, the two-dimensional code of one control device is scanned, and the scanning sequence can be random;
s3: storing the configuration information: the configuration information is stored in the control equipment, and the controlled equipment is not required to participate in communication in the configuration process;
s4: multiple controlled device configurations: the control equipment is provided with a plurality of controlled equipment, and when the control equipment needs to control, the controlled equipment is sequentially controlled one by one through wireless communication according to the stored setting data;
s5: a plurality of control device configurations: when a plurality of control devices are needed to control the same controlled device, different control devices are configured to realize the control;
s6: code scanning control: when a subsequent user uses the control equipment, the control equipment can sequentially control all the controlled equipment scanned in during code scanning through wireless communication according to the configuration information.
As a further aspect of the present invention, the two-dimensional code in S1 is unique configuration data in the control device and the controlled device.
As a further aspect of the present invention, in the configuration process in S2, the software on the smart phone or the computer may be distinguished according to the device type identified in the two-dimensional code.
As a further scheme of the present invention, the configuration information in S3 includes a unique code of all scanned controlled devices, and may also include parameters such as an access key of the controlled device and items to be controlled.
The beneficial effects of the invention are as follows: the code scanning configuration method of the wireless control equipment adopts common two-dimensional code pairing in daily life, has better identification precision and identification accuracy, simultaneously transmits configuration data between the controlled equipment and the control equipment by taking the smart phone and the computer as an intermediary, can configure a plurality of controlled equipment and a plurality of control equipment, is suitable for the conditions of one control and more controls, and has wide application under the existing scenes of voice sound control, intelligent light control and the like.
Drawings
Fig. 1 is a configuration flowchart of a code scanning configuration method for a wireless control device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Referring to fig. 1, a code scanning configuration method for a wireless control device includes the following steps:
s1: the control equipment and the controlled equipment both have a unique factory-leaving two-dimensional code, the two-dimensional code comprises information such as a unique code and an equipment type of the corresponding equipment, and the information corresponds to a hardware code of the equipment or data stored before factory leaving;
s2: all devices keep a radio silent state after being powered on until a user operation or a specified event occurs;
s3: when a user needs to configure the control relationship of the equipment, the two-dimension codes of the controlled equipment and the control equipment are sequentially scanned by using equipment such as a smart phone or a computer terminal, a plurality of controlled equipment and one control equipment can be scanned, the scanning sequence can be random, and software on the smart phone or the computer can be distinguished according to the equipment types identified in the two-dimension codes;
s4: after the code scanning is finished, a user presses a configuration button on control equipment, the control equipment establishes wireless data connection with a smart phone or a computer, the control equipment receives data of the smart phone or the computer after the wireless data connection is successful, the smart phone or the computer terminal transmits information of all controlled equipment to the control equipment and stores the information in the control equipment, and then the control equipment is disconnected and exits from a configuration state;
s5: the written configuration data comprises unique codes of all scanned controlled devices, and can also be provided with parameters such as access keys of the controlled devices and items to be controlled;
s6: when a subsequent user uses the control equipment, the control equipment can sequentially control all the controlled equipment scanned in during code scanning through wireless communication according to the configured data, and if a plurality of control equipment are required to control the same controlled equipment, configuration needs to be carried out for each control equipment once;
s7: in this way, the configuration of the control device is realized, and the control relationship between the control device and the controlled device is determined.
In the invention, the radio silent state in S2 is any one of standby state and receiving state, the control device in the configuration process in S4 can not be successfully connected with the smart phone or the computer within the set timeout time, and the control device automatically exits the configuration state, the user can re-enter the configuration state only by pressing the configuration button once again, when the control device configures new control data, the old configuration data in the control device is deleted, the receiving device controlled in the configuration process in S4 does not need to participate in communication, the configuration data is stored on the control device, and only the device storing the unique code of the controlled device can send a correct command to control the controlled device.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.