CN-122027384-A - Method and device for accessing intelligent household appliance into home system and related equipment
Abstract
The application discloses a method, a device and related equipment for accessing intelligent household appliances into a household system, wherein the method comprises the steps of broadcasting equipment query information to be accessed, wherein the equipment query information to be accessed comprises a preset bit query command for a preset equipment identification code, and distributing a communication address for the equipment to be accessed according to the response access information and a preset communication address distribution rule if response access information of the equipment to be accessed for the equipment query information is obtained and the communication address distribution condition is met, wherein the response access information comprises the preset equipment identification code of the equipment to be accessed. The scheme disclosed by the application can inquire the actually existing equipment to be accessed, and improves the inquiring efficiency of the equipment to be accessed.
Inventors
- LIN ZEYANG
Assignees
- 青岛海尔智能家电科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260129
Claims (10)
- 1. A method for accessing an intelligent home appliance to a home system, comprising: Broadcasting query information of equipment to be accessed, wherein the query information of the equipment to be accessed comprises a preset bit query command for a preset equipment identification code; If the response access information of the equipment to be accessed aiming at the equipment query information is obtained and meets the communication address allocation condition, the communication address is allocated to the equipment to be accessed according to the response access information and the preset communication address allocation rule, wherein the response access information comprises the preset equipment identification code of the equipment to be accessed.
- 2. The method for accessing a smart home appliance to a home system according to claim 1, further comprising, before the broadcasting the query information of the device to be accessed: Determining the query bit position and the query bit value of the query information of the equipment to be accessed according to the broadcasted historical query information of the equipment to be accessed; And generating the query information of the equipment to be accessed according to the query bit position and the query bit value based on the query information construction rule of the equipment to be accessed.
- 3. The method for accessing an intelligent home appliance to a home system according to claim 1, wherein if response access information of a device to be accessed to the device query information is obtained, determining whether the obtained response access information meets a communication address allocation condition comprises: Determining the number of the acquired response access information in a preset response window after the query information of the equipment to be accessed is broadcasted; And if the number of the response access information is one, determining that the acquired response access information accords with the communication address allocation condition.
- 4. The method for accessing an intelligent home appliance to a home system according to claim 3, wherein the allocating a communication address to the device to be accessed according to the response access information and a preset communication address allocation rule comprises: extracting a device type from the preset device identification code in the response access information; determining the address allocation priority of the equipment to be accessed according to the equipment type and the preset type priority; and distributing the corresponding communication address to the equipment to be accessed according to the address distribution priority.
- 5. The method for accessing an intelligent home appliance to a home system according to claim 4, further comprising, before the allocating a communication address to the device to be accessed according to the response access information and a preset communication address allocation rule: inquiring whether the historical communication address of the equipment to be accessed exists in the historical address data according to the preset equipment identification code; and if the historical communication address does not exist in the historical address data or the historical communication address exists in the historical address data and is unavailable, distributing the communication address to the equipment to be accessed.
- 6. The method for accessing a smart home appliance to a home system according to claim 1, further comprising, after the broadcasting the query information of the device to be accessed: If the response access information is acquired and the response access information accords with a recursion query condition, generating a recursion bit query command according to the preset bit query command; And broadcasting the query information of the device to be accessed comprising the recursive bit query command.
- 7. The method for accessing a smart home appliance to a home system according to any one of claims 1 to 6, further comprising, after the allocating a communication address to the device to be accessed according to the response access information and a preset communication address allocation rule: And if the equipment to be accessed is accessed to the home system, storing the preset equipment identification code, the communication address and the first access time of the access equipment.
- 8. An apparatus for accessing an intelligent home appliance to a home system, comprising: The query information broadcasting module is used for broadcasting query information of equipment to be accessed, wherein the query information of the equipment to be accessed comprises a preset bit query command for a preset equipment identification code; and the communication address allocation module is used for allocating a communication address to the equipment to be accessed according to the response access information and a preset communication address allocation rule if the response access information of the equipment to be accessed aiming at the equipment query information is acquired and the communication address allocation condition is met, wherein the response access information comprises the preset equipment identification code of the equipment to be accessed.
- 9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of accessing the smart home appliance of any one of claims 1 to 7 to a home system.
- 10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of accessing the smart home appliance of any one of claims 1 to 7 to the home system by means of the computer program.
Description
Method and device for accessing intelligent household appliance into home system and related equipment Technical Field The application relates to the field of intelligent home, in particular to a method, a device and related equipment for accessing intelligent home appliances into a home system. Background With the progress of technology and the development of internet of things, smart home has gained general attention, and smart home appliances are increasingly appearing in the home. The existing intelligent household appliances need to be accessed into an intelligent household system, and networking communication is carried out through intelligent gateway equipment. Then the intelligent gateway device needs to assign a communication address to the intelligent home device. Particularly, some intelligent household appliances with wired communication, such as intelligent lighting or intelligent curtains, can be connected into an intelligent household system by adopting equipment with an RS485 interface. In the prior art, the intelligent household appliance needs to manually configure the communication address of the appliance, and the gateway device needs to be configured with the model information of the access device. The communication address allocation mode is poor in flexibility, needs professionals to configure the devices to be accessed one by one, is low in efficiency, and can cause communication address conflict among the devices in the intelligent home system of multi-device deployment. Disclosure of Invention The embodiment of the application provides a method, a device and related equipment for accessing intelligent household appliances into a home system, and aims to inquire and access to a network aiming at the actually-existing equipment to be accessed and improve the inquiring efficiency of the equipment to be accessed. According to an aspect of the embodiment of the present application, there is provided a method for accessing an intelligent home appliance to a home system, including: Broadcasting query information of equipment to be accessed, wherein the query information of the equipment to be accessed comprises a preset bit query command for a preset equipment identification code; If the response access information of the equipment to be accessed aiming at the equipment query information is obtained and meets the communication address allocation condition, the communication address is allocated to the equipment to be accessed according to the response access information and the preset communication address allocation rule, wherein the response access information comprises the preset equipment identification code of the equipment to be accessed. In an optional embodiment, before the broadcasting the query information of the device to be accessed, the method further includes: Determining the query bit position and the query bit value of the query information of the equipment to be accessed according to the broadcasted historical query information of the equipment to be accessed; And generating the query information of the equipment to be accessed according to the query bit position and the query bit value based on the query information construction rule of the equipment to be accessed. In an optional implementation manner, if response access information of the device to be accessed for the device query information is obtained, determining whether the obtained response access information meets a communication address allocation condition includes: Determining the number of the acquired response access information in a preset response window after the query information of the equipment to be accessed is broadcasted; And if the number of the response access information is one, determining that the acquired response access information accords with the communication address allocation condition. In an optional implementation manner, the allocating a communication address to the device to be accessed according to the response access information and a preset communication address allocation rule includes: extracting a device type from the preset device identification code in the response access information; determining the address allocation priority of the equipment to be accessed according to the equipment type and the preset type priority; and distributing the corresponding communication address to the equipment to be accessed according to the address distribution priority. In an optional embodiment, before the allocating a communication address to the device to be accessed according to the response access information and a preset communication address allocation rule, the method further includes: inquiring whether the historical communication address of the equipment to be accessed exists in the historical address data according to the preset equipment identification code; and if the historical communication address does not exist in the historical address data or the historical communication