CN109116989A - A kind of method, apparatus that robbing red packet and smartwatch - Google Patents

A kind of method, apparatus that robbing red packet and smartwatch Download PDF

Info

Publication number
CN109116989A
CN109116989A CN201810943389.1A CN201810943389A CN109116989A CN 109116989 A CN109116989 A CN 109116989A CN 201810943389 A CN201810943389 A CN 201810943389A CN 109116989 A CN109116989 A CN 109116989A
Authority
CN
China
Prior art keywords
smartwatch
acceleration
vector
red packet
axis
Prior art date
Application number
CN201810943389.1A
Other languages
Chinese (zh)
Inventor
黄奕超
Original Assignee
广东小天才科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 广东小天才科技有限公司 filed Critical 广东小天才科技有限公司
Priority to CN201810943389.1A priority Critical patent/CN109116989A/en
Publication of CN109116989A publication Critical patent/CN109116989A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash

Abstract

The present invention is suitable for technical field of information processing, provides a kind of method, apparatus for robbing red packet and smartwatch, which comprises that monitors smartwatch robs red packet event;When listen to it is described rob red packet event when, obtain the first vector acceleration and the second vector acceleration of the smartwatch in preset time, wherein, first vector acceleration and the second vector acceleration respectively include the acceleration in the smartwatch at least two directions along X-axis, Y-axis, Z axis;The angle of first vector acceleration and the second vector acceleration is calculated, and judges the angle whether in default angle section;If the angle in default angle section, indicates that the smartwatch executes the operation for robbing red packet.By the invention it is possible to which the abundant method for robbing red packet is to adapt to plurality of application scenes, practicability and ease for use are higher.

Description

A kind of method, apparatus that robbing red packet and smartwatch

Technical field

The invention belongs to technical field of information processing more particularly to a kind of method, apparatus for robbing red packet and smartwatch.

Background technique

With the prevalence of mobile payment, a kind of entertainment way that red packet also becomes people is robbed.And at present by mobile whole The method that red packet is robbed at end is relatively simple, so that the process for robbing red packet is more dull, user experience is bad, not interesting enough.

Summary of the invention

In view of this, can enrich and rob the embodiment of the invention provides a kind of method, apparatus for robbing red packet and smartwatch The method of red packet is to adapt to plurality of application scenes.

The first aspect of the embodiment of the present invention provides a kind of method for robbing red packet, comprising:

That monitors smartwatch robs red packet event;

When listen to it is described rob red packet event when, obtain in preset time the first vector acceleration of the smartwatch and Second vector acceleration, wherein first vector acceleration and the second vector acceleration respectively include the smartwatch along X Axis, Y-axis, in Z axis at least two directions acceleration;

The angle of first vector acceleration and the second vector acceleration is calculated, and judges the angle whether default In angle section;

If the angle in default angle section, indicates that the smartwatch executes the operation for robbing red packet.

The second aspect of the embodiment of the present invention provides a kind of device for robbing red packet, comprising:

Module is monitored, robs red packet event for monitor smartwatch;

Obtain module, for when listen to it is described rob red packet event when, obtain the of the smartwatch in preset time One vector acceleration and the second vector acceleration, wherein first vector acceleration and the second vector acceleration respectively include The acceleration in the smartwatch at least two directions along X-axis, Y-axis, Z axis;

Computing module, for calculating the angle of first vector acceleration and the second vector acceleration, and described in judgement Whether angle is in default angle section;

Indicating module, if indicating that red packet is robbed in the smartwatch execution for the angle in default angle section Operation.

The third aspect of the embodiment of the present invention provides a kind of smartwatch, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing method as described above.

The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.

Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is by monitoring intelligent hand Table robs red packet event;When listen to it is described rob red packet event when, obtain the smartwatch in preset time first accelerates Spend the second vector acceleration of vector sum, wherein first vector acceleration and the second vector acceleration respectively include the intelligence The acceleration in energy wrist-watch at least two directions along X-axis, Y-axis, Z axis;Calculate first vector acceleration and the second acceleration The angle of vector, and judge the angle whether in default angle section;If the angle refers in default angle section Show that the smartwatch executes the operation for robbing red packet.Through the embodiment of the present invention, can listen to rob red packet event when, pass through The first vector acceleration and the second vector acceleration of the smartwatch are obtained, to rob by the smartwatch red Packet;Also, by the angle for calculating first vector acceleration and the second vector acceleration, and judge the angle whether To determine whether indicating that the smartwatch executes the operation for robbing red packet in default angle section, may be implemented more interesting Red packet mode is robbed, while can enrich and rob the method for red packet to adapt to plurality of application scenes, better user experience, practicability and easily It is stronger with property.

