CN116089324A - Data processing method, device, equipment and storage medium of wearable equipment - Google Patents

Data processing method, device, equipment and storage medium of wearable equipment Download PDF

Info

Publication number
CN116089324A
CN116089324A CN202310009923.2A CN202310009923A CN116089324A CN 116089324 A CN116089324 A CN 116089324A CN 202310009923 A CN202310009923 A CN 202310009923A CN 116089324 A CN116089324 A CN 116089324A
Authority
CN
China
Prior art keywords
queue
data
cached
pool
state
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.)
Withdrawn
Application number
CN202310009923.2A
Other languages
Chinese (zh)
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 Inc
Original Assignee
Goertek Inc
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 Inc filed Critical Goertek Inc
Priority to CN202310009923.2A priority Critical patent/CN116089324A/en
Publication of CN116089324A publication Critical patent/CN116089324A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure
    • G06F12/0895Caches characterised by their organisation or structure of parts of caches, e.g. directory or tag array
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0875Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches with dedicated cache, e.g. instruction or stack

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to the technical field of data processing, and discloses a data processing method, a device, equipment and a storage medium of wearable equipment. The method comprises the following steps: detecting the buffer state of a buffer pool when receiving a data body to be buffered sent by a sensor; when the caching state of the caching pool is not a preset state, the data body to be cached is sent to the caching pool for caching; and obtaining the cached data body in the cache pool, and performing data processing on the cached data body. By the method, the data of each sensor on the wearable equipment are stored into the corresponding cache pool, and the cached data body is acquired from the cache pool for data processing, so that the situation that the sensor data is lost due to long processing time when the data body to be cached of the sensor is directly processed is avoided, and the processing precision and the processing efficiency are poor is avoided.

Description

