CN108781174B - Device connection method and device, electronic device and readable storage medium - Google Patents

Device connection method and device, electronic device and readable storage medium Download PDF

Info

Publication number
CN108781174B
CN108781174B CN201880000626.9A CN201880000626A CN108781174B CN 108781174 B CN108781174 B CN 108781174B CN 201880000626 A CN201880000626 A CN 201880000626A CN 108781174 B CN108781174 B CN 108781174B
Authority
CN
China
Prior art keywords
target
user terminal
equipment
group
devices
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
CN201880000626.9A
Other languages
Chinese (zh)
Other versions
CN108781174A (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.)
Shenzhen Ant Hero Networking Technology Co ltd
Shenzhen JBT Smart Lighting Co Ltd
Original Assignee
Shenzhen Ant Hero Networking Technology Co ltd
Shenzhen JBT Smart Lighting 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 Shenzhen Ant Hero Networking Technology Co ltd, Shenzhen JBT Smart Lighting Co Ltd filed Critical Shenzhen Ant Hero Networking Technology Co ltd
Publication of CN108781174A publication Critical patent/CN108781174A/en
Application granted granted Critical
Publication of CN108781174B publication Critical patent/CN108781174B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2838Distribution of signals within a home automation network, e.g. involving splitting/multiplexing signals to/from different paths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Abstract

The embodiment of the disclosure provides a device connection method and device, electronic equipment and a readable storage medium, and relates to the technical field of smart home. The device connection method in the embodiment of the application can distribute a plurality of intelligent devices in the communication range of the user terminal into one group when the user terminal is used for establishing the communication connection of the intelligent devices by establishing the group in advance and distributing the password for the group. The password assignment of the group to all the intelligent devices in the group can be realized without independently configuring the passwords for the intelligent devices. And then when using user terminal to control smart machine, can realize that user terminal controls a smart machine in the grouping, just can control the effect of all smart machine in the grouping, improve control efficiency, promote user's use and experience.

Description

