CN110086565B - Data transmission and storage method - Google Patents

Data transmission and storage method Download PDF

Info

Publication number
CN110086565B
CN110086565B CN201910191782.4A CN201910191782A CN110086565B CN 110086565 B CN110086565 B CN 110086565B CN 201910191782 A CN201910191782 A CN 201910191782A CN 110086565 B CN110086565 B CN 110086565B
Authority
CN
China
Prior art keywords
data
sensor data
sensor
subtask
packets
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
CN201910191782.4A
Other languages
Chinese (zh)
Other versions
CN110086565A (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 Hetai Intelligent Home Appliance Controller Co ltd
Original Assignee
Shenzhen Het Data Resources and Cloud 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 Het Data Resources and Cloud Technology Co Ltd filed Critical Shenzhen Het Data Resources and Cloud Technology Co Ltd
Priority to CN201910191782.4A priority Critical patent/CN110086565B/en
Publication of CN110086565A publication Critical patent/CN110086565A/en
Application granted granted Critical
Publication of CN110086565B publication Critical patent/CN110086565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • H04L1/0016Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy involving special memory structures, e.g. look-up tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The application relates to a data transmission and storage method, which integrates sensor data collected in a preset time period to sequentially generate a plurality of subtask data packets. Furthermore, after each subtask data packet is generated, the subtask data packet is sent to the mobile terminal, so that the memory pressure of the data packet in the transmission process is greatly reduced, and the mobile terminal can acquire a part of sensor data in real time.

Description

Data transmission and storage method
Technical Field
The present application relates to the field of data processing, and in particular, to a data transmission and storage method.
Background
Polysomnography (PSG), also known as sleep electroencephalogram, is often used to determine the symptoms of a patient when a doctor diagnoses sleep apnea syndrome. In order to generate the polysomnography, multi-parameter physiological signals of a human body need to be acquired in real time and synchronously as analysis basis of the health condition of the human body. Along with people's more and more attach importance to the notion of health, to the more and more understanding of self health situation, need a equipment can be convenient, low-cost mode in hospital, clinic even at home just can accomplish the collection of multi-parameter physiological signal under medical staff's assistance, and can guarantee data acquisition's reliability and synchronism when gathering.
In conventional schemes, after physiological data is collected, the physiological data is generally stored using an EDF standard file format. The EDF standard file Format is short for European Data Format, and the Chinese name is European Data Format. The EDF standard file format is a standard data format and is used for recording multi-channel medical time series data. Under the regulation of EDF standard file format, the physiological data collected for ten hours or more are stored as one file and sent to the computer, and the user obtains the physiological data and analyzes the data.
However, the conventional scheme has a great disadvantage that the conventional scheme is suitable for a large-scale data acquisition device, and has extremely high requirements on the storage performance of the data acquisition device. Not only does it require the data acquisition device to have a large memory space sufficient to store data for each single channel, but it also requires a large space for hardware storage (i.e., "external storage"). In addition, the performance requirements on the processor of the data acquisition device are also high, and a low performance processor is difficult to bear the pressure of such large memory access calculations. The data acquisition equipment of the traditional scheme is high in cost and difficult to realize, and influences on the real-time performance and the synchronism of data acquisition are easily caused when large files are stored.
Content of application
Therefore, it is necessary to provide a data transmission and storage method and a data management system for solving the problem that the conventional data transmission and storage method is high in cost and difficult to implement.
The application provides a data transmission and storage method, which comprises the following steps:
acquiring a plurality of sensor data according to a preset time period, wherein the plurality of sensor data are acquired based on one or more sensors;
integrating the sensor data, and sequentially generating a plurality of subtask data packets, wherein the sensor data in the subtask data packets form total task data;
and after each subtask data packet is generated, sending the subtask data packet to a mobile terminal.
The application provides a data transmission and storage method, which integrates sensor data collected in a preset time period to sequentially generate a plurality of subtask data packets. Furthermore, after each subtask data packet is generated, the subtask data packet is sent to the mobile terminal, so that the memory pressure of the data packet in the transmission process is greatly reduced, and the mobile terminal can acquire a part of sensor data in real time.
In one embodiment, the preset time period is a time length between two sending times when the timer sends two adjacent interrupt signals, and the step of acquiring the data of the plurality of sensors according to the preset time period includes:
and starting to read the sensor data under the trigger of an interrupt signal sent by the timer, and acquiring the plurality of sensor data according to the preset time period.
In one embodiment, the step of integrating the sensor data and sequentially generating the subtask packets includes:
the data channels are used for respectively storing the sensor data acquired in the preset time period into a first memory;
respectively reading the sensor data in the data channels, integrating the sensor data in a preset storage format, and generating a subtask data packet by the sensor data;
and repeatedly executing the step of acquiring the data of the plurality of sensors and the step of integrating and generating the subtask data packets, and sequentially generating the plurality of subtask data packets.
In one embodiment, the preset storage format includes header information and data content information;
the header information comprises header information and channel information;
the packet header information is one or more of a mark code of the data packet, the size of the data packet, a check value, sensor data acquisition duration and sensor data acquisition starting time;
the channel information is one or more of data quantity, data format and sensor name in each data channel;
the data content information is data information of the sensor data in each of the data channels.
In one embodiment, the data transmission and storage method further includes:
splitting the plurality of subtask data packets according to a generation time sequence to obtain a plurality of sensor data;
integrating the plurality of sensor data to generate a total task data packet, wherein the sensor data in the total task data packet forms the total task data;
and sending the total task data packet to a second memory for storage.
In one embodiment, the splitting the plurality of sub-task data packets according to a generation time sequence, and the obtaining the plurality of sensor data includes:
selecting the plurality of subtask packets according to the generation time sequence of the subtask packets;
splitting the plurality of subtask data packets respectively to obtain a plurality of sensor data, and storing the plurality of sensor data in the plurality of data channels in the first memory respectively; each of the data channels stores the same kind of the sensor data.
In one embodiment, the integrating the plurality of sensor data to generate the total task data packet includes:
reading the plurality of sensor data in the plurality of data channels, respectively;
merging the plurality of sensor data in each of the data channels;
and generating the total task data packet according to the preset storage format.
In one embodiment, the data transmission and storage method further includes:
and checking the plurality of sensor data, and when the checking is qualified, executing the step of integrating the plurality of sensor data to generate a total task data packet.
In one embodiment, the step of performing the inspection on the plurality of sensor data, and when the inspection is qualified, performing the integration on the plurality of sensor data to generate the total task data packet includes:
checking the integrity of the sensor data, and judging whether any sensor data is damaged;
if any sensor data is not damaged, further judging whether the data acquisition starting time and the data acquisition duration of the sensor data can form a continuous time period; and
and if the data acquisition starting time and the data acquisition duration of the plurality of sensor data can form a continuous time period, executing the step of integrating the sensor data to generate a total task data packet.
The application provides a data transmission and storage method, which integrates collected sensor data and generates data packets with different structures according to different data collection durations. Furthermore, the data packets with short data acquisition duration are transmitted to the mobile terminal in real time, and the data packets with long data acquisition duration are stored, so that the storage bottleneck caused by overlarge data files is solved, the operation pressure of the processor is reduced, and the synchronism and stability of data transmission are guaranteed.
The present application further provides a computer device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the data transmission and storage method mentioned in the foregoing when executing the computer program.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data transmission and storage method mentioned in the foregoing.
Drawings
Fig. 1 is a schematic flow chart illustrating a data transmission and storage method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a data transmission and storage method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating a data transmission and storage method according to an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating a data transmission and storage method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a data transmission and storage method according to an embodiment of the present application;
fig. 6 is a schematic flow chart illustrating a data transmission and storage method according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a data transmission and storage method according to an embodiment of the present application;
FIG. 8 is a block diagram of a data management system provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a data management system provided in an embodiment of the present application.
Reference numerals:
100 data management system
110 data acquisition device
111 slave sensor
112 slave processor
113 main sensor
114 main processor
115 first memory
116 second memory
120 mobile terminal
Detailed Description
For the purpose of making the object, technical solutions and advantages of the present application more apparent, the data transmission and storage method provided by the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The application provides a data transmission and storage method. It should be noted that the data transmission and storage method provided by the present application does not limit the application field and application environment thereof. Alternatively, the data transmission and storage method may be applied to a medical device. It should be noted that the execution subject of the data transmission and storage method is not limited. Optionally, the main body of the data transmission and storage method may be the data acquisition device 110. Specifically, the executing body of the data transmission and storage method may be a processor in the data acquisition device 110.
As shown in fig. 1, in an embodiment of the present application, the data transmission and storage method includes the following steps S100 to S300:
s100, acquiring a plurality of sensor data according to a preset time period, wherein the plurality of sensor data are acquired based on one or more sensors.
Specifically, the preset time period is preset by a user. The sensors are disposed within the data acquisition device 110. The sensor is used for collecting human body physiological data. And the processor sends a reading instruction to the sensor within a preset time period so as to read the sensor data. The preset time period is the time for reading the sensor data.
S200, integrating the sensor data, and sequentially generating a plurality of subtask data packets, wherein the sensor data in the subtask data packets form total task data.
Specifically, after the processor obtains the plurality of sensor data, the processor integrates the sensor data to sequentially generate a plurality of subtask data packets. Optionally, a subtask packet is generated every other preset time period. The total task data is a total amount of sensor data that the user is scheduled to acquire. It will be appreciated that the processor divides the total amount of sensor data to be acquired by the user into several shares, each of which is the amount of sensor data within a subtask packet. And the sum of the sensor data in the plurality of subtask data packets constitutes the total task data.
And S300, after the generation of each subtask data packet is finished, sending the subtask data packet to the mobile terminal.
Specifically, the mobile terminal may be one or more of a computer, a mobile phone and a tablet computer. It can be understood that the processor sends the subtask data packet to the mobile terminal in real time, so that a user can acquire human physiological data in real time.
Optionally, the data transmission and storage method may further include:
step S310, judging whether the number of the subtask data packets reaches a preset number, and if the number of the subtask data packets reaches the preset number, stopping the subsequent steps.
Specifically, the preset number is preset by a user. If the number of the subtask packets is the preset number, it can be understood that, at this time, the total task data has been completely acquired, and the subsequent steps may be terminated.
Optionally, the data transmission and storage method may further include:
step S320, determining whether the number of the subtask packets reaches a preset number, and if the number of the subtask packets reaches the preset number, returning to the step S100, and obtaining a plurality of sensor data of another batch. And if the number of the subtask data packets does not reach the preset number, executing subsequent steps.
Specifically, the preset number is preset by a user. If the number of the subtask packets is the preset number, it can be understood that, at this time, the total task data has been completely acquired, the acquisition of the sensor data of the current batch may be stopped, and the acquisition of a plurality of sensor data of another batch may be started. The another batch of the plurality of sensor data constitutes another set of total task data.
The application provides a data transmission and storage method, which integrates sensor data collected in a preset time period to sequentially generate a plurality of subtask data packets. Furthermore, after each subtask data packet is generated, the subtask data packet is sent to the mobile terminal, so that the memory pressure of the data packet in the transmission process is greatly reduced, and the mobile terminal can acquire a part of sensor data in real time.
In one embodiment, the preset time period is a time length between two sending times when the timer sends two adjacent interrupt signals. The step S100 includes the steps of:
and S110, starting to read the sensor data under the trigger of the interrupt signal sent by the timer, and acquiring the plurality of sensor data according to the preset time period.
Specifically, the timer is arranged in the processor. And the timer sends one interrupt signal to the processor every other preset time period. The interrupt signal is used for prompting the processor to switch a read data state. When the processor receives the interrupt signal, the processor begins reading the sensor data. And when the processor receives the next interrupt signal sent by the timer, stopping reading the sensor data. And the time length between two sending times between two adjacent interrupt signals is the preset time period.
In this embodiment, the processor reads the sensor data within a preset time period according to the interrupt signal, so as to ensure real-time performance and synchronization of data acquisition.
As shown in fig. 2, in an embodiment of the present application, the step S200 includes the following steps:
s210, storing the sensor data acquired in the preset time period in a plurality of data channels in a first memory, respectively.
Specifically, the first memory 115 includes a plurality of the data channels. The processor distributes the plurality of sensor data into different ones of the data channels. In the first memory 115, each of the data channels corresponds to one of the sensor data.
S220, reading the sensor data in the data channels respectively, integrating the sensor data in a preset storage format, and generating a subtask data packet.
Specifically, the preset storage format displays attributes of the sensor data in the subtask packet.
S230, repeatedly executing the steps S210 to S220, and sequentially generating the plurality of subtask packets.
Specifically, the number of the plurality of sub-task data packets may be the preset number.
In this embodiment, the processor integrates the sensor data into the plurality of sub-task data packets, packages the sensor data with a short data acquisition duration, and sends the sensor data to the mobile terminal in real time, so that the memory pressure is greatly reduced, and the mobile terminal can acquire a part of the sensor data in real time.
In an embodiment of the present application, the preset storage format includes header information and data content information. The header information includes header information and channel information. The header information is one or more of an identification code of the data packet, the size of the data packet, a check value, sensor data acquisition duration and sensor data acquisition start time. The channel information is one or more of data volume, data format and sensor name in each data channel. The data content information is data information of the sensor data in each of the data channels.
The preset storage format not only represents a storage format, but also can be used as a label of the subtask packet for displaying the attribute information of the subtask packet.
In this embodiment, the sensor data is integrated according to the preset storage format, so that the sensor data can be classified according to different attribute information to generate different subtask data packets. And the user can acquire the attribute information of the subtask data packet at any time according to the preset storage format.
As shown in fig. 3, in an embodiment of the present application, the data transmission and storage method further includes the following steps S400 to S800:
s400, splitting the plurality of subtask data packets according to a generation time sequence to obtain the plurality of sensor data.
Specifically, the processor splits the plurality of subtask packets into the sensor data, respectively. When splitting, splitting is required according to the sequence of the sub-task data packet generation time, so that the sensor data can be conveniently processed subsequently.
S600, integrating the sensor data to generate a total task data packet. The sensor data within the total task data packet constitutes the total task data.
Specifically, the processor integrates the sensor data in the sequence of the generation time. The total task data packet is equivalent to a combination of a plurality of the subtask data packets. The difference from the normal merging is that the processor does not directly merge the plurality of subtask packets, but splits the plurality of subtask packets, and then merges the split plurality of sensor data to generate the total task packet.
S800, sending the total task data packet to a second memory for storage
Specifically, the second memory 116 is an "external memory" of the data acquisition device 110. The second memory 116 has a large capacity and is used for long-term storage or permanent storage of data.
Alternatively, the steps S400 to S800 may be performed after the step S310. In this embodiment, only one batch of total packets is generated, and one total packet is finally output.
Alternatively, the steps S400 to S800 may be performed after the step S320. In this embodiment, after the number of sequentially generated sub-task data packets reaches the preset number, the preset number of sub-task data packets are respectively split according to the generation time sequence, and then are integrated into a total data packet. In this embodiment, a plurality of batches of total packets may be generated, and a plurality of total packets may be finally output.
It is understood that the steps S100 to S300, and the steps S400 to S800 may be parallel, independent and independent to each other, so as to process the total task data of different batches.
In this embodiment, by integrating the plurality of subtask packets, a total task packet is generated and stored, which is convenient for a user to subsequently transfer or process data.
As shown in fig. 4, in an embodiment of the present application, the step S400 includes the following steps S410 to S420:
s410, selecting the plurality of subtask packets according to the generation time sequence of the subtask packets.
Specifically, in order to ensure that the split sensor data is continuous and reliable, the plurality of subtask packets need to be selected according to the generation time sequence of the subtask packets.
And S420, splitting the plurality of subtask data packets respectively to obtain the plurality of sensor data. Storing the plurality of sensor data in the plurality of data channels in the first memory, respectively. Each of the data channels stores the same kind of the sensor data.
Specifically, this step restores the sensor data to a data form, rather than a data packet, by splitting the plurality of subtask packets.
In this embodiment, the processor selects the plurality of sub-task data packets according to the sequence of the generation time, and splits the sub-task data packets into the plurality of sensor data, so that continuity of data is ensured, and subsequent integration of the sensor data is facilitated.
As shown in fig. 5, in an embodiment of the present application, the step S600 includes the following steps S610 to S630:
s610, respectively reading the plurality of sensor data in the plurality of data channels.
Specifically, each of the data channels corresponds to one category of sensor data. The number of the data sub-packets is multiple. Thus, in each of the data channels, there are a plurality of the same type of the sensor data.
S620, merging the sensor data in each data channel.
Specifically, the sensor data in the data channels may be combined simultaneously, or may be combined sequentially according to the sequence number of the data channel.
And S630, generating the total task data packet according to the preset storage format.
Specifically, the preset storage format is the same as the preset storage format in step S220. And when the subtask data packet is generated and the total task data packet is generated, according to the same preset storage format.
In this embodiment, the processor combines the sensor data in the data channels, so that a plurality of sensor data of short time periods are combined into one sensor data of long time period, which is convenient for storage in the memory.
As shown in fig. 6, in an embodiment of the present application, the data transmission and storage method further includes the following steps:
and S500, checking the sensor data, and executing the step S600 when the sensor data are qualified.
Specifically, the step S500 may be performed after the step S400 is performed and before the step S600 is performed. When the inspection is qualified, the processor can send out an alarm signal to prompt a user that the inspection is qualified.
In this embodiment, the correctness and continuity of the sensor data can be confirmed by checking the sensor data, so as to provide guarantee for subsequently integrating the sensor data and generating the total task data packet.
As shown in fig. 7, in an embodiment of the present application, the step S500 includes the following steps S510 to S530:
s510, checking the integrity of the sensor data, and judging whether any sensor data is damaged.
Specifically, if the processor determines that any of the sensor data is damaged, the subsequent steps are interrupted. And the processor sends out a warning signal of data damage.
S520, if any sensor data is not damaged, whether the data acquisition starting time and the data acquisition duration of the sensor data can form a continuous time period is further judged.
Specifically, if the processor determines that a continuous time period cannot be formed, the subsequent steps are interrupted. The processor sends out an alarm signal of data error. In this case, when the plurality of sensor data are combined, the plurality of sensor data are not continuous.
S530, if the data collection start time and the data collection duration of the sensor data can form a continuous time period, the step S600 is executed.
Specifically, it is explained at this time that the plurality of sensor data are continuous when the plurality of sensor data are merged.
The application provides a data transmission and storage method, which integrates collected sensor data and generates data packets with different structures according to different data collection durations. Furthermore, the data packets with short data acquisition duration are transmitted to the mobile terminal in real time, and the data packets with long data acquisition duration are stored, so that the storage bottleneck caused by overlarge data files is solved, the operation pressure of the processor is reduced, and the synchronism and stability of data transmission are guaranteed.
The present application further provides a computer device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the data transmission and storage method mentioned in the foregoing when executing the computer program.
In particular, the computer device may be a server. The computer device may include a processor, memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the sensor data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data transmission and storage method.
The computer device may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data transmission and storage method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data transmission and storage method mentioned in the foregoing.
Specifically, it can be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above can be implemented by the relevant hardware instructed by a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The present application also provides a data management system 100.
As shown in fig. 8, in an embodiment of the present application, the data management system 100 includes a data collection device 110 and a mobile terminal 120.
The data acquisition device 110 includes a slave sensor 111, a slave processor 112, a master sensor 113, and a master processor 114.
The slave sensor 111 and the slave processor 112 are electrically connected. The main processor 114 is electrically connected to the main sensor 113. The master processor 114 is also electrically connected to the slave processors 112.
The slave sensor 111 is used to acquire sensor data. The master processor 114 is configured to receive the sensor data acquired by the master sensor 113 and the sensor data sent by the slave processor 112. The main processor 114 is further configured to integrate the sensor data, sequentially generate a plurality of subtask packets, and send the subtask packets to the mobile terminal 120. The main processor 114 is further configured to split the plurality of subtask packets according to a generation time sequence, so as to obtain the sensor data. The main processor 114 integrates the sensor data to generate a total task data packet.
In this embodiment, the main sensor 113 and the slave sensor 111 respectively collect sensor data, and the main processor 114 and the slave processor 112 are respectively configured to receive the sensor data, so that the processing pressure of each processor is dispersed, and the problem that when only a single processor is used for processing data, the processor is too high in pressure to execute other tasks is avoided. In addition, the main processor 114 integrates the collected sensor data and generates data packets of different structures according to different data collection durations. Further, the data packets with short data acquisition duration are transmitted to the mobile terminal 120 in real time, and the data packets with long data acquisition duration are stored, so that the storage bottleneck caused by overlarge data files is solved.
As shown in fig. 9, in an embodiment of the present application, the data management system 100 further includes a first storage 115 and a second storage 116.
The first memory 115 is electrically connected to the main processor 114. The second memory 116 is electrically connected to the main processor 114. The first memory 115 is used for storing the plurality of subtask packets. The second memory 116 is used for storing the total task data packet.
In this embodiment, the first memory 115 and the second memory 116 are configured to store data packets with different formats, so that the storage pressure of the data acquisition device 110 is reduced.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-described embodiments are intended to be merely illustrative of the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A data transmission and storage method, comprising:
acquiring a plurality of sensor data according to a preset time period, wherein the plurality of sensor data are acquired based on one or more sensors;
integrating the sensor data, and sequentially generating a plurality of subtask data packets, wherein the sensor data in the subtask data packets form total task data;
after each subtask data packet is generated, sending the subtask data packet to a mobile terminal;
the method further comprises the following steps:
selecting the plurality of subtask packets according to the generation time sequence of the subtask packets;
splitting the plurality of subtask data packets respectively to obtain a plurality of sensor data, and storing the plurality of sensor data in a plurality of data channels in a first memory respectively; each of the data channels stores the same kind of the sensor data;
reading the plurality of sensor data in the plurality of data channels, respectively;
merging the plurality of sensor data in each of the data channels;
generating a total task data packet according to a preset storage format; the sensor data within the total task data packet constitutes the total task data;
and sending the total task data packet to a second memory for storage.
2. The data transmission and storage method according to claim 1, wherein the preset time period is a time length between two sending times of the timer sending two adjacent interrupt signals, and the step of acquiring the plurality of sensor data according to the preset time period comprises:
and starting to read the sensor data under the trigger of an interrupt signal sent by the timer, and acquiring the plurality of sensor data according to the preset time period.
3. The data transmission and storage method according to claim 2, wherein the step of integrating the plurality of sensor data and sequentially generating a plurality of subtask packets comprises:
a plurality of data channels for respectively storing the plurality of sensor data acquired within one preset time period in the first memory;
respectively reading the sensor data in the data channels, integrating the sensor data in the preset storage format, and generating a subtask data packet;
and repeatedly executing the step of acquiring the data of the plurality of sensors and the step of integrating and generating the subtask data packets, and sequentially generating the plurality of subtask data packets.
4. The data transmission and storage method according to claim 3, wherein the preset storage format comprises header information and data content information;
the header information comprises header information and channel information;
the packet header information is one or more of a mark code of the data packet, the size of the data packet, a check value, sensor data acquisition duration and sensor data acquisition starting time;
the channel information is one or more of data quantity, data format and sensor name in each data channel;
the data content information is data information of the sensor data in each of the data channels.
5. The data transmission and storage method according to claim 1, further comprising:
the sensor data are checked, and when the sensor data are checked to be qualified, the reading of the sensor data in the data channels is executed; merging the plurality of sensor data in each of the data channels; and generating a total task data packet according to a preset storage format.
6. The data transmission and storage method according to claim 5, wherein the verifying the plurality of sensor data, and when the verifying is qualified, performing the reading the plurality of sensor data in the plurality of data channels respectively; merging the plurality of sensor data in each of the data channels; the step of generating the total task data packet according to the preset storage format comprises the following steps:
checking the integrity of the sensor data, and judging whether any sensor data is damaged;
if any sensor data is not damaged, further judging whether the data acquisition starting time and the data acquisition duration of the sensor data can form a continuous time period; and
if the data acquisition starting time and the data acquisition duration time of the sensor data can form a continuous time period, executing the reading of the sensor data in the data channels respectively; merging the plurality of sensor data in each of the data channels; and generating a total task data packet according to a preset storage format.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the data transmission and storage method according to any one of claims 1 to 6 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data transmission and storage method according to any one of claims 1 to 6.
9. A data management system, comprising:
the system comprises a data acquisition device and a mobile terminal; the data acquisition device comprises a slave sensor, a slave processor, a master sensor and a master processor; the slave sensor is electrically connected with the slave processor; the main processor is electrically connected with the main sensor; the master processor is also electrically connected with the slave processor;
the main processor is used for starting to read the sensor data acquired from the sensor and the main sensor under the trigger of the interrupt signal sent by the timer and acquiring a plurality of sensor data according to a preset time period, wherein the preset time period is the time length between two sending times of sending two adjacent interrupt signals by the timer; the plurality of sensor data is acquired based on one or more sensors;
the main processor is further used for integrating the sensor data, sequentially generating a plurality of subtask data packets and sending the subtask data packets to the mobile terminal;
the main processor is further used for selecting the plurality of subtask data packets according to the generation time sequence of the subtask data packets; splitting the plurality of subtask data packets respectively to obtain a plurality of sensor data, and storing the plurality of sensor data in a plurality of data channels in a first memory respectively; each of the data channels stores the same kind of the sensor data; reading the plurality of sensor data in the plurality of data channels, respectively; merging the plurality of sensor data in each of the data channels; generating a total task data packet according to a preset storage format; the sensor data within the total task data packet constitutes the total task data; and sending the total task data packet to a second memory for storage.
CN201910191782.4A 2019-03-14 2019-03-14 Data transmission and storage method Active CN110086565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910191782.4A CN110086565B (en) 2019-03-14 2019-03-14 Data transmission and storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910191782.4A CN110086565B (en) 2019-03-14 2019-03-14 Data transmission and storage method

Publications (2)

Publication Number Publication Date
CN110086565A CN110086565A (en) 2019-08-02
CN110086565B true CN110086565B (en) 2022-02-18

Family

ID=67412529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910191782.4A Active CN110086565B (en) 2019-03-14 2019-03-14 Data transmission and storage method

Country Status (1)

Country Link
CN (1) CN110086565B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641530B (en) * 2021-06-23 2023-07-18 地平线(上海)人工智能技术有限公司 Data processing method and device
CN114401289B (en) * 2021-12-31 2024-08-16 深圳市麦谷科技有限公司 Task batch uploading method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933654A (en) * 2015-05-29 2015-09-23 安徽师范大学 Community medical internet of things privacy protection method
CN106559541A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 voice data processing method and device
CN107786849A (en) * 2017-11-02 2018-03-09 成都吱吖科技有限公司 A kind of intelligent domestic system and data push method to medical institutions' data-pushing
CN108013869A (en) * 2017-11-30 2018-05-11 贵州长瑞科技有限公司 A kind of blood pressure heart rate measuring system based on smart mobile phone
CN109068288A (en) * 2018-09-06 2018-12-21 福建师范大学 A kind of method and system selecting mobile intelligent perception incentive mechanism based on more properties users

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933654A (en) * 2015-05-29 2015-09-23 安徽师范大学 Community medical internet of things privacy protection method
CN106559541A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 voice data processing method and device
CN107786849A (en) * 2017-11-02 2018-03-09 成都吱吖科技有限公司 A kind of intelligent domestic system and data push method to medical institutions' data-pushing
CN108013869A (en) * 2017-11-30 2018-05-11 贵州长瑞科技有限公司 A kind of blood pressure heart rate measuring system based on smart mobile phone
CN109068288A (en) * 2018-09-06 2018-12-21 福建师范大学 A kind of method and system selecting mobile intelligent perception incentive mechanism based on more properties users

Also Published As

Publication number Publication date
CN110086565A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
US20210082558A1 (en) Medication management device, medication management method, and non-transitory computer-readable storage medium storing medication management program
CN110086565B (en) Data transmission and storage method
JP2005513677A (en) Methods and apparatus for clinical trials
JP2005513677A6 (en) Methods and apparatus for clinical trials
US20210118539A1 (en) Medication management device, medication management method, and non-transitory computer-readable storage medium storing medication management program
CN110364268A (en) Diabetic Internet-based is health management system arranged and method
CN113707253A (en) Medical scheme recommendation method, device, equipment and medium
CN112992350A (en) Physical sign data monitoring method and device, electronic terminal and storage medium
TWI668664B (en) Method for dynamic analyzing blood sugar level, system thereof and computer program product
US20210168137A1 (en) Biometric Patient Identity Verification System
CN112674723A (en) Medication compliance monitoring method, terminal and readable storage medium
CN115547438A (en) Health management method and system, medical follow-up terminal and health management platform
CN106940720B (en) Multi-source information processing method and system based on healthy Internet of things
CN111508574A (en) Inspection and inspection data docking method and system
CN115568834A (en) Data processing method and device
US11864887B2 (en) Method for emphasizing analyte values during a therapeutic window
CN114020926A (en) Data processing method and device and electronic equipment
CN113593662A (en) Data entry reminding method and device, computer equipment and storage medium
CN113438263B (en) Data processing method, device and equipment of wearable massage instrument and storage medium
CN113764065B (en) Method, system, server and storage medium for generating electronic medical advice
CN117496677B (en) Real-time early warning method and related device for vehicle
CN107997747A (en) Body temperature detection method and terminal
NL2021316B1 (en) User device for registering disease related states of a user
CN112151133A (en) Information interaction method, equipment and device
JPH10118037A (en) Health condition judging apparatus, health condition judging system and health condition judging method

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
CP03 Change of name, title or address

Address after: 518000 Guangdong science and technology innovation and Research Institute, Shenzhen, Shenzhen, Nanshan District No. 6, science and technology innovation and Research Institute, Shenzhen, D 10, 1004, 10

Patentee after: Shenzhen Hetai intelligent home appliance controller Co.,Ltd.

Address before: 518051 1004, 10th floor, block D, Shenzhen Institute of aerospace technology innovation building, no.6, South Keji Road, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN H&T DATA RESOURCES AND CLOUD TECHNOLOGY Ltd.

CP03 Change of name, title or address