CN106873770B - User behavior data storage method and system and wearable device - Google Patents

User behavior data storage method and system and wearable device Download PDF

Info

Publication number
CN106873770B
CN106873770B CN201611267606.7A CN201611267606A CN106873770B CN 106873770 B CN106873770 B CN 106873770B CN 201611267606 A CN201611267606 A CN 201611267606A CN 106873770 B CN106873770 B CN 106873770B
Authority
CN
China
Prior art keywords
event
wearable device
user behavior
behavior data
cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611267606.7A
Other languages
Chinese (zh)
Other versions
CN106873770A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201611267606.7A priority Critical patent/CN106873770B/en
Publication of CN106873770A publication Critical patent/CN106873770A/en
Application granted granted Critical
Publication of CN106873770B publication Critical patent/CN106873770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • 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)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a user behavior data storage method and system and wearable equipment, wherein the method comprises the following steps: presetting a plurality of types of events, monitoring user behaviors in real time by using wearable equipment, and judging whether the user behaviors trigger a certain event or not; when the fact that the user behavior triggers a certain event is monitored, the event and the time for triggering the event are stored in the wearable device; the user behavior data stored in the wearable device are acquired by the intelligent terminal and are sent to the cloud server, the cloud server can analyze and process the user behavior data, statistics on the user behavior is better aimed at, upgrading and maintaining are conducted on the wearable product, user experience of the product is improved, and the problem that the existing wearable device cannot store and upload the user behavior in a simple and efficient mode is solved.

Description