Device connection method and device, electronic device and readable storage medium
Technical Field
The disclosure relates to the technical field of smart home, and in particular relates to a device connection method and device, an electronic device and a readable storage medium.
Background
With the continuous improvement of the living standard of people, the requirements on the living quality are higher and higher. Convenient and fast high-quality life becomes the living standard pursued by people. The smart home has attracted more and more attention in people's life as a miniature that people pursue convenient and high-quality life.
In the prior art, when a user needs to newly add a household appliance or an electric appliance at home, each newly added household appliance or electric appliance needs to be connected with a user terminal, when the number of the newly added household appliances or electric appliances is large, the connection between the newly added household appliances or electric appliances and intelligent equipment is complicated, and when the user needs to control a plurality of intelligent equipment, control instructions can only be issued independently, so that the control efficiency is low.
Disclosure of Invention
In view of the above, an object of the embodiments of the present disclosure includes providing a device connection method, apparatus, electronic device and readable storage medium.
In a first aspect, an embodiment of the present invention provides an apparatus connection method, which is applied to a user terminal, where the user terminal establishes at least one packet in advance, and configures a group name and a corresponding group password for the packet, and the apparatus connection method includes:
the user terminal acquires the equipment information of all equipment to be connected within the communication range of the user terminal;
the user terminal allocates at least one target device in all devices to be connected to a target group;
the user terminal updates the equipment information of the target equipment according to the group name and the group password corresponding to the target group;
the user terminal establishes communication connection with at least one target device in the target group according to the group password of the target group;
and the user terminal forwards the control instruction aiming at the target equipment to other target equipment in the target grouping.
Furthermore, the user terminal establishes a communication connection with a background server in advance, the background server is configured with device information of all devices to be connected and a corresponding test instruction set in advance, and the test instruction set comprises a plurality of test instructions; before the step of the user terminal allocating at least one target device of all devices to be connected to a target group, the method further comprises:
the user terminal establishes communication connection with a background server;
the user terminal sends the equipment information to the background server so that the background server determines a corresponding test instruction set according to the equipment information;
and the user terminal receives at least one test instruction in the test instruction set.
Further, after the step of obtaining the device information of all the devices to be connected within the communication range of the user terminal, the method further comprises:
the user terminal sends a test instruction to the equipment to be connected so that the equipment to be connected performs a test action according to the test instruction;
the user terminal generates a test interface according to the test instruction;
the user terminal receives an input instruction input from the outside through the interface;
and when the input instruction is an instruction for determining that the test action is normal, determining the equipment to be connected as the target equipment.
Further, the user terminal is preconfigured with the normal state information of the device to be connected, and after the step of obtaining the device information of all the devices to be connected within the communication range of the user terminal, the method further includes:
the user terminal sends a first test instruction to the equipment to be connected so that the equipment to be connected generates test result information according to the first test instruction;
the user terminal receives the test result information and determines whether the test result information is the normal state information;
and the user terminal determines the equipment to be connected, of which the test result information is the normal state information, as the target equipment.
Further, the user terminal is preconfigured with the normal state information of the device to be connected, and after the step of obtaining the device information of all the devices to be connected within the communication range of the user terminal, the method further includes:
the user terminal sends a second test instruction to the equipment to be connected, wherein the second test instruction is configured to enable the equipment to be connected receiving the second test instruction to send response information;
the user terminal determines whether response information of the equipment to be connected is received;
and when the user terminal determines to receive the response information of the equipment to be connected, determining the equipment to be connected corresponding to the response information as the target equipment.
Further, the step of forwarding, by the ue, the control instruction for the target device to other target devices in the target packet includes:
the user terminal sends a control instruction to the target equipment;
the user terminal determines a target group corresponding to the target equipment according to the equipment information of the target equipment;
the user terminal determines the device information of all target devices contained in the target group;
and the user terminal sends the control instruction to all target devices in the target group.
Further, all target devices in the target group establish an ad hoc network communication connection in advance, so that one of the target devices in the target group can send the control instruction to other target devices in the target group through the ad hoc network communication connection, and the device connection method further includes:
after the target equipment receives the control instruction, determining the group name and the group password of the target group where the target equipment is located;
and the target equipment sends the control instruction to other target equipment in the target group where the target equipment is located according to the group name and the group password.
In a second aspect, an embodiment of the present invention provides an apparatus connecting device, which is applied to a user terminal, where the user terminal establishes at least one packet in advance, and configures a group name and a corresponding group password for the packet, and the apparatus connecting device includes:
the device searching module is configured to acquire device information of all devices to be connected in the communication range of the user terminal;
the distribution module is configured to distribute at least one target device in all the devices to be connected into a target group;
the assignment module is configured to update the device information of the target device according to the group name and the group password corresponding to the target group;
a communication module configured to establish a communication connection with at least one target device in the target group according to the group password of the target group;
a control module configured to forward the control instruction for the target device to other target devices in the target packet by the user terminal.
Furthermore, the user terminal establishes a communication connection with a background server in advance, the background server is configured with device information of all devices to be connected and a corresponding test instruction set in advance, and the test instruction set comprises a plurality of test instructions; before the user terminal allocates at least one target device of all devices to be connected into a target group, the communication module is further configured to:
establishing communication connection with a background server;
sending the equipment information to the background server so that the background server determines a corresponding test instruction set according to the equipment information;
at least one test instruction in the set of test instructions is received.
Further, after the step of obtaining the device information of all the devices to be connected within the communication range of the user terminal, the communication module is further configured to:
sending a test instruction to the equipment to be connected so that the equipment to be connected performs a test action according to the test instruction;
the device connecting device further comprises an interface generating module and an input module, wherein the interface generating module is configured to generate a test interface according to the test instruction;
the input module is configured to receive an input instruction input from the outside through the interface;
the assignment module is configured to determine the device to be connected as the target device when the input instruction is an instruction for determining that the test action is normal.
Further, the communication module is further configured to:
sending a first test instruction to the equipment to be connected so that the equipment to be connected generates test result information according to the first test instruction;
receiving the test result information, and determining whether the test result information is the normal state information;
and determining the equipment to be connected with the test result information as the normal state information as the target equipment.
Further, the user terminal is configured with the normal state information of the to-be-connected device in advance, and after the step of obtaining the device information of all the to-be-connected devices within the communication range of the user terminal, the communication module is further configured to:
sending a second test instruction to the equipment to be connected, wherein the second test instruction is configured to enable the equipment to be connected receiving the second test instruction to send response information;
the control module is configured to determine whether response information of the device to be connected is received; and when the user terminal determines to receive the response information of the equipment to be connected, determining the equipment to be connected corresponding to the response information as the target equipment.
Further, the method for forwarding the control instruction for the target device to other target devices in the target packet by the control module includes:
the user terminal sends a control instruction to the target equipment;
the user terminal determines a target group corresponding to the target equipment according to the equipment information of the target equipment;
the user terminal determines the device information of all target devices contained in the target group;
and the user terminal sends the control instruction to all target devices in the target group.
Further, all target devices in the target group establish an ad hoc network communication connection in advance, so that one of the target devices in the target group can send the control instruction to other target devices in the target group through the ad hoc network communication connection, and the target device further includes:
the command determining module is configured to determine the group name and the group password of the target group in which the target equipment is located after receiving the control command;
and the forwarding module is configured to send the control instruction to other target equipment in the target group where the target equipment is located according to the group name and the group password.
In a third aspect, the present invention further provides an electronic device, which includes a memory for storing executable program code and a processor for reading the executable program code stored in the memory to make the electronic device execute the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls, when running, an electronic device in which the readable storage medium is located to execute the device connection method described in the first aspect.
The device connection method in the embodiment of the application can distribute a plurality of intelligent devices in the communication range of the user terminal into one group when the user terminal is used for establishing the communication connection of the intelligent devices by establishing the group in advance and distributing the password for the group. The password assignment of the group to all the intelligent devices in the group can be realized without independently configuring the passwords for the intelligent devices. And then when using user terminal to control smart machine, can realize that user terminal controls a smart machine in the grouping, just can control the effect of all smart machine in the grouping, improve control efficiency, promote user's use and experience.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present disclosure and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings may be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flow chart of a device connection method according to a preferred embodiment of the present disclosure.
Fig. 2 is another schematic flow chart of a device connection method according to a preferred embodiment of the disclosure.
Fig. 3 is another flow chart of a device connection method according to another preferred embodiment of the disclosure.
Fig. 4 is another flow chart of the device connection method according to the preferred embodiment of the disclosure.
Fig. 5 is another flow chart of the device connection method according to the preferred embodiment of the disclosure.
Fig. 6 is a functional block diagram of an apparatus connecting device according to a preferred embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present disclosure, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
As shown in fig. 1, a device connection method provided in the embodiment of the present application may be applied to a user terminal. The user terminal can be a mobile phone, a tablet computer and other devices. The user terminal may pre-establish at least one group and configure a group name and a corresponding group password for the group. In the embodiment of the application, the user terminal and the device to be connected may be provided with corresponding communication units, and the communication unit on the user terminal may receive data sent by the device to be connected and may send a control instruction to the device to be connected. The device to be connected can receive data and control instructions sent by the user terminal through the communication unit on the device to be connected and can send related information to the user terminal. The device connection method may include the following steps.
Step S101, the user terminal obtains the device information of all devices to be connected in the communication range of the user terminal.
When a user uses an intelligent device, for example, various intelligent sensors, intelligent home appliances, etc., communication connection with various devices needs to be established through a user terminal, so that the user terminal can control the various intelligent devices, perform reading of various data, and the like. Each device capable of being in communication connection with the user terminal is a device to be connected, and the user terminal can be a smart phone, a tablet computer and other devices, or can be an independent terminal only having control over the smart device. The user terminal may establish a communication connection with the device to be connected through communication protocols such as bluetooth and Zigbee, and may also be connected through other communication methods. Each device to be connected may also be configured with a corresponding communication module, such as a bluetooth module, for communication connection with the user terminal. Before establishing a communication connection with a device to be connected, a user terminal needs to scan the device to be connected within a communication range, determine which devices are within the communication range, and select one or more of the devices to be connected to establish the communication connection. For example, the user terminal may turn on a bluetooth function, and scan all devices to be connected within a bluetooth coverage area through the bluetooth function. After the scanning is completed, the names of all the devices to be connected obtained by scanning can be presented in a list form. In the embodiment of the present application, the device information may include the name of the device to be connected, the device type, the MAC address, and the like. In order to facilitate the management of multiple devices, a user can establish multiple groups through a user terminal, and the user can uniformly manage the multiple devices in each group. For example, a user may pre-establish a lamp group for controlling a plurality of intelligent lamps in a home, the user may allocate a plurality of lamps to be controlled to enter the lamp group, and the user may issue a control instruction to one lamp in the lamp group to implement issuing a control instruction to all lamps in the lamp group.
Step S102, the user terminal distributes at least one target device in all the devices to be connected to a target group.
After all the devices to be connected are searched by the user terminal, the searched devices indicate that the distance between the devices and the user terminal is within the normal communication distance, and normal communication connection and data transmission can be carried out. The user may first determine a packet to be allocated, where the packet is determined as a target packet, and then determine, by the user terminal, a device to be connected that needs to be allocated into the target packet as a target device. The user can operate the grouping condition of each device to be connected through the user terminal, and one target device can be distributed into one target group or a plurality of target groups. In the process of establishing communication connection with the device to be connected, the user terminal may assign a corresponding name and password to each device establishing connection, in order to facilitate future use.
And step S103, the user terminal updates the equipment information of the target equipment according to the group name and the group password corresponding to the target group.
After the target device is assigned into the target group, the name and password previously set by the user for the target group can be assigned to all devices in the target group. The password set for the target packet may be the password necessary to establish a communication connection with the target device.
Step S104, the user terminal establishes communication connection with at least one target device in the target group according to the group password of the target group.
After the target device is distributed with the block password, the user terminal can establish encryption connection with the target device through the block password, the user can modify the password of the target group through the user terminal, and the new password can be assigned to all target devices in the target group after the password is modified.
Step S105, the ue forwards the control command for the target device to other target devices in the target packet.
The user can control the intelligent equipment through the user terminal, if the intelligent equipment is not grouped, the user needs to operate each piece of equipment independently when needing to perform the same operation on a plurality of pieces of equipment, and the operation is complex and the control efficiency is low. In the embodiment of the application, a user can firstly allocate a plurality of devices to be connected, which need to perform the same operation, to the same target group, and when the user controls a certain target device in the target group, because the target group is established in advance, the control instruction of the user can be sent to all target devices in the target group, so that the control effect of a plurality of devices is controlled by sending the control instruction to only one device, and the control efficiency of the intelligent device is improved.
In detail, as shown in fig. 2, step S105 may include the following sub-steps.
And a substep S151, in which the user terminal sends a control instruction to the target device.
The user terminal may select one of the target devices in the target group and send a control instruction to the target device.
And a substep S152, wherein the user terminal determines a target group corresponding to the target device according to the device information of the target device.
The user terminal can determine the target group where the target device is located according to the target of the control instruction.
And a substep S153, in which the user terminal determines the device information of all the target devices included in the target packet.
After determining the target group in which the target device is located, the user terminal may acquire device information of all target devices previously assigned within the target group, including names, MAC addresses, and the like of the devices.
And a substep S154, the user terminal sends the control command to all target devices in the target group.
The user terminal may send a control command for one of the target devices in a target group to all target devices in the target group. The user does not need to independently control each target device in the target grouping, and the purpose that the user terminal simultaneously controls a plurality of target devices is achieved through the form of the grouping in advance.
In one embodiment, the user terminal establishes a communication connection with a background server in advance, the background server is configured with device information of all devices to be connected and a corresponding test instruction set in advance, and the test instruction set comprises a plurality of test instructions; before the step of the user terminal allocating at least one target device of all devices to be connected into a target group, as shown in fig. 3, the method further comprises the following steps.
And step S106, the user terminal establishes communication connection with the background server.
When the user terminal determines the device to be connected as the target device, it needs to determine that the device to be connected is the device to be controlled. For example, a user may have a plurality of smart devices in his home, and the user may wish to control the plurality of smart devices through the user terminal. If the intelligent terminal establishes a communication connection with the user terminal through the bluetooth protocol, all devices with bluetooth communication modules may send bluetooth signals to be received by the user terminal. In addition, there may be a case where a plurality of smart devices are configured in the home of the user a, but only devices with the same specification are configured in the neighbor B of the user a, so that when the user terminal used by the user a performs a search, since the actual distance between the user a and the neighbor B is short, the user terminal of the user a is likely to search for the smart devices in the home of the neighbor B, and obviously, the user a does not want to control the smart devices in the home of the neighbor B, and the neighbor B does not want the devices in the home of the user a to be controlled by other people. Therefore, when grouping the plurality of searched smart devices using the user terminal, the user a needs to check whether or not the smart device is a device that the user a originally desires to control.
In addition, the intelligent device is likely to have abnormal functions in the using process, and if a user does not test the functions of the intelligent device before establishing communication connection with the intelligent device with the abnormal functions through a user terminal, the situation that the control fails due to abnormal control can occur in the control process.
Therefore, the user can test whether the device to be connected is the device desired to be controlled and whether the device is normal through the user terminal.
And S107, the user terminal sends the equipment information to the background server so that the background server determines a corresponding test instruction set according to the equipment information.
Because the types of the intelligent devices are more, a plurality of intelligent devices with different specifications and models may exist in the environment where one user is located, and the user terminal cannot be configured with the test instructions of all the intelligent devices. In the embodiment of the application, after searching all the devices to be connected through the communication protocol, the user terminal can obtain information of specifications, models and the like of all the devices to be connected, the user terminal can obtain test instruction sets of the devices through the information of the specifications, the models and the like through the background server, the background server is configured with test instructions of all the intelligent devices, and the test instructions of the intelligent devices of each model form the test instruction set corresponding to the intelligent devices.
Step S108, the user terminal receives at least one test instruction in the test instruction set.
After the background server determines the test instruction set corresponding to the intelligent device acquired by the user terminal, the background server may send at least one instruction in the test instruction set to the user terminal, and the user terminal may test the intelligent device through the received test instruction.
In detail, as shown in fig. 4, after the step of acquiring the device information of all the devices to be connected within the communication range of the user terminal, the method further includes the following steps.
Step S109, the user terminal sends a test instruction to the device to be connected, so that the device to be connected performs a test action according to the test instruction.
After receiving the test instruction issued by the background server, the user terminal may send the test instruction to the device to be connected. It is understood that the test instructions for different intelligent devices are different, for example, the test instructions for the intelligent lamp may include turning on, turning off, turning on, dimming, and the like. The test instructions for the smart blinds may include opening the blinds, closing the blinds, and the like.
And step S110, the user terminal generates a test interface according to the test instruction.
After the user terminal sends the test instruction to the device to be connected, the device to be connected can perform corresponding test action according to the test instruction, but if the intelligent terminal performs the test action correctly, the user terminal cannot be determined, and judgment can be performed by an operator of the user terminal. Furthermore, it may also happen that a device which the user does not wish to control is tested. As described above, the user a only wants to control the smart devices in his home through the user terminal, but since the smart devices in the home of the neighbor B can also be searched by the user terminal of the user a, if no test is performed, or the user does not determine although the test is performed, it may happen that the smart devices in the home of the neighbor B are grouped by the user terminal of the user a. Although the situation of grouping by the user a can be avoided by configuring the password for the device in the own home in advance by the neighbor B, if the smart device in the home of the neighbor B does not configure the password or configures the factory password, the situation of being controlled by the user terminal of the user a may still occur.
Therefore, after the user terminal sends the control instruction to the intelligent device, a test interface can be generated, and the user terminal can receive an externally input instruction through the test interface to determine whether the intelligent device is normal.
And step S111, the user terminal receives an input instruction input from the outside through the interface.
The user terminal can receive an instruction input by a user through the test interface, for example, after the user terminal sends a test instruction of turning on the lamp to an intelligent lamp, the intelligent lamp is turned on, the user terminal can generate a page of 'whether the lamp is turned on', after the user determines that the intelligent lamp is normally turned on, the user can select an option of 'turning on the lamp' through the user terminal, and the user terminal can determine that the lamp-on test of the intelligent lamp is normal. And because the step of user confirmation is introduced, the user can perform grouping operation only after the intelligent device is determined to be the device which the user wants to control through the test process, so that the situation that the user controls the intelligent devices of other users is avoided.
Step S112, when the input instruction is an instruction for determining that the test action is normal, determining the device to be connected as the target device.
Through the test flow, after the user inputs all normal instructions of the intelligent device, the user terminal can determine the device to be connected as the target device.
In another specific embodiment, the user terminal is configured with the normal state information of the to-be-connected device in advance, and after the step of obtaining the device information of all the to-be-connected devices within the communication range of the user terminal, as shown in fig. 5, the method may further include the following step.
Step S113, the user terminal sends a first test instruction to the device to be connected, so that the device to be connected generates test result information according to the first test instruction.
As described above, a user may input an instruction of whether the smart device is normal through the user terminal, and some smart devices may determine whether the smart device is in a normal state according to the action of the smart device without user involvement. The method is suitable for all intelligent devices which the user wants to control to be listed as the devices to be connected or no intelligent devices which the user does not want to control exist around the user terminal. In the test process, the user terminal sends at least one of the test instructions received from the background server to the device to be connected, the device to be connected performs a corresponding test action according to the received test instruction, and feeds back a test result to the user terminal according to the result of the test action.
Step S114, the user terminal receives the test result information, and determines whether the test result information is the normal state information.
The intelligent device can send the instruction of whether the device correctly executes the first test result to the user terminal, and after the user terminal receives the test result information, the user terminal can determine whether the intelligent device receiving the first test instruction correctly executes the first test instruction according to the test result information.
Step S115, the user terminal determines the device to be connected, for which the test result information is the normal state information, as the target device.
For the device to be connected which correctly executes the test instruction, the device to be connected passes the test flow, the function of the device to be connected is normal, and the device to be connected is the device which the user wants to control, so that the device to be connected can be determined as the target device.
In another specific implementation, the ue is configured with the normal state information of the to-be-connected device in advance, and after the step of obtaining the device information of all the to-be-connected devices in the communication range of the ue, the method further includes the following steps.
Step S116, the user terminal sends a second test instruction to the device to be connected, where the second test instruction is configured to enable the device to be connected that receives the second test instruction to send response information.
Some smart devices are not capable of a particular operation during use if no particular activation condition exists. For example, in a smart door alarm, the smart door alarm may alarm only when a door or window of an installation location is opened. In such a case, it is impossible to perform a test for determining whether or not an alarm can be normally performed at the time of the test. Therefore, for such a smart device, a test of whether data communication is possible or not is intelligently performed. Therefore, in the embodiment of the application, the user terminal may send a second test instruction to the device to be connected, and if the device to be connected functions normally, the user terminal may feed back response information according to the second test instruction.
In step S117, the user terminal determines whether response information of the device to be connected is received.
The user terminal may determine whether the device to be connected can be determined as the target device by determining whether the response information is received.
Step S118, when the user terminal determines that the response information of the device to be connected is received, determining the device to be connected corresponding to the response information as the target device.
If the user terminal receives the response information fed back by the device to be connected, the communication function of the device to be connected is normal, and the user terminal can determine the device to be connected as the target device.
The step that the user terminal forwards the control instruction aiming at the target device to other target devices in the target grouping comprises the following steps:
in the above embodiment, the user terminal may send the control instruction to the plurality of target devices, and in a system formed by the user terminal and the plurality of target devices, the user terminal serves as a center of the system to send the control instruction to other target devices. In an actual use process, all target devices in the target group may also establish an ad hoc network communication connection in advance, so that one of the target devices in the target group may send the control instruction to other target devices in the target group through the ad hoc network communication connection. Through such ad hoc network communication connection, the target device may serve as a repeater of the control command, and the user terminal still serves as an initial generation end of the control command, but the control command may be transmitted from one target device to another target device. The device connection method further includes the following steps.
Step S118, after the target device receives the control instruction, determining a group name and a group password of the target group in which the target device is located.
Step S119, the target device sends the control instruction to other target devices in the target group where the target device is located according to the group name and the group password.
By configuring all target devices in the same target group with the same group password, the target devices can establish communication connection between the target devices through the same group name and the same group password which are configured in advance. For example, in a target packet, the target packet includes device a and device B, and a control instruction issued by the user terminal for device a may be forwarded to device B by device a, so that the user terminal is not required to send a control instruction to device B, and control efficiency is provided.
To sum up, the device connection method in the embodiment of the present application may allocate a plurality of intelligent devices within a communication range of the user terminal to one group when establishing communication connection of the intelligent devices using the user terminal by establishing the group in advance and allocating a password to the group. The password assignment of the group to all the intelligent devices in the group can be realized without independently configuring the passwords for the intelligent devices. And then when using user terminal to control smart machine, can realize that user terminal controls a smart machine in the grouping, just can control the effect of all smart machine in the grouping, improve control efficiency, promote user's use and experience.
As shown in fig. 6, an embodiment of the present invention further provides an apparatus connecting device 110, which is applied to a user terminal, where the user terminal establishes at least one packet in advance, and configures a group name and a corresponding group password for the packet, and the apparatus connecting device includes:
a device search module 1101 configured to acquire device information of all devices to be connected within a communication range of the user terminal;
an allocating module 1102 configured to allocate at least one target device among all devices to be connected into a target group;
an assignment module 1103 configured to update device information of the target device according to a group name and a group password corresponding to the target group;
a communication module 1104 configured to establish a communication connection with at least one target device in the target group according to the group cipher of the target group;
a control module 1105, configured to forward the control instruction for the target device to other target devices in the target packet by the user terminal.
Furthermore, the user terminal establishes a communication connection with a background server in advance, the background server is configured with device information of all devices to be connected and a corresponding test instruction set in advance, and the test instruction set comprises a plurality of test instructions; before the user terminal allocates at least one target device of all devices to be connected into a target group, the communication module is further configured to:
establishing communication connection with a background server;
sending the equipment information to the background server so that the background server determines a corresponding test instruction set according to the equipment information;
at least one test instruction in the set of test instructions is received.
Further, after the step of obtaining the device information of all the devices to be connected within the communication range of the user terminal, the communication module is further configured to:
sending a test instruction to the equipment to be connected so that the equipment to be connected performs a test action according to the test instruction;
the device connecting device further comprises an interface generating module and an input module, wherein the interface generating module is configured to generate a test interface according to the test instruction;
the input module is configured to receive an input instruction input from the outside through the interface;
the assignment module is configured to determine the device to be connected as the target device when the input instruction is an instruction for determining that the test action is normal.
Further, the communication module is further configured to:
sending a first test instruction to the equipment to be connected so that the equipment to be connected generates test result information according to the first test instruction;
receiving the test result information, and determining whether the test result information is the normal state information;
and determining the equipment to be connected with the test result information as the normal state information as the target equipment.
Further, the user terminal is configured with the normal state information of the to-be-connected device in advance, and after the step of obtaining the device information of all the to-be-connected devices within the communication range of the user terminal, the communication module is further configured to:
sending a second test instruction to the equipment to be connected, wherein the second test instruction is configured to enable the equipment to be connected receiving the second test instruction to send response information;
the control module is configured to determine whether response information of the device to be connected is received; and when the user terminal determines to receive the response information of the equipment to be connected, determining the equipment to be connected corresponding to the response information as the target equipment.
Further, the method for forwarding the control instruction for the target device to other target devices in the target packet by the control module includes:
the user terminal sends a control instruction to the target equipment;
the user terminal determines a target group corresponding to the target equipment according to the equipment information of the target equipment;
the user terminal determines the device information of all target devices contained in the target group;
and the user terminal sends the control instruction to all target devices in the target group.
Further, all target devices in the target group establish an ad hoc network communication connection in advance, so that one of the target devices in the target group can send the control instruction to other target devices in the target group through the ad hoc network communication connection, and the target device further includes:
the command determining module is configured to determine the group name and the group password of the target group in which the target equipment is located after receiving the control command;
and the forwarding module is configured to send the control instruction to other target equipment in the target group where the target equipment is located according to the group name and the group password.
The embodiment of the invention also provides electronic equipment, which comprises a memory and a processor, wherein the memory is used for storing the executable program codes, and the processor is used for reading the executable program codes stored in the memory so as to enable the electronic equipment to execute the equipment connection method. The embodiment of the invention also provides a readable storage medium, which comprises a computer program, and the computer program controls the electronic equipment where the readable storage medium is located to execute the equipment connection method when running.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure, and various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Industrial applicability
The disclosure provides a device connection method, a device, an electronic device and a readable storage medium. The intelligent device control method and the intelligent device control system can realize that the user terminal controls one intelligent device in the group, and can control the effect of all intelligent devices in the group, improve the control efficiency and improve the use experience of users.

