Content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
For this reason, the first of the present invention purpose is to propose a kind of distribution method of household electrical appliance so that mobile terminal can
Simultaneously to supporting broadcast or the household electrical appliance of multicast networking to be controlled, facilitate user and pass through mobile terminal to broadcast or multicast
The household electrical appliance networking are managed collectively, and facilitating user is household electrical appliance distribution, improves user experience.
Third object of the present invention is to propose a kind of distribution method of household electrical appliance.
Third object of the present invention is to propose a kind of distribution network systems of household electrical appliance.
Fourth object of the present invention is to propose a kind of mobile terminal.
5th purpose of the present invention is to propose a kind of household electrical appliance.
For achieving the above object, first aspect present invention embodiment proposes a kind of distribution method of household electrical appliance, including
Following steps:Obtain the access information of router;Multicast ip address is arranged according to described access information, and generates multicast packets;Root
The length of broadcast packet is set according to described access information, and described broadcast packet is generated according to the length of described broadcast packet;Alternately send out
Send described multicast packets and described broadcast packet so that household electrical appliance obtain described access letter according to described multicast packets or described broadcast packet
Breath.
The distribution method of household electrical appliance according to embodiments of the present invention, after the access information obtaining router, according to connecing
Enter information and generate broadcast packet and multicast packets, and alternately send broadcast packet and multicast packets, as a result, mobile terminal can be simultaneously right
Support that broadcast or the household electrical appliance of multicast networking are controlled, facilitate user and pass through what mobile terminal networked to broadcast or multicast
Household electrical appliance are managed collectively, and facilitating user is household electrical appliance distribution, improves user experience.
In one embodiment of the invention, the MAC Address of described multicast packets is corresponding with described IP address.
In one embodiment of the invention, the length of described broadcast packet is more than 2 bits and is less than or equal to 9 bits.
In one embodiment of the invention, also include:
Described household electrical appliance extract the access information in described broadcast packet or multicast packets, and are accessed according to described access information
Router.
In one embodiment of the invention, also include:
Generate broadcast packet or the multicast packets of auxiliary.
For achieving the above object, second aspect present invention embodiment proposes a kind of distribution method of household electrical appliance, including
Following steps:Receive multicast packets or the broadcast packet that mobile terminal sends;According to described multicast packets or described broadcast packet obtain
The access information of router.
The distribution method of household electrical appliance according to embodiments of the present invention, household electrical appliance receive the multicast packets that mobile terminal sends
Or broadcast packet, and the access information from broadcast packet or multicast packets acquisition router, as a result, household electrical appliance can be by mobile whole
The access information of router is obtained, household electrical appliance obtain the mode simple and fast of the access information of router, and then can carry in end
The networking efficiency of high household electrical appliance.
In one embodiment of the invention, also include:
Described router is accessed according to described access information.
In one embodiment of the invention, also include:
Receive the broadcast packet of auxiliary or the multicast packets that described mobile terminal sends, and the broadcast packet according to described auxiliary or group
Broadcast bag lock channel.
For achieving the above object, third aspect present invention embodiment proposes a kind of distribution network systems of household electrical appliance, described
System includes mobile terminal and router, wherein:Described mobile terminal, for obtaining the access information of router, and according to institute
State access information setting multicast ip address, and generate multicast packets, and the length of broadcast packet is set according to described access information, and
Length according to described broadcast packet generates described broadcast packet, and alternately sends described multicast packets and described broadcast packet;Described family
Electrical appliance, the multicast packets sending for receiving router or broadcast packet, and obtain institute according to described multicast packets or described broadcast packet
State the access information of router.
The distribution network systems of household electrical appliance according to embodiments of the present invention, after the access information obtaining router, according to connecing
Enter information and generate broadcast packet and multicast packets, and alternately send broadcast packet and multicast packets, as a result, mobile terminal can be simultaneously right
Support that broadcast or the household electrical appliance of multicast networking are controlled, facilitate user and pass through what mobile terminal networked to broadcast or multicast
Household electrical appliance are managed collectively, and facilitating user is household electrical appliance distribution, improves user experience.
In one embodiment of the invention, the MAC Address of described multicast packets is corresponding with described IP address.
In one embodiment of the invention, the length of described broadcast packet is more than 2 bits and is less than or equal to 9 bits.
In one embodiment of the invention, described household electrical appliance, are additionally operable to:Route is accessed according to described access information
Device.
In one embodiment of the invention, described mobile terminal, is additionally operable to:
Generate broadcast packet or the multicast packets of auxiliary.
In one embodiment of the invention, described household electrical appliance, are additionally operable to:
Receive the broadcast packet of described auxiliary or the multicast packets that described mobile terminal sends, and the broadcast packet according to described auxiliary
Or multicast packets lock channel.
For achieving the above object, fourth aspect present invention embodiment proposes a kind of mobile terminal, including:First acquisition mould
Block, for obtaining the access information of router;First generation module, for multicast ip address is arranged according to described access information,
And generate multicast packets;Second generation module, for arranging the length of broadcast packet, and according to described broadcast according to described access information
The length of bag generates described broadcast packet;Sending module, for alternately sending described multicast packets and described broadcast packet so that domestic
Electrical equipment obtains described access information according to described multicast packets or described broadcast packet.
Mobile terminal according to embodiments of the present invention, after the access information obtaining router, generates according to access information
Broadcast packet and multicast packets, and alternately send broadcast packet and multicast packets, as a result, mobile terminal can simultaneously to support broadcast or
The household electrical appliance that multicast networks are controlled, and facilitate user and are entered by the household electrical appliance that mobile terminal networks to broadcast or multicast
Row unified management, facilitating user is household electrical appliance distribution, improves user experience.
In one embodiment of the invention, the MAC Address of described multicast packets is corresponding with described IP address.
In one embodiment of the invention, the length of described broadcast packet is more than 2 bits and is less than or equal to 9 bits.
In one embodiment of the invention, also include:
3rd generation module, for generating broadcast packet or the multicast packets of auxiliary.
For achieving the above object, fifth aspect present invention embodiment proposes a kind of household electrical appliance, including receiver module, uses
In the multicast packets receiving mobile terminal transmission or broadcast packet;Second acquisition module, for according to described multicast packets or described broadcast
Bag obtains the access information of described router.
Household electrical appliance according to embodiments of the present invention, receive, by receiver module, multicast packets or the broadcast that mobile terminal sends
Bag, and obtain the access information of router from broadcast packet or multicast packets by the second acquisition module, as a result, household electrical appliance can
By obtaining the access information of router in mobile terminal, the mode that household electrical appliance obtain the access information of router is simply fast
Victory, and then the networking efficiency of household electrical appliance can be improved.
In one embodiment of the invention, also include:
AM access module, for accessing described router according to described access information.
In one embodiment of the invention, also include:
Processing module, for receiving broadcast packet or the multicast packets of the auxiliary that described mobile terminal sends, and according to described auxiliary
The broadcast packet helping or multicast packets lock channel.
The advantage of the aspect that the present invention adds will be set forth in part in the description, and partly will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of described embodiment is shown in the drawings, wherein from start to finish
The element that same or similar label represents same or similar element or has same or like function.Below with reference to attached
The embodiment of figure description is exemplary it is intended to be used for explaining the present invention, and is not considered as limiting the invention.
The distribution method of household electrical appliance proposing according to embodiments of the present invention, system, domestic to be described with reference to the accompanying drawings
Electrical equipment and mobile terminal.
Fig. 1 is the flow chart of the distribution method of household electrical appliance according to an embodiment of the invention.Wherein it is desired to explanation
It is that this embodiment is described from mobile terminal side, wherein, mobile terminal may, for example, be mobile phone, panel computer, individual digital
Assistant etc. has the hardware device of various operating systems.
As shown in figure 1, the distribution method of this household electrical appliance comprises the following steps:
S11, obtains the access information of router.
Wherein, the access information of router includes SSID (Service Set Identifier, the services set mark of router
Know) and password.
S12, arranges multicast ip address according to access information, and generates multicast packets.
In one embodiment of the invention, so that supporting that the household electrical appliance that multicast networks network, in mobile terminal
After obtaining the access information of router, mobile terminal arranges multicast ip address, and then, mobile terminal is according to multicast ip address and group
Broadcast the mapping relations between MAC Address to obtain and the corresponding MAC Address of IP address arranging, then, mobile terminal is according to access
Information and MAC Address generate multicast packets.
Wherein it is desired to explanation, the mapping relations between multicast ip address and multicast mac address are pre- in mobile terminal
First preserve.
Wherein, household electrical appliance may, for example, be the equipment such as intelligent television, electric refrigerator or intelligent washing machine.
As a kind of example, in the access information of acquisition for mobile terminal router, if it is judged that mobile terminal has permission
Setting multicast mac address, can directly arrange multicast mac address by mobile terminal, and mobile terminal is by according to the multicast MAC arranging
Address and access information generate multicast packets.
S13, arranges the length of broadcast packet, and generates broadcast packet according to the length of broadcast packet according to access information.
Generally, for the safety of data transfer, broadcast packet can be encrypted, but non-encrypted in broadcast packet
Field is the length information of broadcast packet, and therefore, the length information that mobile terminal can pass through broadcast packet sends route to household electrical appliance
The access information of device.
In one embodiment of the invention, the length of broadcast packet is more than 2 bits and is less than or equal to 9 bits.
In one embodiment of the invention, in order to mobile terminal carries out subpackage process, broadcast packet in processing data bag
Length preferably not can exceed that 9 bits.
For example, when the length of broadcast packet is 9 bit it is assumed that the quantity of information of the SSID of router and password is total up to
M-bit, then mobile terminal at least need M/9 broadcast packet to complete the SSID of router and the transmission of password.
Wherein it is desired to explanation, the execution sequence of step S12 and step S13 is in no particular order.
Wherein it is desired to be understood by, so that household electrical appliance can accurately parse mobile terminal being sent out by broadcast packet
The access information of the router sending, when mobile terminal sends the access information of router by broadcast packet, mobile terminal also may be used
To send the length of access information by broadcast packet.For example, the length of SSID can be sent by broadcast packet, and pass through broadcast packet
Send the length of password.
That is, mobile terminal determines the length of access information, then, generate the broadcast packet of corresponding length, then, will
Whether the broadcast packet of corresponding length sends household electrical appliance, to assist the access information that household electrical appliance determination receives accurate.
S14, alternately sends multicast packets and broadcast packet so that household electrical appliance obtain according to multicast packets or broadcast packet accesses letter
Breath.
So that mobile terminal can be the household electrical appliance and the domestic supporting that broadcast networks supporting multicast to network simultaneously
Electrical equipment provides distribution service, mobile terminal after the access information according to router generates multicast packets and broadcast packet, mobile terminal
Alternately send multicast packets and broadcast packet.
Accordingly, household electrical appliance receive multicast packets or the broadcast packet that mobile terminal sends, and extract broadcast packet or multicast packets
In access information, and according to access information couple in router.
Wherein it is desired to be understood by, the time interval of broadcast packet and the transmission of multicast packet interleaving is that mobile terminal pre-sets
, for example, can arrange broadcast packet and the time interval of multicast packet interleaving transmission in mobile terminal is 20 seconds.
Generally the interference in wireless environment is more, so that household electrical appliance will not be passed by other non-targeted mobile terminals
Defeated interference, in one embodiment of the invention, mobile terminal can also generate broadcast packet or the multicast packets of auxiliary.
Wherein, the broadcast packet of auxiliary or multicast packets refer to according to preamble field, access information length field, check field etc.
Broadcast packet or multicast packets that content in field is generated.
Wherein, comprise the broadcast packet of content or multicast packets in preamble field, lock mobile terminal and family for household electrical appliance
Channel between electrical appliance.
Wherein, comprise the broadcast packet of content or multicast packets in access information length field, connecing for follow-up household electrical appliance
The access information of router when receiving corresponding broadcast packet or multicast packets, can be determined according to the length of access information.
Wherein, comprise the broadcast packet of content or multicast packets in check field, receive correspondence for follow-up household electrical appliance
Broadcast packet or during multicast packets, determine whether the access information receiving accurate.
Wherein, as a kind of exemplary embodiment it is assumed that access information be SSID and password, if mobile terminal with
The multicast of household electrical appliance agreement enters fidonetFido and includes preamble field, Password Length field, cryptographic check field, code content word
Section, SSID length field, SSID content field, SSID check field.By mobile terminal for household electrical appliance distribution process
In, while generating corresponding broadcast packet or multicast packets according to access information, mobile terminal will be sown into mobile terminal according to group
FidonetFido according in the fields such as preamble field, Password Length field, SSID length field content generate corresponding broadcast packet or
Multicast packets, and enter fidonetFido in order to the household electrical appliance corresponding broadcast packet of transmission or multicast packets according to multicast.
Wherein it is desired to be understood by, after mobile terminal generates broadcast packet or the multicast packets of auxiliary, mobile terminal will sent out
Before sending broadcast packet, first send the broadcast packet of auxiliary;Accordingly, mobile terminal, before sending broadcast packet, first sends auxiliary
Multicast packets.
In summary it can be seen, the distribution method of the household electrical appliance of this embodiment, in order to support broadcast or multicast simultaneously
The household electrical appliance networking network, and after the access information obtaining router, generate broadcast packet and multicast packets according to access information, and
Alternately send broadcast packet and multicast packets, as a result, corresponding household electrical appliance can obtain according to broadcast packet or multicast packets accessing
Information, facilitates user and the household electrical appliance of broadcast or multicast networking is managed, facilitating user is household electrical appliance distribution, carries
High user experience.
The distribution method of household electrical appliance according to embodiments of the present invention, after the access information obtaining router, according to connecing
Enter information and generate broadcast packet and multicast packets, and alternately send broadcast packet and multicast packets, as a result, mobile terminal can be simultaneously right
Support that broadcast or the household electrical appliance of multicast networking are controlled, facilitate user and pass through what mobile terminal networked to broadcast or multicast
Household electrical appliance are managed collectively, and facilitating user is household electrical appliance distribution, improves user experience.
Fig. 2 is the flow chart of the distribution method of household electrical appliance in accordance with another embodiment of the present invention.Wherein it is desired to explanation
, this embodiment is described from household electrical appliance side, and wherein, household electrical appliance can support the family that multicast networks or broadcast networks
Electrical appliance, for example, the equipment such as intelligent television, electric refrigerator or intelligent washing machine.
As shown in Fig. 2 the distribution method of the household electrical appliance of this embodiment may comprise steps of:
S21, receives multicast packets or the broadcast packet that mobile terminal sends.
S22, obtains the access information of router according to multicast packets or broadcast packet.
The distribution method of household electrical appliance according to embodiments of the present invention, household electrical appliance receive the multicast packets that mobile terminal sends
Or broadcast packet, and the access information from broadcast packet or multicast packets acquisition router, as a result, household electrical appliance can be by mobile whole
The access information of router is obtained, household electrical appliance obtain the mode simple and fast of the access information of router, and then can carry in end
The networking efficiency of high household electrical appliance.
In one embodiment of the invention, so that household electrical appliance couple in router, as shown in Fig. 2
S23, according to access information couple in router.
On the basis of above-described embodiment, in one embodiment of the invention, receive it to reduce household electrical appliance
The interference of his non-targeted mobile terminal, before sending broadcast packet or multicast packets, mobile terminal can also be to domestic for mobile terminal
Electrical equipment send auxiliary broadcast packet or multicast packets, accordingly, household electrical appliance receive mobile terminal send the broadcast packet of auxiliary or
Multicast packets, and the broadcast packet according to auxiliary or multicast packets lock channel.And after household electrical appliance lock channel, household electrical appliance continue
Broadcast packet or the multicast packets that household electrical appliance send are received in continued access.
In order to realize above-described embodiment, the present invention also proposes a kind of distribution network systems of household electrical appliance.
Fig. 4 is the structural representation of the distribution network systems of household electrical appliance according to an embodiment of the invention.
As shown in figure 4, the distribution network systems of this household electrical appliance include mobile terminal 10 and household electrical appliance 20, wherein:
Mobile terminal 10, for obtaining the access information of router, and arranges multicast ip address according to access information, and raw
Become multicast packets, and the length according to access information setting broadcast packet, and broadcast packet is generated according to the length of broadcast packet, and alternately
Ground sends multicast packets and broadcast packet.
Household electrical appliance 20, the multicast packets sending for receiving router or broadcast packet, and obtained according to multicast packets or broadcast packet
Take the access information of router.
Wherein it is desired to be understood by, the time interval of broadcast packet and the transmission of multicast packet interleaving is that mobile terminal pre-sets
, for example, can arrange broadcast packet and the time interval of multicast packet interleaving transmission in mobile terminal is 20 seconds.
In an enforcement of the present invention, the MAC Address of multicast packets is corresponding with IP address.
In one embodiment of the invention, the length of broadcast packet is more than 2 bits and is less than or equal to 9 bits.
In one embodiment of the invention, in order to mobile terminal carries out subpackage process, broadcast packet in processing data bag
Length preferably not can exceed that 9 bits.
In an enforcement of the present invention, household electrical appliance 20, it is additionally operable to:According to access information couple in router.
In an enforcement of the present invention, so that what household electrical appliance will not be transmitted by other non-targeted mobile terminals
Interference, mobile terminal 10 is additionally operable to:Generate broadcast packet or the multicast packets of auxiliary.
Wherein it is desired to illustrate, the explanation of the aforementioned distribution embodiment of the method to household electrical appliance is also applied for this
The distribution network systems of the household electrical appliance of embodiment, it is realized principle and is similar to, and here is omitted.
The distribution network systems of household electrical appliance according to embodiments of the present invention, after the access information obtaining router, according to connecing
Enter information and generate broadcast packet and multicast packets, and alternately send broadcast packet and multicast packets, as a result, mobile terminal can be simultaneously right
Support that broadcast or the household electrical appliance of multicast networking are controlled, facilitate user and pass through what mobile terminal networked to broadcast or multicast
Household electrical appliance are managed collectively, and facilitating user is household electrical appliance distribution, improves user experience.
In order to realize above-described embodiment, the present invention also proposes a kind of mobile terminal.
Fig. 5 is the structural representation of mobile terminal according to an embodiment of the invention.
As shown in figure 5, this mobile terminal 10 includes the first acquisition module 110, the first generation module 120, second generates mould
Block 130 and sending module 140, wherein:
First acquisition module 110 is used for obtaining the access information of router.
First generation module 120 is used for arranging multicast ip address according to access information, and generates multicast packets.
Second generation module 130 is used for arranging the length of broadcast packet according to access information, and the length life according to broadcast packet
Become broadcast packet.
Sending module 140 is used for alternately sending multicast packets and broadcast packet so that household electrical appliance are according to multicast packets or broadcast packet
Obtain access information.
In an enforcement of the present invention, the MAC Address of multicast packets is corresponding with IP address.
In an enforcement of the present invention, the length of broadcast packet is more than 2 bits and is less than or equal to 9 bits.
In an enforcement of the present invention, so that what household electrical appliance will not be transmitted by other non-targeted mobile terminals
Interference, mobile terminal 10 also includes:
3rd generation module 150 is used for generating broadcast packet or the multicast packets of auxiliary.
Wherein it is desired to illustrate, the explanation of the aforementioned distribution embodiment of the method to household electrical appliance is also applied for this
The mobile terminal of embodiment, it is realized principle and is similar to, and here is omitted.
Mobile terminal according to embodiments of the present invention, after the access information obtaining router, generates according to access information
Broadcast packet and multicast packets, and alternately send broadcast packet and multicast packets, as a result, mobile terminal can simultaneously to support broadcast or
The household electrical appliance that multicast networks are controlled, and facilitate user and are entered by the household electrical appliance that mobile terminal networks to broadcast or multicast
Row unified management, facilitating user is household electrical appliance distribution, improves user experience.
In order to realize above-described embodiment, the present invention also proposes a kind of household electrical appliance.
Fig. 7 is the structural representation of household electrical appliance according to an embodiment of the invention.
As shown in fig. 7, this household electrical appliance 20 includes receiver module 210 and the second acquisition module 220, wherein:
Receiver module 210 is used for receiving multicast packets or the broadcast packet of mobile terminal transmission.
Second acquisition module 220 is used for obtaining the access information of router according to multicast packets or broadcast packet.
In one embodiment of the invention, so that electrical appliance couple in router, on the basis of shown in Fig. 7,
As shown in figure 8, household electrical appliance 20 can also include AM access module 230, wherein:
AM access module 230 is used for according to access information couple in router.
In one embodiment of the invention, so that household electrical appliance will not be transmitted by other non-targeted mobile terminals
Interference, on the basis of shown in Fig. 7, as shown in figure 9, household electrical appliance 20 can also include processing module 240, wherein:
Processing module 240 is used for receiving the broadcast packet of auxiliary or the multicast packets of mobile terminal transmission, and wide according to auxiliary
Broadcast bag or multicast packets lock channel.
Specifically, processing module 240 receives the broadcast packet of auxiliary or the multicast packets that mobile terminal sends, and according to auxiliary
Broadcast packet or multicast packets lock channel.And after processing module 240 lock channel, receiver module 210 continues to household electric
Broadcast packet or multicast packets that device sends, and the access information of router is obtained by the second acquisition module 220, and by accessing
Module 230 couple in router.
Wherein it is desired to illustrate, the explanation of the aforementioned distribution embodiment of the method to household electrical appliance is also applied for this
The household electrical appliance of embodiment, it is realized principle and is similar to, and here is omitted.
Household electrical appliance according to embodiments of the present invention, receive, by receiver module, multicast packets or the broadcast that mobile terminal sends
Bag, and obtain the access information of router from broadcast packet or multicast packets by the second acquisition module, as a result, household electrical appliance can
By obtaining the access information of router in mobile terminal, the mode that household electrical appliance obtain the access information of router is simply fast
Victory, and then the networking efficiency of household electrical appliance can be improved.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or hint relative importance
Or the implicit quantity indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or
Implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, such as two, three
Individual etc., unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " being connected ", " connection ", " fixation " etc.
Term should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected or integral;Can be that machinery connects
Connect or electrically connect;Can be to be joined directly together it is also possible to be indirectly connected to by intermediary, can be in two elements
The connection in portion or the interaction relationship of two elements, limit unless otherwise clear and definite.For those of ordinary skill in the art
For, above-mentioned term concrete meaning in the present invention can be understood as the case may be.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy describing with reference to this embodiment or example
Point is contained at least one embodiment or the example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be in office
Combine in an appropriate manner in one or more embodiments or example.Additionally, in the case of not conflicting, the skill of this area
The feature of the different embodiments described in this specification or example and different embodiment or example can be tied by art personnel
Close and combine.
Although embodiments of the invention have been shown and described above it is to be understood that above-described embodiment is example
Property it is impossible to be interpreted as limitation of the present invention, those of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.