CN113342272B - Sitting posture data storage method, sitting posture data display method, intelligent cushion and system - Google Patents

Sitting posture data storage method, sitting posture data display method, intelligent cushion and system Download PDF

Info

Publication number
CN113342272B
CN113342272B CN202110633282.9A CN202110633282A CN113342272B CN 113342272 B CN113342272 B CN 113342272B CN 202110633282 A CN202110633282 A CN 202110633282A CN 113342272 B CN113342272 B CN 113342272B
Authority
CN
China
Prior art keywords
sitting posture
subspace
posture data
date
data
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
CN202110633282.9A
Other languages
Chinese (zh)
Other versions
CN113342272A (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.)
Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Original Assignee
Shenzhen Shuliantianxia Intelligent Technology 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 Shenzhen Shuliantianxia Intelligent Technology Co Ltd filed Critical Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Priority to CN202110633282.9A priority Critical patent/CN113342272B/en
Publication of CN113342272A publication Critical patent/CN113342272A/en
Application granted granted Critical
Publication of CN113342272B publication Critical patent/CN113342272B/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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements

Abstract

The invention discloses a sitting posture data storage method, a sitting posture data display method, an intelligent cushion and an intelligent sitting posture data system. The method comprises the following steps: processing the currently acquired sitting posture state data according to a preset processing rule to obtain current sitting posture data; acquiring current time information corresponding to current sitting posture data, wherein the current time information comprises current date information and current time point information; traversing in the storage pool according to the current date information to find a subspace meeting a writing condition; and writing the current sitting posture data into a first data area of the subspace meeting the writing condition according to the current time point information. By adopting the mode of the invention, the intelligent cushion completes integration of the coordinate data of each day locally in the equipment, so that the upper computer can draw a chart for display according to the data of each-day sitting posture sent by the intelligent cushion without depending on a server.

Description