Claims (14)

1. An apparatus connection method is applied to a user terminal, the user terminal establishes at least one group in advance and configures a group name and a corresponding group password for the group, and the apparatus connection method includes:
the user terminal acquires the equipment information of all equipment to be connected within the communication range of the user terminal;
the user terminal allocates at least one target device in all devices to be connected to a target group;
the user terminal updates the equipment information of the target equipment according to the group name and the group password corresponding to the target group;
the user terminal establishes communication connection with at least one target device in the target group according to a group password of the target group, wherein the group password is a password necessary for establishing communication connection with the target device;
the user terminal forwards the control instruction aiming at the target device to other target devices in the target grouping,
after the step of obtaining the device information of all the devices to be connected within the communication range of the user terminal, the method further comprises the following steps:
the user terminal sends a test instruction to the equipment to be connected so that the equipment to be connected performs a test action according to the test instruction;
the user terminal generates a test interface according to the test instruction;
the user terminal receives an input instruction input from the outside through the interface;
and when the input instruction is an instruction for determining that the test action is normal, determining the equipment to be connected as the target equipment.
2. The device connection method according to claim 1, wherein the user terminal establishes a communication connection with a background server in advance, the background server is configured with device information of all devices to be connected and a corresponding test instruction set in advance, and the test instruction set comprises a plurality of test instructions; before the step of the user terminal allocating at least one target device of all devices to be connected to a target group, the method further comprises:
the user terminal establishes communication connection with a background server;
the user terminal sends the equipment information to the background server so that the background server determines a corresponding test instruction set according to the equipment information;
and the user terminal receives at least one test instruction in the test instruction set.
3. The device connection method according to claim 1, wherein the ue is preconfigured with normal status information of the devices to be connected, and after the step of obtaining device information of all devices to be connected in a communication range of the ue, the method further comprises:
the user terminal sends a first test instruction to the equipment to be connected so that the equipment to be connected generates test result information according to the first test instruction;
the user terminal receives the test result information and determines whether the test result information is the normal state information;
and the user terminal determines the equipment to be connected, of which the test result information is the normal state information, as the target equipment.
4. The device connection method according to claim 1, wherein the ue is preconfigured with normal status information of the devices to be connected, and after the step of obtaining device information of all devices to be connected in a communication range of the ue, the method further comprises:
the user terminal sends a second test instruction to the equipment to be connected, wherein the second test instruction is configured to enable the equipment to be connected receiving the second test instruction to send response information;
the user terminal determines whether response information of the equipment to be connected is received;
and when the user terminal determines to receive the response information of the equipment to be connected, determining the equipment to be connected corresponding to the response information as the target equipment.
5. The device connection method according to any one of claims 1 to 4, wherein the step of forwarding the control instruction for the target device to other target devices in the target packet by the user terminal comprises:
the user terminal sends a control instruction to the target equipment;
the user terminal determines a target group corresponding to the target equipment according to the equipment information of the target equipment;
the user terminal determines the device information of all target devices contained in the target group;
and the user terminal sends the control instruction to all target devices in the target group.
6. The device connection method according to any one of claims 1 to 4, wherein all target devices in the target group establish an ad hoc network communication connection in advance so that one of the target devices in the target group can transmit the control instruction to other target devices in the target group through the ad hoc network communication connection, the device connection method further comprising:
after the target equipment receives the control instruction, determining the group name and the group password of the target group where the target equipment is located;
and the target equipment sends the control instruction to other target equipment in the target group where the target equipment is located according to the group name and the group password.
7. An apparatus connecting device, applied to a user terminal, wherein the user terminal establishes at least one packet in advance and configures a group name and a corresponding group password for the packet, the apparatus connecting device comprising:
the device searching module is configured to acquire device information of all devices to be connected in the communication range of the user terminal;
the distribution module is configured to distribute at least one target device in all the devices to be connected into a target group;
the assignment module is configured to update the device information of the target device according to the group name and the group password corresponding to the target group;
a communication module configured to establish a communication connection with at least one target device in the target group according to a group password of the target group, wherein the group password is a password necessary for establishing the communication connection with the target device;
a control module configured to forward the control instruction for the target device to other target devices in the target packet by the user terminal,
wherein, after the step of obtaining the device information of all devices to be connected within the communication range of the user terminal, the communication module is further configured to:
sending a test instruction to the equipment to be connected so that the equipment to be connected performs a test action according to the test instruction;
the device connecting device further comprises an interface generating module and an input module, wherein the interface generating module is configured to generate a test interface according to the test instruction;
the input module is configured to receive an input instruction input from the outside through the interface;
the assignment module is configured to determine the device to be connected as the target device when the input instruction is an instruction for determining that the test action is normal.
8. The device connection apparatus according to claim 7, wherein the user terminal establishes a communication connection with a backend server in advance, the backend server is configured with device information of all devices to be connected and a corresponding test instruction set in advance, and the test instruction set includes a plurality of test instructions; before the user terminal allocates at least one target device of all devices to be connected into a target group, the communication module is further configured to:
establishing communication connection with a background server;
sending the equipment information to the background server so that the background server determines a corresponding test instruction set according to the equipment information;
at least one test instruction in the set of test instructions is received.
9. The device connection apparatus according to claim 7, wherein the user terminal is preconfigured with normal state information of the device to be connected, and the communication module is further configured to:
sending a first test instruction to the equipment to be connected so that the equipment to be connected generates test result information according to the first test instruction;
receiving the test result information, and determining whether the test result information is the normal state information;
and determining the equipment to be connected with the test result information as the normal state information as the target equipment.
10. The device connection apparatus according to claim 7, wherein the user terminal is preconfigured with normal state information of the devices to be connected, and after the step of obtaining the device information of all the devices to be connected within the communication range of the user terminal, the communication module is further configured to:
sending a second test instruction to the equipment to be connected, wherein the second test instruction is configured to enable the equipment to be connected receiving the second test instruction to send response information;
the control module is configured to determine whether response information of the device to be connected is received; and when the user terminal determines to receive the response information of the equipment to be connected, determining the equipment to be connected corresponding to the response information as the target equipment.
11. The device connection apparatus according to any one of claims 7 to 10, wherein the method for the control module to forward the control instruction for the target device to other target devices in the target packet includes:
the user terminal sends a control instruction to the target equipment;
the user terminal determines a target group corresponding to the target equipment according to the equipment information of the target equipment;
the user terminal determines the device information of all target devices contained in the target group;
and the user terminal sends the control instruction to all target devices in the target group.
12. The device connection apparatus according to any one of claims 7 to 10, wherein all target devices in the target group establish an ad hoc network communication connection in advance, so that one of the target devices in the target group can transmit the control instruction to other target devices in the target group through the ad hoc network communication connection, and the target device further includes:
the command determining module is configured to determine the group name and the group password of the target group in which the target equipment is located after receiving the control command;
and the forwarding module is configured to send the control instruction to other target equipment in the target group where the target equipment is located according to the group name and the group password.
13. An electronic device, comprising a memory for storing executable program code and a processor for reading the executable program code stored in the memory to cause the electronic device to perform the method of any of claims 1-6.
14. A readable storage medium, the readable storage medium comprising a computer program, characterized in that: the computer program controls the electronic device in which the readable storage medium is executed to perform the device connection method according to any one of claims 1 to 6 when executed.
CN201880000626.9A 2018-05-31 2018-05-31 Device connection method and device, electronic device and readable storage medium Active CN108781174B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/089170 WO2019227371A1 (en) 2018-05-31 2018-05-31 Device connection method and apparatus, electronic device, and readable storage medium