Data processing method, device, equipment and storage medium of wearable equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method, apparatus, device and storage medium for a wearable device.
Background
Currently, wearable devices are increasingly popular, such as TWS headphones, watches, bracelets and the like, around health or motion characteristics, more and more sensors are integrated on the wearable devices, and detection of health or motion can be achieved by matching with corresponding algorithms, but with higher and higher requirements of consumers on accuracy of health or motion detection, the corresponding algorithms are more complex, and even an artificial intelligence training model needs to be operated, which means that the requirements on processing capacity of a processor are higher and higher, but generally, the conventional wearable products are basically manufactured by using an MCU (Microcontroller Unit, a micro control unit), the operation capacity of the MCU is weaker, when a plurality of high-complexity algorithms are simultaneously operated, the processing time of the MCU is prolonged, because the original data generated by the sensors is determined according to frequency, if a certain algorithm is unprocessed for the previous group of data, and then new data is sent to the algorithm, at the moment, the algorithm may not respond, so that the accuracy of the result of algorithm output is affected, and user experience is further affected.
Disclosure of Invention
The invention mainly aims to provide a data processing method, device and equipment for wearing equipment and a storage medium, and aims to solve the technical problem of how to improve the processing efficiency and processing precision of sensor data on the wearing equipment in the prior art.
In order to achieve the above object, the present invention provides a data processing method of a wearable device, the data processing method of the wearable device including:
detecting the buffer state of a buffer pool when receiving a data body to be buffered sent by a sensor;
when the caching state of the caching pool is not a preset state, the data body to be cached is sent to the caching pool for caching;
and obtaining the cached data body in the cache pool, and performing data processing on the cached data body.
Optionally, when receiving the data body to be cached sent by the sensor, detecting a cache state of the cache pool includes:
when a data body to be cached sent by a sensor is received, a cache pool corresponding to the sensor is obtained;
detecting the queue state of an annular queue in the cache pool;
and determining the cache state of the cache pool according to the queue state.
Optionally, the detecting a queue status of the ring queue in the cache pool includes:
acquiring a queue head pointer and a queue tail pointer of an annular queue in the cache pool;
determining the relative position of the pointer according to the pointer position of the queue head pointer and the pointer position of the queue tail pointer;
and determining the queue state of the annular queue according to the relative position of the pointer.
Optionally, when the buffer status of the buffer pool is not a preset status, sending the data body to be buffered to the buffer pool for buffering, including:
when the caching state of the caching pool is not a preset state, sending the data body to be cached to a queue head of an annular queue in the caching pool for caching;
after the data body to be cached is sent to the queue head of the annular queue in the cache pool for caching, the method further comprises the following steps:
and when the cached information fed back by the annular queue is received, the queue head pointer is moved according to the cached information.
Optionally, the obtaining the cached data body in the cache pool, and performing data processing on the cached data body includes:
obtaining a cached data body at the tail of a queue in the annular queue of the cache pool;
performing data processing on the cached data body;
after the data processing is performed on the cached data body, the method further comprises the following steps:
detecting a processing state of the cached data body;
and when the processing state of the cached data body is a preset state, moving a queue tail pointer of the queue descriptor.
Optionally, before moving the queue tail pointer of the queue descriptor, the method further includes:
determining subscribed sensors when receiving the data processing instruction;
determining an annular queue according to the sensor;
and sending a subscription message to the annular queue so that the annular queue feeds back the corresponding queue descriptor.
Optionally, before detecting the buffer status of the buffer pool when the data body to be buffered sent by the sensor is received, the method further includes:
and sending a target transmission frequency to a sensor on the wearable device, so that the sensor packages the original data and the time stamp according to the target transmission frequency to generate a data body to be cached and sends the data body to be cached.
In addition, in order to achieve the above object, the present invention also provides a data processing device of a wearable device, where the data processing device of the wearable device includes:
the detection module is used for detecting the cache state of the cache pool when receiving the data body to be cached sent by the sensor;
the buffer module is used for sending the data body to be buffered to the buffer pool for buffering when the buffer state of the buffer pool is not a preset state;
and the processing module is used for acquiring the cached data body in the cache pool and carrying out data processing on the cached data body.
In addition, to achieve the above object, the present invention also proposes a data processing device of a wearable device, including: the wearable device comprises a memory, a processor and a data processing program of the wearable device, wherein the data processing program of the wearable device is stored on the memory and can run on the processor and is configured to realize the data processing method of the wearable device.
In addition, in order to achieve the above object, the present invention further proposes a storage medium having stored thereon a data processing program of a wearable device, which when executed by a processor, implements a data processing method of the wearable device as described above.
The method comprises the steps of detecting the buffer state of a buffer pool when a data body to be buffered sent by a sensor is received; when the caching state of the caching pool is not a preset state, the data body to be cached is sent to the caching pool for caching; and obtaining the cached data body in the cache pool, and performing data processing on the cached data body. By the method, the data of each sensor on the wearable equipment are stored into the corresponding cache pool, and the cached data body is acquired from the cache pool for data processing, so that the situation that the sensor data is lost due to long processing time when the data body to be cached of the sensor is directly processed is avoided, and the processing precision and the processing efficiency are poor is avoided.
Drawings
FIG. 1 is a schematic diagram of a data processing device of a wearable device of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of a data processing method of a wearable device according to the present invention;
fig. 3 is a schematic data block diagram of an embodiment of a data processing method of a wearable device according to the present invention;
FIG. 4 is a schematic diagram of a ring queue according to an embodiment of a data processing method of a wearable device of the present invention;
FIG. 5 is a schematic diagram illustrating a data processing method of a wearable device according to an embodiment of the present invention;
fig. 6 is a flowchart of a second embodiment of a data processing method of a wearable device according to the present invention;
fig. 7 is a schematic state diagram of an embodiment of a data processing method of a wearable device according to the present invention;
fig. 8 is a block diagram of a first embodiment of a data processing apparatus of a wearable device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a data processing device structure of a wearable device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the data processing device of the wearable device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the data processing device of the wearable device, and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a data processing program of the wearable device may be included in the memory 1005 as one type of storage medium.
In the data processing device of the wearable device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the data processing device of the wearable device can be arranged in the data processing device of the wearable device, and the data processing device of the wearable device calls the data processing program of the wearable device stored in the memory 1005 through the processor 1001 and executes the data processing method of the wearable device provided by the embodiment of the invention.
The embodiment of the invention provides a data processing method of a wearable device, and referring to fig. 2, fig. 2 is a flow chart of a first embodiment of the data processing method of the wearable device.
The data processing method of the wearable device is applied to a data processing system of the multi-antenna symbiotic wearable device, the data processing system of the multi-antenna symbiotic wearable device comprises a sending end, a receiving end and a plurality of backscatter tags, at least three transmitting antennas are deployed at the sending end, at least three receiving antennas are deployed at the receiving end, and the data processing method of the wearable device comprises the following steps:
step S10: and detecting the buffer state of the buffer pool when the data body to be buffered sent by the sensor is received.
It should be noted that, the execution body of the embodiment is a controller of the wearable device, the controller may be an MCU of the wearable device, a plurality of sensors, such as an acceleration sensor, a electrocardio sensor, a GPS sensor, and other sensors, exist on the wearable device, each sensor corresponds to a buffer pool, the buffer pool is used for buffering data volumes of each sensor, and when a computing unit in the controller processes data volumes of the sensors, it is necessary to acquire buffered data volumes from the buffer pool corresponding to the sensors to process data volumes, and the buffer pool may be a part of space divided in a RAM of the wearable device.
It can be understood that the sensor refers to various sensors existing on the wearable device, the sensor can acquire data in real time, the data body to be cached can be packed based on the acquired original data, at the moment, the cache state of the cache pool corresponding to the sensor is detected, and whether the cache pool corresponding to the sensor has a cache space or not is determined. For example, the buffer pool corresponding to the acceleration sensor is a, and at this time, the buffer status of the buffer pool a is detected, and whether the buffer pool a has a buffer space is determined.
In a specific implementation, in order to ensure that data is not lost when data is cached, before the step of detecting the cache state of the cache pool when the data body to be cached sent by the sensor is received, the method further includes: and sending a target transmission frequency to a sensor on the wearable device, so that the sensor packages the original data and the time stamp according to the target transmission frequency to generate a data body to be cached and sends the data body to be cached.
It should be noted that, the data of the sensor is generated at a certain frequency, but different algorithms in the computing unit of the controller may not have fixed frequency requirements on the sensor, for example, the data of the acceleration sensor may be required by the sleep algorithm and the step counting algorithm at the same time, but the two algorithms have different frequency requirements on the original data, so that the transmission frequency of the sensor needs to be configured, the configured transmission frequency is the target transmission frequency, the target transmission frequency is sent to the sensor on the wearable device, after the sensor collects the original data, the driving module of the sensor packages the original data and the timestamp together to generate a data body to be cached, and the sensor sends the data body to be cached to the cache pool according to the target transmission frequency. For example, fig. 3 is a data volume to be buffered generated by a sensor based on collected raw data and a time stamp.
Step S20: and when the caching state of the caching pool is not the preset state, sending the data body to be cached to the caching pool for caching.
It should be noted that the preset state refers to a state that the buffer space is full, and when the buffer state of the buffer pool is not the preset state, the data body to be buffered sent by the receiving sensor is determined, and the data body to be buffered is sent to the buffer pool corresponding to the sensor for data buffering.
It may be understood that, in order to ensure that the buffer status of the buffer pool can be updated in real time, and the buffer process is performed normally, further, when the buffer status of the buffer pool is not a preset status, sending the data body to be buffered to the buffer pool for buffering, the method includes: when the caching state of the caching pool is not a preset state, sending the data body to be cached to a queue head of an annular queue in the caching pool for caching; after the data body to be cached is sent to the queue head of the annular queue in the cache pool for caching, the method further comprises the following steps: and when the cached information fed back by the annular queue is received, the queue head pointer is moved according to the cached information.
In a specific implementation, the buffer pool is embodied as an annular queue, the data body to be buffered of the sensor is put into the buffer from the queue head of the annular queue, and the calculation unit of the controller acquires the buffered data body from the queue tail of the annular queue for processing. And therefore, when the caching state of the caching pool is not the preset state, the data body to be cached is sent to the queue head of the annular queue in the caching pool for caching.
It should be noted that, after the ring queue finishes caching the data body to be cached, the cached information of the cached completion can be fed back, at this time, the queue head pointer is moved according to the cached information, and the queue head pointer points to the data body to be cached which is cached recently. Or, immediately after sending the data volume to be buffered to the head of the ring queue, the head pointer is moved.
Step S30: and obtaining the cached data body in the cache pool, and performing data processing on the cached data body.
It should be noted that, each algorithm in the computing unit of the controller obtains the cached data body in the cache pool, and performs data processing on the cached data.
It can be understood that, in order to ensure that the processing state is updated in time so as to ensure the normal operation when the data caching is performed subsequently, further, the acquiring the cached data body in the cache pool and performing data processing on the cached data body includes: obtaining a cached data body at the tail of a queue in the annular queue of the cache pool; performing data processing on the cached data body; after the data processing is performed on the cached data body, the method further comprises the following steps: detecting a processing state of the cached data body; and when the processing state of the cached data body is a preset state, moving a queue tail pointer of the queue descriptor.
In a specific implementation, when each algorithm in a computing unit of the controller processes data, determining whether a data body exists in a ring queue, if so, acquiring a cached data body at the tail of the ring queue according to a set processing frequency, performing data processing on the cached data body, detecting the processing state of the cached data body, and after each algorithm in the computing unit of the controller processes the acquired cached data body, moving a queue tail pointer of a queue descriptor corresponding to each algorithm, wherein the queue tail pointer points to the cached data body being processed by each algorithm in the computing unit of the controller.
It should be noted that, in order to ensure accuracy of movement of the queue tail pointer, before moving the queue tail pointer of the queue descriptor, the method further includes: determining subscribed sensors when receiving the data processing instruction; determining an annular queue according to the sensor; and sending a subscription message to the annular queue so that the annular queue feeds back the corresponding queue descriptor.
It will be appreciated that since a sensor corresponds to a circular queue of a cache pool, a sensor will be subscribed to by multiple algorithms in the computing unit of the controller, and thus the circular queue will assign corresponding queue descriptors to the multiple algorithms subscribed to the sensor. When the controller receives the data processing instruction, determining a sensor subscribed by each algorithm in a computing unit of the controller, determining a ring queue corresponding to the sensor, and sending subscription information of each algorithm to the ring queue so that the ring queue feeds back queue descriptors respectively corresponding to each algorithm.
In a specific implementation, the expression form of the buffer pool is shown in fig. 4, specifically, a ring queue, the data body to be buffered of the sensor is buffered to the queue head of the ring queue, the queue head pointer points to the data body to be buffered of the latest buffer, each algorithm in the computing unit of the controller acquires the buffered data body from the queue tail of the ring queue for data processing, and the queue tail pointer points to the buffered data body being processed by the algorithm.
It should be noted that, in the buffering process and the processing process, as shown in fig. 5, 1 to N are buffered data volumes, the current queue head pointer points to the data volume to be buffered N, the queue tail pointers of the queue descriptors corresponding to the algorithm a and the algorithm B point to the data volume to be buffered 1 when both the algorithm a and the algorithm B are processing the data volume to be buffered 1, the buffered data volumes 1 to N are unprocessed data volumes, when the data volume to be buffered n+1 is sent to the ring queue for buffering, the queue head pointer points to the data volume n+1 that is newly buffered, the algorithm a is still processing the data volume to be buffered 1, the algorithm B is already processing the data volume to be buffered 1, the queue tail pointer of the queue descriptor corresponding to the algorithm a is still pointing to the data volume to be buffered 1, and the queue tail pointer of the queue descriptor corresponding to the algorithm B is pointing to the data volume to be buffered 2 when both the data volumes 1 to n+1 are unprocessed data volumes because the algorithm a is unprocessed.
In the embodiment, when a data body to be cached sent by a sensor is received, the cache state of a cache pool is detected; when the caching state of the caching pool is not a preset state, the data body to be cached is sent to the caching pool for caching; and obtaining the cached data body in the cache pool, and performing data processing on the cached data body. By the method, the data of each sensor on the wearable equipment are stored into the corresponding cache pool, and the cached data body is acquired from the cache pool for data processing, so that the situation that the sensor data is lost due to long processing time when the data body to be cached of the sensor is directly processed is avoided, and the processing precision and the processing efficiency are poor is avoided.
Referring to fig. 6, fig. 6 is a flowchart of a second embodiment of a data processing method of a wearable device according to the present invention.
Based on the above first embodiment, step S10 in the data processing method of the wearable device of this embodiment includes:
step S11: and when receiving a data body to be cached sent by a sensor, acquiring a cache pool corresponding to the sensor.
It should be noted that, since one sensor corresponds to one buffer pool, when receiving a data body to be buffered sent by the sensor, the buffer pool corresponding to the sensor is obtained.
Step S12: and detecting the queue state of the annular queue in the cache pool.
It should be noted that, whether the ring queue in the buffer pool is in the state of full queue is detected, so as to determine the queue state of the ring queue.
It may be appreciated that, in order to accurately detect the queue status, further, the detecting the queue status of the ring queue in the cache pool includes: acquiring a queue head pointer and a queue tail pointer of an annular queue in the cache pool; determining the relative position of the pointer according to the pointer position of the queue head pointer and the pointer position of the queue tail pointer; and determining the queue state of the annular queue according to the relative position of the pointer.
In a specific implementation, the queue head pointer and the queue tail pointer are obtained, and the queue tail pointer at the last position is searched in the queue tail pointer, because one sensor may be subscribed by a plurality of algorithms, at this time, the queue tail pointer of the queue descriptors of a plurality of algorithms may exist in the ring queue, so that the queue tail pointer at the last position needs to be obtained.
It is to be noted that, according to the pointer position of the queue head pointer and the pointer position of the last queue tail pointer, the pointer relative position between the two pointers is determined, and according to the pointer relative position between the two pointers, the queue tail state of the annular queue can be determined, when the relative positions of the pointers are adjacent, the state of the queue is in a state of full queue, and when the relative positions of the pointers are not adjacent, the state of the queue is not in a state of full queue. As shown in fig. 7, the queue end pointer of the queue descriptor of the algorithm a in Z is at the last position, and the pointer position of the queue head pointer is not adjacent to the pointer position of the queue end pointer of the queue descriptor of the algorithm a, which indicates that the queue state is not the queue full state; and if the queue tail pointer of the queue descriptor of the algorithm A is at the last position and the pointer position of the queue head pointer is adjacent to the pointer position of the queue tail pointer of the queue descriptor of the algorithm A, the state of the queue is indicated to be the full state of the queue.
Step S13: and determining the cache state of the cache pool according to the queue state.
It should be noted that, after determining the queue status, the buffer status of the buffer pool may be determined, when the queue status is the queue full status, the buffer status is the status that the buffer space is full, and when the queue status is not the queue full status, the buffer status is the status that the buffer space is still available.
In the embodiment, when a data body to be cached sent by a sensor is received, a cache pool corresponding to the sensor is obtained; detecting the queue state of an annular queue in the cache pool; and determining the cache state of the cache pool according to the queue state. When a data body to be cached sent by a sensor is received, the queue state of the annular queue in the corresponding cache pool is detected, and the cache state of the cache pool is determined based on the queue state, so that the accuracy of the caching process is ensured.
In addition, referring to fig. 8, an embodiment of the present invention further provides a data processing apparatus of a wearable device, where the data processing apparatus of the wearable device includes:
and the detection module 10 is used for detecting the cache state of the cache pool when receiving the data body to be cached sent by the sensor.
And the caching module 20 is configured to send the data body to be cached to the cache pool for caching when the caching state of the cache pool is not a preset state.
And the processing module 30 is used for acquiring the cached data body in the cache pool and performing data processing on the cached data body.
In the embodiment, when a data body to be cached sent by a sensor is received, the cache state of a cache pool is detected; when the caching state of the caching pool is not a preset state, the data body to be cached is sent to the caching pool for caching; and obtaining the cached data body in the cache pool, and performing data processing on the cached data body. By the method, the data of each sensor on the wearable equipment are stored into the corresponding cache pool, and the cached data body is acquired from the cache pool for data processing, so that the situation that the sensor data is lost due to long processing time when the data body to be cached of the sensor is directly processed is avoided, and the processing precision and the processing efficiency are poor is avoided.
In an embodiment, the detection module 10 is further configured to obtain a buffer pool corresponding to the sensor when receiving a data body to be buffered sent by the sensor;
detecting the queue state of an annular queue in the cache pool;
and determining the cache state of the cache pool according to the queue state.
In an embodiment, the detection module 10 is further configured to obtain a head pointer and a tail pointer of an annular queue in the buffer pool;
determining the relative position of the pointer according to the pointer position of the queue head pointer and the pointer position of the queue tail pointer;
and determining the queue state of the annular queue according to the relative position of the pointer.
In an embodiment, the buffer module 20 is further configured to send the data body to be buffered to a queue head of an annular queue in the buffer pool for buffering when the buffer status of the buffer pool is not a preset status;
after the data body to be cached is sent to the queue head of the annular queue in the cache pool for caching, the method further comprises the following steps:
and when the cached information fed back by the annular queue is received, the queue head pointer is moved according to the cached information.
In an embodiment, the processing module 30 is further configured to obtain a cached data body at a tail of the ring queue of the cache pool;
performing data processing on the cached data body;
after the data processing is performed on the cached data body, the method further comprises the following steps:
detecting a processing state of the cached data body;
and when the processing state of the cached data body is a preset state, moving a queue tail pointer of the queue descriptor.
In one embodiment, the processing module 30 is further configured to determine a subscribed sensor when receiving the data processing instruction;
determining an annular queue according to the sensor;
and sending a subscription message to the annular queue so that the annular queue feeds back the corresponding queue descriptor.
In an embodiment, the detection module 10 is further configured to send a target transmission frequency to a sensor on the wearable device, so that the sensor packages the raw data and the timestamp according to the target transmission frequency to generate a data body to be cached and sends the data body to be cached.
Because the device adopts all the technical schemes of all the embodiments, the device at least has all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a data processing program of the wearable device, and the data processing program of the wearable device realizes the steps of the data processing method of the wearable device when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in the present embodiment may refer to the data processing method of the wearable device provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The data processing method of the wearable device is characterized by comprising the following steps of:
detecting the buffer state of a buffer pool when receiving a data body to be buffered sent by a sensor;
when the caching state of the caching pool is not a preset state, the data body to be cached is sent to the caching pool for caching;
and obtaining the cached data body in the cache pool, and performing data processing on the cached data body.
2. The method for processing data of the wearable device according to claim 1, wherein detecting the buffer status of the buffer pool when the data body to be buffered sent by the sensor is received includes:
when a data body to be cached sent by a sensor is received, a cache pool corresponding to the sensor is obtained;
detecting the queue state of an annular queue in the cache pool;
and determining the cache state of the cache pool according to the queue state.
3. The method for processing data of a wearable device according to claim 2, wherein the detecting a queue state of a ring queue in the cache pool includes:
acquiring a queue head pointer and a queue tail pointer of an annular queue in the cache pool;
determining a pointer interval according to the pointer position of the queue head pointer and the pointer position of the queue tail pointer;
and determining the queue state of the annular queue according to the pointer interval.
4. The method for processing data of the wearable device according to claim 1, wherein when the cache state of the cache pool is not a preset state, sending the data body to be cached to the cache pool for caching includes:
when the caching state of the caching pool is not a preset state, sending the data body to be cached to a queue head of an annular queue in the caching pool for caching;
after the data body to be cached is sent to the queue head of the annular queue in the cache pool for caching, the method further comprises the following steps:
and when the cached information fed back by the annular queue is received, the queue head pointer is moved according to the cached information.
5. The method for processing data of a wearable device according to claim 1, wherein the obtaining the cached data body in the cache pool and performing data processing on the cached data body include:
obtaining a cached data body at the tail of a queue in the annular queue of the cache pool;
performing data processing on the cached data body;
after the data processing is performed on the cached data body, the method further comprises the following steps:
detecting a processing state of the cached data body;
and when the processing state of the cached data body is a preset state, moving a queue tail pointer of the queue descriptor.
6. The method for processing data of a wearable device according to claim 5, further comprising, before moving the queue tail pointer of the queue descriptor:
determining subscribed sensors when receiving the data processing instruction;
determining an annular queue according to the sensor;
and sending a subscription message to the annular queue so that the annular queue feeds back the corresponding queue descriptor.
7. The method for processing data of a wearable device according to any one of claims 1 to 6, wherein, when receiving a data body to be cached sent by a sensor, before detecting a cache state of a cache pool, further comprises:
and sending a target transmission frequency to a sensor on the wearable device, so that the sensor packages the original data and the time stamp according to the target transmission frequency to generate a data body to be cached and sends the data body to be cached.
8. A data processing apparatus of a wearable device, characterized in that the data processing apparatus of the wearable device comprises:
the detection module is used for detecting the cache state of the cache pool when receiving the data body to be cached sent by the sensor;
the buffer module is used for sending the data body to be buffered to the buffer pool for buffering when the buffer state of the buffer pool is not a preset state;
and the processing module is used for acquiring the cached data body in the cache pool and carrying out data processing on the cached data body.
9. A data processing device of a wearable device, characterized in that the data processing device of the wearable device comprises: a memory, a processor and a data processing program of a wearable device stored on the memory and executable on the processor, the data processing program of the wearable device configured to implement the data processing method of the wearable device of any of claims 1 to 7.
10. A storage medium, wherein a data processing program of a wearable device is stored on the storage medium, and the data processing program of the wearable device, when executed by a processor, implements the data processing method of the wearable device according to any one of claims 1 to 7.
CN202310009923.2A 2023-01-04 2023-01-04 Data processing method, device, equipment and storage medium of wearable equipment Withdrawn CN116089324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310009923.2A CN116089324A (en) 2023-01-04 2023-01-04 Data processing method, device, equipment and storage medium of wearable equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310009923.2A CN116089324A (en) 2023-01-04 2023-01-04 Data processing method, device, equipment and storage medium of wearable equipment