User behavior data storage method and system and wearable device
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a user behavior data storage method and system and wearable equipment.
Background
User's action data storage mechanism in the wearable equipment can make main equipment such as cell-phone just read out user's action data from wearable equipment through wireless communication such as bluetooth, then on wireless network data storage in high in the clouds server, the staff alright gather user's action record from this server, analyze and handle it, can be better to the statistics of user's action, upgrade and maintain wearable product, even later renewal, make the product strengthen user experience, more be adapted to market demand.
The user behavior data needs to be combined with big data processing to effectively process the user behavior, so that the user experience is improved. In most current wearable devices, simple and efficient storage and uploading of user data cannot be achieved through grabbing of the user data, and the user behaviors are divided in a clear format on the storage to facilitate processing of terminals such as mobile phones. General intelligent bracelet class equipment can only register the basic information of storage user, such as height, weight, age, sex etc. can not realize accurately confirming user's motion law through the motion behavior of dynamic statistics user, and user experience is not enough.
Disclosure of Invention
The invention provides a user behavior data storage method and system and wearable equipment, so that the user behavior data can be efficiently stored and uploaded, a data base is provided for upgrading and maintaining a wearable product, and the user experience of the product is improved.
According to an aspect of the present invention, the present invention provides a user behavior data storage method, including:
presetting a plurality of types of events, monitoring user behaviors in real time by using wearable equipment, and judging whether the user behaviors trigger a certain event or not;
when it is monitored that a user behavior triggers a certain event, storing the event and the time for triggering the event into the wearable device;
and acquiring user behavior data stored in the wearable device by using an intelligent terminal, and sending the user behavior data to a cloud server.
According to another aspect of the invention, there is provided a wearable device comprising: a sensor, a storage unit and a communication unit;
the sensor is used for monitoring user behaviors in real time and judging whether the user behaviors trigger a certain preset event or not;
the storage unit is used for storing an event and the time for triggering the event when the sensor monitors that the user behavior triggers the event;
the communication unit is used for establishing connection with the intelligent terminal and sending the user behavior data stored in the storage unit to the cloud server through the intelligent terminal.
According to still another aspect of the present invention, there is provided a user behavior data storage system including: the system comprises a cloud server, an intelligent terminal and the wearable device;
the wearable device is used for monitoring user behaviors in real time and storing user behavior data;
the intelligent terminal is used for acquiring the user behavior data stored in the wearable device and sending the user behavior data to a cloud server.
The invention has the beneficial effects that: the embodiment of the invention utilizes wearable equipment to monitor the user behavior in real time and judge whether the user behavior triggers a certain preset event; when the fact that a certain event is triggered by the user behavior is monitored, the event and the time for triggering the event are stored in the wearable device, user behavior data stored in the wearable device are obtained through an intelligent terminal such as a mobile phone, and finally the user behavior data are sent to the cloud server, so that real-time, simple and efficient storage and uploading of the user behavior data are achieved. The cloud server can analyze and process the user behavior data so as to better perform upgrading and maintenance on the wearable product aiming at statistics of the user behavior, and therefore user experience of the product is improved.
Drawings
FIG. 1 is a flow chart of a method for storing user behavior data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a flash memory cycle in one embodiment of the invention;
FIG. 3 is a detailed flowchart of a method for storing user behavior data according to an embodiment of the present invention;
fig. 4 is a functional block diagram of a wearable device provided by an embodiment of the present invention;
fig. 5 is a functional block diagram of a user behavior data storage system according to an embodiment of the present invention.
Detailed Description
The design concept of the invention is as follows: the existing wearable equipment cannot realize simple and efficient storage and uploading of user behavior data, many wearable equipment can only register and store basic information of users, such as height, weight, age, gender and the like, the user behavior cannot be dynamically counted to feed back an upgraded product, and the user experience is insufficient. Aiming at the situation, the wearable device is used for monitoring the user behavior in real time and judging whether the user behavior triggers a preset certain event or not; when the fact that a certain event is triggered by the user behavior is monitored, the event and the time for triggering the event are stored in the wearable device, user behavior data stored in the wearable device are obtained through an intelligent terminal such as a mobile phone, and finally the user behavior data are sent to the cloud server, so that real-time, simple and efficient storage and uploading of the user behavior data are achieved. The cloud server can analyze and process the user behavior data so as to better perform upgrading and maintenance on the wearable product aiming at statistics of the user behavior, and therefore user experience of the product is improved.
Example one
Fig. 1 is a flowchart of a user behavior data storage method according to an embodiment of the present invention, and as shown in fig. 1, the user behavior data storage method according to the embodiment includes:
step S110: events (events) of a plurality of categories are preset, user behaviors are monitored in real time by the aid of the wearable device, and whether the user behaviors trigger a certain event or not is judged.
Wearable equipment can be equipment such as intelligent wrist-watch, bracelet, real-time supervision user's motion data. Of course, the user behavior data is not limited to sports data, which encompasses all user behaviors, even animal and machine behaviors or states.
Step S120: when it is monitored that a user behavior triggers an event, the event and the time at which the event is triggered are stored in the wearable device.
A preferred embodiment of the present invention converts RCT time of the wearable device into UNIX time, and assembles the event triggered by the user behavior and the UNIX time triggering the event into a data frame, the basic format of which is shown in the following table:
Figure BDA0001200928870000041
each data frame comprises eight bytes, wherein event information of different levels can be stored, and the events of different levels can be in a relationship contained from top to bottom, such as a one-time wrist-lifting and screen-lighting event, and are stored in a grading manner, namely a sensor event, a next-level wrist-lifting event and a next-level screen-lighting event.
The assembled data frame is written into a buffer (buffer) of the wearable device, the size of the buffer is set to 512 bytes per page, and when the 8-byte data frame is written into the buffer, the data frame is aligned with the buffer, namely the initial position of the first frame to be written is aligned with the initial position of the buffer, so that the buffer can be fully written, the operation is convenient, and the buffer space is fully utilized.
And when the cache is full, writing all the data frames stored in the cache into corresponding addresses of a flash memory (nor flash) of the wearable device, storing and emptying the cache, wherein each data frame stores a corresponding piece of user behavior data. After the flash memory is full, returning the user behavior data to the initial position in the flash memory for continuing writing, so that the flash memory chip can be reused, before writing data into the next adjacent sector (sector), erasing the sector, and then writing data into the sector, so that the newly acquired user behavior data covers the old user behavior data, as shown in fig. 2.
In order to improve real-time efficiency, it is further preferable that the buffer of the wearable device is a ping-pong buffer, and the ping-pong buffer includes two buffers, which are used alternately, and when one buffer is written, the other buffer is processing data at the same time, so that the operation speed can be improved.
Step S130: the method comprises the steps of obtaining user behavior data stored in wearable equipment by using intelligent terminals such as a mobile phone and the like, and sending the user behavior data to a cloud server.
The user behavior data are analyzed and processed by the cloud server, statistics of user behaviors can be better aimed at, and the wearable product is upgraded and maintained, so that the wearable device and the user behavior big data are analyzed and combined, the user experience of the product is improved, and the product is more suitable for market demands.
Example two
Fig. 3 is a specific flowchart of a user behavior data storage method according to an embodiment of the present invention, and as shown in fig. 3, in this embodiment, the user behavior data storage method specifically includes:
step S310: the user behavior is monitored in real time by using wearable devices such as smart bracelets.
Step S320: and judging whether the user behavior triggers a preset certain event, such as a bright screen event, a wrist lifting event, a running event and the like, if so, continuing to execute the step S330, otherwise, returning to the step S310 to continue monitoring the user behavior.
Step S330: and assembling the triggered event and the time for triggering the event into a frame, wherein the RTC time built in the intelligent device needs to be converted into UNIX time.
Step S340: the assembled frame is written to a buffer to which the frame should be aligned. Ping-pong buffers can be selected to improve operating efficiency.
Step S350: and judging whether the cache is full, if not, returning to the step S310 to continue monitoring the user behavior, and if so, continuing to execute the step S360.
Step S360: judging whether the sector of the flash memory needs to be erased, if so, executing step S370; otherwise, step S380 is directly performed.
Step S370: the sector is erased.
Step S380: the cache data is written into a corresponding address in the flash memory, and the data writing of the flash memory can be carried out by sending a page storage message to the memory thread.
Step S390: and clearing the data in the cache, and returning to the step S310 to continue monitoring the user behavior.
EXAMPLE III
Fig. 4 is a functional block diagram of a wearable device according to an embodiment of the present invention, and as shown in fig. 4, a wearable device 400 according to an embodiment of the present invention includes a sensor 410, a storage unit 420, and a communication unit 430.
The sensor 410 is used to monitor the user behavior in real time and determine whether the user behavior triggers a predetermined event, such as a gyroscope, an accelerometer, a magnetometer, a distance sensor, etc. The storage unit 420 is used for storing an event and a time when the sensor 410 detects that the user behavior triggers the event. The communication unit 430 is configured to establish a connection with the intelligent terminal 440, and send the user behavior data stored in the storage unit 420 to the cloud server through the intelligent terminal 440.
In a preferred embodiment, the wearable device 400 further comprises a clock chip 450 and a frame assembly unit 460.
The frame assembling unit 460 converts the RCT time provided by the clock chip 450 into UNIX time and assembles the triggered event and the UNIX time triggering the event into a data frame.
The storage unit 420 includes a cache 421 and a flash memory 422. The storage unit 420 writes the data frame assembled by the frame assembly unit 460 into the buffer 421, and when the buffer 421 is full, the storage unit 420 writes the user behavior data stored in the buffer 421 into the flash memory 422 for storage, and clears the buffer 421.
In order to improve the operation efficiency, a ping-pong buffer can be selected, the size of the buffer is set to 512 bytes, the size of the data frame is set to 8 bytes, the frame is aligned with the buffer for storage, and the buffer can be just written to full.
In another preferred embodiment, when a sector of the flash memory 422 is full, the storage unit 420 erases the next adjacent sector adjacent to the current writing position and continues to write data to the sector; when the flash memory 422 is full, the storage unit 420 returns to the start position of the flash memory 422 to rewrite the user behavior data.
Example four
Fig. 5 is a functional block diagram of a user behavior data storage system according to an embodiment of the present invention, and as shown in fig. 5, the user behavior data storage system according to the embodiment includes a cloud server 510, an intelligent terminal 520, and a wearable device 530 in the third embodiment.
Wearable equipment 530 real-time supervision user's action, storage user action data, intelligent terminal 520, like equipment such as cell-phone, acquire the user action data of storage in wearable equipment 530 to send user action data to cloud server 510, cloud server 510 can be to user action data analysis and processing, so that to the statistics of user action better, upgrade and maintain for wearable product, thereby improve the user experience of product.
While the foregoing is directed to embodiments of the present invention, other modifications and variations of the present invention may be devised by those skilled in the art in light of the above teachings. It should be understood by those skilled in the art that the foregoing detailed description is for the purpose of better explaining the present invention, and the scope of the present invention should be determined by the scope of the appended claims.