Publications (2)

Publication Number Publication Date
CN108781174A CN108781174A (en) 2018-11-09
CN108781174B true CN108781174B (en) 2021-09-17

Family

ID=64029083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880000626.9A Active CN108781174B (en) 2018-05-31 2018-05-31 Device connection method and device, electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN108781174B (en)
WO (1) WO2019227371A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110380926A (en) * 2019-07-01 2019-10-25 珠海格力电器股份有限公司 Network automatic test approach, terminal and the computer-readable medium of networked devices
CN111860560B (en) * 2019-12-31 2023-12-08 北京骑胜科技有限公司 Model parameter adjustment method and device, electronic equipment and readable storage medium
CN111176130B (en) * 2020-01-07 2022-05-24 华为技术有限公司 Equipment control method, equipment control method and equipment control system
CN112565348A (en) * 2020-11-17 2021-03-26 华帝股份有限公司 Intelligent equipment testing method and system, computer equipment and storage medium
CN112788570A (en) * 2020-12-31 2021-05-11 广州技象科技有限公司 Internet of things equipment management method and device
CN114167739B (en) * 2021-11-29 2023-12-08 珠海格力电器股份有限公司 Equipment control method, system and device and electronic equipment
CN115376229B (en) * 2022-08-26 2023-11-07 广东好太太智能家居有限公司 Intelligent lock binding method and device, storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791032A (en) * 2016-05-04 2016-07-20 珠海格力电器股份有限公司 Test method for transport protocol between intelligent household electrical appliance and mobile terminal and test device thereof
CN105807617A (en) * 2014-12-30 2016-07-27 西安Tcl软件开发有限公司 Control method and control device for intelligent household devices
CN105979002A (en) * 2016-06-29 2016-09-28 联想(北京)有限公司 Information processing method and electronic equipment
WO2017172152A1 (en) * 2016-03-31 2017-10-05 Intel Corporation Registration of devices in secure domain
CN107566229A (en) * 2017-08-25 2018-01-09 西安电子科技大学 The packet control process of intelligent domestic system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105093942A (en) * 2014-10-26 2015-11-25 深圳市艾瑟网络技术有限公司 Intelligent household system and group control method based on the intelligent household system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807617A (en) * 2014-12-30 2016-07-27 西安Tcl软件开发有限公司 Control method and control device for intelligent household devices
WO2017172152A1 (en) * 2016-03-31 2017-10-05 Intel Corporation Registration of devices in secure domain
CN105791032A (en) * 2016-05-04 2016-07-20 珠海格力电器股份有限公司 Test method for transport protocol between intelligent household electrical appliance and mobile terminal and test device thereof
CN105979002A (en) * 2016-06-29 2016-09-28 联想(北京)有限公司 Information processing method and electronic equipment
CN107566229A (en) * 2017-08-25 2018-01-09 西安电子科技大学 The packet control process of intelligent domestic system