Publications (1)

Publication Number Publication Date
CN116089324A true CN116089324A (en) 2023-05-09

Family

ID=86209823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310009923.2A Withdrawn CN116089324A (en) 2023-01-04 2023-01-04 Data processing method, device, equipment and storage medium of wearable equipment

Country Status (1)

Country Link
CN (1) CN116089324A (en)

Similar Documents

Publication Publication Date Title
CN109492698B (en) Model training method, object detection method and related device
US20210397908A1 (en) Object-model based event detection system
CN108305296B (en) Image description generation method, model training method, device and storage medium
US20170056722A1 (en) Upsampling sensors to auto-detect a fitness activity
CN109670174B (en) Training method and device of event recognition model
CN108089977B (en) Application program exception handling method and device and mobile terminal
CN110147742B (en) Key point positioning method, device and terminal
US20230244953A1 (en) Artificial intelligence model distributed processing system, and method for operating same
CN111225237A (en) Sound and picture matching method of video, related device and storage medium
CN114092920A (en) Model training method, image classification method, device and storage medium
CN110083742B (en) Video query method and device
CN112487871A (en) Handwriting data processing method and device and electronic equipment
CN115237618A (en) Request processing method and device, computer equipment and readable storage medium
CN111382701B (en) Motion capture method, motion capture device, electronic equipment and computer readable storage medium
CN113329175A (en) Snapshot method, device, electronic device and storage medium
CN111445499B (en) Method and device for identifying target information
CN116089324A (en) Data processing method, device, equipment and storage medium of wearable equipment
CN111027495A (en) Method and device for detecting key points of human body
CN113961064B (en) Device interaction control method, device, equipment and storage medium based on workstation
CN111090570A (en) Method and device for measuring response time of terminal screen and terminal equipment
CN112347568B (en) Simulation test method, related device, equipment and storage medium
EP4184349A1 (en) Object recommendation method and device
CN112069079B (en) Performance test method, related device and storage medium
CN114095564A (en) Data processing method and device, equipment and medium
CN111913574A (en) Method, apparatus, electronic device and computer readable medium for controlling device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230509