Detailed description of the invention

It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.

Fig. 1 is the implementation process schematic diagram for the method for robbing red packet that the embodiment of the present invention one provides;

Fig. 2 is the implementation process schematic diagram of the method provided by Embodiment 2 of the present invention for robbing red packet;

Fig. 3 is the schematic diagram for the device for robbing red packet that the embodiment of the present invention three provides;

Fig. 4 is the schematic diagram for the smartwatch that the embodiment of the present invention four provides.

Specific embodiment

In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.

It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.

It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.

It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.

As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".

In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.

Fig. 1 is the implementation process schematic diagram for the method for robbing red packet that the embodiment of the present invention one provides, this method as shown in Figure 1 It may comprise steps of:

Step S101, that monitors smartwatch robs red packet event.

In the embodiment of the present invention, the smartwatch be can be with information processing capability, is met wrist-watch basic fundamental and is wanted The wrist-watch asked.Illustratively, smartwatch can also have prompting, navigation, calibration, monitoring, interaction etc. in addition to indicating the time One of or multiple functions, display mode include pointer, number, image etc..At this point, may include a variety of in smartwatch Sensor, such as range sensor, optical sensor, acceleration transducer and gyroscope, so as to obtain a variety of numbers of users It is monitored according to realize;The smartwatch can also include display screen, physical button and/or camera etc., so as to obtain And show image and various information.

In addition, the smartwatch can also include information transmission modular to carry out information transmission, the information transmission side Formula can be wireless transmission, wherein the mode being wirelessly transferred can have Bluetooth data transfer, the transmission of Wi-FI data, ZigBee number According to transmission, the transmission of near-field communication (Near Field Communication, NFC) data, Generation Mobile Telecommunication System technology (2- Generation wireless telephone technology, 2G) data transmission, 3rd generation mobile communication technology (3rd Generation mobile communication technology, 3G) data transmission, fourth generation mobile communication technology (the 4th Generation mobile communication technology, 4G) data transmission even the 5th third-generation mobile communication Technology (the 5th Generation mobile communication technology, 5G) etc., is not limited thereto.

The red packet event of robbing can refer to the event that electronics red packet information is got based on mobile Internet, wherein described Electronics red packet can be the red packet sent by network operator, Third-party payment platform etc. based on network.Illustratively, described Electronics red packet can be money, card certificate etc. form, and can preset corresponding red packet number, total amount and granting Form etc..User is available to the correlation for providing electronics red packet by the approach such as mobile Internet and specified application program Message, so as to get electronics red packet by clicking the modes such as corresponding red packet message.

In the embodiment of the present invention, the smartwatch can be monitored by monitoring specified application robs red packet event, At this point it is possible to which whether monitor in the information that the specified application receives includes described robbing red packet event.Described specified answers User is pre-set with can be, and is also possible to be determined according to the attribute of the application in the smartwatch, for example, when inspection It measures the application and belongs to mobile payment class in application, setting the application to the application for needing to monitor.

Optionally, the red packet event of robbing for monitoring smartwatch includes:

The state that application is preset in the smartwatch is detected, wherein the default application is preset processing electronics red packet The application of data;

When detecting that the default application is in the open state, that monitors smartwatch robs red packet event.

Illustratively, the default application can be Third-party payment platform with mobile payment function, Web bank Or network operator's application etc..It should be noted that the default application can be one or more, do not limit herein System.The state of the default application includes open state, closed state etc., wherein the open state can be described default Using the state that can receive information and send information is in, for example, the open state may include the default application In front stage operation state or background operation state.Further, it is also possible to detect whether the smartwatch establishes communication connection (such as bluetooth connection, 3G communication connection, 4G communication connection), after detecting that the smartwatch establishes communication connection, recognizes It is in the open state for the default application.

Step S102, when listen to it is described rob red packet event when, obtain the smartwatch in preset time first plus Velocity vector and the second vector acceleration, wherein first vector acceleration and the second vector acceleration respectively include described The acceleration in smartwatch at least two directions along X-axis, Y-axis, Z axis.

In the embodiment of the present invention, adding for the smartwatch can be obtained by the acceleration transducer of the smartwatch Velocity vector.It is a kind of sensor that can measure acceleration, the acceleration transducer that the acceleration transducer, which can be, It may include the parts such as mass block, damper, elastic element, sensing element and processing circuit.Illustratively, the acceleration passes Sensor may include the different form of condenser type, inductance type, strain-type, pressure resistance type, piezoelectric type etc..

The acceleration transducer can measure the acceleration in the smartwatch at least two directions along X-axis, Y-axis, Z axis Degree, to get the first vector acceleration and the second vector acceleration of the smartwatch.Illustratively, described first adds Velocity vector and the second vector acceleration can indicate the smartwatch along X-axis, Y-axis, Z axis extremely by coordinate vector The acceleration of few both direction, and reflected by the coefficient of two or three unit vectors in the coordinate vector and symbol The size and Orientation of acceleration in all directions.

The X-axis, Y-axis, Z axis can be preset according to the acceleration transducer, also, the X-axis, Y-axis, Z axis Rectangular coordinate system in space can be formed.Illustratively, the Z axis can be parallel with gravity direction, and the X-axis is vertical with Y-axis, and The X-axis and the plane of Y-axis composition are perpendicular to the Z axis.

In the embodiment of the present invention, first vector acceleration and the in preset time can be obtained according to preset rules Two vector accelerations.For example, it may be obtaining maximum two vector accelerations of acceleration value in preset time or obtaining pre- If maximum two vector accelerations of acceleration value on two different preset directions respectively in the time, and two for will acquire Vector acceleration is respectively as the first vector acceleration and the second vector acceleration.Furthermore, it is possible to when repeatedly continuously acquiring default In first vector acceleration and the second vector acceleration, until first vector acceleration and the second acceleration to The angle of amount either described robs the information or get finger that red packet event has terminated until getting in default angle section Show that the smartwatch stops robbing the instruction etc. of red packet.

Optionally, first vector acceleration and the second vector acceleration respectively include the smartwatch along X-axis, Y Axis, three directions of Z axis acceleration;

Correspondingly, first vector acceleration and the second vector acceleration for obtaining the smartwatch in preset time May include:

Obtain maximum two vector accelerations of acceleration value in preset time, and two vector accelerations that will acquire Respectively as the first vector acceleration and the second vector acceleration, the calculation formula of the acceleration value are as follows:

Wherein, the vector acceleration is a=(x, y, z), | a | indicate that the acceleration value of the vector acceleration, x indicate The acceleration of the smartwatch along the x axis, y indicate that the acceleration of the smartwatch along the y axis, z indicate the intelligence Acceleration of the energy wrist-watch along Z-direction.

In the embodiment of the present invention, the acceleration value can be the mould of corresponding vector acceleration.It obtains in preset time Maximum two vector accelerations of acceleration value, can be obtain in same period maximum two acceleration of acceleration value to Amount is also possible to obtain the maximum vector acceleration of acceleration value respectively obtained in different time sections in preset time, thus First vector acceleration and the second vector acceleration.

Optionally, first vector acceleration and the second vector acceleration for obtaining the smartwatch in preset time May include:

Maximum two vector accelerations of acceleration value on two different preset directions respectively are obtained in preset time, and Two vector accelerations that will acquire are respectively as the first vector acceleration and the second vector acceleration.

Wherein, the preset direction can be X-axis, Y-axis, one in three directions of Z axis, at this time the default side of two differences To can be X-axis, Y-axis, the both direction in Z axis.Added on two different preset directions respectively by obtaining in preset time Maximum two vector accelerations of velocity amplitude are can detecte as the first vector acceleration and the second vector acceleration The acceleration of user in different directions where the smartwatch, and by calculating first vector acceleration and second Whether the angle of vector acceleration is that preset red packet of robbing acts come the movement for judging the user where the smartwatch.

Step S103, calculates the angle of first vector acceleration and the second vector acceleration, and judges the angle Whether in default angle section.

Illustratively, the default angle section can be a continuum, be also possible to the continuum of segmentation.Example Such as, presetting angle section can be [30 °, 150 °], at this point it is possible to which the user where thinking the smartwatch passes through the intelligence Energy wrist-watch moves in two different directions, such as marks one similar ten by having dressed the wrist of the smartwatch Curve movement of word etc..It should be noted that the default angle section can there are many set-up mode, corresponding users There is also differences for motion feature, can be adjusted according to the actual situation, are not limited thereto at this time.

In the embodiment of the present invention, the angle for calculating first vector acceleration and the second vector acceleration may include:

Wherein, θ is the angle of first vector acceleration and the second vector acceleration, and first vector acceleration is B=(x1, y1, z1), first vector acceleration are c=(x2, y2, z2), | b | indicate the acceleration of the vector acceleration Value, | c | indicate that the acceleration value of the vector acceleration, x1 indicate smartwatch described in first vector acceleration along X The acceleration of axis direction, y1 indicate that the acceleration of smartwatch along the y axis described in first vector acceleration, z1 indicate Along the acceleration of Z-direction, x2 indicates in second vector acceleration smartwatch described in first vector acceleration The acceleration of the smartwatch along the x axis, y2 indicate smartwatch described in second vector acceleration along the y axis Acceleration, z2 indicates smartwatch described in second vector acceleration along the acceleration of Z-direction.

Step S104, if the angle in default angle section, indicates that the smartwatch executes the behaviour for robbing red packet Make.

In the embodiment of the present invention, the operation for robbing red packet can be arranged according to applicable cases.For example, it may be obtaining institute It states and robs electronics red packet data corresponding to red packet event, to get corresponding electronics red packet, and by corresponding electronics red packet It is stored in preset account.Can also identify and read it is described rob the corresponding link of red packet event, to be obtained by the chain Get corresponding electronics red packet.

The embodiment of the present invention robs red packet event by monitoring smartwatch;When listen to it is described rob red packet event when, obtain Take the first vector acceleration and the second vector acceleration of the smartwatch in preset time, wherein first acceleration The second vector acceleration of vector sum respectively includes the acceleration in the smartwatch at least two directions along X-axis, Y-axis, Z axis; The angle of first vector acceleration and the second vector acceleration is calculated, and judges the angle whether in default angle section It is interior;If the angle in default angle section, indicates that the smartwatch executes the operation for robbing red packet.It is real through the invention Apply example, can listen to rob red packet event when, accelerated by the first vector acceleration and second that obtain the smartwatch Vector is spent, to carry out robbing red packet by the smartwatch;Also, added by calculating first vector acceleration and second The angle of velocity vector, and judge the angle whether in default angle section to determine whether indicating that the smartwatch is held Rob the operation of red packet, may be implemented it is more interesting rob red packet mode, better user experience, practicability and ease for use compared with By force.

Fig. 2 is the implementation process schematic diagram of the method provided by Embodiment 2 of the present invention for robbing red packet, this method as shown in Figure 2 It may comprise steps of:

Step S201, that monitors smartwatch robs red packet event.

Step S202, when listen to it is described rob red packet event when, obtain the smartwatch in preset time first plus Velocity vector and the second vector acceleration, wherein first vector acceleration and the second vector acceleration respectively include described The acceleration in smartwatch at least two directions along X-axis, Y-axis, Z axis.

Step S203, calculates the angle of first vector acceleration and the second vector acceleration, and judges the angle Whether in default angle section.

Step S204, if the angle in default angle section, indicates that the smartwatch executes the behaviour for robbing red packet Make.

The present embodiment step S201, S202, S203, S204 is identical as above-mentioned steps S101, S102, S103, S104, specifically It can be found in step S101, S102, S103, S104 associated description, details are not described herein.

Step S205, when listen to it is described rob red packet event when, indicate that the smartwatch executes prompt operation.

The prompt operation can be prompt user and listen to the operation for robbing red packet event, be operated by prompt, can So that the user where the smartwatch recognize in time listened to it is described rob red packet event, to make in time corresponding Operation.

Optionally, prompt operation include in vibration prompt, the prompt of bright screen, voice prompting and Word message prompting extremely Few one kind.

In the embodiment of the present invention, the screen that the bright screen prompt can be the smartwatch is in the shape that screen is lighted State, to be prompted.The Word message prompting can be to be prompted by text information, such as by showing short message, text The modes such as the push of this information, notification bar notice are prompted.Wherein, the prompt operation can be the knot of a variety of prompting modes It closes, such as can be smartwatch display text information push etc. under bright screen state.

By when listen to it is described rob red packet event when, indicate that the smartwatch executes prompt operation, can be timely Remind user listened to it is described rob red packet event, help user recognize in time it is described rob red packet event, so that user is passed through spy Fixed movement can carry out robbing red packet activity by the smartwatch, so as to allow user to pass through intelligence in a variety of occasions Wrist-watch carries out robbing red packet, improves the speed and efficiency for robbing red packet, also improves the interest for robbing red packet.

It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.

Fig. 3 is the schematic diagram for the device for robbing red packet that the embodiment of the present invention three provides.For ease of description, illustrate only with The relevant part of the embodiment of the present invention.

The device 300 for robbing red packet includes:

Module 301 is monitored, robs red packet event for monitor smartwatch;

Obtain module 302, for when listen to it is described rob red packet event when, obtain the smartwatch in preset time First vector acceleration and the second vector acceleration, wherein first vector acceleration and the second vector acceleration wrap respectively Include the acceleration in the smartwatch at least two directions along X-axis, Y-axis, Z axis;

Computing module 303 for calculating the angle of first vector acceleration and the second vector acceleration, and judges institute Angle is stated whether in default angle section;

Indicating module 304, if it is red to indicate that the smartwatch execution is robbed for the angle in default angle section The operation of packet.

Optionally, the monitoring module 301 specifically includes:

Detection unit, for detecting the state for presetting application in the smartwatch, wherein the default application is default Processing electronics red packet data application;

Monitoring unit, for when detecting that the default application is in the open state, that monitors smartwatch to rob red packet Event.

Optionally, in the embodiment of the present invention, first vector acceleration and the second vector acceleration respectively include described Smartwatch along X-axis, Y-axis, three directions of Z axis acceleration;

Correspondingly, the acquisition module 302 is specifically used for:

Obtain maximum two vector accelerations of acceleration value in preset time, and two vector accelerations that will acquire Respectively as the first vector acceleration and the second vector acceleration, the calculation formula of the acceleration value are as follows:

Wherein, the vector acceleration is a=(x, y, z), | a | indicate that the acceleration value of the vector acceleration, x indicate The acceleration of the smartwatch along the x axis, y indicate that the acceleration of the smartwatch along the y axis, z indicate the intelligence Acceleration of the energy wrist-watch along Z-direction.

Optionally, the acquisition module 302 is specifically used for:

Maximum two vector accelerations of acceleration value on two different preset directions respectively are obtained in preset time, and Two vector accelerations that will acquire are respectively as the first vector acceleration and the second vector acceleration.

Optionally, described device 300 further include:

Cue module, for when listen to it is described rob red packet event when, indicate that the smartwatch executes prompt operation.

Optionally, in the embodiment of the present invention, prompt operation include vibration prompt, the prompt of bright screen, voice prompting and At least one of Word message prompting.

Fig. 4 is the schematic diagram for the smartwatch that the embodiment of the present invention four provides.As shown in figure 4, the intelligent hand of the embodiment Table 4 includes: processor 40, memory 41 and is stored in the meter that can be run in the memory 41 and on the processor 40 Calculation machine program 42.The processor 40 is realized when executing the computer program 42 in above-mentioned each embodiment of the method for robbing red packet The step of, such as step 101 shown in FIG. 1 is to 104.Alternatively, realization when the processor 40 executes the computer program 42 The function of each module/unit in above-mentioned each Installation practice, such as the function of module 301 to 304 shown in Fig. 3.

Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the smartwatch 4 is described.For example, the computer program 42 can be divided It is cut into and monitors module, obtains module, computing module, indicating module, each module concrete function is as follows:

Module is monitored, robs red packet event for monitor smartwatch;

Obtain module, for when listen to it is described rob red packet event when, obtain the of the smartwatch in preset time One vector acceleration and the second vector acceleration, wherein first vector acceleration and the second vector acceleration respectively include The acceleration in the smartwatch at least two directions along X-axis, Y-axis, Z axis;

Computing module, for calculating the angle of first vector acceleration and the second vector acceleration, and described in judgement Whether angle is in default angle section;

Indicating module, if indicating that red packet is robbed in the smartwatch execution for the angle in default angle section Operation.

The smartwatch 4 may include, but be not limited only to, processor 40, memory 41.Optionally, the smartwatch 4 It can also include dial plate, watchband etc..It will be understood by those skilled in the art that Fig. 4 is only the example of smartwatch 4, not structure The restriction of pairs of smartwatch 4 may include perhaps combining certain components or difference than illustrating more or fewer components Component, such as the smartwatch can also include input-output equipment, network access equipment, bus etc..

Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.

The memory 41 can be the internal storage unit of the smartwatch 4, such as the hard disk or interior of smartwatch 4 It deposits.The memory 41 is also possible to the External memory equipment of the smartwatch 4, such as be equipped on the smartwatch 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the smartwatch 4 Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the smartwatch Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.

It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.

In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.

Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.

In embodiment provided by the present invention, it should be understood that disclosed device/smartwatch and method, it can be with It realizes by another way.For example, device described above/smartwatch embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.

The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.

It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.

If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.

Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method for robbing red packet characterized by comprising
That monitors smartwatch robs red packet event;
When listen to it is described rob red packet event when, obtain the first vector acceleration and second of the smartwatch in preset time Vector acceleration, wherein first vector acceleration and the second vector acceleration respectively include the smartwatch along X-axis, Y The acceleration at least two directions in axis, Z axis;
The angle of first vector acceleration and the second vector acceleration is calculated, and judges the angle whether in default angle In section;
If the angle in default angle section, indicates that the smartwatch executes the operation for robbing red packet.
2. the method as described in claim 1, which is characterized in that it is described monitor smartwatch red packet event of robbing include:
The state that application is preset in the smartwatch is detected, wherein the default application is preset processing electronics red packet data Application;
When detecting that the default application is in the open state, that monitors smartwatch robs red packet event.
3. the method as described in claim 1, which is characterized in that first vector acceleration and the second vector acceleration difference Including the smartwatch along X-axis, Y-axis, three directions of Z axis acceleration;
Correspondingly, first vector acceleration and the second vector acceleration packet for obtaining the smartwatch in preset time It includes:
The two vector accelerations difference that obtains maximum two vector accelerations of acceleration value in preset time, and will acquire As the first vector acceleration and the second vector acceleration, the calculation formula of the acceleration value are as follows:
Wherein, the vector acceleration is a=(x, y, z), | a | the acceleration value of the vector acceleration is indicated, described in x expression The acceleration of smartwatch along the x axis, y indicate that the acceleration of the smartwatch along the y axis, z indicate the intelligent hand Acceleration of the table along Z-direction.
4. the method as described in claim 1, which is characterized in that the first of the smartwatch adds in the acquisition preset time Velocity vector and the second vector acceleration include:
Maximum two vector accelerations of acceleration value on two different preset directions respectively are obtained in preset time, and will be obtained Two vector accelerations got are respectively as the first vector acceleration and the second vector acceleration.
5. the method as described in Claims 1-4 any one, which is characterized in that further include:
When listen to it is described rob red packet event when, indicate that the smartwatch executes prompt operation.
6. method as claimed in claim 5, which is characterized in that the prompt operation includes vibration prompt, the prompt of bright screen, voice At least one of prompt and Word message prompting.
7. a kind of device for robbing red packet characterized by comprising
Module is monitored, robs red packet event for monitor smartwatch;
Obtain module, for when listen to it is described rob red packet event when, obtain the smartwatch in preset time first plus Velocity vector and the second vector acceleration, wherein first vector acceleration and the second vector acceleration respectively include described The acceleration in smartwatch at least two directions along X-axis, Y-axis, Z axis;
Computing module for calculating the angle of first vector acceleration and the second vector acceleration, and judges the angle Whether in default angle section;
Indicating module, if indicating that the smartwatch executes the behaviour for robbing red packet for the angle in default angle section Make.
8. device as claimed in claim 7, which is characterized in that the monitoring module specifically includes:
Detection unit, for detecting the state for presetting application in the smartwatch, wherein the default application is preset place Manage the application of electronics red packet data;
Monitoring unit, for when detecting that the default application is in the open state, that monitors smartwatch to rob red packet event.
9. a kind of smartwatch, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
CN201810943389.1A 2018-08-17 2018-08-17 A kind of method, apparatus that robbing red packet and smartwatch CN109116989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810943389.1A CN109116989A (en) 2018-08-17 2018-08-17 A kind of method, apparatus that robbing red packet and smartwatch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810943389.1A CN109116989A (en) 2018-08-17 2018-08-17 A kind of method, apparatus that robbing red packet and smartwatch