Sitting posture data storage method, sitting posture data display method, intelligent cushion and system
Technical Field
The invention relates to the field of intelligent cushions, in particular to a sitting posture data storage method, a sitting posture data display method, an intelligent cushion and a sitting posture data display system.
Background
In the development of intelligence cushion, need to carry out statistics to the appearance data of sitting, like the number of times of inclining left, the number of times of inclining right, correct the number of times, it is long when filling up, it is long when inclining left, it is long when inclining right etc.. Among the current technical scheme, generally be with the position of sitting state data random storage that the cushion was gathered at every turn in inside Flash, as shown in fig. 1, when cell-phone APP need show position of sitting data, intelligent cushion need earlier transmit the high in the clouds server via cell-phone APP with the historical data of storage in FLASH, then integrate data, statistical result at the high in the clouds, issue the APP show again at last. The method needs to be supported by a server, and the running speed of the mobile phone end is influenced due to large data transmission amount.
Disclosure of Invention
The embodiment of the invention aims to provide a sitting posture data storage method, a sitting posture data display method, an intelligent cushion and a sitting posture data display system.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
according to an aspect of the present invention, there is provided a method for storing sitting posture data, the method being applied to a smart seat cushion, the smart seat cushion including a memory including a storage pool pre-partitioned to store sitting posture data for preset storage days, the storage pool including a plurality of subspaces, each of the subspaces being used for storing sitting posture data for a certain date, the subspaces including a first data area for storing sitting posture data for preset time points of each day, the method including:
processing the currently acquired sitting posture state data according to a preset processing rule to obtain current sitting posture data, wherein the preset processing rule is determined based on the storage capacity and the acquisition frequency of the subspace;
acquiring current time information corresponding to current sitting posture data, wherein the current time information comprises current date information and current time point information;
traversing in the storage pool according to the current date information to find a subspace meeting a writing condition;
and writing the current sitting posture data into a first data area of the subspace meeting the writing condition according to the current time point information.
Optionally, the sub-space further includes a tag area for storing date information, and the traversing in the storage pool according to the current date information to find the sub-space meeting the writing condition includes:
traversing from a first subspace in the storage pool in sequence, and taking the first subspace as a currently traversed subspace;
acquiring date information stored in a mark area by the currently traversed subspace;
judging whether the date information stored in the marking area by the currently traversed subspace is empty, if so, judging whether the currently traversed subspace is the subspace meeting the writing condition, returning the first address of the currently traversed subspace, if not, judging whether the date information stored in the marking area by the currently traversed subspace is the same as the date information stored in the marking area by the currently traversed subspace, if so, judging whether the currently traversed subspace is the subspace meeting the writing condition, returning the first address of the currently traversed subspace, if not, judging whether the date information stored in the marking area by the currently traversed subspace is smaller than the date information stored in the marking area by the last traversed subspace, if so, judging that the currently traversed subspace is the subspace meeting the writing condition, returning the first address of the currently traversed subspace, if not, judging that each subspace in the storage pool is judged whether the data information stored in the marking area is smaller, if so, judging that the first subspace in the storage pool is the subspace meeting the writing condition, returning the first address of the first subspace in the storage pool, and if not, acquiring the date information of the next traversed subspace in the storage pool as the current traversed subspace in the marking area, and acquiring the date information of the current storage pool from the subspace in the current storage pool.
Optionally, before writing the current sitting posture data into the first data area of the subspace satisfying the writing condition according to the current time point information, the method further includes:
when the date information stored in the mark area of the subspace meeting the writing condition is empty, writing the current date information into the mark area of the subspace meeting the writing condition;
and when the date information stored in the mark area of the subspace meeting the writing condition is not empty and is different from the current date information, erasing the data of the subspace meeting the writing condition, and writing the current date information into the mark area of the subspace meeting the writing condition.
Optionally, the current sitting posture data includes any one or more of a sitting posture state, a number of corrections, a number of left inclinations and a number of right inclinations corresponding to the current time data.
Optionally, the writing the current sitting posture data into the first data area of the subspace satisfying the writing condition according to the current time point information includes:
determining an offset address for writing the current sitting posture data into the subspace meeting the writing condition according to the current time point information contained in the current time information and the size of a storage space of each preset time point sitting posture data;
and writing the current sitting posture data into a corresponding position of a first data area of the subspace meeting the writing condition according to the first address of the subspace meeting the writing condition and the offset address.
Optionally, the subspace further comprises a second data region for storing statistical seating posture data, the method further comprising:
acquiring sitting posture data corresponding to a historical date from the storage pool, and counting all sitting posture information contained in the sitting posture data based on a preset sitting posture data counting category to obtain statistical sitting posture data of the historical date;
and writing the statistical sitting posture data of the historical date into a second data area of the subspace corresponding to the historical date.
Optionally, the mark region of each subspace is located at the start position of each subspace, the first data region is located after the mark region, and the second data region is located at the end position of each subspace.
According to another aspect of the present invention, there is provided a method for displaying sitting posture data, the method being applied to a smart seat cushion, the sitting posture data being stored in a memory of the smart seat cushion by using the method described in any one of the above, the method including:
receiving a sitting posture data acquisition request sent by electronic equipment, wherein the sitting posture data acquisition request carries a specified date;
searching the storage pool for a subspace corresponding to the specified date;
storing the data of all sitting postures in the first data area of the subspace to a cache;
and sending the data of all sitting postures in the cache to the electronic equipment, so that the electronic equipment draws a first chart according to the data of all sitting postures for displaying.
Optionally, each subspace in the memory of the smart seat cushion includes a second data area for storing statistical sitting posture data, and the method for displaying the sitting posture data further includes: receiving a statistical data acquisition request sent by electronic equipment, wherein the statistical data acquisition request carries a statistical start date and a statistical end date;
traversing from the counting start date to the counting end date according to days, and selecting a date as the current counting date;
searching a subspace corresponding to the current statistical date in the storage pool;
and judging whether a second data area of the subspace is empty or not, if so, counting the sitting posture data corresponding to the current counting date to obtain counting sitting posture data, writing the counting sitting posture data into the second data area of the subspace, and storing the counting sitting posture data into a cache.
If not, acquiring the statistical sitting posture data of the second data area of the subspace, and storing the statistical sitting posture data in a cache;
judging whether the current statistical date is the statistical ending date or not, if not, turning to a step of traversing from the statistical starting date to the statistical ending date according to the day, and selecting a date as the current statistical date;
and sending each statistical sitting posture data in the cache to the electronic equipment, so that the electronic equipment draws a second chart according to each statistical sitting posture data for displaying.
According to another aspect of the present invention there is provided a smart seat cushion comprising a processor and a memory, the memory having stored therein a computer program which, when executed by the processor, carries out the method of any one of the above.
According to another aspect of the present invention, there is provided a sitting posture data display system, which comprises the intelligent seat cushion and an electronic device, wherein,
the electronic equipment is in communication connection with the intelligent cushion and is used for sending a sitting posture data acquisition request containing a specified date, or sending a statistical data acquisition request containing a specified date range to the intelligent cushion, receiving sitting posture data of each preset time point corresponding to the specified date sent by the intelligent cushion, drawing a first chart according to each sitting posture data for displaying, or receiving each statistical sitting posture data of the specified date range sent by the intelligent cushion, and drawing a second chart according to each statistical sitting posture data for displaying;
the intelligent seat cushion is used for acquiring sitting posture data of each preset time point corresponding to the designated date according to the designated date in the sitting posture data acquisition request and sending the sitting posture data to the electronic equipment, or acquiring each statistical sitting posture data of the designated date range according to the designated date range in the statistical data acquisition request and sending the statistical sitting posture data to the electronic equipment.
According to another aspect of the invention, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, performs the method of any one of the above.
The embodiment of the invention has the beneficial effects that: different from the prior art, in the embodiment of the invention, firstly, the memory of the intelligent cushion comprises storage pools which are divided in advance and used for storing sitting posture data of preset storage days, each storage pool comprises a plurality of subspaces, and each subspace is used for storing sitting posture data of a certain date; then, processing the currently acquired sitting posture state data according to a preset processing rule to obtain current sitting posture data; and finally, storing the current sitting posture data to a subspace meeting the writing condition according to the current time point information. By adopting the method, the intelligent cushion processes the collected sitting posture state data locally in the equipment to obtain the sitting posture data at each time point convenient to display, and then stores the sitting posture data at each time point into the corresponding subspace of the memory according to the date, so that the upper computer can obtain the sitting posture data at each time point corresponding to the date according to the date without depending on a server, and a chart is drawn according to the sitting posture data at each time point for displaying.
Drawings
FIG. 1 is a schematic diagram of a sitting posture data presentation system in the prior art;
fig. 2 is a schematic diagram of a hardware structure of an intelligent seat cushion provided in the embodiment of the present invention;
FIG. 3 is a flowchart of a sitting posture data storage method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a storage pool provided by an embodiment of the present invention;
FIG. 5 is a flowchart of a method for determining a subspace in a storage pool which satisfies a write condition according to current date information according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for writing sitting posture data into a subspace according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of the internal data of a subspace provided by the embodiment of the present invention;
FIG. 8 is a flowchart of a method for displaying sitting posture data according to an embodiment of the present invention;
FIG. 9 is a flow chart of another sitting posture data displaying method provided by the embodiment of the invention
Fig. 10 is a system for displaying sitting posture data according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Fig. 2 is a schematic diagram of a hardware structure of an intelligent seat cushion according to an embodiment of the present invention. The intelligent seat cushion 20 comprises a pressure sensor 21, a vibration device 22, a correction device 23, a communication unit 24, a timing unit 25 and a micro control unit 26, wherein the micro control unit 26 is respectively connected with the pressure sensor 21, the vibration device 22, the correction device 23, the communication unit 24 and the timing unit 25.
And the pressure sensor 21 is used for detecting sitting posture data of the user in real time and sending the sitting posture data to the micro control unit 26. The sitting posture data comprises four states of left inclination, right inclination, sitting and cushion separation, and the output frequency is different according to different pressure sensors, and is generally 1 second. In some embodiments, the micro-control unit 26 is self-contained with a pressure sensor.
And the vibration device 22 is used for generating vibration according to the vibration device 22 controlled by the micro control unit 26 when the pressure sensor 21 detects that the sitting posture of the user is abnormal (left or right), so as to remind the user to correct the sitting posture. Specifically, the vibration device 22 may include a left vibrator and a right vibrator, and the vibrators (vibration motors) are separate components and are located inside the cushion foam. When the pressure sensor 21 detects that the user leans to the left, the micro control unit 26 controls the vibrator on the left of the vibration device 22 to vibrate; when the pressure sensor 21 detects that the user leans to the right, the micro control unit 26 controls the vibrator on the right of the vibration device 22 to vibrate.
The correcting device 23 is configured to generate a correcting action according to the control of the micro control unit 26 when the micro control unit 26 detects that the user has an abnormal sitting posture (a left-leaning posture or a right-leaning posture) and the accumulated abnormal posture reaches a preset threshold time, so as to assist the user in correcting the sitting posture. Specifically, the orthotic device 23 may be a balloon, and in some embodiments, the orthotic device 23 includes 4 independently controllable balloons that are individually inflatable and deflatable via an air pump. When the micro control unit 26 detects that the user leans to the left, the micro control unit 26 controls the left airbag to inflate or the right airbag to deflate; when the micro-control unit 26 detects that the user is leaning right, the micro-control unit 26 controls the inflation of the right side airbag or the deflation of the left side airbag.
And the communication unit 24 is used for carrying out communication connection with the upper computer, acquiring instructions from the upper computer and sending the sitting posture data corresponding to the instructions to the upper computer. The wireless communication device can be of any type, and is realized by adopting a wired communication technology or a wireless communication technology, wherein the wired communication technology comprises Ethernet, universal Serial Bus (USB) and the like; wireless communication technologies include bluetooth, wiFi, mobile communications (2G, 3G, 4G, 5G, etc.), near Field Communications (NFC), radio Frequency Identification (RFID), and the like. In some embodiments, the communication unit 24 is implemented using bluetooth communication technology.
And the timing unit 25 is used for timing when the communication unit 24 and the upper computer are in an off-line state, and providing time information to the micro control unit 26.
The micro control unit 26 is used for acquiring sitting posture data from the pressure sensor 21, detecting the sitting posture data, and controlling the vibration device 22 to vibrate when the abnormal sitting posture of the user is detected; when the abnormal sitting posture of the user is detected to reach the preset threshold time, the correction device 23 is controlled to generate a correction action, an instruction is obtained from the communication unit 24, sitting posture data is obtained according to the instruction, the communication unit 24 is controlled to send the sitting posture data to the upper computer, and when the communication unit 24 and the upper computer are in an off-line state, time information is obtained from the timing unit 23. Specifically, the micro control unit 26 includes a controller, an internal Flash and an SRAM (Static Random-Access Memory). The internal Flash is used for storing computer programs and sitting posture data.
As shown in fig. 3, a flow chart of a sitting posture data storage method provided for an embodiment of the present invention is applied to an intelligent seat cushion, the intelligent seat cushion includes a memory, the memory includes a pre-partitioned storage pool for storing sitting posture data of preset storage days, the storage pool includes a plurality of subspaces, each subspace is used for storing sitting posture data of a certain date, and the subspaces include a first data area for storing sitting posture data of preset time points each day. In some embodiments, the smart cushion is the smart cushion shown in fig. 2. The method comprises the following steps:
step S301, processing the currently collected sitting posture state data according to a preset processing rule to obtain current sitting posture data.
The preset processing rule is determined based on the storage capacity and the acquisition frequency of the subspace.
On one hand, the acquisition frequency of an algorithm built in the MCU is 1 second/time, and if sitting posture data are directly stored in a memory of the intelligent cushion according to the acquisition frequency, when the acquisition frequency is higher, the capacity requirement on the memory is increased. Therefore, the collected sitting posture data needs to be processed before being stored. On the other hand, the position of sitting data that intelligence cushion was gathered is the position of sitting state data that sampling time point corresponds, includes: no operation, no person, air pump working, left leaning, right leaning and sitting. If the sitting posture data are directly stored in the memory, the upper computer cannot directly draw a chart through the sitting posture data. Through analysis, the sitting posture data required to be displayed by the upper computer can comprise any one or combination of a sitting posture state, a correction frequency, a left leaning frequency and a right leaning frequency, and therefore the processed current sitting posture data comprises any one or combination of a sitting posture state, a correction frequency, a left leaning frequency and a right leaning frequency.
In some embodiments, the memory is an internal Flash of the MCU of the smart cushion. The storage capacity of the internal Flash is typically small, for example 1M. The storage capacity of each subspace is an integral multiple of a Sector, and the Sector is a minimum erasing unit of the internal Flash.
Generally, the address and length of the MCU written data must be 4-byte aligned, and assuming that the storage size of the sitting posture data is 4 bytes, if the storage period of the preset sitting posture data is 1 minute, the storage space required for storing 24 hours of sitting posture data a day is 24 × 60 × 4=5760 bytes =5.625KB; if the preset sitting posture data storage period is 1 second, the storage space required to store 24 hours a day sitting posture data is 5.625 × 60=337.5kb. The sub-space is used for storing sitting posture data of one day, so that the storage capacity of the sub-space is at least 337.5KB when the sitting posture data is stored every second, and the storage capacity of the sub-space is at least 5.625KB when the sitting posture data is stored every minute. When the size of a Sector is 8KB, it is necessary to allocate at least 1 Sector to each subspace if it is stored in minutes, and at least 43 sectors to each subspace if it is stored in seconds. The storage capacity of the sub-space can be set by a person skilled in the art according to the size of the memory of the intelligent seat cushion and the display requirement of the sitting posture data.
The storage capacity of the storage pool is determined by the storage capacity of the sub-space and the preset number of storage days. In some embodiments, each subspace in the storage pool corresponds to a contiguous storage space of the internal Flash. FIG. 4 is a schematic diagram of a storage pool, according to an embodiment of the present invention. The storage pool contains 15 contiguous subspaces, and the 15 subspaces can store 15 days of sitting posture data circularly according to the date sequence.
The following description will be given by way of example of how the currently collected sitting posture data is processed into the current sitting posture data. Assuming that the preset sitting posture data storage period is 1 minute and the collection frequency is 60 times/minute, the MCU integrates 60 sitting posture state data in 1 minute into 1 sitting posture data as the current sitting posture data. The integration rule of each item of data in the current sitting posture data is as follows:
1) A sitting posture state: if the accumulated running time of the intelligent cushion is less than 30s in the minute, the sitting posture state in the minute is not running; if the accumulated time of the unmanned state exceeds 30s in the minute, the sitting posture state of the minute is unmanned; if the accumulated working time of the air pump exceeds 30s in the minute, the sitting posture state of the minute is that the air pump works; if the three conditions are not met, the cumulative seconds of the left inclination, the right sitting and the right inclination are compared, and the state with the largest cumulative seconds is selected as the sitting posture state of the minute.
2) The correction times are as follows: the air pump works once, and the correction times are increased by one.
3) Number of left inclinations: cumulative seconds left tipped.
4) The number of right inclinations: cumulative seconds of right dip.
5) Number of sitting times: cumulative seconds of sitting.
Step S302, current time information corresponding to the current sitting posture data is obtained, and the current time information comprises current date information and current time point information.
The current time point information is time information with a preset sitting posture data storage period as an interval. For example, the preset sitting posture data storage period is 1 minute, and the current time point information is 07:31, the next time point information is 07:32, a first step of removing the first layer; for example, the preset sitting posture data storage period is 5 minutes, and the current time point information is 07:35, the next time point information is 07:40.
step S303, traversing in the storage pool according to the current date information, and finding a subspace meeting the writing condition.
The writing condition can be set according to actual requirements.
In some embodiments, the subspace further includes a flag region for storing date information, the date information stored in the flag region of the subspace satisfying the writing condition is the same as the current date information, or the date information stored in the flag region of the subspace satisfying the writing condition is null, or the date information stored in the flag region of the subspace satisfying the writing condition is an earliest historical date, and the earliest historical date is a date determined according to the current date information and the preset number of storage days. For example, if the preset storage days are 15 days, the current date is 5 months and 16 days, and the historical earliest date is 5 months and 1 day.
In some embodiments, to facilitate inserting and erasing sitting posture data in the storage, the sitting posture data is circularly stored in the storage pool according to a date sequence, and the subspace meeting the writing condition is a subspace in which the current sitting posture data can be inserted into the storage pool according to the date sequence.
In some embodiments, the sitting posture data of each date is randomly stored in the storage pool, and the mapping relation between the head address and the date of each subspace is stored, wherein the subspace meeting the writing condition is the same as the current date information, or any free subspace or the subspace corresponding to the longest date.
And step S304, writing the current sitting posture data into a first data area of the subspace meeting the writing condition according to the current time point information.
In some embodiments, determining, according to the current time point information and the size of the storage space of the sitting posture data at each preset time point, an offset address for writing the current sitting posture data into the subspace meeting the writing condition;
and writing the current sitting posture data into a corresponding position of a first data area of the subspace meeting the writing condition according to the first address of the subspace meeting the writing condition and the offset address.
Firstly, a storage device of the intelligent cushion comprises storage pools which are divided in advance and used for storing sitting posture data with preset storage days, each storage pool comprises a plurality of subspaces, and each subspace is used for storing sitting posture data of a certain date; then, processing the currently acquired sitting posture state data according to a preset processing rule to obtain current sitting posture data; and finally, storing the current sitting posture data to a subspace meeting the writing condition according to the current time point information. By adopting the method, the intelligent cushion processes the collected sitting posture state data locally in the equipment to obtain the sitting posture data at each time point convenient to display, and then stores the sitting posture data at each time point into the corresponding subspace of the memory according to the date, so that the upper computer can obtain the sitting posture data at each time point corresponding to the date according to the date without depending on a server, and a chart is drawn according to the sitting posture data at each time point for displaying.
Specifically, as shown in fig. 5, a flowchart of a method for determining a subspace in a storage pool meeting a writing condition according to current date information is provided according to an embodiment of the present invention. It should be noted that, in the embodiment of the present invention, the subspace further includes a tag area for storing date information, and the method includes:
step S501, traversing in the storage pool in sequence from the first subspace, and taking the first subspace as the currently traversed subspace.
Step S502, acquiring the date information stored in the mark area by the currently traversed subspace.
In step S503, it is determined whether the date information is empty, if so, the process proceeds to step S510, and if not, the process proceeds to step S504.
The date information stored in the mark area of the currently traversed subspace is null, which indicates that the subspace is a free subspace. And under the condition that none of the previously traversed subspaces meet the writing condition, the first traversed vacant subspaces in sequence are the subspaces meeting the writing condition.
In step S504, it is determined whether the date information is the same as the current date information, if so, the process proceeds to step S510, and if not, the process proceeds to step S505.
The date information stored in the mark area by the currently traversed subspace is the same as the current date information, which indicates that the current subspace is the subspace meeting the writing condition, and the current subspace is written with partial sitting posture data of the current date, and the new sitting posture data is also written into the current subspace.
In step S505, the date information is saved.
Saving the date information facilitates comparison with the date information of the next selected subspace in step S506.
Step S506, determining whether the date information is less than the date information of the previous subspace, if yes, proceeding to step S510, and if no, proceeding to step S507.
The date information stored in the mark area by the currently traversed subspace is less than the date information stored in the mark area by the last traversed subspace, which indicates that the subspaces in the whole storage pool are full at the moment, and the data of the subspace with the longest date needs to be erased to store the sitting posture data of the current date. When the data are circularly stored according to the date sequence, the previous subspace of the subspace with the longest date in the storage pool is the subspace with the newest date, namely the currently traversed subspace, which meets the condition that the date information stored in the mark area by the currently traversed subspace is smaller than the date information stored in the mark area by the last traversed subspace, is the subspace meeting the writing condition, and the date information stored in the mark area by other adjacent subspaces, which meets the condition that the next subspace is larger than the date information stored in the mark area by the previous subspace.
It should be noted that, if the current subspace is the first subspace in the storage pool, the date information stored in the mark region by the previous subspace is an initialization value, for example, 0xFF, it is determined that the date information stored in the mark region by the currently traversed subspace is not less than the date information stored in the mark region by the previous traversed subspace, and the process proceeds to step S507.
Step S507, determining whether each subspace in the storage pool has been traversed, if yes, going to step S508, and if not, going to step S509.
Step S508, the first address of the first subspace is returned.
In step S509, the next subspace is obtained from the storage pool as the currently traversed subspace, and the process proceeds to step S502.
And step S510, returning the first address of the currently traversed subspace.
In this embodiment, the sitting posture data is circularly stored in each subspace of the storage pool according to the date sequence, so that the searching speed of the subspace can be increased, and the storage efficiency and the reading efficiency of the sitting posture data can be improved.
As shown in fig. 6, a flowchart of a method for writing sitting posture data into a subspace according to an embodiment of the present invention is provided, where the method includes:
in step S601, it is determined whether the date information stored in the mark area in the subspace satisfying the writing condition is empty, if yes, the process proceeds to step S604, and if not, the process proceeds to step S602.
In step S602, it is determined whether the date information stored in the mark area in the subspace satisfying the writing condition is the same as the current date information, if so, the process proceeds to step S605, and if not, the process proceeds to step S603.
In step S603, the data of the subspace satisfying the writing condition is erased.
In step S604, the current date information is written in the mark area of the subspace satisfying the writing condition.
Step S605, determining to write the current sitting posture data into the offset address of the subspace satisfying the writing condition according to the current time point information included in the current time information and the size of the storage space of the sitting posture data at each preset time point.
And step S606, writing the current sitting posture data into the corresponding position of the first data area of the subspace meeting the writing condition according to the first address of the subspace meeting the writing condition and the offset address.
Specifically, assuming that the mark area is located at the first address of the subspace and is 4 bytes in size, the first data area is located at the next address of the mark area, the storage space of each sitting posture data is also 4 bytes in size, and the preset sitting posture data storage period of the MCU is 1 minute, the offset address of the current sitting posture data in the subspace that meets the writing condition =4 (the number of minutes +1 corresponding to the current time point information). For example, the current time data is 20 at 5 months, 16 days, 2021: 31, current time point information 20:31, the offset address corresponding to the time point is: 4 ({ 20 } + 60+31+ 1) =4928. If the first address of the subspace meeting the writing condition is X, the address written by the current sitting posture data is X +4928.
Step S607, obtaining each sitting posture data corresponding to a historical date from the storage pool, and performing statistics on each item of sitting posture information included in each sitting posture data based on a preset sitting posture data statistics category to obtain statistical sitting posture data of the historical date.
The preset sitting posture data statistics category is one or more combinations of accumulated sitting posture state, accumulated left-leaning duration, accumulated right-leaning duration and accumulated correction duration.
The historical date is a date before the current date. Specifically, the intelligent cushion can periodically count the sitting posture data of each subspace in the storage pool. For example, at 0 o' clock every day, the sitting posture data of the previous day is counted.
Step S608, writing the statistical sitting posture data of the historical date into the second data area of the subspace corresponding to the historical date.
In this embodiment, the daily sitting posture data at each time point and the daily statistical sitting posture data are stored in the corresponding positions of the same subspace, so that the upper computer can conveniently obtain the corresponding sitting posture data according to the date, and draw a corresponding chart according to the corresponding sitting posture data for display.
Fig. 7 is a schematic diagram of internal data of a subspace according to an embodiment of the present invention. As can be seen from fig. 7, a subspace may consist of four parts: (1) a labeling region: the data storage module is used for storing date information corresponding to each subspace; (2) the first data area: for storing sitting posture data for each preset time point. If the preset sitting posture data storage period is 1 minute, the total time is 5.625KB. (3) unused area; (4) the second data area: statistical seating posture data for storing the date information. The data contents of the first data area and the second data area in fig. 7 are specifically described below, respectively.
In some embodiments, the mark region of each subspace is located at the start position of each subspace, the first data region of each subspace is located after the mark region of that subspace, and the second data region is located at the end position of each subspace. Specifically, the first 4 bytes of each subspace can be used as a mark area of each subspace, and date information can be stored. For example, when the date is 2021, 4 months and 20 days, the data stored in the tag area is 0x14,0x15,0x04, and 0x14 (hexadecimal).
In fig. 7, the preset sitting posture data storage period of the smart cushion is 1 minute, the current sitting posture data includes the sitting posture state of the minute, the number of corrections in the minute, the number of left inclinations in the minute, and the number of right inclinations in the minute, and the data content and storage mode are shown in table 1 below.
Figure BDA0003104561610000131
Figure BDA0003104561610000141
TABLE 1 data content and storage mode of each sitting posture data in the first data area
The sitting posture state of the minute includes six states of no operation of the equipment, no person, left inclination, sitting, right inclination and air pump working, and the data content is shown in the following table 2.
Sitting posture at that time Value of
The apparatus is not in operation 0xFF
Nobody 0xF1
Left leaning 0xF2
Positive seat 0xF3
Right inclination 0xF4
Operation of air pump 0xF5
TABLE 2 corresponding values for different sitting postures
The existing sitting posture data display system mainly displays three types of charts: daily sitting posture change curve, daily sitting posture switching frequency statistics and daily sitting posture time statistics.
Daily sitting posture change curve: statistics are generally performed in units of minutes, and the statistical sitting posture data corresponds to six states: the equipment does not work, is unmanned, inclines leftwards and rightwards, sits upright and is provided with an air pump. Therefore, the intelligent cushion needs to store the sitting posture change data of 24 hours per day, so that the upper computer can draw a sitting posture change curve of a whole day according to the data.
Counting the daily sitting posture switching times: left-leaning times, right-leaning times and rectification times per day. The left-leaning times are defined as the sitting posture of the current time is changed from the last sitting posture, and the left-leaning times are increased by one if the sitting posture of the current time is left-leaning. The same applies to the statistical rule of the right-leaning times. The correction times are defined as the air pump works, and the correction times are increased by one.
Counting the daily sitting posture time: statistics are generally performed in units of minutes, and the total length of time the user is on the mat (including left-leaning, right-leaning, and sitting), left-leaning length, and right-leaning length are counted each day.
Wherein, the daily sitting posture change curve can be obtained by the sitting posture data stored in the first data area. In order to obtain the daily sitting posture switching frequency statistics and the daily sitting posture time statistics, the intelligent seat cushion performs statistics on each sitting posture data stored in the first data area to obtain the statistical sitting posture data of each historical date, wherein the statistical sitting posture data of the historical dates comprise any one or more combinations of the accumulated on-cushion time length, the accumulated left-leaning time length, the accumulated right-leaning time length and the accumulated correction time length corresponding to the historical dates.
In fig. 7, the statistical sitting posture data of the second data area includes 24 bytes, and the specific data content and storage manner thereof are shown in table 3 below.
Data length Data name Unit of
4byte Accumulated time on pad Minute(s) of
4byte Accumulated length of left-leaning time Minute (min)
4byte Accumulated length of right dip Minute(s) of
4byte Cumulative number of left inclines Number of times
4byte Cumulative right dip times Number of times
4byte Accumulated correction times Number of times
TABLE 3 data content and storage mode of statistical sitting posture data in the second data area
The statistical method for accumulating the duration of the on-pad time comprises the following steps: and traversing each sitting posture data at an interval of 4 bytes in the first data area, adding 1 minute to the on-cushion time length when the sitting posture state of a certain sitting posture data in the minute is not 0xFF (not started) or 0XF1 (unmanned), and obtaining the accumulated on-cushion time length of the day after the traversal is finished. In the same way, the accumulated left-leaning duration and the accumulated right-leaning duration of the day can be obtained. The statistical method for accumulating the left inclination times comprises the following steps: and accumulating the left leaning times per minute corresponding to each sitting posture data in the first data area to obtain the accumulated left leaning times of the day. In the same way, the accumulated right inclination times and the accumulated correction times of the day can be obtained.
As shown in fig. 8, which is a flowchart of a method for displaying sitting posture data according to an embodiment of the present invention, the method is applied to an intelligent seat cushion, and the intelligent seat cushion may be the intelligent seat cushion shown in fig. 2, and the method includes:
step S801, receiving a sitting posture data obtaining request sent by an electronic device, where the sitting posture data obtaining request carries a specified date.
Specifically, an electronic device (such as a mobile phone, a tablet and the like) in communication connection with the smart seat pad initiates a sitting posture data acquisition request with a specified date to the smart seat pad through the App.
At step S802, a subspace corresponding to the specified date is looked up in the storage pool.
And step S803, storing the sitting posture data of the first data area of the subspace to a cache.
Step S804, sending the data of each sitting posture in the cache to the electronic device, so that the electronic device draws the first chart according to the data of each sitting posture for displaying.
In this embodiment, the intelligent cushion acquires the sitting posture data of each preset time point on the appointed date according to the appointed date sent by the electronic device and sends the sitting posture data to the electronic device, so that the electronic device does not need to rely on a server, and a daily sitting posture change curve of the appointed date is drawn according to the sitting posture data of each preset time point for displaying.
As shown in fig. 10, which is a flowchart of another sitting posture data displaying method provided in an embodiment of the present invention, the method is applied to an intelligent seat cushion, which may be the intelligent seat cushion shown in fig. 2, and the method includes:
step S901, receiving a statistical data acquisition request sent by an electronic device, where the statistical data acquisition request carries a statistical start date and a statistical end date.
Specifically, an electronic device (such as a mobile phone, a tablet and the like) in communication connection with the smart cushion initiates a statistical data acquisition request of a specified date or a specified date range to the smart cushion through an App, and the statistical data acquisition request carries a statistical start date and a statistical end date.
Step S902, traversing from the start date of statistics to the end date of statistics by day, and selecting a date from the start date of statistics as the current statistics date.
In step S903, a subspace corresponding to the current statistic date is searched for in the storage pool.
In some embodiments, before step S803, the method further includes: and judging whether the current statistical date is the historical date, if so, entering the step S803, and if not, entering the step S802. If the current statistical date is the current date or the date after the current date, the current statistical date is not considered.
Step S904, determining whether the second data area of the subspace is empty, if so, proceeding to step S806, otherwise, proceeding to step S805.
Step S905, the statistical sitting posture data of the second data area of the subspace is obtained and stored in a cache.
And step S906, counting the sitting posture data corresponding to the current counting date to obtain counting sitting posture data, writing the counting sitting posture data into a second data area of the subspace, and storing the counting sitting posture data into a cache.
Specifically, if the second data area in the subspace corresponding to the current statistical date is empty, which indicates that the sitting posture data corresponding to the current statistical date is not counted yet, the statistical sitting posture data is written into the second data area of the subspace after the statistics is completed by the method, and the statistical sitting posture data is stored in the cache.
In step S907, it is determined whether the current statistics date is the statistics end date, and if not, the process proceeds to step S902, and if so, the process proceeds to step S908.
Step S908, sending each statistical sitting posture data in the cache to the electronic device, so that the electronic device draws a second chart according to each statistical sitting posture data for displaying. In some embodiments, the electronic device plots a daily sitting posture switching number statistical chart and a daily sitting posture time statistical chart for presentation according to the statistical sitting posture data of the specified date range.
In this embodiment, the intelligent cushion acquires the statistical sitting posture data corresponding to each date in the specified date range according to the specified date range sent by the electronic device and sends the statistical sitting posture data to the electronic device, so that the electronic device does not need to rely on a server and draws a statistical chart according to the statistical sitting posture data corresponding to each date in the specified date range for display.
According to an embodiment of the present invention, there is provided an intelligent seat cushion, which includes a processor and a memory, where the memory stores a computer program, and when the computer program is executed by the processor, the method for storing sitting posture data or the method for displaying sitting posture data in any one of the embodiments of the present invention is implemented. In some embodiments, the processor and the memory may be integrated into one unit, for example, including an MCU, and the MCU may be provided with a memory, for example, an internal Flash.
It is understood that the smart seat cushion may further include a pressure sensor, a vibration device, an orthotic device, a communication unit, a timing unit, etc., as shown in fig. 2.
The intelligent cushion provided by the invention has the technical characteristics and beneficial effects corresponding to the embodiment of the method. The intelligent cushion processes the collected sitting posture state data locally in the equipment to obtain the sitting posture data at each time point convenient to display, and stores the sitting posture data at each time point into the corresponding space of the storage according to the date, so that an upper computer does not need to rely on a server, obtains the sitting posture data required by display from the intelligent equipment according to the appointed date or the appointed date range, and draws different charts according to the corresponding sitting posture data for display.
As shown in fig. 10, the system for displaying sitting posture data provided by the embodiment of the present invention includes a smart seat cushion 10 and an electronic device 20, wherein,
the electronic device 20 is in communication connection with the intelligent seat cushion 10 and is configured to send a sitting posture data acquisition request including a specified date, or send a statistical data acquisition request including a specified date range to the intelligent seat cushion 10, receive sitting posture data of each preset time point corresponding to the specified date sent by the intelligent seat cushion 10, and draw a first chart according to each sitting posture data for display, or receive each statistical sitting posture data of the specified date range sent by the intelligent seat cushion 10, and draw a second chart according to each statistical sitting posture data for display;
the intelligent seat cushion 10 is configured to acquire sitting posture data of each preset time point corresponding to the designated date according to the designated date in the sitting posture data acquisition request and send the sitting posture data to the electronic device 20, or acquire each statistical sitting posture data of the designated date range according to the designated date range in the statistical data acquisition request and send the statistical sitting posture data to the electronic device 20.
It is to be understood that the hardware structure of the smart seat cushion 10 can refer to the description of fig. 2, and in addition, in the embodiment of the present invention, the smart seat cushion can perform the steps of the sitting posture data storage method and the sitting posture data display method described in any one of the foregoing descriptions, please refer to the foregoing description where not detailed in this embodiment.
According to the sitting posture data display system provided by the invention, the intelligent cushion processes the collected sitting posture state data locally on the equipment to obtain the sitting posture data at each time point convenient to display, and stores the sitting posture data at each time point into each subspace of the storage according to the date, the electronic equipment can acquire the sitting posture data required for display from the intelligent equipment according to the specified date or the specified date range without depending on a server, and different charts can be drawn according to the corresponding sitting posture data for display.
According to an embodiment of the invention, a computer-readable storage medium is provided, which stores a computer program which, when executed by a processor, performs the method steps of any one of the embodiments of the invention.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the technical solutions mentioned above may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the method according to each embodiment or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A method for storing sitting posture data, wherein the method is applied to a smart seat cushion, the smart seat cushion comprises a memory, the memory comprises a pre-divided storage pool for storing sitting posture data of preset storage days, the storage pool comprises a plurality of subspaces, each subspace is used for storing sitting posture data of a certain date, the subspaces comprise a first data area for storing sitting posture data of preset time points of each day and a marking area for storing date information, and the method comprises the following steps:
processing the currently acquired sitting posture state data according to a preset processing rule to obtain current sitting posture data, wherein the preset processing rule is determined based on the storage capacity and the acquisition frequency of the subspace;
acquiring current time information corresponding to current sitting posture data, wherein the current time information comprises current date information and current time point information;
traversing in the storage pool according to the current date information to find a subspace meeting a writing condition;
writing the current sitting posture data into a first data area of the subspace meeting the writing condition according to the current time point information;
traversing in the storage pool according to the current date information, and finding a subspace meeting a writing condition includes:
sequentially traversing from a first subspace in the storage pool, and taking the first subspace as a currently traversed subspace;
acquiring date information stored in a mark area by the currently traversed subspace;
judging whether the date information stored in the marking area by the currently traversed subspace is empty, if so, judging whether the currently traversed subspace is the subspace meeting the writing condition, returning the first address of the currently traversed subspace, if not, judging whether the current date information is the same as the date information stored in the marking area by the currently traversed subspace, if so, judging whether the currently traversed subspace is the subspace meeting the writing condition, returning the first address of the currently traversed subspace, if not, judging whether the date information stored in the marking area by the currently traversed subspace is smaller than the date information stored in the marking area by the last traversed subspace, if so, judging that the currently traversed subspace is the subspace meeting the writing condition, returning the first address of the currently traversed subspace, if not, judging whether each subspace in the storage pool is traversed, if so, judging that the first subspace in the storage pool is the subspace meeting the writing condition, returning the first address of the first subspace in the storage pool, otherwise, acquiring the date information of the next traversed subspace in the storage pool as the current traversed subspace, and returning the first address of the current traversed subspace in the storage pool, and if not, acquiring the date information of the next traversed subspace in the current storage pool as the current storage pool;
the writing the current sitting posture data into the first data area of the subspace meeting the writing condition according to the current time point information comprises:
determining to write the current sitting posture data into the offset address of the subspace meeting the writing condition according to the current time point information and the size of the storage space of the sitting posture data at each preset time point;
and writing the current sitting posture data into a corresponding position of a first data area of the subspace meeting the writing condition according to the first address of the subspace meeting the writing condition and the offset address.
2. The method according to claim 1, wherein the writing the current sitting posture data to the first data area of the subspace satisfying the writing condition according to the current time point information further comprises:
when the date information stored in the mark area of the subspace meeting the writing condition is empty, writing the current date information into the mark area of the subspace meeting the writing condition;
and when the date information stored in the mark area of the subspace meeting the writing condition is not empty and is different from the current date information, erasing the data of the subspace meeting the writing condition, and writing the current date information into the mark area of the subspace meeting the writing condition.
3. The method of any one of claims 1 to 2, wherein the subspace further comprises a second data region for storing statistical seating posture data, the method further comprising:
acquiring sitting posture data corresponding to a historical date from the storage pool, and counting all sitting posture information contained in the sitting posture data based on a preset sitting posture data counting category to obtain statistical sitting posture data of the historical date;
and writing the statistical sitting posture data of the historical date into a second data area of a subspace corresponding to the historical date.
4. A method for displaying sitting posture data, wherein the method is applied to a smart seat cushion, and the sitting posture data is stored in a memory of the smart seat cushion by using the method of any one of claims 1 to 3, and the method comprises the following steps:
receiving a sitting posture data acquisition request sent by electronic equipment, wherein the sitting posture data acquisition request carries a specified date;
searching the storage pool for a subspace corresponding to the specified date;
storing the data of all sitting postures in the first data area of the subspace to a cache;
and sending the data of all sitting postures in the cache to the electronic equipment, so that the electronic equipment draws a first chart according to the data of all sitting postures for displaying.
5. The method of claim 4, wherein each subspace in the memory of the smart seat cushion includes a second data field for storing statistical seating posture data, the method further comprising:
receiving a statistical data acquisition request sent by electronic equipment, wherein the statistical data acquisition request carries a statistical start date and a statistical end date;
traversing from the counting starting date to the counting ending date according to days, and selecting a date as the current counting date;
searching a subspace corresponding to the current statistical date in the storage pool;
judging whether a second data area of the subspace is empty or not, if so, counting all sitting posture data corresponding to the current counting date to obtain counting sitting posture data, writing the counting sitting posture data into the second data area of the subspace, and storing the counting sitting posture data into a cache;
if not, acquiring statistical sitting posture data of a second data area of the subspace, and storing the statistical sitting posture data in a cache;
judging whether the current statistical date is the statistical ending date or not, if not, turning to a step of traversing from the statistical starting date to the statistical ending date according to the day, and selecting a date as the current statistical date;
and sending each statistical sitting posture data in the cache to the electronic equipment, so that the electronic equipment draws a second chart according to each statistical sitting posture data for displaying.
6. A smart seat cushion comprising a processor and a memory, the memory having stored thereon a computer program that, when executed by the processor, implements the method of any one of claims 1-5.
7. A sitting posture data presentation system comprising the intelligent seat cushion and electronic device of claim 6, wherein,
the electronic equipment is in communication connection with the intelligent cushion and is used for sending a sitting posture data acquisition request containing a specified date, or sending a statistical data acquisition request containing a specified date range to the intelligent cushion, receiving sitting posture data of each preset time point corresponding to the specified date sent by the intelligent cushion, drawing a first chart according to each sitting posture data for displaying, or receiving each statistical sitting posture data of the specified date range sent by the intelligent cushion, and drawing a second chart according to each statistical sitting posture data for displaying;
the intelligent seat cushion is used for acquiring sitting posture data of each preset time point corresponding to the designated date according to the designated date in the sitting posture data acquisition request and sending the sitting posture data to the electronic equipment, or acquiring each statistical sitting posture data of the designated date range according to the designated date range in the statistical data acquisition request and sending the statistical sitting posture data to the electronic equipment.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, performs the method according to any one of claims 1-5.
CN202110633282.9A 2021-06-07 2021-06-07 Sitting posture data storage method, sitting posture data display method, intelligent cushion and system Active CN113342272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110633282.9A CN113342272B (en) 2021-06-07 2021-06-07 Sitting posture data storage method, sitting posture data display method, intelligent cushion and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110633282.9A CN113342272B (en) 2021-06-07 2021-06-07 Sitting posture data storage method, sitting posture data display method, intelligent cushion and system

Publications (2)

Publication Number Publication Date
CN113342272A CN113342272A (en) 2021-09-03
CN113342272B true CN113342272B (en) 2023-02-10

Family

ID=77475044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110633282.9A Active CN113342272B (en) 2021-06-07 2021-06-07 Sitting posture data storage method, sitting posture data display method, intelligent cushion and system

Country Status (1)

Country Link
CN (1) CN113342272B (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10236796B4 (en) * 2002-08-08 2004-12-02 Christian Dr. Scheideler Method and arrangement for randomized data storage in storage networks and / or an intranet and / or the Internet as well as a corresponding computer program product and a corresponding computer-readable storage medium
US7296008B2 (en) * 2004-08-24 2007-11-13 Symantec Operating Corporation Generation and use of a time map for accessing a prior image of a storage device
JP4806556B2 (en) * 2005-10-04 2011-11-02 株式会社日立製作所 Storage system and configuration change method
JP4915365B2 (en) * 2008-02-26 2012-04-11 日本電気株式会社 Data storage method and apparatus, duplicate data storage method and apparatus, and control program thereof
CN105260128B (en) * 2015-09-11 2018-05-29 华为技术有限公司 A kind of method and storage device for writing data into storage device
JP6311195B2 (en) * 2015-11-27 2018-04-18 華為技術有限公司Huawei Technologies Co.,Ltd. Method and storage device for storing data by a storage device
KR102651425B1 (en) * 2016-06-30 2024-03-28 에스케이하이닉스 주식회사 Memory system and operating method of memory system
CN108664578B (en) * 2018-05-03 2020-10-20 中北大学 File circulating storage method and system
CN108647278B (en) * 2018-05-03 2021-07-02 中北大学 File management method and system
CN110119249B (en) * 2019-04-04 2022-04-01 同盾控股有限公司 Data storage method and device
CN111857592A (en) * 2020-07-21 2020-10-30 星辰天合(北京)数据科技有限公司 Data storage method and device based on object storage system and electronic equipment
CN212569810U (en) * 2020-07-23 2021-02-19 合肥中科奔巴科技有限公司 Myopia prevention monitoring system based on vision

Also Published As

Publication number Publication date
CN113342272A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN108388600B (en) Cosmetic recommendation method and related device
CN103309226A (en) Smart watch assorted with smart glasses
CN110100246A (en) The electronic equipment and method of guidance information are provided based on hereditary information
EP1134554A3 (en) Map display device and navigation device
EP1666845A3 (en) Information updating device, information distributing device, information processing system, method thereof, program thereof and storage medium storing the program
CN103123780A (en) Image display method and device of mobile terminal
CN112905122B (en) Method and device for storing data
CN112835504B (en) Thinking guide graph track processing method, thinking guide graph track processing device, computer equipment and storage medium
CN106548105A (en) A kind of new barcode scanning identification control method and device
WO2015155841A1 (en) Information display method and information display terminal
CN113342272B (en) Sitting posture data storage method, sitting posture data display method, intelligent cushion and system
US20160155151A1 (en) Advertisement system, and advertisement processing device
KR20180013005A (en) Electronic apparatus and controlling method thereof
CN106639617A (en) Electronic worshipping system for cemetery
CN111402617B (en) Site information determination method, device, terminal and storage medium
JP2003061934A5 (en)
US20140194147A1 (en) Apparatus and method for reducing battery consumption of mobile terminal
CN109255652B (en) Advertisement playing method based on human face and related product
CN106648518A (en) Nonstandard resolution ratio data display method and device
CN104215250B (en) Equipment, server and method for providing route guiding
CN105310651A (en) Method of operating an electronic device providing a bioeffect image
CN105913089A (en) User behavior mode identification method and user behavior mode identification device
CN109211385A (en) A kind of intelligent electronic-scale
KR102443016B1 (en) Apparatus and method for implementing advertising using augmented technology
CN105187807B (en) Video display method of automobile data recorder and automobile data recorder

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