CN106209632B - Router and the method, apparatus that household electrical appliance are controlled based on router traffic - Google Patents
Router and the method, apparatus that household electrical appliance are controlled based on router traffic Download PDFInfo
- Publication number
- CN106209632B CN106209632B CN201610769801.3A CN201610769801A CN106209632B CN 106209632 B CN106209632 B CN 106209632B CN 201610769801 A CN201610769801 A CN 201610769801A CN 106209632 B CN106209632 B CN 106209632B
- Authority
- CN
- China
- Prior art keywords
- router
- predetermined period
- rate
- time
- user
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/302—Route determination based on requested QoS
- H04L45/306—Route determination based on the nature of the carried application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/302—Route determination based on requested QoS
- H04L45/308—Route determination based on user's profile, e.g. premium users
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Abstract
The method, apparatus of household electrical appliance is controlled the invention discloses a kind of router and based on router traffic, wherein, method includes: to count time of the flow of router in predetermined period less than the first preset flow, it is denoted as at the first time, and the flow of router is greater than the time of the second preset flow in statistics predetermined period, is denoted as the second time;According to the vacancy rate at the first time and in the second time calculating predetermined period and enliven rate;The active state of user is obtained with rate of enlivening and preset rules according to the vacancy rate of at least one predetermined period;Corresponding destination home appliance and control instruction are obtained from router according to active state;Control instruction is sent to destination home appliance, so that destination home appliance executes control instruction.The method of the embodiment of the present invention by router traffic can more accurate active state locating for more diverse judgement user, so that control household electrical appliance according to active state executes corresponding function, accuracy height automatically.
Description
Technical field
The present invention relates to fields of home appliance technology, and in particular to a kind of router and controls household based on router traffic
The method, apparatus of electric appliance.
Background technique
In the related technology, by detect user smart phone Wi-Fi (Wireless-Fidelity, Wireless Fidelity) or
Bluetooth signal intensity starts automatically or closes household electrical appliance whether judging whether user is in, and be according to user.Specifically
Ground starts household electrical appliance function if signal strength is greater than certain numerical value;If signal strength is less than certain numerical value, close
Close household electrical appliance.Thus, it is possible to realize when the user goes home, automatically turns on after household electrical appliance or user leave home, household is automatically closed
Electric appliance.
However, although method in above-mentioned technology is convenient, poor anti jamming capability, often can due to various interference (such as
The interference of building in user family) and cause to judge by accident, accuracy is not high.
Summary of the invention
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.
For this purpose, the first purpose of this invention is to propose a kind of method based on router traffic control household electrical appliance.
This method can more accurate active state locating for more diverse judgement user, and destination home appliance can be made according to active state
Automatically corresponding function is executed, accuracy is high.
Second object of the present invention is to propose a kind of device based on router traffic control household electrical appliance.
Third object of the present invention is to propose a kind of router.
To achieve the above object, the embodiment of first aspect present invention proposes a kind of based on router traffic control household
The method of electric appliance, comprising: time of the flow less than the first preset flow for counting router in predetermined period, when being denoted as first
Between, and time of the flow greater than the second preset flow of router in the predetermined period is counted, it was denoted as the second time;According to
The first time and second time calculate the vacancy rate in the predetermined period and enliven rate;According at least one
The vacancy rate of predetermined period and the active state for enlivening rate and preset rules acquisition user;According to the active state from described
Corresponding destination home appliance and control instruction are obtained in router;The control instruction is sent to the target household electric
Device, so that the destination home appliance executes the control instruction.
Method according to an embodiment of the present invention based on router traffic control household electrical appliance, by statistics predetermined period
The flow of router is denoted as at the first time less than the time of the first preset flow, and counts the stream of router in predetermined period
Amount is greater than the time of the second preset flow, is denoted as the second time, and according at the first time and in the second time calculating predetermined period
Vacancy rate and enliven rate, and according to the vacancy rate of at least one predetermined period and enliven rate and preset rules obtain user
Active state, and then corresponding destination home appliance and control instruction are obtained from router according to active state, and will control
System instruction is sent to destination home appliance, so that destination home appliance executes control instruction.The method of the embodiment of the present invention passes through
Router traffic can more accurate active state locating for more diverse judgement user, thus according to active state control household electric
Device executes corresponding function automatically, and accuracy is high.
In addition, the method according to the above embodiment of the present invention based on router traffic control household electrical appliance can also have
Following additional technical characteristic:
According to one embodiment of present invention, described the control instruction is sent to the destination home appliance to include:
The control instruction is sent directly to the destination home appliance;Or the control instruction is sent to Cloud Server, with
The control instruction is forwarded to the destination home appliance by the Cloud Server.
According to one embodiment of present invention, the value range of first preset flow is 32~128 byte per seconds, institute
The value range for stating the second preset flow is 512~2048 byte per seconds, and the value of the predetermined period is 60*k seconds, wherein k
For positive integer.
According to one embodiment of present invention, described that described preset is calculated according to the first time and second time
Vacancy rate in period and to enliven rate include: according to Riω=Ti/ ω calculates the vacancy rate in the predetermined period, according to Raω=
Ta/ ω is calculated in the predetermined period and is enlivened rate, wherein ω is the predetermined period, and Ti is the first time, and Ta is institute
State the second time, RiωFor the vacancy rate in the predetermined period, RaωTo enliven rate in the predetermined period.
According to one embodiment of present invention, the router includes the administration interface for interacting with user, so that institute
It states user and first preset flow, second preset flow is arranged by the administration interface, the work of the user is set
Dynamic state and vacancy rate and the preset rules for enlivening rate, and the active state and destination home appliance and control of the setting user
The corresponding relationship of instruction is made, so as to meet the individual demand of user, promotes user experience.
To achieve the above object, the embodiment of second aspect of the present invention proposes a kind of based on router traffic control household
The device of electric appliance, comprising: statistical module, the flow for counting router in predetermined period are less than first preset flow
Time is denoted as at the first time, and in the statistics predetermined period flow of router be greater than second preset flow when
Between, it was denoted as the second time;Computing module, for being calculated in the predetermined period according to the first time and second time
Vacancy rate and enliven rate;First obtains module, for according to the vacancy rate of predetermined period described at least one and enliven rate with
And preset rules obtain the active state of user;Second obtains module, is used for according to the active state from the router
Obtain destination home appliance and corresponding control instruction;Sending module, for the control instruction to be sent to the target man
Electrical appliance, so that the destination home appliance executes the control instruction.
Device according to an embodiment of the present invention based on router traffic control household electrical appliance, it is pre- by statistical module counts
If the flow of router is less than the time of the first preset flow in the period, it is denoted as at the first time, and road in statistics predetermined period
It is greater than the time of the second preset flow by the flow of device, was denoted as the second time, and by computing module according at the first time and the
Two times calculated the vacancy rate in predetermined period and enlivened rate, and obtained module according at least one predetermined period by first
Vacancy rate and enliven the active state that rate and preset rules obtain user, and then obtain module according to moving type by second
State obtains corresponding destination home appliance and control instruction from router, and control instruction is sent to mesh by sending module
Household electrical appliance are marked, so that destination home appliance executes control instruction.The device of the embodiment of the present invention can by router traffic
Active state locating for more accurate more diverse judgement user, so that control household electrical appliance according to active state executes correspondence automatically
Function, accuracy is high.
According to one embodiment of present invention, the sending module, is specifically used for: the control instruction is sent directly to
The destination home appliance;Or the control instruction is sent to Cloud Server, with by the Cloud Server by the control
System instruction is forwarded to the destination home appliance.
According to one embodiment of present invention, the computing module, is specifically used for: according to Riω=Ti/ ω calculates described pre-
If the vacancy rate in the period, according to Raω=Ta/ ω, which is calculated in the predetermined period, enlivens rate, wherein ω is the default week
Phase, Ti are the first time, and Ta is second time, RiωFor the vacancy rate in the predetermined period, RaωIt is described pre-
If enlivening rate in the period.
According to one embodiment of present invention, the router includes the administration interface for interacting with user, so that institute
It states user and first preset flow, second preset flow is arranged by the administration interface, the work of the user is set
Dynamic state and vacancy rate and the preset rules for enlivening rate, and the active state and destination home appliance and control of the setting user
The corresponding relationship of instruction is made, so as to meet the individual demand of user, promotes user experience.
Further, the embodiment of third aspect present invention proposes a kind of router, including the above embodiment of the present invention
Based on router traffic control household electrical appliance device.
The router of the embodiment of the present invention can pass through activity locating for the more accurate more diverse judgement user of own traffic
State, and household electrical appliance are controlled according to the active state of user and execute corresponding function automatically, user experience is good.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the method according to an embodiment of the present invention based on router traffic control household electrical appliance;
Fig. 2 is the structural block diagram of the device according to an embodiment of the present invention based on router traffic control household electrical appliance.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the router of the embodiment of the present invention and the side based on router traffic control household electrical appliance are described
Method, device.
Fig. 1 is the flow chart of the method according to an embodiment of the present invention based on router traffic control household electrical appliance.
As shown in Figure 1, should include: based on the method for router traffic control household electrical appliance
S101 counts time of the flow less than the first preset flow of router in predetermined period, is denoted as first time, with
And the flow of router is greater than the time of the second preset flow in statistics predetermined period, is denoted as the second time.
In one embodiment of the invention, the value range of the first preset flow is 32~128 byte per seconds, such as can
To be 64 byte per seconds;The value range of second preset flow is 512~2048 byte per seconds, such as can be 1024 byte per seconds;
The value of predetermined period can be 60*k seconds, wherein k is positive integer, such as k=1, and the value of predetermined period is 60 seconds at this time.
Specifically, expression is not set substantially if the flow of router is less than 64 byte per seconds (i.e. the first preset flow)
Standby (such as smart phone, portable computer) connects network, it can current router is considered as idle state;If router
Flow be greater than 1024 byte per seconds (i.e. the second preset flow), indicates equipment (such as smart phone, portable computer) connection
Network, and there are the transmission of a large amount of flows, it can current router is considered as active state.
In one embodiment of the invention, the administration interface for interacting with user, Yong Huke are provided on router
The first preset flow and the second preset flow is arranged by the administration interface.
Optionally, the first preset flow and the second preset flow are also possible to factory default, and specific value can be root
It is obtained according to a large amount of survey data or experimental data.
S102 according to the vacancy rate at the first time and in the second time calculating predetermined period and enlivens rate.
It specifically, can be according to Riω=Ti/ ω calculates the vacancy rate in predetermined period, according to Raω=Ta/ ω calculates pre-
If enlivening rate in the period, wherein ω is predetermined period, and Ti is that at the first time, Ta is the second time, RiωFor in predetermined period
Vacancy rate, RaωTo enliven rate in predetermined period.
For example, if the value of ω is 60 seconds, the value of Ti is 10 seconds, and the value of Ta is 40 seconds, then Riω=Ti/
ω=10/60=0.167, Raω=Ta/ ω=40/60=0.667.
S103 obtains the moving type of user according to the vacancy rate of at least one predetermined period with rate of enlivening and preset rules
State.
In one embodiment of the invention, preset rules can be arranged by the administration interface on router in user, i.e.,
Vacancy rate, the corresponding relationship for enlivening rate Yu User Activity state.
For example, table 1 lists the vacancy rate for the administration interface setting that user crosses on router, enlivens rate and user's work
The corresponding relationship of dynamic state, and corresponding explanation.As shown in table 1, predetermined period is set as 60 seconds, i.e., every 60 seconds statistics one time the
One time and the second time.Ri10800> 0.9 indicates that vacancy rate of the router within continuous 3 hours is greater than 0.9, illustrates home network
Network 3 hour no one's use;Ra60> 0.9 indicates that first after 3 hours was enlivened rate greater than 0.9 in 60 seconds, was said
Router in bright someone's connection, and use network.
It should be noted that the application background of the embodiment of the present invention is the background applications journey that user does not close smart phone
Sequence, and open wireless connecting function.As long as smart phone connects upper network in turn, the application program on smart phone can make automatically
With a small amount of flow, therefore router in user's connection is judged using this feature.
Three hour (i.e. Ri specifically, user is away from home10800> 0.9) it after, turns again in family, when smart phone is
In the state of opening Wi-Fi, router can be connected automatically to.After being connected to router, since the smart phone of user exists
APP (Application, application program) is opened, therefore APP can automatically update information needed, such as whether chat APP update has
Message transmission.At this point, router, which can detect flow, is greater than the second preset flow, such as 1024 byte per seconds, and Ra60>0.5.Cause
This, preset rules: Ri can be arranged by the administration interface on router in user10800> 0.9 and Ra60> 0.5 corresponding user's
Active state is " going home " state.
Table 1
In another embodiment of the present invention, preset rules can also be factory default.Specifically, factory default
Preset rules can be and obtained by a large amount of survey data or experimental data, be suitable for general user.
It is understood that above-mentioned steps S103 further include according to preset rules calculate K predetermined period vacancy rate with/
Or enliven rate.
Specifically, the vacancy rate of K predetermined period can pass through RiK*ω=(Riω1+Riω2+…+RiωK)/K is calculated, K
The vacancy rate of a predetermined period can pass through RaK*ω=(Raω1+Raω2+…+RaωK)/K is calculated, wherein RiK*ωIt is K
The vacancy rate of predetermined period, RiωKFor the vacancy rate of k-th predetermined period, RaK*ωRate, Ra are enlivened for K predetermined periodωKFor
K-th predetermined period enlivens rate.
S104 obtains corresponding destination home appliance and control instruction according to active state from router.
In one embodiment of the invention, the moving type of user can be arranged in user by the administration interface on router
The corresponding relationship of state and destination home appliance and control instruction.
For example, table 2 lists the active state and target of the user for the administration interface setting that user crosses on router
The corresponding relationship of air conditioner and corresponding control instruction in household electrical appliance.As shown in table 1, when the active state for getting user is
When " going home " state, corresponding destination home appliance is air conditioner, and corresponding control instruction is " opening air conditioner ", " refrigeration 27
℃”。
Table 2
In another embodiment of the present invention, the active state with destination home appliance and control instruction of user is corresponding
Relationship is also possible to factory default.Specifically, the active state of the user of factory default and destination home appliance and control
What the corresponding relationship of instruction was also possible to obtain by a large amount of survey data or experimental data, it is suitable for general user.
It should be noted that destination home appliance is not limited to air conditioner, water heater, water dispenser etc. can also be, specifically
Control instruction can be configured in conjunction with the active state of user.
Control instruction is sent to destination home appliance by S105, so that destination home appliance executes control instruction.
In one embodiment of the invention, control instruction can be sent directly to destination home appliance;It can also incite somebody to action
Control instruction is first sent to Cloud Server, control instruction is forwarded to destination home appliance by Cloud Server.
It should be noted that user can according to their needs and use habit is pre- by the self-service setting first of administration interface
If flow, the second preset flow, the active state of user is set and vacancy rate and enlivens the preset rules of rate, and user is set
Active state and the corresponding relationship of destination home appliance and control instruction mentioned so as to meet the individual demand of user
Rise user experience.
In one particular embodiment of the present invention, the first preset flow is 64 bps, and the second preset flow is 1024
Bps, predetermined period is 60 seconds, and preset rules are as shown in table 1, and destination home appliance is air conditioner, the active state of user
It is as shown in table 2 with the corresponding relationship of the control instruction of air conditioner.After user leaves home, router is in idle state, continuous to count
The vacancy rate that router in three hours is calculated is 0.95, is greater than 0.9, after user goes home, smart phone connects road automatically
By device, application transfer flow, the rate of enlivening that router in 60 seconds is calculated after user goes home is 0.6, is greater than 0.5.Root
According to " Ri10800=0.95 and Ra60=0.6 " judges the active state of user for " going home " state, and then directly from trend air conditioner
Send the control command of " opening air conditioner ", " 27 DEG C of refrigeration ".The current state for obtaining air conditioner simultaneously, if air conditioner is current
State is in off state, then controls air conditioner unlatching, and controls operational mode as 27 DEG C of refrigeration;If the current state of air conditioner is
Open state directly controls the operational mode of air conditioner then as 27 DEG C of refrigeration.
The method based on router traffic control household electrical appliance of the embodiment of the present invention, can be according to routing in predetermined period
The flow of device less than router in the time of the first preset flow and predetermined period flow be greater than the second preset flow when
Between calculate the vacancy rate in predetermined period and enliven rate, and according to the vacancy rate of at least one predetermined period and enliven rate and pre-
If the active state of Rule user, and then corresponding destination home appliance and control are obtained from router according to active state
System instruction, and control instruction is sent to destination home appliance, so that destination home appliance executes control instruction.The present invention is implemented
The method of example by router traffic can more accurate active state locating for more diverse judgement user, thus according to moving type
State control household electrical appliance execute corresponding function automatically, and accuracy is high, and user experience is good.
Fig. 2 is the structural block diagram of the device according to an embodiment of the present invention based on router traffic control household electrical appliance.
As shown in Fig. 2, should include: statistical module 10, computing module based on the device of router traffic control household electrical appliance
20, first the acquisition module 40 of module 30, second and sending module 50 are obtained.
Wherein, statistical module 10 is used to count time of the flow less than the first preset flow of router in predetermined period,
It is denoted as at the first time, and the flow of router is greater than the time of the second preset flow in statistics predetermined period, when being denoted as second
Between.
In one embodiment of the invention, the value range of the first preset flow is 32~128 byte per seconds, such as can
To be 64 byte per seconds;The value range of second preset flow is 512~2048 byte per seconds, such as can be 1024 byte per seconds;
The value of predetermined period can be 60*k seconds, wherein k is positive integer, such as k=1, and the value of predetermined period is 60 seconds at this time.
Specifically, expression is not set substantially if the flow of router is less than 64 byte per seconds (i.e. the first preset flow)
Standby (such as smart phone, portable computer) connects network, it can current router is considered as idle state;If router
Flow be greater than 1024 byte per seconds (i.e. the second preset flow), indicates equipment (such as smart phone, portable computer) connection
Network, and there are the transmission of a large amount of flows, it can current router is considered as active state.
In one embodiment of the invention, the administration interface for interacting with user, Yong Huke are provided on router
The first preset flow and the second preset flow is arranged by the administration interface.
Optionally, the first preset flow and the second preset flow are also possible to factory default, and specific value can be root
It is obtained according to a large amount of survey data or experimental data.
Computing module 20 is used for according to the vacancy rate at the first time and in the second time calculating predetermined period and enlivens rate.
It specifically, can be according to Riω=Ti/ ω calculates the vacancy rate in predetermined period, according to Raω=Ta/ ω calculates pre-
If enlivening rate in the period, wherein ω is predetermined period, and Ti is that at the first time, Ta is the second time, RiωFor in predetermined period
Vacancy rate, RaωTo enliven rate in predetermined period.
For example, if the value of ω is 60 seconds, the value of Ti is 10 seconds, and the value of Ta is 40 seconds, then Riω=Ti/
ω=10/60=0.167, Raω=Ta/ ω=40/60=0.667.
First acquisition module 30 is used for according to the vacancy rate of at least one predetermined period and enlivens rate and preset rules obtain
Take the active state at family.
In one embodiment of the invention, preset rules can be arranged by the administration interface on router in user, i.e.,
Vacancy rate, the corresponding relationship for enlivening rate Yu User Activity state.
For example, table 1 lists the vacancy rate for the administration interface setting that user crosses on router, enlivens rate and user's work
The corresponding relationship of dynamic state, and corresponding explanation.As shown in table 1, predetermined period is set as 60 seconds, i.e., every 60 seconds statistics one time the
One time and the second time.Ri10800> 0.9 indicates that vacancy rate of the router within continuous 3 hours is greater than 0.9, illustrates home network
Network 3 hour no one's use;Ra60> 0.9 indicates that first after 3 hours was enlivened rate greater than 0.9 in 60 seconds, was said
Router in bright someone's connection, and use network.
It should be noted that the application background of the embodiment of the present invention is the background applications journey that user does not close smart phone
Sequence, and open wireless connecting function.As long as smart phone connects upper network in turn, the application program on smart phone can make automatically
With a small amount of flow, therefore router in user's connection is judged using this feature.
Three hour (i.e. Ri specifically, user is away from home10800> 0.9) it after, turns again in family, when smart phone is
In the state of opening Wi-Fi, router can be connected automatically to.After being connected to router, since the smart phone of user exists
APP is opened, therefore APP can automatically update information needed, such as whether chat APP update has message transmission.At this point, router meeting
It detects flow and is greater than the second preset flow, such as 1024 byte per seconds, and Ra60>0.9.Therefore, user can pass through router
On administration interface be arranged preset rules: Ri10800> 0.9 and Ra60The active state of > 0.9 corresponding user is " going home " state.
Table 1
In another embodiment of the present invention, preset rules can also be factory default.Specifically, factory default
Preset rules can be and obtained by a large amount of survey data or experimental data, be suitable for general user.
It is understood that the first acquisition module 30 is also used to calculate the vacancy rate of K predetermined period according to preset rules
And/or enliven rate.
Specifically, the vacancy rate of K predetermined period can pass through RiK*ω=(Riω1+Riω2+…+RiωK)/K is calculated, K
The vacancy rate of a predetermined period can pass through RaK*ω=(Raω1+Raω2+…+RaωK)/K is calculated, wherein RiK*ωIt is K
The vacancy rate of predetermined period, RiωKFor the vacancy rate of k-th predetermined period, RaK*ωRate, Ra are enlivened for K predetermined periodωKFor
K-th predetermined period enlivens rate.
Second acquisition module 40 is used to obtain destination home appliance and corresponding control from router according to active state
Instruction.
In one embodiment of the invention, the moving type of user can be arranged in user by the administration interface on router
The corresponding relationship of state and destination home appliance and control instruction.
For example, table 2 lists the active state and target of the user for the administration interface setting that user crosses on router
The corresponding relationship of air conditioner and corresponding control instruction in household electrical appliance.As shown in table 1, when the active state for getting user is
When " going home " state, corresponding destination home appliance is air conditioner, and corresponding control instruction is " opening air conditioner ", " refrigeration 27
℃”。
Table 2
In another embodiment of the present invention, the active state with destination home appliance and control instruction of user is corresponding
Relationship is also possible to factory default.Specifically, the active state of the user of factory default and destination home appliance and control
What the corresponding relationship of instruction was also possible to obtain by a large amount of survey data or experimental data, it is suitable for general user.
It should be noted that destination home appliance is not limited to air conditioner, water heater, water dispenser etc. can also be, specifically
Control instruction can be configured in conjunction with the active state of user.
Sending module 50 is used to control instruction being sent to destination home appliance, so that destination home appliance executes control and refers to
It enables.
In one embodiment of the invention, control instruction can be sent directly to destination home appliance;It can also incite somebody to action
Control instruction is first sent to Cloud Server, control instruction is forwarded to destination home appliance by Cloud Server.
It should be noted that user can according to their needs and use habit is pre- by the self-service setting first of administration interface
If flow, the second preset flow, the active state of user is set and vacancy rate and enlivens the preset rules of rate, and user is set
Active state and the corresponding relationship of destination home appliance and control instruction mentioned so as to meet the individual demand of user
Rise user experience.
In one particular embodiment of the present invention, the first preset flow is 64 bps, and the second preset flow is 1024
Bps, predetermined period is 60 seconds, and preset rules are as shown in table 1, and destination home appliance is air conditioner, the active state of user
It is as shown in table 2 with the corresponding relationship of the control instruction of air conditioner.After user leaves home, router is in idle state, continuous to count
The vacancy rate that router in three hours is calculated is 0.95, is greater than 0.9, after user goes home, smart phone connects road automatically
By device, application transfer flow, the rate of enlivening that router in 60 seconds is calculated after user goes home is 0.6, is greater than 0.5.Root
According to " Ri10800=0.95 and Ra60=0.6 " judges the active state of user for " going home " state, and then directly from trend air conditioner
Send the control command of " opening air conditioner ", " 27 DEG C of refrigeration ".The current state for obtaining air conditioner simultaneously, if air conditioner is current
State is in off state, then controls air conditioner unlatching, and controls operational mode as 27 DEG C of refrigeration;If the current state of air conditioner is
Open state directly controls the operational mode of air conditioner then as 27 DEG C of refrigeration.
The device based on router traffic control household electrical appliance of the embodiment of the present invention, can be by computing module according to pre-
If the flow of router is greater than second less than the flow of router in the time of the first preset flow and predetermined period in the period
The time of preset flow calculates the vacancy rate in predetermined period and enlivens rate, and pre- according at least one by the first acquisition module
If the vacancy rate in period and enliven the active state that rate and preset rules obtain user, so by second obtain module according to
Active state obtains corresponding destination home appliance and control instruction from router, and is sent out control instruction by sending module
It send to destination home appliance, so that destination home appliance executes control instruction.The device of the embodiment of the present invention passes through router stream
Amount can more accurate active state locating for more diverse judgement user, so that household electrical appliance be made to execute corresponding function automatically,
Accuracy is high, and user experience is good.
Further, the invention proposes a kind of routers, including the above embodiment of the present invention based on router traffic
Control the device of household electrical appliance.
It should be noted that the router of the embodiment of the present invention specific embodiment and the embodiment of the present invention based on road
Embodiment by the device of device flow control household electrical appliance is identical, is not repeated herein.
The router of the embodiment of the present invention can pass through activity locating for the more accurate more diverse judgement user of own traffic
State, and household electrical appliance are controlled according to the active state of user and execute corresponding function automatically, user experience is good.
In addition, router according to an embodiment of the present invention other compositions and effect for this field ordinary skill people
Member for be all it is known, in order to reduce redundancy, be not repeated herein.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", " length ", " width ",
" thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom" "inner", "outside", " up time
The orientation or positional relationship of the instructions such as needle ", " counterclockwise ", " axial direction ", " radial direction ", " circumferential direction " be orientation based on the figure or
Positional relationship is merely for convenience of description of the present invention and simplification of the description, rather than the device or element of indication or suggestion meaning must
There must be specific orientation, be constructed and operated in a specific orientation, therefore be not considered as limiting the invention.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect
It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary
The interaction relationship of the connection in portion or two elements, unless otherwise restricted clearly.For those of ordinary skill in the art
For, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (11)
1. a kind of method based on router traffic control household electrical appliance, which comprises the following steps:
It time of the flow less than the first preset flow for counting router in predetermined period, is denoted as at the first time, and statistics institute
The flow for stating router in predetermined period is greater than the time of the second preset flow, is denoted as the second time;
The vacancy rate in the predetermined period is calculated according to the first time and second time and enlivens rate;
The active state of user is obtained with rate of enlivening and preset rules according to the vacancy rate of predetermined period described at least one,
In, the active state includes going home, dynamic moving, static activity, sleeping and leave home;
Corresponding destination home appliance and control instruction are obtained from the router according to the active state;
The control instruction is sent to the destination home appliance, so that the destination home appliance executes the control and refers to
It enables.
2. the method as described in claim 1 based on router traffic control household electrical appliance, which is characterized in that it is described will be described
Control instruction is sent to the destination home appliance
The control instruction is sent directly to the destination home appliance;Or
The control instruction is sent to Cloud Server, the control instruction is forwarded to the mesh by the Cloud Server
Mark household electrical appliance.
3. the method as described in claim 1 based on router traffic control household electrical appliance, which is characterized in that described first is pre-
If the value range of flow is 32~128 byte per seconds, the value range of second preset flow be 512~2048 bytes/
Second, the value of the predetermined period is 60*k seconds, wherein k is positive integer.
4. the method as described in claim 1 based on router traffic control household electrical appliance, which is characterized in that described according to institute
It states and calculates the vacancy rate in the predetermined period with second time at the first time and enliven rate and include:
According to Riω=Ti/ ω calculates the vacancy rate in the predetermined period, according to Raω=Ta/ ω is calculated in the predetermined period
Enliven rate, wherein ω be the predetermined period, Ti be the first time, Ta be second time, RiωIt is described pre-
If the vacancy rate in the period, RaωTo enliven rate in the predetermined period.
5. the method as described in claim 1 based on router traffic control household electrical appliance, which is characterized in that the router
Including the administration interface for being interacted with user, so that the described first default stream is arranged by the administration interface in the user
Amount, second preset flow are arranged the active state of the user and vacancy rate and enliven the preset rules of rate, and be arranged
The active state of the user and the corresponding relationship of destination home appliance and control instruction.
6. a kind of device based on router traffic control household electrical appliance characterized by comprising
Statistical module, for counting time of the flow less than the first preset flow of router in predetermined period, when being denoted as first
Between, and time of the flow greater than the second preset flow of router in the predetermined period is counted, it was denoted as the second time;
Computing module, for calculating vacancy rate and work in the predetermined period according to the first time and second time
Jump rate;
First obtains module, for being obtained according to the vacancy rate of predetermined period described at least one with rate of enlivening and preset rules
The active state of user, wherein the active state includes going home, dynamic moving, static activity, sleeping and leave home;
Second obtains module, for obtaining destination home appliance and corresponding control from the router according to the active state
System instruction;
Sending module, for the control instruction to be sent to the destination home appliance, so that the destination home appliance is held
The row control instruction.
7. the device as claimed in claim 6 based on router traffic control household electrical appliance, which is characterized in that the transmission mould
Block is specifically used for:
The control instruction is sent directly to the destination home appliance;Or
The control instruction is sent to Cloud Server, the control instruction is forwarded to the mesh by the Cloud Server
Mark household electrical appliance.
8. the device as claimed in claim 6 based on router traffic control household electrical appliance, which is characterized in that described first is pre-
If the value range of flow is 32~128 byte per seconds, the value range of second preset flow be 512~2048 bytes/
Second, the value of the predetermined period is 60*k seconds, wherein k is positive integer.
9. the device as claimed in claim 6 based on router traffic control household electrical appliance, which is characterized in that the calculating mould
Block is specifically used for:
According to Riω=Ti/ ω calculates the vacancy rate in the predetermined period, according to Raω=Ta/ ω is calculated in the predetermined period
Enliven rate, wherein ω be the predetermined period, Ti be the first time, Ta be second time, RiωIt is described pre-
If the vacancy rate in the period, RaωTo enliven rate in the predetermined period.
10. the device as claimed in claim 6 based on router traffic control household electrical appliance, which is characterized in that the routing
Device includes the administration interface for interacting with user, so that the described first default stream is arranged by the administration interface in the user
Amount, second preset flow are arranged the active state of the user and vacancy rate and enliven the preset rules of rate, and be arranged
The active state of the user and the corresponding relationship of destination home appliance and control instruction.
11. a kind of router characterized by comprising based on router traffic control described in any one of claim 6-10
The device of household electrical appliance processed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610769801.3A CN106209632B (en) | 2016-08-30 | 2016-08-30 | Router and the method, apparatus that household electrical appliance are controlled based on router traffic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610769801.3A CN106209632B (en) | 2016-08-30 | 2016-08-30 | Router and the method, apparatus that household electrical appliance are controlled based on router traffic |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106209632A CN106209632A (en) | 2016-12-07 |
CN106209632B true CN106209632B (en) | 2019-04-30 |
Family
ID=58089241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610769801.3A Active CN106209632B (en) | 2016-08-30 | 2016-08-30 | Router and the method, apparatus that household electrical appliance are controlled based on router traffic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209632B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905525A (en) * | 2014-03-03 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Method for remotely controlling domestic equipment and router |
CN104635502A (en) * | 2014-12-26 | 2015-05-20 | 深圳市兰丁科技有限公司 | Intelligent home control method, device and system |
CN104865862A (en) * | 2014-09-30 | 2015-08-26 | 广东美的环境电器制造有限公司 | Wi-Fi-based body gesture control system and method |
CN105487923A (en) * | 2015-11-26 | 2016-04-13 | 小米科技有限责任公司 | Method and device for controlling working mode |
CN105511946A (en) * | 2015-11-30 | 2016-04-20 | 青岛海尔智能家电科技有限公司 | Intelligent home appliance equipment active degree statistic method and device and internet gateway |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2663955B1 (en) * | 2011-01-13 | 2022-10-26 | Tata Consultancy Services Ltd. | A method and system for effective management of energy consumption by household appliances |
-
2016
- 2016-08-30 CN CN201610769801.3A patent/CN106209632B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905525A (en) * | 2014-03-03 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Method for remotely controlling domestic equipment and router |
CN104865862A (en) * | 2014-09-30 | 2015-08-26 | 广东美的环境电器制造有限公司 | Wi-Fi-based body gesture control system and method |
CN104635502A (en) * | 2014-12-26 | 2015-05-20 | 深圳市兰丁科技有限公司 | Intelligent home control method, device and system |
CN105487923A (en) * | 2015-11-26 | 2016-04-13 | 小米科技有限责任公司 | Method and device for controlling working mode |
CN105511946A (en) * | 2015-11-30 | 2016-04-20 | 青岛海尔智能家电科技有限公司 | Intelligent home appliance equipment active degree statistic method and device and internet gateway |
Also Published As
Publication number | Publication date |
---|---|
CN106209632A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE102011052467B4 (en) | USER CONDITION AND BEHAVIOR BASED CONTROL SYSTEM AND METHOD FOR BUILDING TECHNICAL SYSTEMS AND COMPONENTS | |
US9541937B2 (en) | In-vehicle communication system | |
CN106304417B (en) | Household electrical appliance group network system and method based on ZigBee-network | |
US20190234641A1 (en) | Multi Zone, Multi Dwelling, Multi User Climate Systems | |
CN105650020A (en) | Fan and control system and method for fan | |
CN104838554B (en) | Energy management apparatus and EMS | |
CN105830462A (en) | Gateway, management center, and remote access system | |
DE102013002430B4 (en) | Method for switching on and off a night mode of a heating and / or air conditioning | |
KR101749693B1 (en) | System and method for energy management of smart home | |
US11313573B2 (en) | Load management system and method utilizing occupancy data and learned device behavior | |
KR20130109222A (en) | Information system, control device, communication method and program | |
CN106209632B (en) | Router and the method, apparatus that household electrical appliance are controlled based on router traffic | |
CN107104817A (en) | The network establishing method and device of home wiring control Internet of Things | |
CN109618001A (en) | Internet-of-things terminal data managing and control system and its method based on cloud platform | |
JP5592730B2 (en) | Electricity price visualization device | |
CN109691020A (en) | For running the method and control unit of the communication network including multiple communication equipments of industrial automation system | |
CN103677914B (en) | Device and method for easy switching and guiding starting of media of embedded system | |
CN107154883A (en) | Management method, the device and system of home appliance | |
JP5890564B1 (en) | Distribution board system | |
CN104506539B (en) | A kind of server identification method and device based on firmware renewal | |
CN106026025B (en) | The adjusting process and system of motor overload protection | |
CN109059209A (en) | Air-conditioning and its control method and control device, electronic equipment | |
CN107222409A (en) | The method and node of a kind of converting flow | |
CN109323405A (en) | Air conditioner and its control method and device | |
EP3421941A1 (en) | Assembly of smart supply meter and gateway device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |