[go: up one dir, main page]

CN104580403A - Data statistic method and system, user terminal and application server - Google Patents

Data statistic method and system, user terminal and application server Download PDF

Info

Publication number
CN104580403A
CN104580403A CN201410814242.4A CN201410814242A CN104580403A CN 104580403 A CN104580403 A CN 104580403A CN 201410814242 A CN201410814242 A CN 201410814242A CN 104580403 A CN104580403 A CN 104580403A
Authority
CN
China
Prior art keywords
motion data
motion
wearable device
user terminal
motion information
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.)
Granted
Application number
CN201410814242.4A
Other languages
Chinese (zh)
Other versions
CN104580403B (en
Inventor
陈家敏
邝俊斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410814242.4A priority Critical patent/CN104580403B/en
Publication of CN104580403A publication Critical patent/CN104580403A/en
Application granted granted Critical
Publication of CN104580403B publication Critical patent/CN104580403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The embodiment of the invention discloses a data statistic method, a data statistic system, a user terminal and an application server. The method comprises the following steps: the user terminal sends a movement information request to a wearable device and acquires movement information recorded currently which is returned from the wearable device according to the movement information request; the user terminal calculates a movement data increment in a current preset time period according to the movement information and encapsulates the movement data increment through a user identifier based on interactive application; the user terminal sends the encapsulated movement data increment to the application server; the application server updates a movement data list corresponding to the user identifier through the movement data increment and outputs the movement data list. According to the invention, the movement information intercommunication can be realized, the function of the wearable device is increased, and the interactivity among users on the basis of the movement information is improved.

Description

Data statistical method and system, user terminal and application server
Technical Field
The invention relates to the technical field of internet, in particular to a data statistical method and a system thereof, a user terminal and an application server.
Background
With the continuous development and improvement of computer technology, portable computers gradually step into people's daily life, and wearable devices are formed by combining the portable computers and wearable articles (such as watches, bracelets, glasses and the like), so that the use of users is facilitated.
The wearable device can be worn on the body of a user to go out and go out to perform activities, the wearable device can record motion data of daily motion of the user (such as walking and/or running steps, distance and the like) so as to provide more intuitive motion amount display for the user, however, the user can only know the motion data of the user through the wearable device, so that the function of the wearable device is single, and the user cannot perform combined analysis on the motion data of the user through knowing the motion data of other users because the wearable device cannot establish connection, so that the interactivity between the wearable devices is influenced.
Disclosure of Invention
Embodiments of the present invention provide a data statistics method and system, a user terminal, and an application server, which can implement intercommunication of motion information, increase functions of wearable devices, and improve interactivity between users based on motion information.
In order to solve the foregoing technical problem, a first aspect of an embodiment of the present invention provides a data statistics method, which may include:
a user terminal sends a motion information request to wearable equipment and acquires the current recorded motion information returned by the wearable equipment according to the motion information request;
the user terminal calculates the motion data increment in the current preset time period according to the motion information, and packages the motion data increment by adopting a user identifier based on interactive application;
the user terminal sends the motion data increment after encapsulation processing to an application server;
and the application server updates the motion data list corresponding to the user identification by adopting the motion data increment and outputs the motion data list.
A second aspect of the embodiments of the present invention provides a data statistics method, which may include:
sending a motion information request to wearable equipment, and acquiring the current recorded motion information returned by the wearable equipment according to the data request;
calculating a motion data increment in the current preset time period according to the motion information, and packaging the motion data increment by adopting a user identifier based on interactive application;
and sending the motion data increment after encapsulation to an application server so that the application server updates a motion data list corresponding to the user identifier by adopting the motion data increment and outputs the motion data list.
A third aspect of the embodiments of the present invention provides a data statistics method, which may include:
receiving a packaged motion data increment sent by a user terminal, wherein the packaged motion data increment is calculated by the user terminal according to current recorded motion information returned by wearable equipment, and is packaged by adopting a user identifier based on interactive application within a current preset time period;
updating the motion data list corresponding to the user identification by adopting the motion data increment;
and outputting the motion data list.
A fourth aspect of an embodiment of the present invention provides a user terminal, which may include:
the information acquisition unit is used for sending a motion information request to the wearable equipment and acquiring the currently recorded motion information returned by the wearable equipment according to the data request;
the data packaging unit is used for calculating the motion data increment in the current preset time period according to the motion information and packaging the motion data increment by adopting a user identifier based on interactive application;
and the data sending unit is used for sending the motion data increment after the packaging processing to an application server so as to enable the application server to update a motion data list corresponding to the user identifier by adopting the motion data increment and enable the application server to output the motion data list.
A fifth aspect of an embodiment of the present invention provides an application server, which may include:
the data receiving unit is used for receiving the motion data increment after packaging processing sent by the user terminal, wherein the motion data increment after packaging processing is calculated by the user terminal according to the current recorded motion information returned by the wearable device, and the motion data increment in the current preset time period is subjected to packaging processing by adopting a user identification based on interactive application;
the list updating unit is used for updating the motion data list corresponding to the user identification by adopting the motion data increment;
a list output unit for outputting the motion data list.
A sixth aspect of the embodiments of the present invention provides a data statistics system, which may include the user terminal provided in the fourth aspect and the application server provided in the fifth aspect, and further include a wearable device; wherein,
and the wearable device is used for returning the currently recorded motion information to the user terminal according to the motion information request when receiving the motion information request sent by the user terminal.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, the motion data increment is submitted to the application server based on the interactive application, so that the application server can update the motion data list for output according to the motion data increment, the motion data intercommunication is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a data statistics method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data statistics method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another data statistics method provided by the embodiment of the invention;
FIG. 4 is a flow chart illustrating a further data statistics method according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a further data statistics method according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating a further data statistics method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an information acquisition unit according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a data encapsulation unit according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another user terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another user terminal according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an application server according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another application server provided in the embodiment of the present invention;
fig. 14 is a schematic structural diagram of a list updating unit provided in an embodiment of the present invention;
fig. 15 is a schematic structural diagram of another application server provided in the embodiment of the present invention;
fig. 16 is a schematic structural diagram of a data statistics system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data statistical method provided by the embodiment of the invention can be applied to the scene of the statistics of the daily motion information of the user, such as: the method comprises the steps that a user terminal sends a motion information request to wearable equipment worn by a user, obtains currently recorded motion information returned by the wearable equipment according to the motion information request, calculates motion data increment in a current preset time period according to the motion information, packages the motion data increment by adopting a user identification based on interactive application, sends the packaged motion data increment to an application server, and the application server updates a motion data list corresponding to the user identification by adopting the motion data increment and outputs the motion data list. The motion data are output through the motion data list, the motion information in the wearable equipment is extracted through the user terminal, the motion data list is displayed finally, the functions of the wearable equipment are indirectly increased, the motion data can be mutually checked among users, and the interactivity based on the motion information among the users is improved.
The wearable device related to the embodiment of the invention can be a wearable article containing a portable computer, for example: watches, bracelets, eyeglasses, etc., which may also contain motion sensors, such as: the Inertial sensor comprises an acceleration sensor and an angular velocity sensor, and a single-axis, double-axis and three-axis combined Inertial Measurement Unit (IMU) and an Attitude and Heading Reference System (AHRS) of the two sensors, wherein the acceleration sensor is preferably a Micro-Electro-Mechanical System (MEMS) accelerometer, is a sensor for measuring the Inertial force by using sensing mass, and usually comprises a standard mass block (sensing element) and a detection circuit, and the IMU mainly comprises three MEMS accelerometers, three gyros and a resolving circuit; the user terminal may include: terminal devices such as a tablet computer, a smart phone, a notebook computer, a palm computer, and a Mobile Internet Device (MID), or may be a data statistics client in the terminal devices; the application server may be a background device including functions of data statistics, data storage, data distribution, and the like.
A data statistics method provided by the embodiment of the present invention will be described in detail below with reference to fig. 1 to 6.
Referring to fig. 1, a flow chart of a data statistics method according to an embodiment of the present invention is shown. As shown in fig. 1, the embodiment of the present invention describes a specific flow of a data processing method from a user terminal side and an application server side, and the method includes the following steps S101 to S104.
S101, a user terminal sends a motion information request to wearable equipment and obtains currently recorded motion information returned by the wearable equipment according to the motion information request;
specifically, the user terminal may send a motion information request to the wearable device, and preferably, the user terminal may send the motion information request to the wearable device at regular time, for example: sending a motion information request every two hours, etc., the wearable device may read the total amount of motion data from its own sensors, e.g.: the method comprises the steps of walking and/or running, the distance and the like, and meanwhile obtaining the current recording time, sending motion information carrying the current recording time and the motion data total amount corresponding to the current recording time to the user terminal to respond to a motion information request, and obtaining the current recorded motion information returned by the wearable device by the user terminal.
It can be understood that, before sending the motion information request to the wearable device, the user terminal needs to establish a Communication connection with the wearable device in advance, where the Communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, Near Field Communication (NFC), and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, and the connection manner that adopts the wireless network needs to be performed in an environment with the wireless network, which affects efficiency of data statistics, and some user terminals may not have an NFC function, the embodiment of the present invention establishes a bluetooth Communication connection with the wearable device in a bluetooth connection manner. The user terminal may always maintain the communication connection with the wearable device, and of course, the user terminal may also establish the communication connection with the wearable device temporarily at the time of sending the motion information request.
S102, the user terminal calculates the motion data increment in the current preset time period according to the motion information, and packages the motion data increment by adopting a user identifier based on interactive application;
specifically, since the motion data recorded by the wearable device is not reset, if the motion data in a certain preset time period (for example, within two hours) is to be calculated, the user terminal needs to search for a total amount of motion data corresponding to a last recording time based on a current recording time, calculate the total amount of motion data corresponding to the last recording time and the total amount of motion data corresponding to the current recording time, and obtain a motion data increment between the last recording time and the current recording time, where the user terminal may perform encapsulation processing on the motion data increment based on a user identifier of a login interactive application, where the user identifier is a user serial number (Identity, ID) allocated or input when a user belonging to the user terminal registers the interactive application. The motion data increment represents the motion data added in the preset time period and is used for providing data addition basis for the motion data corresponding to the user identification when the follow-up application server counts the current recording time. The interactive application is preferably an instant messaging application.
S103, the user terminal sends the motion data increment after encapsulation processing to an application server;
specifically, the user terminal sends the motion data increment after encapsulation to the application server, and the motion data increment after encapsulation carries the user identifier.
S104, the application server updates a motion data list corresponding to the user identification by adopting the motion data increment and outputs the motion data list;
specifically, the application server receives the motion data increment sent by the user terminal after the encapsulation processing, and updates the motion data list corresponding to the user identifier by using the motion data increment, preferably, the application server may obtain the stored motion data corresponding to the user identifier, and update the motion data corresponding to the user identifier by using the motion data increment, the application server obtains the motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier, and the application server performs sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier by using a preset sorting mode, and generates the motion data list after the sorting processing.
It is understood that the motion data corresponding to the user identifier in the application server is a sum of motion data increments uploaded by the user terminal for recording a certain time period (for example, 0 time of the day to 24 time of the day), for example: if the user terminal uploads the motion data increment every two hours, the application server will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and after each update, the motion data list needs to be updated correspondingly, meanwhile, motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier also exist in the motion data list, and the motion data list is generated by sequencing the motion data. The application server may output the motion data list, and it should be noted that the mode of outputting the motion data list by the application server may be sending the motion data list to the user terminal according to the user identifier for display, or sending the motion data list to a public group corresponding to a public identifier based on the interactive application, and a user of the user terminal may enter the public group through the user identifier to refer to the motion data list.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, the motion data increment is submitted to the application server based on the interactive application, so that the application server can update the motion data list for output according to the motion data increment, the motion data intercommunication is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved.
Referring to fig. 2, a flow chart of a data statistics method according to an embodiment of the invention is provided. As shown in fig. 2, the embodiment of the present invention describes a specific flow of a data processing method from a wearable device side, a user terminal side, and an application server side, and the method includes the following steps S201 to S213.
S201, a user terminal establishes Bluetooth communication connection with wearable equipment in a Bluetooth connection mode;
specifically, before communicating with the wearable device, the user terminal needs to establish a communication connection with the wearable device in advance, the communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, NFC, and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, while the connection manner using the wireless network needs to be performed in an environment with the wireless network, which affects efficiency of data statistics, and some user terminals may not have an NFC function, so the embodiment of the present invention establishes a bluetooth communication connection with the wearable device using a bluetooth connection manner. The user terminal may always maintain the communication connection with the wearable device, and of course, the user terminal may also establish the communication connection with the wearable device temporarily at the time of sending the motion information request.
It should be noted that the wearable device may include at least one wearable device, that is, when the user may only own one wearable device, or may own a plurality of wearable devices at the same time, the user terminal needs to establish a communication connection with each wearable device of the at least one wearable device.
S202, a user terminal sends a motion information request to each wearable device in at least one wearable device, and obtains motion information returned by each wearable device according to the motion information request;
specifically, the user terminal sends a motion information request to each wearable device of the at least one wearable device, and preferably, the user terminal may send a motion information request to each wearable device at regular time, for example: sending a motion information request every two hours, etc., each wearable device may read the total amount of motion data from its own sensors, e.g.: the method comprises the steps of walking and/or running, the distance and the like, and meanwhile obtaining the current recording time, sending motion information carrying the current recording time and the motion data total amount corresponding to the current recording time to the user terminal to respond to a motion information request, and obtaining the motion information returned by each wearable device by the user terminal.
S203, the user terminal determines the currently recorded motion information in the motion information returned by each wearable device by adopting a preset screening rule;
specifically, if there is only one wearable device, the user terminal determines the motion information returned by the wearable device as the currently recorded motion information; if there are multiple wearable devices, the user terminal may select, from the total amount of motion data returned by the multiple wearable devices, motion information with the largest total value, and determine the motion information as the current recorded motion information, or the user terminal may average the total amount of motion data returned by the multiple wearable devices, and determine the average as the total amount of motion data corresponding to the current recording time in the current recorded motion information, or the like.
S204, the user terminal searches the total amount of the motion data corresponding to the last recording time based on the current recording time;
specifically, the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time, and since the motion data recorded by the wearable device is not reset, if the motion data within a certain preset time period (for example, within two hours) is to be calculated, the user terminal needs to search for the total amount of motion data corresponding to a previous recording time based on the current recording time.
S205, the user terminal calculates the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time to obtain the motion data increment from the last recording time to the current recording time;
specifically, the user terminal may use a difference between the total amount of the motion data corresponding to the current recording time and the total amount of the motion data corresponding to the previous recording time as a motion data increment between the previous recording time and the current recording time (i.e., within a preset time period).
S206, the user terminal adopts the user identification based on the interactive application to package the motion data increment;
specifically, the user terminal may package the motion data increment based on a user identifier of a login interactive application, where the user identifier is a user ID allocated or input when a user to which the user terminal belongs registers the interactive application. The motion data increment represents the motion data added in the preset time period and is used for providing data addition basis for the motion data corresponding to the user identification when the follow-up application server counts the current recording time. The interactive application is preferably an instant messaging application.
S207, the user terminal sends the motion data increment after encapsulation processing to an application server;
specifically, the user terminal sends the motion data increment after encapsulation to the application server, and the motion data increment after encapsulation carries the user identifier.
S208, the application server judges whether the current moment reaches a preset moment;
specifically, when the application server receives the motion data increment after the encapsulation processing, the application server may first determine whether the current time reaches a preset time, and it may be understood that the motion data corresponding to the user identifier in the application server is a sum of motion data increments uploaded by the user terminal in a certain time period (for example, 0 time of the day to 24 time of the day), for example: if the user terminal uploads the motion data increment every two hours, the application server will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and at this time, the application server may determine whether the current time reaches 24, that is, the next day is 0, if so, then step S209 is executed; if not, the process proceeds to step S210.
S209, the application server carries out zero clearing processing on the motion data in the motion data list corresponding to the user identification;
specifically, when it is determined that the current time reaches the preset time, the application server may perform zero clearing processing on the motion data in the motion data list corresponding to the user identifier, and it may be understood that motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier and motion data corresponding to the user identifier exist in the motion data list, and therefore, when the preset time is reached, the application server may perform zero clearing on all the motion data in the motion data list.
Preferably, the application server performs the zero clearing processing, and simultaneously stores the complete motion data list of the current day (i.e., the complete motion data from the time of the current day 0 to the time of the current day 24), so that the user can view the history record at any time.
S210, the application server obtains the stored motion data corresponding to the user identification, and updates the motion data corresponding to the user identification by adopting the motion data increment;
specifically, when it is determined that the current time does not reach the preset time, the application server may obtain the stored motion data corresponding to the user identifier, add the obtained motion data increment to the motion data corresponding to the user identifier, and complete updating of the motion data corresponding to the user identifier.
S211, the application server obtains motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
specifically, since there may also be a change in the motion data corresponding to at least one interactive application identifier associated with the user identifier, the application server may obtain the motion data corresponding to each of the at least one interactive application identifier.
It should be noted that the interactive application identifier represents an application identifier having an association relationship (e.g., a friend relationship, etc.) with the user identifier, and may be a user ID allocated or input by another user when registering the interactive application, and the user terminals of other users may also upload respective motion data increments, and the implementation process thereof may be the same as the execution process of the embodiment of the present invention, and is not described herein again.
S212, the application server performs sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier by adopting a preset sorting mode, and generates a motion data list after the sorting processing;
specifically, the application server may perform sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier in a preset sorting manner, where the preset sorting method preferably sorts all the motion data in sequence from high to low so as to be convenient for the user to view, and certainly, other sorting manners are adopted, for example: the ranking process of the embodiment of the invention can be realized by ranking from low to high, or ranking the motion data corresponding to the updated user identifier at the head, ranking the motion data corresponding to each interactive user identifier from high to low, and the like. The application server generates a motion data list after the sorting processing, and the motion data list may include a plurality of user identifiers and motion data corresponding to each of the plurality of user identifiers.
S213, the application server outputs the motion data list;
specifically, the application server may output the motion data list, and it should be noted that the motion data list may be output by the application server in a manner that the motion data list is sent to the user terminal according to the user identifier to be displayed, or the motion data list may be sent to a public group corresponding to the public identifier based on the interactive application, and a user of the user terminal may enter the public group through the user identifier to refer to the motion data list.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; the Bluetooth communication connection is established with the wearable equipment in a Bluetooth connection mode, so that the data information can be transmitted between the user terminal and the wearable equipment in real time, and meanwhile, the currently recorded motion information is determined through a preset screening rule, so that the uniqueness and the accuracy of the motion information are ensured; by updating the motion data list at regular time, the motion conditions of other users can be checked by the user in real time, the entertainment among the users is improved, and the application scene of the wearable device is enriched.
Referring to fig. 3, a flow chart of another data statistics method according to an embodiment of the invention is shown. As shown in fig. 3, the embodiment of the present invention describes a specific flow of a data processing method from the user terminal side, and the method includes the following steps S301 to S303.
S301, sending a motion information request to wearable equipment, and acquiring the currently recorded motion information returned by the wearable equipment according to the data request;
specifically, the user terminal may send a motion information request to the wearable device, and preferably, the user terminal may send the motion information request to the wearable device at regular time, for example: sending a motion information request every two hours, etc., the wearable device may read the total amount of motion data from its own sensors, e.g.: the method comprises the steps of walking and/or running, the distance and the like, and meanwhile obtaining the current recording time, sending motion information carrying the current recording time and the motion data total amount corresponding to the current recording time to the user terminal to respond to a motion information request, and obtaining the current recorded motion information returned by the wearable device by the user terminal.
It can be understood that the user terminal needs to establish a communication connection with the wearable device in advance before sending the motion information request to the wearable device, the communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, NFC, and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, and the connection manner using the wireless network needs to be performed in an environment with the wireless network, which affects efficiency of data statistics, and some user terminals may not have an NFC function, so the embodiment of the present invention establishes a bluetooth communication connection with the wearable device in a bluetooth connection manner. The user terminal may always maintain the communication connection with the wearable device, and of course, the user terminal may also establish the communication connection with the wearable device temporarily at the time of sending the motion information request.
S302, calculating a motion data increment in the current preset time period according to the motion information, and packaging the motion data increment by adopting a user identifier based on interactive application;
specifically, since the motion data recorded by the wearable device is not reset, if the motion data in a certain preset time period (for example, in two hours) is to be calculated, the user terminal needs to search for the total amount of the motion data corresponding to the last recording time based on the current recording time, calculate the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time, and obtain the motion data increment between the last recording time and the current recording time, where the user terminal may perform encapsulation processing on the motion data increment based on a user identifier of a login interactive application, where the user identifier is a user ID allocated or input when a user belonging to the user terminal registers the interactive application. The motion data increment represents the motion data added in the preset time period and is used for providing data addition basis for the motion data corresponding to the user identification when the follow-up application server counts the current recording time. The interactive application is preferably an instant messaging application.
S303, sending the motion data increment after encapsulation to an application server, so that the application server updates a motion data list corresponding to the user identifier by using the motion data increment, and the application server outputs the motion data list;
specifically, the user terminal sends the motion data increment after encapsulation to the application server, and the motion data increment after encapsulation carries the user identifier.
The application server receives the motion data increment sent by the user terminal after encapsulation processing, and updates the motion data list corresponding to the user identifier by using the motion data increment, preferably, the application server can obtain the stored motion data corresponding to the user identifier, and updates the motion data corresponding to the user identifier by using the motion data increment, the application server obtains the motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier, the application server adopts a preset sorting mode to sort the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier, and generates the motion data list after sorting processing.
It is understood that the motion data corresponding to the user identifier in the application server is a sum of motion data increments uploaded by the user terminal for recording a certain time period (for example, 0 time of the day to 24 time of the day), for example: if the user terminal uploads the motion data increment every two hours, the application server will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and after each update, the motion data list needs to be updated correspondingly, meanwhile, motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier also exist in the motion data list, and the motion data list is generated by sequencing the motion data. The application server may output the motion data list, and it should be noted that the mode of outputting the motion data list by the application server may be sending the motion data list to the user terminal according to the user identifier for display, or sending the motion data list to a public group corresponding to a public identifier based on the interactive application, and a user of the user terminal may enter the public group through the user identifier to refer to the motion data list.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, the motion data increment is submitted to the application server based on the interactive application, so that the application server can update the motion data list for output according to the motion data increment, the motion data intercommunication is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved.
Referring to fig. 4, a flow chart of another data statistics method according to an embodiment of the invention is shown. As shown in fig. 4, the embodiment of the present invention describes a specific flow of a data processing method from the user terminal side, and the method includes the following steps S401 to S407.
S401, establishing Bluetooth communication connection with wearable equipment in a Bluetooth connection mode;
specifically, before communicating with the wearable device, the user terminal needs to establish a communication connection with the wearable device in advance, the communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, NFC, and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, while the connection manner using the wireless network needs to be performed in an environment with the wireless network, which affects efficiency of data statistics, and some user terminals may not have an NFC function, so the embodiment of the present invention establishes a bluetooth communication connection with the wearable device using a bluetooth connection manner. The user terminal may always maintain the communication connection with the wearable device, and of course, the user terminal may also establish the communication connection with the wearable device temporarily at the time of sending the motion information request.
It should be noted that the wearable device may include at least one wearable device, that is, when the user may only own one wearable device, or may own a plurality of wearable devices at the same time, the user terminal needs to establish a communication connection with each wearable device of the at least one wearable device.
S402, sending a motion information request to each wearable device in at least one wearable device, and acquiring motion information returned by each wearable device according to the motion information request;
specifically, the user terminal sends a motion information request to each wearable device of the at least one wearable device, and preferably, the user terminal may send a motion information request to each wearable device at regular time, for example: sending a motion information request every two hours, etc., each wearable device may read the total amount of motion data from its own sensors, e.g.: the method comprises the steps of walking and/or running, the distance and the like, and meanwhile obtaining the current recording time, sending motion information carrying the current recording time and the motion data total amount corresponding to the current recording time to the user terminal to respond to a motion information request, and obtaining the motion information returned by each wearable device by the user terminal.
S403, determining the currently recorded motion information in the motion information returned by each wearable device by adopting a preset screening rule;
specifically, if there is only one wearable device, the user terminal determines the motion information returned by the wearable device as the currently recorded motion information; if there are multiple wearable devices, the user terminal may select, from the total amount of motion data returned by the multiple wearable devices, motion information with the largest total value, and determine the motion information as the current recorded motion information, or the user terminal may average the total amount of motion data returned by the multiple wearable devices, and determine the average as the total amount of motion data corresponding to the current recording time in the current recorded motion information, or the like.
S404, searching the total amount of the motion data corresponding to the last recording time based on the current recording time;
specifically, the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time, and since the motion data recorded by the wearable device is not reset, if the motion data within a certain preset time period (for example, within two hours) is to be calculated, the user terminal needs to search for the total amount of motion data corresponding to a previous recording time based on the current recording time.
S405, calculating the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time to obtain the motion data increment from the last recording time to the current recording time;
specifically, the user terminal may use a difference between the total amount of the motion data corresponding to the current recording time and the total amount of the motion data corresponding to the previous recording time as a motion data increment between the previous recording time and the current recording time (i.e., within a preset time period).
S406, packaging the motion data increment by adopting a user identifier based on interactive application;
specifically, the user terminal may package the motion data increment based on a user identifier of a login interactive application, where the user identifier is a user ID allocated or input when a user to which the user terminal belongs registers the interactive application. The motion data increment represents the motion data added in the preset time period and is used for providing data addition basis for the motion data corresponding to the user identification when the follow-up application server counts the current recording time. The interactive application is preferably an instant messaging application.
S407, the motion data increment after encapsulation processing is sent to an application server, so that the application server updates a motion data list corresponding to the user identifier by using the motion data increment, and the application server outputs the motion data list.
Step S407 in the embodiment of the present invention may refer to step S303 in the embodiment shown in fig. 3, which is not described herein again.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; the Bluetooth communication connection is established with the wearable device in a Bluetooth connection mode, so that the data information can be transmitted between the user terminal and the wearable device in real time, the current recorded motion information is determined through the preset screening rule, and the uniqueness and the accuracy of the motion information are guaranteed.
Referring to fig. 5, a flow chart of another data statistics method according to an embodiment of the invention is shown. As shown in fig. 5, the embodiment of the present invention describes a specific flow of a data processing method from an application server side, and the method includes the following steps S501 to S503.
S501, receiving a packaged motion data increment sent by a user terminal, wherein the packaged motion data increment is calculated by the user terminal according to currently recorded motion information returned by wearable equipment, and is packaged by adopting a user identifier based on interactive application in a current preset time period;
specifically, the user terminal may send a motion information request to the wearable device, and preferably, the user terminal may send the motion information request to the wearable device at regular time, for example: sending a motion information request every two hours, etc., the wearable device may read the total amount of motion data from its own sensors, e.g.: the method comprises the steps of walking and/or running, the distance and the like, and meanwhile obtaining the current recording time, sending motion information carrying the current recording time and the motion data total amount corresponding to the current recording time to the user terminal to respond to a motion information request, and obtaining the current recorded motion information returned by the wearable device by the user terminal.
It can be understood that the user terminal needs to establish a communication connection with the wearable device in advance before sending the motion information request to the wearable device, the communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, NFC, and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, and the connection manner using the wireless network needs to be performed in an environment with the wireless network, which affects efficiency of data statistics, and some user terminals may not have an NFC function, so the embodiment of the present invention establishes a bluetooth communication connection with the wearable device in a bluetooth connection manner. The user terminal may always maintain the communication connection with the wearable device, and of course, the user terminal may also establish the communication connection with the wearable device temporarily at the time of sending the motion information request.
Because the motion data recorded by the wearable device cannot be reset, if the motion data in a certain preset time period (for example, in two hours) is to be calculated, the user terminal needs to search for the total amount of the motion data corresponding to the last recording time based on the current recording time, calculate the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time, and obtain the motion data increment from the last recording time to the current recording time, where the user terminal may perform encapsulation processing on the motion data increment based on a user identifier of a login interactive application, where the user identifier is a user ID allocated or input when a user to which the user terminal belongs registers the interactive application. The motion data increment represents the motion data added in the preset time period and is used for providing data addition basis for the motion data corresponding to the user identification when the follow-up application server counts the current recording time. The interactive application is preferably an instant messaging application.
The user terminal sends the motion data increment after encapsulation processing to the application server, the motion data increment after encapsulation processing carries the user identification, and the application server receives the motion data increment after encapsulation processing sent by the user terminal.
S502, updating a motion data list corresponding to the user identification by adopting the motion data increment;
preferably, the application server may obtain the stored motion data corresponding to the user identifier, and update the motion data corresponding to the user identifier by using the motion data increment, the application server obtains the motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier, the application server performs sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier by using a preset sorting mode, and generates the motion data list after the sorting processing.
It is understood that the motion data corresponding to the user identifier in the application server is a sum of motion data increments uploaded by the user terminal for recording a certain time period (for example, 0 time of the day to 24 time of the day), for example: if the user terminal uploads the motion data increment every two hours, the application server will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and after each update, the motion data list needs to be updated correspondingly, meanwhile, motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier also exist in the motion data list, and the motion data list is generated by sequencing the motion data.
S503, outputting the motion data list;
specifically, the application server may output the motion data list, and it should be noted that the motion data list may be output by the application server in a manner that the motion data list is sent to the user terminal according to the user identifier to be displayed, or the motion data list may be sent to a public group corresponding to the public identifier based on the interactive application, and a user of the user terminal may enter the public group through the user identifier to refer to the motion data list.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, the motion data increment is submitted to the application server based on the interactive application, so that the application server can update the motion data list for output according to the motion data increment, the motion data intercommunication is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved.
Referring to fig. 6, a flow chart of another data statistics method according to an embodiment of the invention is shown. As shown in fig. 6, the embodiment of the present invention describes a specific flow of a data processing method from an application server side, and the method includes the following steps S601 to S607.
S601, receiving a packaged motion data increment sent by a user terminal, wherein the packaged motion data increment is calculated by the user terminal according to the currently recorded motion information returned by the wearable device, and is packaged by adopting a user identifier based on interactive application within a current preset time period;
s602, judging whether the current time reaches a preset time or not;
specifically, when the application server receives the motion data increment after the encapsulation processing, the application server may first determine whether the current time reaches a preset time, and it may be understood that the motion data corresponding to the user identifier in the application server is a sum of motion data increments uploaded by the user terminal in a certain time period (for example, 0 time of the day to 24 time of the day), for example: if the user terminal uploads the motion data increment every two hours, the application server will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and at this time, the application server can judge whether the current time reaches 24, that is, the next day is 0, if so, the execution of step S603 is performed; if not, the process proceeds to step S604.
S603, carrying out zero clearing treatment on the motion data in the motion data list corresponding to the user identification;
specifically, when it is determined that the current time reaches the preset time, the application server may perform zero clearing processing on the motion data in the motion data list corresponding to the user identifier, and it may be understood that motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier and motion data corresponding to the user identifier exist in the motion data list, and therefore, when the preset time is reached, the application server may perform zero clearing on all the motion data in the motion data list.
Preferably, the application server performs the zero clearing processing, and simultaneously stores the complete motion data list of the current day (i.e., the complete motion data from the time of the current day 0 to the time of the current day 24), so that the user can view the history record at any time.
S604, obtaining the stored motion data corresponding to the user identification, and updating the motion data corresponding to the user identification by adopting the motion data increment;
specifically, when it is determined that the current time does not reach the preset time, the application server may obtain the stored motion data corresponding to the user identifier, add the obtained motion data increment to the motion data corresponding to the user identifier, and complete updating of the motion data corresponding to the user identifier.
S605, acquiring motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
specifically, since there may also be a change in the motion data corresponding to at least one interactive application identifier associated with the user identifier, the application server may obtain the motion data corresponding to each of the at least one interactive application identifier.
It should be noted that the interactive application identifier represents an application identifier having an association relationship (e.g., a friend relationship, etc.) with the user identifier, and may be a user ID allocated or input by another user when registering the interactive application, and the user terminals of other users may also upload respective motion data increments, and the implementation process thereof may be the same as the execution process of the embodiment of the present invention, and is not described herein again.
S606, sorting the motion data corresponding to the updated user identification and the motion data corresponding to each interactive user identification by adopting a preset sorting mode, and generating a motion data list after sorting;
specifically, the application server may perform sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier in a preset sorting manner, where the preset sorting method preferably sorts all the motion data in sequence from high to low so as to be convenient for the user to view, and certainly, other sorting manners are adopted, for example: the ranking process of the embodiment of the invention can be realized by ranking from low to high, or ranking the motion data corresponding to the updated user identifier at the head, ranking the motion data corresponding to each interactive user identifier from high to low, and the like. The application server generates a motion data list after the sorting processing, and the motion data list may include a plurality of user identifiers and motion data corresponding to each of the plurality of user identifiers.
And S607, outputting the motion data list.
Step S601 and step S607 in the embodiment of the present invention may refer to step S501 and step S503 in the embodiment shown in fig. 6, respectively, which are not described herein again.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; by updating the motion data list at regular time, the motion conditions of other users can be checked by the user in real time, the entertainment among the users is improved, and the application scene of the wearable device is enriched.
The user terminal provided by the embodiment of the invention will be described in detail with reference to fig. 7-10. It should be noted that, the user terminals shown in fig. 7-10 are used for executing the method of the embodiments shown in fig. 3 and fig. 4 of the present invention, for convenience of description, only the parts related to the embodiments of the present invention are shown, and details of the specific technology are not disclosed, please refer to the embodiments shown in fig. 3 and fig. 4 of the present invention.
Fig. 7 is a schematic structural diagram of a user terminal according to an embodiment of the present invention. As shown in fig. 7, the user terminal 1 according to the embodiment of the present invention may include: an information acquisition unit 11, a data encapsulation unit 12, and a data transmission unit 13.
The information acquisition unit 11 is configured to send a motion information request to a wearable device, and acquire currently recorded motion information returned by the wearable device according to the data request;
in a specific implementation, the information obtaining unit 11 may send a motion information request to the wearable device, and preferably, the information obtaining unit 11 may send the motion information request to the wearable device at regular time, for example: sending a motion information request every two hours, etc., the wearable device may read the total amount of motion data from its own sensors, e.g.: the wearable device sends the motion information carrying the current recording time and the motion data total amount corresponding to the current recording time to the user terminal 1 to respond to the motion information request, and the information obtaining unit 11 obtains the current recorded motion information returned by the wearable device.
It can be understood that, before the information obtaining unit 11 sends the motion information request to the wearable device, the user terminal 1 needs to establish a communication connection with the wearable device in advance, the communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, NFC, and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, and the connection manner using the wireless network needs to be performed in an environment with a wireless network, which affects efficiency of data statistics, and some user terminals 1 may not have a function of NFC, so the embodiment of the present invention establishes a bluetooth communication connection with the wearable device in a bluetooth connection manner. The user terminal 1 may always maintain the communication connection with the wearable device, and of course, may also temporarily establish the communication connection with the wearable device at the time of sending the motion information request.
Specifically, please refer to fig. 8, which provides a schematic structural diagram of an information obtaining unit according to an embodiment of the present invention. As shown in fig. 8, the information acquiring unit 11 may include:
the information obtaining subunit 111 is configured to send a motion information request to each wearable device in at least one wearable device, and obtain motion information returned by each wearable device according to the motion information request;
in a specific implementation, the information obtaining subunit 111 sends a motion information request to each wearable device of the at least one wearable device, and preferably, the information obtaining subunit 111 may send a motion information request to each wearable device at regular time, for example: sending a motion information request every two hours, etc., each wearable device may read the total amount of motion data from its own sensors, e.g.: the number of steps, the distance, and the like of walking and/or running, and the current recording time are obtained at the same time, each wearable device sends motion information carrying the current recording time and the total amount of motion data corresponding to the current recording time to the user terminal 1 to respond to the motion information request, and the information obtaining subunit 111 obtains the motion information returned by each wearable device.
An information determining subunit 112, configured to determine, by using a preset filtering rule, currently recorded motion information from the motion information returned by each wearable device;
in a specific implementation, if there is only one wearable device, the information determining subunit 112 determines the motion information returned by the wearable device as the currently recorded motion information; if there are multiple wearable devices, the information determining subunit 112 may select, from the total amount of motion data returned by the multiple wearable devices, motion information with the largest total value, and determine the motion information as the current recorded motion information, or the information determining subunit 112 may average the total amount of motion data returned by the multiple wearable devices, and determine the average as the total amount of motion data corresponding to the current recording time in the current recorded motion information.
The data packaging unit 12 is configured to calculate a motion data increment in a current preset time period according to the motion information, and package the motion data increment by using a user identifier based on an interactive application;
in a specific implementation, since the motion data recorded by the wearable device is not reset, if the motion data in a certain preset time period (for example, in two hours) is to be calculated, the data encapsulation unit 12 needs to search a total amount of the motion data corresponding to a last recording time based on a current recording time, calculate the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time, and obtain a motion data increment between the last recording time and the current recording time, where the data encapsulation unit 12 may encapsulate the motion data increment based on a user identifier of a logged interactive application, where the user identifier is a user ID allocated or input when a user to the user terminal 1 registers the interactive application. The motion data increment represents the motion data added in the preset time period and is used for providing data addition basis for the motion data corresponding to the user identification when the follow-up application server counts the current recording time. The interactive application is preferably an instant messaging application.
Specifically, please refer to fig. 9, which provides a schematic structural diagram of a data encapsulation unit according to an embodiment of the present invention. As shown in fig. 9, the data encapsulation unit 12 may include:
a data searching subunit 121, configured to search a total amount of motion data corresponding to a previous recording time based on the current recording time;
in a specific implementation, the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time, and since the motion data recorded by the wearable device is not reset, if the motion data within a certain preset time period (for example, within two hours) is to be calculated, the data searching subunit 121 needs to search for the total amount of motion data corresponding to a previous recording time based on the current recording time.
A data obtaining subunit 122, configured to calculate a total amount of the motion data corresponding to the previous recording time and a total amount of the motion data corresponding to the current recording time, and obtain a motion data increment between the previous recording time and the current recording time;
in a specific implementation, the data obtaining subunit 122 may use a difference between the total amount of the motion data corresponding to the current recording time and the total amount of the motion data corresponding to the previous recording time as a motion data increment between the previous recording time and the current recording time (i.e., within a preset time period).
A data packaging subunit 123, configured to package the motion data increment by using a user identifier based on an interactive application;
in a specific implementation, the data encapsulation subunit 123 may encapsulate the motion data increment based on a user identifier of a login interactive application, where the user identifier is a user ID allocated or input when a user to which the user terminal 1 belongs registers the interactive application. The motion data increment represents the motion data added in the preset time period and is used for providing data addition basis for the motion data corresponding to the user identification when the follow-up application server counts the current recording time. The interactive application is preferably an instant messaging application.
A data sending unit 13, configured to send the motion data increment after the encapsulation processing to an application server, so that the application server updates a motion data list corresponding to the user identifier by using the motion data increment, and outputs the motion data list by the application server;
in a specific implementation, the data sending unit 13 sends the motion data increment after the encapsulation processing to the application server, where the motion data increment after the encapsulation processing carries the user identifier.
The application server receives the motion data increment sent by the data sending unit 13 after encapsulation, and updates the motion data list corresponding to the user identifier by using the motion data increment, preferably, the application server may obtain the stored motion data corresponding to the user identifier, and updates the motion data corresponding to the user identifier by using the motion data increment, the application server obtains the motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier, and the application server performs sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier by using a preset sorting mode, and generates the motion data list after sorting processing.
It is understood that the motion data corresponding to the user identifier in the application server is a sum of motion data increments uploaded by the user terminal 1 in a certain time period (for example, from 0 time of the day to 24 times of the day), for example: if the user terminal 1 uploads the motion data increment every two hours, the application server will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and after each update, the motion data list needs to be updated correspondingly, meanwhile, motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier also exist in the motion data list, and the motion data list is generated by sequencing the motion data. The application server may output the motion data list, and it should be noted that the mode of outputting the motion data list by the application server may be that the motion data list is sent to the user terminal 1 according to the user identifier to be displayed, or the motion data list is sent to a public group corresponding to the public identifier based on the interactive application, and a user of the user terminal 1 may enter the public group through the user identifier to refer to the motion data list.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; the currently recorded motion information is determined through the preset screening rule, and the uniqueness and the accuracy of the motion information are guaranteed.
Referring to fig. 10, a schematic structural diagram of another ue is provided in the embodiment of the present invention. As shown in fig. 10, the user terminal 1 according to the embodiment of the present invention may include: an information acquisition unit 11, a data encapsulation unit 12, a data transmission unit 13 and a connection establishment unit 14; the specific structures of the information obtaining unit 11, the data encapsulating unit 12 and the data sending unit 13 may refer to the specific description of the embodiment shown in fig. 7, which is not described herein again.
The connection establishing unit 14 is configured to establish a bluetooth communication connection with the wearable device in a bluetooth connection manner;
in specific implementation, before the user terminal 1 communicates with the wearable device, the connection establishing unit 14 needs to establish a communication connection with the wearable device in advance, the communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, NFC, and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, and the connection manner using the wireless network needs to be performed in an environment with the wireless network, which affects efficiency of data statistics, and some user terminals 1 may not have an NFC function, so that the bluetooth communication connection is established with the wearable device in the bluetooth connection manner according to the embodiment of the present invention. The user terminal 1 may always maintain the communication connection with the wearable device, and of course, may also temporarily establish the communication connection with the wearable device at the time of sending the motion information request.
It should be noted that the wearable device may include at least one wearable device, that is, when the user may only own one wearable device, or may own a plurality of wearable devices at the same time, the connection establishing unit 14 needs to establish a communication connection with each of the at least one wearable device.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; the Bluetooth communication connection is established with the wearable device in a Bluetooth connection mode, so that the data information can be transmitted between the user terminal and the wearable device in real time, the current recorded motion information is determined through the preset screening rule, and the uniqueness and the accuracy of the motion information are guaranteed.
Referring to fig. 11, a schematic structural diagram of another ue is provided in the embodiment of the present invention. As shown in fig. 11, the user terminal 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), a Keyboard (Keyboard), a tablet, and a recorder, and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 11, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data statistics application program.
In the user terminal 1000 shown in fig. 11, the network interface 1004 is mainly used for connecting to an application server and performing data communication with the application server; the user interface 1003 is mainly used for providing an input interface for the wearable device and acquiring data input by the wearable device; the processor 1001 may be configured to call the data statistics application stored in the memory 1005, and specifically perform the following steps:
sending a motion information request to wearable equipment, and acquiring the current recorded motion information returned by the wearable equipment according to the data request;
calculating a motion data increment in the current preset time period according to the motion information, and packaging the motion data increment by adopting a user identifier based on interactive application;
and sending the motion data increment after encapsulation to an application server so that the application server updates a motion data list corresponding to the user identifier by adopting the motion data increment and outputs the motion data list.
In one embodiment, the wearable device comprises at least one wearable device;
when the processor 1001 executes sending of a motion information request to a wearable device and acquires currently recorded motion information returned by the wearable device according to the motion information request, the following steps are specifically executed:
sending a motion information request to each wearable device in at least one wearable device, and acquiring motion information returned by each wearable device according to the motion information request;
and determining the current recorded motion information in the motion information returned by each wearable device by adopting a preset screening rule.
In one embodiment, the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time;
when the processor 1001 calculates the motion data increment in the current preset time period according to the motion information, the following steps are specifically performed:
searching the total amount of the motion data corresponding to the last recording time based on the current recording time;
and calculating the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time to obtain the motion data increment from the last recording time to the current recording time.
In one embodiment, the processor 1001 further performs the following steps before performing the motion information request to the wearable device:
and establishing Bluetooth communication connection with the wearable equipment in a Bluetooth connection mode.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; the Bluetooth communication connection is established with the wearable device in a Bluetooth connection mode, so that the data information can be transmitted between the user terminal and the wearable device in real time, the current recorded motion information is determined through the preset screening rule, and the uniqueness and the accuracy of the motion information are guaranteed.
The application server provided by the embodiment of the present invention will be described in detail with reference to fig. 12 to 14. It should be noted that, the application servers shown in fig. 12 to fig. 14 are used for executing the method of the embodiment shown in fig. 5 and fig. 6 of the present invention, and for convenience of description, only the portions related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the embodiment shown in fig. 5 and fig. 6 of the present invention.
Fig. 12 is a schematic structural diagram of an application server according to an embodiment of the present invention. As shown in fig. 12, the application server 2 according to an embodiment of the present invention may include: a data receiving unit 21, a list updating unit 22, and a list output unit 23.
The data receiving unit 21 is configured to receive an encapsulated motion data increment sent by a user terminal, where the encapsulated motion data increment is obtained by calculating, by the user terminal, current recorded motion information returned by the wearable device, and is encapsulated by using a user identifier based on an interactive application within a current preset time period;
in a specific implementation, the user terminal may send a motion information request to the wearable device, and preferably, the user terminal may send the motion information request to the wearable device at regular time, for example: sending a motion information request every two hours, etc., the wearable device may read the total amount of motion data from its own sensors, e.g.: the method comprises the steps of walking and/or running, the distance and the like, and meanwhile obtaining the current recording time, sending motion information carrying the current recording time and the motion data total amount corresponding to the current recording time to the user terminal to respond to a motion information request, and obtaining the current recorded motion information returned by the wearable device by the user terminal.
It can be understood that the user terminal needs to establish a communication connection with the wearable device in advance before sending the motion information request to the wearable device, the communication connection may be established in a wired or wireless connection manner, the wireless connection manner may include a wireless network, bluetooth, NFC, and the like, and since the wired connection manner needs an additional data line and the like for connection, cost waste is easily caused, and the connection manner using the wireless network needs to be performed in an environment with the wireless network, which affects efficiency of data statistics, and some user terminals may not have an NFC function, so the embodiment of the present invention establishes a bluetooth communication connection with the wearable device in a bluetooth connection manner. The user terminal may always maintain the communication connection with the wearable device, and of course, the user terminal may also establish the communication connection with the wearable device temporarily at the time of sending the motion information request.
Because the motion data recorded by the wearable device cannot be reset, if the motion data in a certain preset time period (for example, in two hours) is to be calculated, the user terminal needs to search for the total amount of the motion data corresponding to the last recording time based on the current recording time, calculate the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time, and obtain the motion data increment from the last recording time to the current recording time, where the user terminal may perform encapsulation processing on the motion data increment based on a user identifier of a login interactive application, where the user identifier is a user ID allocated or input when a user to which the user terminal belongs registers the interactive application. The motion data increment represents the motion data added in the preset time period, and is used for providing a basis for data addition for the motion data corresponding to the user identifier when the subsequent application server 2 counts the current recording time. The interactive application is preferably an instant messaging application.
The user terminal sends the motion data increment after encapsulation to the application server 2, the motion data increment after encapsulation carries the user identifier, and the data receiving unit 21 receives the motion data increment after encapsulation sent by the user terminal.
A list updating unit 22, configured to update the motion data list corresponding to the user identifier by using the motion data increment;
in a specific implementation, the list updating unit 22 updates the motion data list corresponding to the user identifier by using the motion data increment, preferably, the list updating unit 22 may obtain the stored motion data corresponding to the user identifier, and update the motion data corresponding to the user identifier by using the motion data increment, the list updating unit 22 obtains the motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier, and the list updating unit 22 performs sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier by using a preset sorting manner, and generates the motion data list after the sorting processing.
It is understood that the motion data corresponding to the user identifier in the application server 2 is a sum of motion data increments uploaded by the user terminal for recording a certain time period (for example, 0 time of the day to 24 time of the day), for example: if the user terminal uploads the motion data increment every two hours, the application server 2 will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and after each update, the motion data list needs to be updated correspondingly, meanwhile, motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier also exist in the motion data list, and the motion data list is generated by sequencing the motion data.
A list output unit 23 configured to output the motion data list;
in a specific implementation, the list output unit 23 may output the motion data list, and it should be noted that, the motion data list output by the list output unit 23 may be sent to the user terminal for display according to the user identifier, or may be sent to a public group corresponding to the public identifier based on the interactive application, and a user of the user terminal may enter the public group through the user identifier to refer to the motion data list.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, the motion data increment is submitted to the application server based on the interactive application, so that the application server can update the motion data list for output according to the motion data increment, the motion data intercommunication is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved.
Referring to fig. 13, a schematic structural diagram of another application server is provided for the embodiment of the present invention. As shown in fig. 13, the application server 2 according to the embodiment of the present invention may include: a data receiving unit 21, a list updating unit 22, a list output unit 23, a judging unit 24, a data clearing unit 25, and a notifying unit 26; the specific structures of the data receiving unit 21 and the list output unit 23 may refer to the specific description of the embodiment shown in fig. 12, which is not repeated herein.
A judging unit 24, configured to judge whether the current time reaches a preset time;
in a specific implementation, when the data receiving unit 21 receives the motion data increment after the encapsulation processing, the determining unit 24 may first determine whether the current time reaches a preset time, and it may be understood that the motion data corresponding to the user identifier in the application server 2 is a sum of motion data increments uploaded by the user terminal in a certain time period (for example, from 0 time of the day to 24 time of the day), for example: if the user terminal uploads the motion data increment every two hours, the application server 2 will update the motion data corresponding to the user identifier every two hours from 0 of the day until 24 of the day, and at this time, the determining unit 24 may determine whether the current time reaches 24 hours, that is, the next day 0.
A data clearing unit 25, configured to perform zero clearing processing on the motion data in the motion data list corresponding to the user identifier if the determining unit 24 determines that the current time reaches the preset time;
in a specific implementation, when the determining unit 24 determines that the current time reaches the preset time, the data clearing unit 25 may perform zero clearing processing on the motion data in the motion data list corresponding to the user identifier, and it can be understood that motion data corresponding to other interactive user identifiers (for example, other user identifiers having a friend relationship) associated with the user identifier and motion data corresponding to the user identifier exist in the motion data list, so that when the preset time is reached, the data clearing unit 25 may clear all the motion data in the motion data list.
Preferably, while the data clearing unit 25 performs the zero clearing processing, the application server 2 may further store a complete motion data list of the current day (i.e., complete motion data from the time of the current day 0 to the time of the current day 24), so that a user may view the history at any time, and of course, in order to save the storage space of the application server 2, the zero clearing processing may also be directly performed, the complete motion data list of the current day is not stored, or the complete motion data list of the current day may be stored for a preset time and then deleted.
A notifying unit 26, configured to notify the list updating unit 22 to perform updating of the motion data list corresponding to the user identifier by using the motion data increment if the determining unit 24 determines that the current time does not reach the preset time;
a list updating unit 22, configured to update the motion data list corresponding to the user identifier by using the motion data increment;
in a specific implementation, when the judging unit 24 judges that the current time does not reach the preset time, the list updating unit 22 updates the motion data list corresponding to the user identifier by using the motion data increment, preferably, the list updating unit 22 may obtain the stored motion data corresponding to the user identification, and updating the motion data corresponding to the user identifier by using the motion data increment, the list updating unit 22 obtains the motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier, the list updating unit 22 uses a preset sorting mode, and sequencing the motion data corresponding to the updated user identification and the motion data corresponding to each interactive user identification, and generating a motion data list after sequencing.
Specifically, please refer to fig. 14, which provides a schematic structural diagram of the list updating unit according to an embodiment of the present invention. As shown in fig. 14, the list updating unit 22 may include:
a data updating subunit 221, configured to obtain the stored motion data corresponding to the user identifier, and update the motion data corresponding to the user identifier by using the motion data increment;
in a specific implementation, when the determining unit 24 determines that the current time does not reach the preset time, the data updating subunit 221 may obtain the stored motion data corresponding to the user identifier, add the obtained motion data increment and the motion data corresponding to the user identifier, and complete updating of the motion data corresponding to the user identifier.
A data obtaining subunit 222, configured to obtain motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
in a specific implementation, since there may also be a change in the motion data corresponding to at least one interactive application identifier associated with the user identifier, the data obtaining subunit 222 may obtain the motion data corresponding to each of the at least one interactive application identifier.
It should be noted that the interactive application identifier represents an application identifier having an association relationship (e.g., a friend relationship, etc.) with the user identifier, and may be a user ID allocated or input by another user when registering the interactive application, and the user terminals of other users may also upload respective motion data increments, and the implementation process thereof may be the same as the execution process of the embodiment of the present invention, and is not described herein again.
A list generating subunit 223, configured to perform sorting processing on the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier in a preset sorting manner, and generate a motion data list after the sorting processing;
in a specific implementation, the list generating subunit 223 may adopt a preset sorting manner to sort the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier, where the preset sorting method is preferably to sort all the motion data from high to low in order to be viewed by the user, and of course, adopt other sorting manners, for example: the ranking process of the embodiment of the invention can be realized by ranking from low to high, or ranking the motion data corresponding to the updated user identifier at the head, ranking the motion data corresponding to each interactive user identifier from high to low, and the like. The list generating subunit 223 generates a motion data list after the sorting process, where the motion data list may include a plurality of user identifiers and motion data corresponding to each of the plurality of user identifiers.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; by updating the motion data list at regular time, the motion conditions of other users can be checked by the user in real time, the entertainment among the users is improved, and the application scene of the wearable device is enriched.
Fig. 15 is a schematic structural diagram of another application server according to an embodiment of the present invention. As shown in fig. 15, the application server 2000 may include: at least one processor 2001, e.g., a CPU, at least one network interface 2004, a user interface 2003, a memory 2005, at least one communication bus 2002. The communication bus 2002 is used to implement connection communication between these components. The user interface 2003 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 2003 may further include a standard wired interface and a standard wireless interface. The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Memory 2005 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 2005 may optionally also be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 15, the memory 2005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data statistics application program.
In the application server 2000 shown in fig. 15, the network interface 2004 is mainly used for connecting a user terminal to perform data communication with the user terminal; the user interface 2003 is mainly used for providing an input interface for a user to acquire data input by the user; the processor 2001 may be configured to call the data statistics application stored in the memory 2005 and specifically perform the following steps:
receiving a packaged motion data increment sent by a user terminal, wherein the packaged motion data increment is calculated by the user terminal according to current recorded motion information returned by wearable equipment, and is packaged by adopting a user identifier based on interactive application within a current preset time period;
updating the motion data list corresponding to the user identification by adopting the motion data increment;
and outputting the motion data list.
In one embodiment, before the processor 2001 performs the updating of the motion data list corresponding to the user identifier by using the motion data increment, the following steps are further performed:
judging whether the current moment reaches a preset moment or not;
if so, carrying out zero clearing processing on the motion data in the motion data list corresponding to the user identification;
and if not, executing the step of updating the motion data list corresponding to the user identification by adopting the motion data increment.
In an embodiment, when the processor 2001 performs updating the motion data list corresponding to the user identifier by using the motion data increment, the following steps are specifically performed:
acquiring the stored motion data corresponding to the user identification, and updating the motion data corresponding to the user identification by adopting the motion data increment;
acquiring motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
and sorting the motion data corresponding to the updated user identification and the motion data corresponding to each interactive user identification by adopting a preset sorting mode, and generating a motion data list after sorting.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; by updating the motion data list at regular time, the motion conditions of other users can be checked by the user in real time, the entertainment among the users is improved, and the application scene of the wearable device is enriched.
Please refer to fig. 16, which provides a schematic structural diagram of a data statistics system according to an embodiment of the present invention. As shown in fig. 16, the system may include a user terminal 1, an application server 2, and a wearable device 3, where the user terminal 1 and the application server 2 and the wearable device 3 may be connected through a network, and the user terminal 1 and the wearable device 3 may be connected through a data line, NFC, bluetooth, a wireless network, and the like. The data sending terminal 1 is specifically a user terminal 1 in any embodiment of fig. 7 to 10, and the application server 2 is specifically an application server 2 in any embodiment of fig. 12 to 14, or the user terminal 1 is specifically a user terminal 1000 in the embodiment shown in fig. 11, and the application server 2 is specifically an application server 2000 in the embodiment shown in fig. 15.
The user terminal 1 is configured to send a motion information request to the wearable device 3, and acquire currently recorded motion information returned by the wearable device 3 according to the motion information request;
the wearable device 3 is configured to, when receiving a motion information request sent by the user terminal 1, return the currently recorded motion information to the user terminal 1 according to the motion information request;
the user terminal 1 is further configured to calculate a motion data increment in a current preset time period according to the motion information, and package the motion data increment by using a user identifier based on an interactive application;
the user terminal 1 is further configured to send the motion data increment after the encapsulation processing to an application server 2;
and the application server 2 is configured to update the motion data list corresponding to the user identifier by using the motion data increment, and output the motion data list.
In one embodiment, the wearable devices 3 comprise at least one wearable device 3;
the user terminal 1 is configured to, when sending a motion information request to the wearable device 3 and acquiring the currently recorded motion information returned by the wearable device 3 according to the motion information request, specifically:
sending a motion information request to each wearable device 3 in at least one wearable device 3, and acquiring motion information returned by each wearable device 3 according to the motion information request;
and determining the currently recorded motion information in the motion information returned by each wearable device 3 by adopting a preset screening rule.
In one embodiment, the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time;
when the user terminal 1 is configured to calculate the motion data increment in the current preset time period according to the motion information, specifically, the user terminal is configured to:
searching the total amount of the motion data corresponding to the last recording time based on the current recording time;
and calculating the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time to obtain the motion data increment from the last recording time to the current recording time.
In an embodiment, the application server 2 is further configured to determine whether the current time reaches a preset time;
if so, carrying out zero clearing processing on the motion data in the motion data list corresponding to the user identification;
and if not, executing the step of updating the motion data list corresponding to the user identification by adopting the motion data increment.
In an embodiment, the application server 2 is configured to, when updating the exercise data list corresponding to the user identifier by using the exercise data increment, specifically:
acquiring the stored motion data corresponding to the user identification, and updating the motion data corresponding to the user identification by adopting the motion data increment;
acquiring motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
and sorting the motion data corresponding to the updated user identification and the motion data corresponding to each interactive user identification by adopting a preset sorting mode, and generating a motion data list after sorting.
In one embodiment, the user terminal 1 is further configured to establish a bluetooth communication connection with the wearable device 3 in a bluetooth connection manner.
In the embodiment of the invention, the current recorded motion information in the wearable equipment is obtained through the user terminal, the motion data increment in the current preset time period is obtained through calculation, and the motion data increment is submitted to the application server based on interactive application, so that the application server can update the motion data list for output according to the motion data increment, the intercommunication of the motion data is realized through the output of the motion data list, the motion information in the wearable equipment is extracted by the user terminal, the display of the motion data list is finally realized, the functions of the wearable equipment are indirectly increased, the motion data can be mutually viewed among users, and the interactivity based on the motion information among the users is improved; the Bluetooth communication connection is established with the wearable equipment in a Bluetooth connection mode, so that the data information can be transmitted between the user terminal and the wearable equipment in real time, and meanwhile, the currently recorded motion information is determined through a preset screening rule, so that the uniqueness and the accuracy of the motion information are ensured; by updating the motion data list at regular time, the motion conditions of other users can be checked by the user in real time, the entertainment among the users is improved, and the application scene of the wearable device is enriched.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (21)

1. A method of data statistics, comprising:
a user terminal sends a motion information request to wearable equipment and acquires the current recorded motion information returned by the wearable equipment according to the motion information request;
the user terminal calculates the motion data increment in the current preset time period according to the motion information, and packages the motion data increment by adopting a user identifier based on interactive application;
the user terminal sends the motion data increment after encapsulation processing to an application server;
and the application server updates the motion data list corresponding to the user identification by adopting the motion data increment and outputs the motion data list.
2. The method of claim 1, wherein the wearable device comprises at least one wearable device;
the user terminal sends a motion information request to wearable equipment, and obtains the current recorded motion information returned by the wearable equipment according to the motion information request, wherein the motion information request comprises the following steps:
the method comprises the steps that a user terminal sends a motion information request to each wearable device in at least one wearable device, and obtains motion information returned by each wearable device according to the motion information request;
and the user terminal determines the currently recorded motion information in the motion information returned by each wearable device by adopting a preset screening rule.
3. The method according to claim 1, wherein the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time;
the user terminal calculates the motion data increment in the current preset time period according to the motion information, and the method comprises the following steps:
the user terminal searches the total amount of the motion data corresponding to the last recording time based on the current recording time;
and the user terminal calculates the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time, and obtains the motion data increment from the last recording time to the current recording time.
4. The method of claim 1, wherein before the application server updates the exercise data list corresponding to the user identifier with the exercise data increment, the method further comprises:
the application server judges whether the current moment reaches a preset moment or not;
if so, the application server performs zero clearing processing on the motion data in the motion data list corresponding to the user identifier;
and if not, executing the step that the application server adopts the motion data increment to update the motion data list corresponding to the user identification.
5. The method according to claim 1 or 4, wherein the updating, by the application server, the motion data list corresponding to the user identifier by using the motion data increment comprises:
the application server acquires the stored motion data corresponding to the user identification and updates the motion data corresponding to the user identification by adopting the motion data increment;
the application server acquires motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
and the application server adopts a preset sorting mode to sort the motion data corresponding to the updated user identification and the motion data corresponding to each interactive user identification, and generates a motion data list after sorting.
6. The method of claim 1, wherein before the user terminal sends the motion information request to the wearable device, the method further comprises:
the user terminal establishes Bluetooth communication connection with the wearable device in a Bluetooth connection mode.
7. A method of data statistics, comprising:
sending a motion information request to wearable equipment, and acquiring the current recorded motion information returned by the wearable equipment according to the data request;
calculating a motion data increment in the current preset time period according to the motion information, and packaging the motion data increment by adopting a user identifier based on interactive application;
and sending the motion data increment after encapsulation to an application server so that the application server updates a motion data list corresponding to the user identifier by adopting the motion data increment and outputs the motion data list.
8. The method of claim 7, wherein the wearable device comprises at least one wearable device;
the sending of the motion information request to the wearable device and the obtaining of the currently recorded motion information returned by the wearable device according to the motion information request includes:
sending a motion information request to each wearable device in at least one wearable device, and acquiring motion information returned by each wearable device according to the motion information request;
and determining the current recorded motion information in the motion information returned by each wearable device by adopting a preset screening rule.
9. The method according to claim 7, wherein the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time;
the calculating of the motion data increment in the current preset time period according to the motion information includes:
searching the total amount of the motion data corresponding to the last recording time based on the current recording time;
and calculating the total amount of the motion data corresponding to the last recording time and the total amount of the motion data corresponding to the current recording time to obtain the motion data increment from the last recording time to the current recording time.
10. The method of claim 7, wherein prior to sending the motion information request to the wearable device, further comprising:
and establishing Bluetooth communication connection with the wearable equipment in a Bluetooth connection mode.
11. A method of data statistics, comprising:
receiving a packaged motion data increment sent by a user terminal, wherein the packaged motion data increment is calculated by the user terminal according to current recorded motion information returned by wearable equipment, and is packaged by adopting a user identifier based on interactive application within a current preset time period;
updating the motion data list corresponding to the user identification by adopting the motion data increment;
and outputting the motion data list.
12. The method of claim 11, wherein before the updating the list of athletic data corresponding to the user identifier with the athletic data delta, further comprising:
judging whether the current moment reaches a preset moment or not;
if so, carrying out zero clearing processing on the motion data in the motion data list corresponding to the user identification;
and if not, executing the step of updating the motion data list corresponding to the user identification by adopting the motion data increment.
13. The method according to claim 11 or 12, wherein the updating the motion data list corresponding to the user identifier with the motion data increment comprises:
acquiring the stored motion data corresponding to the user identification, and updating the motion data corresponding to the user identification by adopting the motion data increment;
acquiring motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
and sorting the motion data corresponding to the updated user identification and the motion data corresponding to each interactive user identification by adopting a preset sorting mode, and generating a motion data list after sorting.
14. A user terminal, comprising:
the information acquisition unit is used for sending a motion information request to the wearable equipment and acquiring the currently recorded motion information returned by the wearable equipment according to the data request;
the data packaging unit is used for calculating the motion data increment in the current preset time period according to the motion information and packaging the motion data increment by adopting a user identifier based on interactive application;
and the data sending unit is used for sending the motion data increment after the packaging processing to an application server so as to enable the application server to update a motion data list corresponding to the user identifier by adopting the motion data increment and enable the application server to output the motion data list.
15. The user terminal of claim 14, wherein the wearable device comprises at least one wearable device;
the information acquisition unit includes:
the information acquisition subunit is configured to send a motion information request to each wearable device in at least one wearable device, and acquire motion information returned by each wearable device according to the motion information request;
and the information determining subunit is used for determining the currently recorded motion information in the motion information returned by each wearable device by adopting a preset screening rule.
16. The ue of claim 14, wherein the motion information includes a current recording time and a total amount of motion data corresponding to the current recording time;
the data encapsulation unit includes:
the data searching subunit is used for searching the total amount of the motion data corresponding to the last recording time based on the current recording time;
the data acquisition subunit is configured to calculate a total amount of the motion data corresponding to the previous recording time and a total amount of the motion data corresponding to the current recording time, and acquire a motion data increment between the previous recording time and the current recording time;
and the data packaging subunit is used for packaging the motion data increment by adopting a user identifier based on interactive application.
17. The user terminal according to claim 14, further comprising:
and the connection establishing unit is used for establishing Bluetooth communication connection with the wearable equipment in a Bluetooth connection mode.
18. An application server, comprising:
the data receiving unit is used for receiving the motion data increment after packaging processing sent by the user terminal, wherein the motion data increment after packaging processing is calculated by the user terminal according to the current recorded motion information returned by the wearable device, and the motion data increment in the current preset time period is subjected to packaging processing by adopting a user identification based on interactive application;
the list updating unit is used for updating the motion data list corresponding to the user identification by adopting the motion data increment;
a list output unit for outputting the motion data list.
19. The server of claim 18, further comprising:
the judging unit is used for judging whether the current moment reaches a preset moment or not;
the data clearing unit is used for carrying out zero clearing processing on the motion data in the motion data list corresponding to the user identification if the judging unit judges that the current time reaches the preset time;
and the notification unit is used for notifying the list updating unit to update the motion data list corresponding to the user identifier by adopting the motion data increment if the judgment unit judges that the current time does not reach the preset time.
20. The server according to claim 18 or 19, wherein the list updating unit comprises:
the data updating subunit is used for acquiring the stored motion data corresponding to the user identifier and updating the motion data corresponding to the user identifier by adopting the motion data increment;
the data acquisition subunit is used for acquiring motion data corresponding to each interactive user identifier in at least one interactive user identifier associated with the user identifier;
and the list generation subunit is used for sorting the motion data corresponding to the updated user identifier and the motion data corresponding to each interactive user identifier by adopting a preset sorting mode, and generating a motion data list after sorting.
21. A data statistics system comprising a user terminal according to any of claims 14-17 and an application server according to any of claims 18-20, further comprising a wearable device; wherein,
and the wearable device is used for returning the currently recorded motion information to the user terminal according to the motion information request when receiving the motion information request sent by the user terminal.
CN201410814242.4A 2014-12-24 2014-12-24 A kind of data statistical approach and its system, user terminal, application server Active CN104580403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410814242.4A CN104580403B (en) 2014-12-24 2014-12-24 A kind of data statistical approach and its system, user terminal, application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410814242.4A CN104580403B (en) 2014-12-24 2014-12-24 A kind of data statistical approach and its system, user terminal, application server

Publications (2)

Publication Number Publication Date
CN104580403A true CN104580403A (en) 2015-04-29
CN104580403B CN104580403B (en) 2017-03-01

Family

ID=53095561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410814242.4A Active CN104580403B (en) 2014-12-24 2014-12-24 A kind of data statistical approach and its system, user terminal, application server

Country Status (1)

Country Link
CN (1) CN104580403B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836727A (en) * 2015-05-12 2015-08-12 湖南简成信息技术有限公司 Exercise social communication control method based on instant communication
CN106647291A (en) * 2015-10-30 2017-05-10 霍尼韦尔国际公司 Wearable control device, control system and method for controlling controlled electric appliance
CN107135474A (en) * 2017-06-15 2017-09-05 北京数科技有限公司 A kind of method of data synchronization, device and mobile device
WO2017193566A1 (en) * 2016-05-12 2017-11-16 中兴通讯股份有限公司 Data management method for wearable device, terminal, and system
CN107591191A (en) * 2017-09-29 2018-01-16 广州市香港科大霍英东研究院 The analysis storage method and system of exercise data
CN107690670A (en) * 2016-10-25 2018-02-13 深圳市屹石科技股份有限公司 A kind of body-building management terminal, server, method and system based on Quick Response Code
CN107860397A (en) * 2017-10-25 2018-03-30 北京小米移动软件有限公司 Count the method and device of movable information
CN107896365A (en) * 2017-03-17 2018-04-10 深圳市云康悦荟网络科技有限公司 A kind of apparatus work data acquisition and transmission method based on intelligent velcro
CN108804455A (en) * 2017-04-28 2018-11-13 中移(杭州)信息技术有限公司 A kind of data reordering method and device
CN109040053A (en) * 2018-07-26 2018-12-18 深圳市梵高夫科技有限公司 Acquisition methods, terminal and storage medium based on block chain movement parameter
CN109726581A (en) * 2017-10-31 2019-05-07 阿里巴巴集团控股有限公司 A data statistics method and device
CN111930532A (en) * 2020-07-09 2020-11-13 西北工业大学 Avionics data integration method and device
CN114500597A (en) * 2022-01-19 2022-05-13 云控智行科技有限公司 Vehicle data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645078A (en) * 2009-09-11 2010-02-10 中南大学 System and method for integration of change information collection and spatiotemporal data update]
US20140197946A1 (en) * 2013-01-15 2014-07-17 Fitbit, Inc. Portable monitoring devices and methods of operating the same
CN104144203A (en) * 2013-12-11 2014-11-12 腾讯科技(深圳)有限公司 Method and device for sharing information
CN104144216A (en) * 2014-07-31 2014-11-12 中国联合网络通信集团有限公司 Data processing method and device for wearable terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645078A (en) * 2009-09-11 2010-02-10 中南大学 System and method for integration of change information collection and spatiotemporal data update]
US20140197946A1 (en) * 2013-01-15 2014-07-17 Fitbit, Inc. Portable monitoring devices and methods of operating the same
CN104144203A (en) * 2013-12-11 2014-11-12 腾讯科技(深圳)有限公司 Method and device for sharing information
CN104144216A (en) * 2014-07-31 2014-11-12 中国联合网络通信集团有限公司 Data processing method and device for wearable terminal

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836727B (en) * 2015-05-12 2019-01-25 李卫军 Movement social activity control method based on instant messaging
CN104836727A (en) * 2015-05-12 2015-08-12 湖南简成信息技术有限公司 Exercise social communication control method based on instant communication
CN106647291A (en) * 2015-10-30 2017-05-10 霍尼韦尔国际公司 Wearable control device, control system and method for controlling controlled electric appliance
WO2017193566A1 (en) * 2016-05-12 2017-11-16 中兴通讯股份有限公司 Data management method for wearable device, terminal, and system
CN107370781A (en) * 2016-05-12 2017-11-21 中兴通讯股份有限公司 A wearable device data management method, terminal and system
CN107690670A (en) * 2016-10-25 2018-02-13 深圳市屹石科技股份有限公司 A kind of body-building management terminal, server, method and system based on Quick Response Code
CN107896365A (en) * 2017-03-17 2018-04-10 深圳市云康悦荟网络科技有限公司 A kind of apparatus work data acquisition and transmission method based on intelligent velcro
CN108804455A (en) * 2017-04-28 2018-11-13 中移(杭州)信息技术有限公司 A kind of data reordering method and device
CN107135474A (en) * 2017-06-15 2017-09-05 北京数科技有限公司 A kind of method of data synchronization, device and mobile device
CN107135474B (en) * 2017-06-15 2019-12-20 北京一数科技有限公司 Data synchronization method and device and mobile device
CN107591191A (en) * 2017-09-29 2018-01-16 广州市香港科大霍英东研究院 The analysis storage method and system of exercise data
CN107860397A (en) * 2017-10-25 2018-03-30 北京小米移动软件有限公司 Count the method and device of movable information
CN109726581A (en) * 2017-10-31 2019-05-07 阿里巴巴集团控股有限公司 A data statistics method and device
CN109726581B (en) * 2017-10-31 2020-04-14 阿里巴巴集团控股有限公司 A data statistics method and device
CN109040053A (en) * 2018-07-26 2018-12-18 深圳市梵高夫科技有限公司 Acquisition methods, terminal and storage medium based on block chain movement parameter
CN111930532A (en) * 2020-07-09 2020-11-13 西北工业大学 Avionics data integration method and device
CN111930532B (en) * 2020-07-09 2023-11-17 智盈未来(西安)信息技术有限公司 Avionics data integration method and device
CN114500597A (en) * 2022-01-19 2022-05-13 云控智行科技有限公司 Vehicle data processing method and device
CN114500597B (en) * 2022-01-19 2024-03-08 云控智行科技有限公司 Vehicle data processing method and device

Also Published As

Publication number Publication date
CN104580403B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN104580403B (en) A kind of data statistical approach and its system, user terminal, application server
CN109993125B (en) Model training method, face recognition device, face recognition equipment and storage medium
CN108076218B (en) Charging reminding method and mobile terminal
CN102607645B (en) Data acquisition method, data acquisition device and mobile terminal
US20150245164A1 (en) Interaction between wearable devices via broadcasted sensor-related data
US20150256977A1 (en) Determining Activity Paths from Anonymous Application Usage Data and Motion Activity
US20160249024A1 (en) Wearable terminal device, photographing system, and photographing method
WO2017112739A1 (en) Maintaining privacy in location-based operations
CN105022814A (en) Information recommendation method and user terminal
WO2013128061A1 (en) Media tagging
JP6716563B2 (en) Multi-user sensor-based interaction
TW201308241A (en) Systems and methods for sharing group status within a social network
CN113822460A (en) Traffic flow prediction method and device, electronic equipment and storage medium
US20190342454A1 (en) Computer system, method for providing api, and program
CN109061611A (en) Proximity sensor calibration method and relevant apparatus
KR102058158B1 (en) Method for processing sensor value to motion recognition and apparatus using the same
CN107407944B (en) Reference sensor discovery and utilization
CN105245689B (en) A kind of Dialing Method and smartwatch
US11692829B2 (en) System and method for determining a trajectory of a subject using motion data
CN110715654A (en) Motion track determination method and device of terminal equipment and electronic equipment
CN114187509B (en) Object positioning method and device, electronic equipment and storage medium
JP6755728B2 (en) Content output system and method
CN110612503A (en) Intelligent context sub-sampling device system
KR101610351B1 (en) Cloud computing system for anticipation by extracting activity information of user and analyzing correlation of data
CN105204622B (en) A kind of unread message acquisition methods and smartwatch

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211104

Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.