Disclosure of Invention
The embodiment of the invention provides a network distribution method and device for an intelligent household appliance and the intelligent household appliance, which can shorten the network distribution time of the intelligent household appliance.
In a first aspect, an embodiment of the present invention provides a network distribution method for an intelligent household appliance, including:
acquiring an air data packet;
according to the distribution network information carried in the air data packet, determining a distribution network protocol corresponding to the distribution network information from at least one pre-stored distribution network protocol;
acquiring distribution network data according to the determined distribution network protocol;
determining whether the distribution network data is complete;
and when the distribution network data is complete, establishing communication connection with an external mobile terminal for sending the distribution network data according to the distribution network data.
Preferably, the first and second electrodes are formed of a metal,
the acquiring of the distribution network data according to the determined distribution network protocol comprises the following steps:
determining a channel corresponding to the distribution network protocol and a physical address of a mobile terminal for sending the air data packet according to the determined distribution network protocol;
locking the channel and the physical address;
and receiving the distribution network data sent by the mobile terminal corresponding to the locked physical address through the locked channel.
Preferably, the first and second electrodes are formed of a metal,
after the acquiring distribution network data according to the determined distribution network protocol and before the determining whether the distribution network data is complete, further comprising:
recording the duration of acquiring the distribution network data;
when determining that the distribution network data is incomplete, further comprising:
determining whether the duration is not greater than a preset threshold;
if yes, executing the channel passing the locking, and receiving distribution network data sent by the mobile terminal corresponding to the physical address which is locked;
otherwise, deleting the distribution network data, and releasing the locked channel and the locked physical address; and performs the acquiring the over-the-air data packet.
Preferably, the first and second electrodes are formed of a metal,
when the distribution network data is complete, establishing communication connection with an external mobile terminal sending the distribution network data according to the distribution network data, including:
analyzing identification information corresponding to an external network connection device from the distribution network data, wherein the network connection device is connected with the mobile terminal;
and establishing communication connection with the network connection device according to the identification information, and establishing communication connection with the mobile terminal through the network connection device.
Preferably, the first and second electrodes are formed of a metal,
the establishing of the communication connection with the mobile terminal through the network connection device includes:
determining a discovery protocol corresponding to the distribution network protocol according to the distribution network protocol;
receiving a discovery packet sent by the mobile terminal through the network connection device according to the discovery protocol;
according to the discovery packet, sending a reply packet to the network connection device so that the network connection device sends the reply packet to the mobile terminal;
and establishing communication connection with the mobile terminal receiving the reply packet.
In a second aspect, an embodiment of the present invention provides a network distribution device for an intelligent home appliance, including: the device comprises an acquisition unit, a determination unit and a distribution network unit; wherein,
the acquiring unit is used for acquiring an air data packet;
the determining unit is used for determining a distribution network protocol corresponding to the distribution network information from at least one pre-stored distribution network protocol according to the distribution network information carried in the air data packet acquired by the acquiring unit;
and the distribution network unit is used for acquiring distribution network data according to the distribution network protocol determined by the determination unit, determining whether the distribution network data is complete, and establishing communication connection with an external mobile terminal for sending the distribution network data according to the distribution network data when the distribution network data is complete.
Preferably, the first and second electrodes are formed of a metal,
the distribution network unit is used for determining a channel corresponding to the distribution network protocol and a physical address of a mobile terminal sending the air data packet according to the determined distribution network protocol, and locking the channel and the physical address; and receiving the distribution network data sent by the mobile terminal corresponding to the locked physical address through the locked channel.
Preferably, the first and second electrodes are formed of a metal,
the distribution network unit is further used for recording the duration of obtaining the distribution network data after executing the distribution network protocol determined by the determination unit and obtaining the distribution network data; when the distribution network data are determined to be incomplete, determining whether the duration is not greater than a preset threshold value, if so, executing the locked channel, and receiving the distribution network data sent by the mobile terminal corresponding to the locked physical address; otherwise, deleting the distribution network data, releasing the locked channel and the locked physical address, and triggering the acquisition unit.
Preferably, the first and second electrodes are formed of a metal,
the distribution network unit is used for analyzing identification information corresponding to an external network connecting device from the distribution network data, wherein the network connecting device is connected with the mobile terminal; and establishing communication connection with the network connection device according to the identification information, and establishing communication connection with the mobile terminal through the network connection device.
In a third aspect, an embodiment of the present invention provides an intelligent home appliance, including: the intelligent household appliance comprises an intelligent household appliance body and the network distribution device provided by any one of the embodiments of the invention; wherein,
the intelligent household appliance body is used for establishing communication connection with an external mobile terminal through the distribution network device.
The embodiment of the invention provides a network distribution method and device for an intelligent household appliance and the intelligent household appliance. Therefore, the automatic network distribution of the intelligent household appliances is realized, and a user does not need to manually check and input corresponding information, so that the network distribution time of the intelligent household appliances is shortened.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a network distribution method for an intelligent household appliance, where the method may include the following steps:
step 101: acquiring an air data packet;
step 102: according to the distribution network information carried in the air data packet, determining a distribution network protocol corresponding to the distribution network information from at least one pre-stored distribution network protocol;
step 103: acquiring distribution network data according to the determined distribution network protocol;
step 104: determining whether the distribution network data is complete;
step 105: and when the distribution network data is complete, establishing communication connection with an external mobile terminal for sending the distribution network data according to the distribution network data.
In the above embodiment, by automatically acquiring the aerial data packet, when the aerial data packet carries the distribution network information corresponding to the pre-stored distribution network protocol, the distribution network data is acquired according to the corresponding distribution network protocol, and when the acquired distribution network data is complete, the communication connection with the mobile terminal that sends the distribution network data is established according to the complete distribution network data. Therefore, the automatic network distribution of the intelligent household appliances is realized, and a user does not need to manually check and input corresponding information, so that the network distribution time of the intelligent household appliances is shortened.
In addition, in the prior art, since different service platforms correspond to different distribution network protocols, in order for a manufacturer to sell the same type of intelligent household appliances on different service platforms, the intelligent household appliances need to be configured differently in the development stage of the intelligent household appliances according to the distribution network protocols of the different service platforms. In the embodiment, because a plurality of distribution network protocols are stored in advance, each distribution network protocol corresponds to different e-commerce platforms, after an aerial data packet is captured, distribution network information carried in the aerial data packet is automatically matched with each pre-stored distribution network protocol, namely, the method supports the distribution network protocols of a plurality of e-commerce, and the method can realize docking with the e-commerce platforms with different communication protocols by once configuration, so that the development period of an intelligent household appliance in a distribution network stage when docking with each e-commerce platform is effectively shortened.
In an embodiment of the present invention, the specific implementation of step 103 may include:
determining a channel corresponding to the distribution network protocol and a physical address of a mobile terminal for sending the air data packet according to the determined distribution network protocol;
locking the channel and the physical address;
and receiving the distribution network data sent by the mobile terminal corresponding to the locked physical address through the locked channel.
For example, after a mobile terminal (e.g., a mobile phone) is connected to a router, an APP for controlling an intelligent appliance on the mobile phone is opened, and then a multicast/broadcast packet is sent according to a distribution network protocol of a service platform corresponding to the APP, where the multicast/broadcast packet includes identification data corresponding to the distribution network protocol and having a fixed meaning. The intelligent household appliance enters a fast connection mode after being started, and then cyclically captures an air data packet on a plurality of channels in the fast connection mode, wherein the air data packet can be a multicast/broadcast packet sent by a mobile phone or a data packet sent by other terminals.
If the effective distribution network information exists in the air data packet captured by the intelligent household appliance, the air data packet is a multicast/broadcast packet sent by the mobile phone. At this time, the distribution network protocol corresponding to the distribution network information is determined, in the process, the distribution network protocol is mainly matched according to the identification data in the air data packet, for example, the identification data corresponding to the distribution network protocol 1 is numbers 1, 2 and 3, the identification data corresponding to the distribution network protocol 2 is numbers 3, 4 and 5, and if the effective data in the received air data packet is numbers 1, 2 and 3, the air data packet is matched with the distribution network protocol 1.
After the distribution network protocol is determined, determining a channel corresponding to the distribution network protocol, namely a channel receiving an air data packet and a physical address of a mobile terminal sending the air data packet, locking the determined channel and the physical address of a mobile phone sending the air data packet, and continuously receiving distribution network data sent by the mobile phone through the locked channel so as to avoid interference of other terminals in the environment on the current distribution network. For example, when other terminals also send data packets through the channel, the physical address of the other terminals is different from the locked physical address, so that the intelligent household appliance only receives the data packets and does not process the data packets. And when other terminals send data packets through other channels except the locked channel, the intelligent household appliance does not receive the data packets of other channels. Therefore, the data processing efficiency of the intelligent household appliances is improved, and the distribution network efficiency of the intelligent household appliances is further improved.
In an embodiment of the present invention, after step 103 and before step 104, further comprising:
recording the duration of acquiring the distribution network data;
when determining that the distribution network data is incomplete, further comprising:
determining whether the duration is not greater than a preset threshold;
if yes, executing the channel passing the locking, and receiving distribution network data sent by the mobile terminal corresponding to the physical address which is locked;
otherwise, deleting the distribution network data, and releasing the locked channel and the locked physical address; and performs the acquiring the over-the-air data packet.
Here, when the mobile terminal sends the distribution network data, the distribution network data may be sent through a plurality of data packets, and therefore, if a certain data packet fails in a transmission process, for example, transmission delay or loss occurs, the distribution network data received by the intelligent household appliance will be incomplete. Therefore, in order to guarantee the smooth operation of the distribution network of the intelligent household appliance, when the distribution network data is obtained, the timer is used for starting timing, when the distribution network data is determined to be incomplete, whether the duration for obtaining the distribution network data is not greater than a preset threshold value is judged, and whether the duration for obtaining the distribution network data is overtime is judged.
When the time length is not greater than the preset threshold value, probably because the intelligent household appliances do not completely receive the distribution network data in a short time, the distribution network data sent by the mobile terminal are continuously received according to the locked channel until the complete distribution network data are received, and then the intelligent household appliances are distributed with the network according to the complete distribution network data. When the duration is greater than the preset threshold, the process of acquiring the distribution network data is over time, and the data packet corresponding to the distribution network data fails to be transmitted in the transmission process or the mobile terminal fails to transmit the distribution network data, so that if the transmission of the data packet is continuously waited, the duration of the distribution network of the intelligent household appliance is possibly prolonged, and the complete distribution network data cannot be received finally after long-time waiting. Therefore, the locked channel and the physical address are released, the aerial data packet is grabbed again, and the corresponding distribution network protocol is matched again for the new aerial data packet. Therefore, the influence of mistaken locking on the intelligent household appliance distribution network can be avoided, and the efficiency of the intelligent household appliance distribution network is further improved.
In an embodiment of the present invention, the step 105 may be implemented by: analyzing identification information corresponding to an external network connection device from the distribution network data, wherein the network connection device is connected with the mobile terminal;
and establishing communication connection with the network connection device according to the identification information, and establishing communication connection with the mobile terminal through the network connection device.
For example, the mobile terminal breaks identification information corresponding to the network connection device connected to the mobile terminal, such as a Service Set Identifier (SSID) and a password, into a plurality of parts, encrypts the parts respectively to form different data packets, and sends the different data packets, after the intelligent appliance receives all the data packets, that is, receives complete distribution network data, the mobile terminal analyzes the SSID and the password of the network connection device from each data packet according to the determined distribution network protocol, and then establishes communication connection with the corresponding network connection device according to the analyzed SSID and the analyzed password. Therefore, the mobile terminal and the intelligent household appliance are connected with the same network connection device, and communication connection is established. The process does not need to add other equipment, is simple and convenient, and is beneficial to improving the user experience.
In an embodiment of the present invention, the establishing a communication connection with the mobile terminal through the network connection device includes:
determining a discovery protocol corresponding to the distribution network protocol according to the distribution network protocol;
receiving a discovery packet sent by the mobile terminal through the network connection device according to the discovery protocol;
according to the discovery packet, sending a reply packet to the network connection device so that the network connection device sends the reply packet to the mobile terminal;
and establishing communication connection with the mobile terminal receiving the reply packet.
When the mobile terminal sends the discovery packet and the over-the-air data packet, the mobile terminal may perform a preset mode, for example, during data sending within 1min, the over-the-air data packet (distribution network data packet) and the discovery packet are sent alternately, and during the first 40s within 1min, the over-the-air data packet is mainly sent, for example, the distribution network data packet is sent repeatedly for 100 times within the first 40s, and meanwhile, the discovery packet is sent 10 times at intervals within the time period. In addition, the discovery packet is mainly sent in the last 20s within 1min, for example, the discovery packet is repeatedly sent for 50 times in the last 20s, and meanwhile, the distribution network data packets are sent for 10 times at intervals in the time period. Therefore, when the air data packet sent by the mobile terminal is matched with the intelligent household appliance, the mobile terminal can timely receive a reply packet replied by the intelligent household appliance according to the discovery packet.
When the mobile terminal sends the discovery packet, the discovery packet is sent through a fixed port of a network connection device (such as a router), and after the intelligent household appliance is connected to the network connection device, for example, after the intelligent air conditioner and a mobile phone of a user are connected to the same router, the intelligent air conditioner determines a discovery protocol corresponding to the determined distribution network protocol according to the determined distribution network protocol, and starts a corresponding discovery flow. According to the determined discovery protocol, the fixed port of the mobile phone when sending the discovery packet can be determined, and then the discovery packet sent to the router by the mobile phone can be obtained from the determined fixed port by using the discovery process. After the intelligent air conditioner receives the discovery packet, if the fact that the information carried in the discovery packet is matched with the obtained distribution network data is detected, a corresponding reply packet is sent to the router, and the router forwards the reply packet to the mobile phone. When the mobile phone receives the reply packet, the mobile phone establishes communication connection with the intelligent air conditioner, and the distribution network of the intelligent household appliance is completed. Through the interactive mode of sending of discovery package and reply package, intelligent household electrical appliances pass through network connection device and establish communication connection with mobile terminal to be convenient for the later stage to control intelligent household electrical appliances through mobile terminal.
The following describes in detail a network distribution method for an intelligent household appliance according to an embodiment of the present invention, taking an example in which an intelligent air conditioner is connected to a mobile phone through a router, as shown in fig. 2, the method may include the following steps:
step 201: and acquiring an air data packet.
After the mobile phone is connected to the router, the APP for controlling the intelligent household appliances on the mobile phone is opened, and then the multicast/broadcast packet is sent according to the distribution network protocol of the service platform corresponding to the APP. After the intelligent air conditioner is started, the intelligent air conditioner enters a fast connection mode, and then cyclically captures an air data packet on a plurality of channels in the fast connection mode, wherein the air data packet can be a multicast/broadcast packet sent by a mobile phone or a data packet sent by other terminals.
Step 202: and according to the distribution network information carried in the air data packet, determining a distribution network protocol corresponding to the distribution network information from at least one pre-stored distribution network protocol.
If the effective distribution network information exists in the air data packet captured by the intelligent air conditioner, the air data packet is a multicast/broadcast packet sent by the mobile phone. The multicast/broadcast packet is the identification data which corresponds to the distribution network protocol and has fixed meaning. After the intelligent air conditioner receives the multicast/broadcast packet, a distribution network protocol corresponding to the distribution network information is determined, in the process, the distribution network protocol is mainly matched according to identification data in the air data packet, for example, the identification data corresponding to the distribution network protocol 1 are numbers 1, 2 and 3, the identification data corresponding to the distribution network protocol 2 are numbers 3, 4 and 5, and if the effective data in the received air data packet is numbers 1, 2 and 3, the air data packet is matched with the distribution network protocol 1.
Step 203: and according to the determined distribution network protocol, determining a channel corresponding to the distribution network protocol and a physical address of a mobile terminal sending the air data packet, and locking the channel and the physical address.
Step 204: and receiving the distribution network data sent by the mobile phone corresponding to the locked physical address through the locked channel.
The main reason for locking the channel and the physical address is to avoid the interference of other mobile phones in the environment to the current distribution network. For example, when other mobile phones also send a data packet through the channel, the physical address of the other mobile phones is different from the locked physical address, so that the intelligent air conditioner only receives the data packet and does not process the data packet. And when other mobile phones send data packets through other channels except the locked channel, the intelligent air conditioner does not receive the data packets of other channels.
Step 205: and recording the duration of acquiring the distribution network data.
Step 206: and judging whether the distribution network data is complete, if so, executing step 209, otherwise, executing step 207.
Step 207: and judging whether the duration for acquiring the distribution network data is not greater than a preset threshold, if so, executing step 204, otherwise, executing step 208.
When the mobile phone sends the distribution network data, the distribution network data may be sent through a plurality of data packets, and therefore, if a certain data packet fails in the transmission process, for example, transmission delay or loss occurs, the distribution network data received by the intelligent air conditioner will be incomplete. Therefore, in order to guarantee the smooth operation of the intelligent air conditioner distribution network, when the distribution network data is obtained, the timer is used for starting timing, when the distribution network data is determined to be incomplete, whether the duration for obtaining the distribution network data is not greater than a preset threshold value is judged, and whether the duration for obtaining the distribution network data is overtime is judged.
When the duration is not greater than the preset threshold, probably because the intelligent air conditioner has not completely received the distribution network data in a short time, the distribution network data sent by the mobile phone continues to be received according to the locked channel.
Step 208: and deleting the distribution network data, releasing the locked channel and the locked physical address, and executing the step 201.
When the duration is greater than the preset threshold, the process of acquiring the distribution network data is over time, and the data packet corresponding to the distribution network data fails to be transmitted in the transmission process or the mobile phone fails to transmit the distribution network data, so that if the transmission of the data packet is continuously waited, the duration of the distribution network of the intelligent air conditioner is possibly prolonged, and the complete distribution network data cannot be received finally after long-time waiting. Therefore, the locked channel and the physical address are released, the aerial data packet is grabbed again, and the corresponding distribution network protocol is matched again for the new aerial data packet.
Step 209: and analyzing identification information corresponding to the router from the distribution network data, and establishing communication connection with the router according to the identification information, wherein the router is connected with the mobile phone.
For example, the mobile phone splits identification information, such as SSID and password, corresponding to a router connected to the mobile phone into a plurality of parts, encrypts the identification information, such as SSID and password, into a plurality of parts, encrypts the parts respectively, and then forms different data packets to be sent, when the intelligent air conditioner receives all the data packets, that is, receives complete distribution network data, the SSID and the password of the router are analyzed from each data packet according to the determined distribution network protocol, and then communication connection is established with the corresponding router according to the analyzed SSID and the analyzed password.
Step 210: and determining a discovery protocol corresponding to the distribution network protocol according to the distribution network protocol, receiving a discovery packet sent by the mobile phone through the router according to the discovery protocol, and sending a reply packet to the router according to the discovery packet so that the router sends the reply packet to the mobile phone and establishes communication connection with the mobile phone receiving the reply packet.
When the mobile phone sends the discovery packet and the air data packet, the mobile phone may perform a preset mode, for example, during data sending within 1min, the air data packet (distribution network data packet) and the discovery packet are sent alternately, and during the first 40s within 1min, the air data packet is mainly sent, for example, during the first 40s, the distribution network data packet is sent repeatedly for 100 times, and meanwhile, during the time period, the discovery packet is sent 10 times at intervals. In addition, the discovery packet is mainly sent in the last 20s within 1min, for example, the discovery packet is repeatedly sent for 50 times in the last 20s, and meanwhile, the distribution network data packets are sent for 10 times at intervals in the time period. Therefore, when the air data packet sent by the mobile phone is matched with the intelligent air conditioner, the mobile phone can timely receive a reply packet replied by the intelligent air conditioner according to the discovery packet.
When the mobile terminal sends the discovery packet, the discovery packet is sent through a fixed port of the router, and after the intelligent air conditioner and the mobile phone are connected to the same router, the intelligent air conditioner determines a discovery protocol corresponding to the determined distribution network protocol according to the determined distribution network protocol and starts a corresponding discovery process. According to the determined discovery protocol, the fixed port of the mobile phone when sending the discovery packet can be determined, and then the discovery packet sent to the router by the mobile phone can be obtained from the determined fixed port by using the discovery process. After the intelligent air conditioner receives the discovery packet, if the fact that the information carried in the discovery packet is matched with the obtained distribution network data is detected, a corresponding reply packet is sent to the router, and the router forwards the reply packet to the mobile phone. When the mobile phone receives the reply packet, the mobile phone establishes communication connection with the intelligent air conditioner, and the distribution network of the intelligent household appliance is completed.
In the above embodiment, the intelligent air conditioner automatically acquires the aerial data packet, acquires the distribution network data according to the corresponding distribution network protocol when the aerial data packet carries the distribution network information corresponding to the pre-stored distribution network protocol, and establishes communication connection with the mobile terminal sending the distribution network data according to the complete distribution network data when the acquired distribution network data is complete. Therefore, the automatic network distribution of the intelligent air conditioner is realized, and a user does not need to manually check and input corresponding information, so that the network distribution time of the intelligent air conditioner is shortened.
In addition, in the prior art, since different service platforms correspond to different distribution network protocols, in order for a manufacturer to sell the same type of intelligent household appliances on different service platforms, the intelligent household appliances need to be configured differently in the development stage of the intelligent household appliances according to the distribution network protocols of the different service platforms. In the embodiment, because a plurality of distribution network protocols are stored in advance, each distribution network protocol corresponds to different e-commerce platforms, after an aerial data packet is captured, distribution network information carried in the aerial data packet is automatically matched with each pre-stored distribution network protocol, namely, the method supports the distribution network protocols of a plurality of e-commerce, and the method can realize docking with the e-commerce platforms with different communication protocols by once configuration, so that the development period of an intelligent household appliance in a distribution network stage when docking with each e-commerce platform is effectively shortened.
As shown in fig. 3, an embodiment of the present invention provides a network distribution device for an intelligent home appliance, including: an acquisition unit 301, a determination unit 302 and a distribution network unit 303; wherein,
the acquiring unit 301 is configured to acquire an over-the-air data packet;
the determining unit 302 is configured to determine, according to the distribution network information carried in the air data packet acquired by the acquiring unit 301, a distribution network protocol corresponding to the distribution network information from at least one pre-stored distribution network protocol;
the distribution network unit 303 is configured to obtain distribution network data according to the distribution network protocol determined by the determining unit 302, determine whether the distribution network data is complete, and establish a communication connection with an external mobile terminal that sends the distribution network data according to the distribution network data when the distribution network data is complete.
In an embodiment of the present invention, the distribution network unit 303 is configured to determine, according to the determined distribution network protocol, a channel corresponding to the distribution network protocol and a physical address of a mobile terminal that sends the air data packet, and lock the channel and the physical address; and receiving the distribution network data sent by the mobile terminal corresponding to the locked physical address through the locked channel.
In an embodiment of the present invention, the distribution network unit 303 is further configured to record a duration of obtaining the distribution network data after executing the distribution network protocol determined by the determining unit and obtaining the distribution network data; when the distribution network data are determined to be incomplete, determining whether the duration is not greater than a preset threshold value, if so, executing the locked channel, and receiving the distribution network data sent by the mobile terminal corresponding to the locked physical address; otherwise, deleting the distribution network data, releasing the locked channel and the locked physical address, and triggering the acquisition unit.
In an embodiment of the present invention, the distribution network unit 303 is configured to analyze identification information corresponding to an external network connection device from the distribution network data, where the network connection device is connected to the mobile terminal; and establishing communication connection with the network connection device according to the identification information, and establishing communication connection with the mobile terminal through the network connection device.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
As shown in fig. 4, an embodiment of the present invention provides an intelligent home appliance, including: an intelligent appliance body 401 and a network distribution device 402 provided by any of the above embodiments of the present invention; wherein,
the intelligent household appliance body 401 is used for establishing communication connection with an external mobile terminal through the distribution network device 402.
In this embodiment, the intelligent household appliance body automatically establishes communication connection with an external mobile terminal through the distribution network device, and a user does not need to manually input corresponding information on the intelligent household appliance body, so that the distribution network time of the intelligent household appliance is shortened.
The invention also provides a readable medium comprising executable instructions which, when executed by a processor of a storage controller, cause the storage controller to perform a method as provided by any of the above-described embodiments of the invention.
In addition, the present invention also provides a memory controller comprising: a processor, a memory, and a bus; the memory is used for storing execution instructions, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instructions stored in the memory, so that the storage controller executes the method provided by any one of the above embodiments of the invention.
In summary, the embodiments of the present invention have at least the following advantages:
1. in the embodiment of the invention, by automatically acquiring the aerial data packet, when the aerial data packet carries the distribution network information corresponding to the pre-stored distribution network protocol, the distribution network data is acquired according to the corresponding distribution network protocol, and when the acquired distribution network data is complete, the communication connection with the mobile terminal sending the distribution network data is established according to the complete distribution network data. Therefore, the automatic network distribution of the intelligent household appliances is realized, and a user does not need to manually check and input corresponding information, so that the network distribution time of the intelligent household appliances is shortened.
2. In the embodiment of the invention, various distribution network protocols are stored, each distribution network protocol corresponds to different e-commerce platforms, after an aerial data packet is captured, distribution network information carried in the aerial data packet is automatically matched with each pre-stored distribution network protocol, namely the method supports the distribution network protocols of a plurality of e-commerce, and the method can realize the butt joint with the e-commerce platforms with different communication protocols by once configuration, thereby effectively shortening the development period of the intelligent household appliance in a distribution network stage when the intelligent household appliance is in butt joint with each e-commerce platform.
3. In the embodiment of the invention, when the distribution network data is determined to be complete, the identification information corresponding to the network connecting device is obtained by summarizing and analyzing the distribution network data, the communication connection with the network connecting device is established according to the identification information, and the communication connection with the mobile terminal is established through the network connecting device. Therefore, the mobile terminal and the intelligent household appliance are connected with the same network connection device, and communication connection is established. The process does not need to add other equipment, is simple and convenient, and is beneficial to improving the user experience.
4. In the embodiment of the invention, after the intelligent household appliance establishes communication connection with the network connection device, the network connection device receives a discovery packet sent by the mobile terminal to the network connection device, and sends a reply packet to the network connection device according to the discovery packet, so that the network connection device sends the reply packet to the mobile terminal, and the communication connection with the mobile terminal receiving the reply packet is established. Through the interactive mode of sending of discovery package and reply package, intelligent household electrical appliances pass through network connection device and establish communication connection with mobile terminal to be convenient for the later stage to control intelligent household electrical appliances through mobile terminal.
5. In the embodiment of the invention, when the distribution network data is determined to be incomplete, determining whether the duration for acquiring the distribution network data is not greater than a preset threshold value, if so, continuing to receive the distribution network data according to the locked channel and the physical address; otherwise, deleting the received distribution network data, releasing the locked channel and physical address, and re-acquiring the air data packet. Therefore, the influence of mistaken locking on the intelligent household appliance distribution network can be avoided, and the efficiency of the intelligent household appliance distribution network is further improved.
6. In the embodiment of the invention, according to the determined distribution network protocol, the channel corresponding to the distribution network protocol and the physical address of the mobile terminal for sending the air data packet are determined, and the channel and the physical address are locked. And then, receiving the distribution network data sent by the mobile terminal corresponding to the physical address through the locked channel. Therefore, the interference of other terminals in the environment to the distribution network can be avoided, the data processing efficiency of the intelligent household appliances is improved, and the distribution network efficiency of the intelligent household appliances is improved.
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 a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.