Also Published As

Publication number Publication date
WO2019227371A1 (en) 2019-12-05
CN108781174A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN108781174B (en) Device connection method and device, electronic device and readable storage medium
US9736760B2 (en) Commissioning a network system
CN109644522B (en) Method and system for securely loading devices over a wireless network
US7564804B2 (en) Method of assigning addresses to a plurality of devices on a network and a network system therefor
CN102461288B (en) The enhanced debugging of Radio Network System
CN108055339B (en) Household appliance interconnection method and device, storage medium and cloud platform server
CN111741509A (en) Network distribution method and device, storage medium and processor
CN111372222A (en) Device connection method and system, corresponding terminal device and server
CN108259523B (en) Data transmission method, Internet of things system and network access method
CN107395431B (en) Network construction method and device, equipment processing and accessing method and network equipment
CN110892737A (en) Network connection method, device and readable storage medium
US10939532B2 (en) Secure commissioning of wireless enabled lighting devices
CN110798815A (en) Intelligent household system, electric appliance control method and device and router
JP7405753B2 (en) Commissioning method and apparatus with controlled participation mode
CN111866856A (en) Mesh device control method and system, storage medium and electronic device
CN111683372A (en) Processing method and device of attribute information, processor and terminal
CN112311633A (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN104837146B (en) Configuration parameter distribution method, receiving method and device
CN109151014B (en) NAN-based intelligent management method and related product
US11888641B1 (en) Dynamic provisioning of IoT devices from an online application marketplace
CN111294734B (en) Ad hoc network method, device, computer readable storage medium and electronic equipment
US20240098457A1 (en) Distributed Maintenance of Operational Data Among IoT Devices, with Soft-Wiring or Other Configuration
US20240097931A1 (en) Decoupling IoT Devices with Soft-Wiring or other Configuration, Including Dynamic Variance of Control Group Pairings Based on Context Such as Time and/or Location
CN117412310A (en) Terminal equipment control method, device, storage medium and system
CN117917048A (en) Method, device, equipment and storage medium for configuring bridging 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