Publications (1)

Publication Number Publication Date
CN109116989A true CN109116989A (en) 2019-01-01

Family

ID=64851871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810943389.1A CN109116989A (en) 2018-08-17 2018-08-17 A kind of method, apparatus that robbing red packet and smartwatch

Country Status (1)

Country Link
CN (1) CN109116989A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699229A (en) * 2014-01-13 2014-04-02 孟庆由 Method and device for controlling intelligent watch
CN104571605A (en) * 2015-01-28 2015-04-29 广东小天才科技有限公司 Control method and system of intelligent electronic equipment
CN105138229A (en) * 2015-09-29 2015-12-09 联想(北京)有限公司 Information processing method and electronic equipment
CN106020851A (en) * 2016-06-27 2016-10-12 乐视控股(北京)有限公司 Mobile terminal control method and device
CN106657566A (en) * 2016-09-12 2017-05-10 广东欧珀移动通信有限公司 Physical button adjusting method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699229A (en) * 2014-01-13 2014-04-02 孟庆由 Method and device for controlling intelligent watch
CN104571605A (en) * 2015-01-28 2015-04-29 广东小天才科技有限公司 Control method and system of intelligent electronic equipment
CN105138229A (en) * 2015-09-29 2015-12-09 联想(北京)有限公司 Information processing method and electronic equipment
CN106020851A (en) * 2016-06-27 2016-10-12 乐视控股(北京)有限公司 Mobile terminal control method and device
CN106657566A (en) * 2016-09-12 2017-05-10 广东欧珀移动通信有限公司 Physical button adjusting method and mobile terminal

Similar Documents

Publication Publication Date Title
Müller et al. The indicator side of ecosystem services
Wang et al. Augmented Reality in built environment: Classification and implications for future research
Shreider The Monte Carlo method: the method of statistical trials
US20140278219A1 (en) System and Method For Monitoring Movements of a User
Barrett et al. How much measurement independence is needed to demonstrate nonlocality?
KR100734967B1 (en) Detecting errors in the determination of magnetic location or orientation
Henpraserttae et al. Accurate activity recognition using a mobile phone regardless of device orientation and location
CN105981035B (en) Manage the display of privacy information
TW200427272A (en) Wireless transfer of data
WO2012151471A2 (en) Identifying gestures using multiple sensors
Kau et al. A smart phone-based pocket fall accident detection, positioning, and rescue system
WO2012119126A2 (en) Apparatus, system, and method for automatic identification of sensor placement
US8781991B2 (en) Emotion recognition apparatus and method
JP2014076385A5 (en)
Bodnar et al. Validating models for disease detection using twitter
CN105979855A (en) Detecting the limb wearing a wearable electronic device
Brukner et al. Quantum entanglement in time
CN103455396B (en) The method of testing of electronic equipment hardware performance and device
DE102015113847A1 (en) Workwear
CN103308068B (en) Condition checkout gear, electronic equipment, measurement system and condition detection method
CN103699795A (en) Exercise behavior identification method and device and exercise intensity monitoring system
JP2014515133A5 (en)
CN103493006B (en) User content is stoped based on position
CN105142745B (en) With physical exertion supervision equipment come extension, game
CN103654759A (en) Exercise information detecting apparatus and exercise information detecting method

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination