Summary of the invention
Based on this, for above-mentioned technical problem, it is provided that a kind of Intelligent water cup, Intelligent water cup topple over action in fact
The method and system of existing data transmission.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that
A kind of Intelligent water cup, including cup and mainboard, described mainboard is located at the bottom of described cup, its
It is provided with obliquity sensor and wireless communication module, described obliquity sensor and described wireless communication module
Connect.
This programme also includes display screen, and described mainboard is additionally provided with display module, and described display screen is located at institute
State on cup, and be connected with described display module.
This programme further relates to a kind of Intelligent water cup and topples over the method that action realizes data transmission, including:
Two Intelligent water cups all detect the angle of self and vertical direction in real time by obliquity sensor, and lead to
Cross wireless communication module and angle data and corresponding timestamp are sent to server;
Described server detects described angle data and timestamp, if the angle of an Intelligent water cup is always
0 °, corresponding Intelligent water cup is static placing attitude, and the variable angle of another Intelligent water cup is first to go up
Rise, and more than 90 ° after decline, corresponding Intelligent water cup is for toppling over attitude, and the most described server is by described
The mailing address of two Intelligent water cups is sent respectively to the other side;
The Intelligent water cup toppling over attitude is set up to the intelligent water of static placing attitude by described mailing address
The one way data communication of cup, is sent to described quiet by the corresponding data on the described Intelligent water cup toppling over attitude
The only Intelligent water cup of placing attitude.
Described being sent to by corresponding data on the described Intelligent water cup toppling over attitude described static puts appearance
The Intelligent water cup of state includes:
The corresponding data toppling over the Intelligent water cup display screen displayed content of attitude is sent to described static
The Intelligent water cup of placing attitude, stops in display accordingly on the described Intelligent water cup toppling over attitude meanwhile
Hold;
The Intelligent water cup of described static placing attitude shows, at it, the content that data described in screen display are corresponding.
This programme further relate to a kind of Intelligent water cup topple over action realize data transmission system, including:
Two Intelligent water cups, described Intelligent water cup includes that cup and mainboard, described mainboard are located at described cup
The bottom of body, which is provided with obliquity sensor and wireless communication module, and described obliquity sensor is with described
Wireless communication module connects;
Server, described server is connected by wireless network with said two Intelligent water cup;
Said two Intelligent water cup all detects the angle of self and vertical direction in real time by obliquity sensor,
And by wireless communication module, angle data and corresponding timestamp are sent to server;
Described server detects described angle data and timestamp, if the angle of an Intelligent water cup is always
0 °, corresponding Intelligent water cup is static placing attitude, and the variable angle of another Intelligent water cup is first to go up
Rise, and more than 90 ° after decline, corresponding Intelligent water cup is for toppling over attitude, and the most described server is by described
The mailing address of two Intelligent water cups is sent respectively to the other side;
The Intelligent water cup toppling over attitude is set up to the intelligent water of static placing attitude by described mailing address
The one way data communication of cup, is sent to described quiet by the corresponding data on the described Intelligent water cup toppling over attitude
The only Intelligent water cup of placing attitude.
Being additionally provided with display module on described mainboard, described display screen is located on described cup, and aobvious with described
Show that module connects.
Described being sent to by corresponding data on the described Intelligent water cup toppling over attitude described static puts appearance
The Intelligent water cup of state includes:
The corresponding data toppling over the Intelligent water cup display screen displayed content of attitude is sent to described static
The Intelligent water cup of placing attitude, stops in display accordingly on the described Intelligent water cup toppling over attitude meanwhile
Hold;
The Intelligent water cup of described static placing attitude shows, at it, the content that data described in screen display are corresponding.
Described wireless communication module is WIFI module, and described server passes through with said two Intelligent water cup
WIFI network connects.
The present invention will topple over attitude and be defined as data transmission, by an Intelligent water cup to another Intelligent water cup
Pouring action realize man-machine interaction, the instruction of transmission data is conveyed to Intelligent water cup, convenient, fast
Victory, overcome traditional intelligence water tumbler due to design restriction, user cannot will transmission data intention pass on
To the defect of Intelligent water cup.
Detailed description of the invention
As it is shown in figure 1, a kind of Intelligent water cup, including cup 110 and mainboard 120.
Mainboard 120 is located at the bottom of cup 110, which is provided with obliquity sensor 121 and radio communication
Module 122, obliquity sensor 121 is connected with wireless communication module 122.
The angle of cup 110 and vertical direction can be gathered, according to angle by obliquity sensor 121
Change may determine that the attitude of cup 110, and the present invention will topple over the instruction that attitude orientation is data transmission.
Wireless communication module 122 is for data communication.
For video data, this programme have also been devised display screen 130, and mainboard 120 is additionally provided with display mould
Block 123, display screen 130 is located on cup 110, and is connected with display module 123.
The invention still further relates to a kind of Intelligent water cup and topple over the method that action realizes data transmission, including:
One, water tumbler can be waken up up by the mode such as gesture, button and start water tumbler data transmission stream journey, start
After flow process, two Intelligent water cups 1 all detect self and vertical direction in real time by obliquity sensor 121
Angle, i.e. Intelligent water cup 1 and the angle theta of z-axis, refer to Fig. 2, and by wireless communication module 122
Angle data and corresponding timestamp are sent to server 2.
Two, server 2 detects above-mentioned angle data and timestamp, if the angle of an Intelligent water cup 1 begins
Being 0 ° eventually, corresponding Intelligent water cup 1 is static placing attitude, and the angle of another Intelligent water cup 1 becomes
Turn to first rise, and more than 90 ° after decline, corresponding Intelligent water cup 1 for toppling over attitude, then server
The mailing address of two Intelligent water cups 1 is sent respectively to the other side by 2.
Topple over attitude and be primarily used to simulate the action of a water tumbler pouring entrance another one water tumbler, actual
Do not require that water is poured out, be simply similar to a water tumbler on action form to another pouring.
Three, the Intelligent water cup 1 toppling over attitude is set up by mailing address to the intelligent water of static placing attitude
The one way data communication of cup 1, is sent to static pendulum by the corresponding data on the Intelligent water cup 1 toppling over attitude
Put the Intelligent water cup of attitude.
The present invention will topple over attitude and be defined as data transmission, by an Intelligent water cup 1 to another intelligent water
The pouring action of cup 1 realizes man-machine interaction, the instruction of transmission data is conveyed to Intelligent water cup 1, side
Just, fast.
The when that attitude being toppled in tracking, mainly follow the trail of is the change of angle theta.As it is shown on figure 3, angle
θ first rises, and declines after time t is more than 90 °.
Specifically, the corresponding data on the Intelligent water cup 1 toppling over attitude is sent to static placing attitude
Intelligent water cup 1 includes:
The corresponding data toppling over display screen 130 displayed content of the Intelligent water cup 1 of attitude is sent to quiet
The only Intelligent water cup 1 of placing attitude, meanwhile, stops display corresponding on the Intelligent water cup 1 topple over attitude
Content.
In the Intelligent water cup 1 of static placing attitude shows that above-mentioned data are corresponding on its display screen 130
Hold.
Show a virtual canoe as former on an Intelligent water cup, another Intelligent water cup does not show any
Thing, the former latter initiate pouring action (the actual water that need not is poured out, for there being lid water tumbler, can
With by lid lid).
After action completes, virtual canoe has been transferred on another Intelligent water cup.
As shown in Fig. 1 and Fig. 4, the invention still further relates to a kind of Intelligent water cup and topple over action and realize data and pass
Defeated system, including:
Two Intelligent water cups 1, Intelligent water cup 1 includes cup 110 and mainboard 120.
Mainboard 120 is located at the bottom of cup 110, which is provided with obliquity sensor 121 and radio communication
Module 122, obliquity sensor 121 is connected with wireless communication module 122.
The angle of cup 110 and vertical direction can be gathered, according to angle by obliquity sensor 121
Change may determine that the attitude of cup 110, and the present invention will topple over the instruction that attitude orientation is data transmission.
Wireless communication module 122 is for data communication.
For video data, this programme have also been devised display screen 130, can be liquid crystal display screen, electric ink
Screen, dot matrix screen etc., mainboard 120 is additionally provided with display module 123, display screen 130 is located at cup 110
On, and be connected with display module 123.
Server 2, server 2 is connected by wireless network with two Intelligent water cups 1.
It is also preferred that the left wireless communication module 122 is WIFI module, server 2 and two Intelligent water cups 1
Connected by WIFI network.
First, two Intelligent water cups 1 all detect self and vertical direction in real time by obliquity sensor 121
Angle, i.e. Intelligent water cup 1 and the angle theta of z-axis, refer to Fig. 2, and pass through wireless communication module
Angle data and corresponding timestamp are sent to server 2 by 122.
Then, server 2 detects above-mentioned angle data and timestamp, if the angle of an Intelligent water cup 1
Being always 0 °, corresponding Intelligent water cup 1 is static placing attitude, and the angle of another Intelligent water cup 1
Be changed to first rise, and more than 90 ° after decline, corresponding Intelligent water cup 1 for toppling over attitude, then services
The mailing address of two Intelligent water cups 1 is sent respectively to the other side by device 2.
It is pointed out that, if a scene has plural water tumbler, server needs to obtain additionally
Information, including:
1) Intelligent water cup and the server sync time, server provides all companies of time synchronized service guarantees
The smart machine client time receiving server is consistent, and angle and timestamp are sent to service simultaneously
Device.
2) for Cloud Server, need to gather water tumbler WIFI AP (or other gateway devices of associated
Access device) IP address, thus ensure that the water tumbler both sides in geographical position match.
3) when necessary, by extra gesture, the measure such as button ensures water tumbler before transmitting the data
Normal wakeup.4) in data interaction failure (it is congested that such as network has large number quipments to cause) simultaneously, logical
Cross certain way and return (such as LED state lamp)
Topple over attitude and be primarily used to simulate the action of a water tumbler pouring entrance another one water tumbler, actual
Do not require that water is poured out, be simply similar to a water tumbler on action form to another pouring.
Finally, the Intelligent water cup 1 toppling over attitude is set up by mailing address to the intelligence of static placing attitude
The one way data communication of water tumbler 1, is sent to static by the corresponding data on the Intelligent water cup 1 toppling over attitude
The Intelligent water cup of placing attitude.
The present invention will topple over attitude and be defined as data transmission, by an Intelligent water cup 1 to another intelligent water
The pouring action of cup 1 realizes man-machine interaction, the instruction of transmission data is conveyed to Intelligent water cup 1, side
Just, fast.
The when that attitude being toppled in tracking, mainly follow the trail of is the change of angle theta.As it is shown on figure 3, angle
θ first rises, and declines after time t is more than 90 °.
Specifically, the corresponding data on the Intelligent water cup 1 toppling over attitude is sent to static placing attitude
Intelligent water cup 1 includes:
The corresponding data toppling over display screen 130 displayed content of the Intelligent water cup 1 of attitude is sent to quiet
The only Intelligent water cup 1 of placing attitude, meanwhile, stops display corresponding on the Intelligent water cup 1 topple over attitude
Content.
In the Intelligent water cup 1 of static placing attitude shows that above-mentioned data are corresponding on its display screen 130
Hold.
Show a virtual canoe as former on an Intelligent water cup, another Intelligent water cup does not show any
Thing, the former latter initiate pouring action (the actual water that need not is poured out, for there being lid water tumbler, can
With by lid lid).
After action completes, virtual canoe has been transferred on another Intelligent water cup.
But, those of ordinary skill in the art is it should be appreciated that above embodiment is only to use
The present invention is described, and is not used as limitation of the invention, as long as at the connotation model of the present invention
In enclosing, change, the modification of embodiment described above all will be fallen in the range of claims of the present invention.