Claims (9)

1. A user behavior data storage method, comprising:
presetting a plurality of types of events, monitoring user behaviors in real time by using wearable equipment, and judging whether the user behaviors trigger a certain event or not;
when it is monitored that a certain event is triggered by user behavior, storing the event and the time for triggering the event into the wearable device, wherein the event information is stored in different levels; the storing the event and the time that triggered the event in the wearable device comprises: converting RCT time of the wearable device into UNIX time, and assembling the event and the UNIX time triggering the event into a data frame; storing event information of different levels in each data frame, wherein the events of different levels are in a relationship of upper and lower inclusion;
and acquiring user behavior data stored in the wearable device by using an intelligent terminal, and sending the user behavior data to a cloud server.
2. The method of claim 1, wherein the storing the event and the time at which the event was triggered in the wearable device, further comprises:
writing the data frame into a cache of the wearable device;
and when the cache of the wearable device is full, writing the user behavior data stored in the cache into a flash memory of the wearable device for storage, and emptying the cache.
3. The method of claim 2, wherein the method further comprises:
when one sector of the flash memory of the wearable device is full, erasing the next adjacent sector adjacent to the current writing position, and continuously writing data into the sector;
and when the flash memory of the wearable device is full, returning to the initial position of the flash memory for rewriting.
4. The method of claim 2, wherein the wearable device's cache is a ping-pong cache, 512 bytes in size, and 8 bytes in size for the data frame.
5. A wearable device, comprising a sensor, a storage unit, and a communication unit;
the sensor is used for monitoring user behaviors in real time and judging whether the user behaviors trigger a certain preset event or not;
the storage unit is used for storing an event and the time for triggering the event when the sensor monitors that the user behavior triggers the event, and the event information is stored in different levels;
the communication unit is used for establishing connection with an intelligent terminal and sending the user behavior data stored in the storage unit to a cloud server through the intelligent terminal;
the wearable device further comprises a clock chip and a frame assembly unit; the frame assembling unit is used for converting RCT time provided by the clock chip into UNIX time and assembling the event and the UNIX time triggering the event into a data frame; each data frame stores event information of different levels, and the events of different levels are in a relationship of upper and lower inclusion.
6. The wearable device of claim 5,
the storage unit comprises a cache and a flash memory;
the storage unit is specifically configured to write the data frame into the cache; and when the cache is full, writing the user behavior data stored in the cache into the flash memory for storage, and emptying the cache.
7. The wearable device of claim 6, wherein the storage unit is further to:
when one sector of the flash memory is full, erasing the next adjacent sector adjacent to the current writing position, and continuously writing data into the sector;
and returning to the initial position of the flash memory for rewriting when the flash memory is full.
8. The wearable device of claim 6, wherein the buffer is a ping-pong buffer, having a size of 512 bytes, and the data frame has a size of 8 bytes.
9. A user behavior data storage system, comprising a cloud server, a smart terminal and the wearable device of any of claims 5-8;
the wearable device is used for monitoring user behaviors in real time and storing user behavior data;
the intelligent terminal is used for acquiring the user behavior data stored in the wearable device and sending the user behavior data to a cloud server.
CN201611267606.7A 2016-12-31 2016-12-31 User behavior data storage method and system and wearable device Active CN106873770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611267606.7A CN106873770B (en) 2016-12-31 2016-12-31 User behavior data storage method and system and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611267606.7A CN106873770B (en) 2016-12-31 2016-12-31 User behavior data storage method and system and wearable device

Publications (2)

Publication Number Publication Date
CN106873770A CN106873770A (en) 2017-06-20
CN106873770B true CN106873770B (en) 2020-07-10

Family

ID=59164166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611267606.7A Active CN106873770B (en) 2016-12-31 2016-12-31 User behavior data storage method and system and wearable device

Country Status (1)

Country Link
CN (1) CN106873770B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111376255B (en) * 2018-12-29 2022-06-24 深圳市优必选科技有限公司 Robot data acquisition method and device and terminal equipment
CN111724878A (en) * 2020-06-23 2020-09-29 歌尔科技有限公司 Data acquisition method, device and equipment
CN114220515A (en) * 2021-12-16 2022-03-22 珠海格力电器股份有限公司 Data processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166827A (en) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 Method and system for user behavior data reporting
CN104301528A (en) * 2014-09-28 2015-01-21 小米科技有限责任公司 Information displaying method and device
CN104867309A (en) * 2015-04-30 2015-08-26 深圳市全球锁安防***工程有限公司 Middle aged and elderly people good health service intelligent wearing device and deep learning method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10049336B2 (en) * 2013-02-14 2018-08-14 Sociometric Solutions, Inc. Social sensing and behavioral analysis system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166827A (en) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 Method and system for user behavior data reporting
CN104301528A (en) * 2014-09-28 2015-01-21 小米科技有限责任公司 Information displaying method and device
CN104867309A (en) * 2015-04-30 2015-08-26 深圳市全球锁安防***工程有限公司 Middle aged and elderly people good health service intelligent wearing device and deep learning method

Also Published As

Publication number Publication date
CN106873770A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106873770B (en) User behavior data storage method and system and wearable device
CN113892087B (en) Third party application performance improvement toolkit
RU2004139198A (en) UNIVERSAL COMPUTER DEVICE
CN105187641A (en) Method and system for smartly reminding application notification
CN107577706B (en) User behavior data processing method, device and computer readable storage medium
CN101581606A (en) Embedded system infrared thermometer
CN107436840A (en) Application program analysis of running performance method, apparatus and system
CN109960621A (en) A kind of data pick-up method based on big data visual control platform
CN107708084B (en) Data processing method and device, computer equipment and computer readable storage medium
CN111669717B (en) Cloud mobile phone data sending method, computer device and storage medium
CN103164505A (en) System and method for conducting ranking on internet applications based on actual use frequency
CN113886193A (en) Log data processing method and device, electronic equipment and storage medium
CN106919377B (en) Method and device for determining whether display interface of application program is white screen
CN111400132A (en) Automatic monitoring method and system for on-shelf APP
WO2019062462A1 (en) Application control method and apparatus, storage medium and electronic device
CN104243683B (en) A kind of method, terminal, Subscriber Identity Module and system handling data
CN111400627A (en) Information acquisition method and device, electronic equipment and readable storage medium
CN108388616A (en) Transacter, method, system and computer readable storage medium
CN109828770A (en) A kind of method for upgrading software, terminal device and server
CN111265881B (en) Model training method, content generation method and related device
CN111460843B (en) Method and device for remotely deploying and controlling bar code scanning equipment
KR20220111982A (en) Method and apparatus for laundry management using rfid
CN104967770A (en) Video shooting method and apparatus thereof
CN116778550A (en) Personnel tracking method, device and equipment for construction area and storage medium
CN114223139A (en) Interface switching method and device, wearable electronic equipment and storage medium

Legal Events

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