CN104281416B - Data acquisition, read method and device - Google Patents

Data acquisition, read method and device Download PDF

Info

Publication number
CN104281416B
CN104281416B CN201410555179.7A CN201410555179A CN104281416B CN 104281416 B CN104281416 B CN 104281416B CN 201410555179 A CN201410555179 A CN 201410555179A CN 104281416 B CN104281416 B CN 104281416B
Authority
CN
China
Prior art keywords
data
acquisition time
detection data
write
predetermined number
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
CN201410555179.7A
Other languages
Chinese (zh)
Other versions
CN104281416A (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.)
BEIJING HAISIMIN MEDICAL TECHNOLOGY Co Ltd
Original Assignee
BEIJING HAISIMIN MEDICAL 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 BEIJING HAISIMIN MEDICAL TECHNOLOGY Co Ltd filed Critical BEIJING HAISIMIN MEDICAL TECHNOLOGY Co Ltd
Priority to CN201410555179.7A priority Critical patent/CN104281416B/en
Publication of CN104281416A publication Critical patent/CN104281416A/en
Application granted granted Critical
Publication of CN104281416B publication Critical patent/CN104281416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G06F19/36

Landscapes

  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The present invention provides a kind of data acquisition, read method and device, and methods described includes:In acquisition time, data are detected by data collecting module collected;If the detection data of collection are valid data, then the detection data are write in default data file, wherein, each data bit of the data file is initialized to predetermined value, multiple predetermined number of bits that each acquisition time is corresponded respectively in the data file, wherein, the processing that the detection data are write in default data file includes:The detection data are write from the acquisition time corresponding predetermined number of bits in acquisition step.Realize in the case where that need not increase extra incident file misregistration acquisition time and data file need not be increased, the problem of solving the acquisition time that can not rapidly and accurately recognize invalid data in the prior art.

Description

Data acquisition, read method and device
Technical field
The present invention relates to the processing of detection data, more particularly to a kind of data acquisition, read method and device.
Background technology
Using Holter collection body under the different situations such as rest, activity, dining, work, study and sleep During ECG data, Holter usually requires to wear a data acquisition equipment, the data acquisition equipment by electrode with Body is directly contacted.But when long-time wears data acquisition equipment, it may appear that the situation of electrode delamination;Also may be used in addition There can be the inconvenience of human activity, and actively remove data acquisition equipment after a period of time, a period of time, and again from body Newly wear.Because in electrode delamination, the data of data acquisition equipment collection are invalid, but for these invalid datas, Data acquisition equipment can generally also be recorded, therefore just have the need for the acquisition time for recognizing these invalid datas Ask.
Following two technical schemes are generally used in the prior art:
1) come off time of generation by single incident file recording electrode.
2) by setting event identifier position to distinguish electrode delamination event in the data file.
However, technical scheme 1) analysis of data can be caused to become complicated, because this needs system in analysis gathered data When, it is necessary to judge each acquisition time, to confirm that this acquisition time is not the point of electrode delamination.Work as system Monitoring has tens million of acquisition times for a long time, therefore so can increase the pressure of system operations and reduce analyze speed; And technical scheme 2) since it is desired that the extra event flag position of increase, can increase the size of gathered data file.This not only increases The write-in workload at data acquisition end, as needing before analyzing each acquisition time that first parsing indicates Position and increase the workload of network analysis.
The content of the invention
Embodiments of the invention provide a kind of data acquisition, read method and device, by by each number of data file Predetermined value is initialized as according to position, and each acquisition time corresponding with multiple predetermined number of bits in the data file is risen Come, the valid data write-in of data collecting module collected is then completed into the data file after above-mentioned initialization, so as to realize In the case where that need not increase extra incident file misregistration acquisition time and data file need not be increased, just The target of the rapidly and accurately acquisition time of identification invalid data can be realized.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
According to an aspect of the present invention, the present invention provides a kind of collecting method, including:
Acquisition step:In acquisition time, data are detected by data collecting module collected;
Write step:If the detection data of collection are valid data, the detection data are write into default data In file,
Wherein, each data bit of the data file is initialized to predetermined value, and each acquisition time corresponds to respectively Multiple predetermined number of bits in the data file,
Wherein, the processing that the detection data are write in default data file includes:From in acquisition step The acquisition time corresponding predetermined number of bits write-in detection data.
According to another aspect of the present invention, the present invention provides a kind of method for reading data, including:
Open default data file, wherein, multiple predetermined number of bits in the data file respectively with acquisition time Point correspondence;
From corresponding predetermined number of bits of first acquisition time, the detection data of predetermined length are sequentially read, until Untill the detection data or the end of data file that have read the acquisition time of predetermined number, wherein, during to each collection Between the detection data put, perform following checking treatment:
If the detection data are predetermined values, the acquisition time is labeled as invalidated acquisitions time point,
Export the corresponding detection data of each acquisition time and reading.
According to an aspect of the present invention, the present invention provides a kind of data acquisition device, and the device includes:
Collecting unit:For in acquisition time, acquisition testing data;
Writing unit:It is if being valid data for the detection data gathered, the detection data write-in is default In data file,
Wherein, each data bit of the data file is initialized to predetermined value, and each acquisition time corresponds to respectively Multiple predetermined number of bits in the data file,
Wherein, said write unit specifically for:From the acquisition time of the collecting unit corresponding predetermined number of bits Play the write-in detection data.
According to an aspect of the present invention, the present invention provides a kind of digital independent device, and the device includes:
File unit is opened, for opening default data file, wherein, multiple tentation datas in the data file Position is corresponding with acquisition time respectively;
Reading unit, for from corresponding predetermined number of bits of first acquisition time, sequentially reading predetermined length Data are detected, untill having read the detection data of acquisition time of predetermined number or the end of data file, wherein, To the detection data of each acquisition time, following checking treatment is performed:
If the detection data are predetermined values, the acquisition time is labeled as invalidated acquisitions time point;
Output unit, the corresponding detection data for exporting each acquisition time and reading.
Data acquisition provided in an embodiment of the present invention, read method and device, in acquisition time, pass through data acquisition module Block acquisition testing data;If the detection data of collection are valid data, the detection data are write into default data text In part, wherein, each data bit of the data file is initialized to predetermined value, and each acquisition time corresponds respectively to institute Multiple predetermined number of bits in data file are stated, wherein, the place that the detection data are write in default data file Reason includes:The detection data are write from the acquisition time corresponding predetermined number of bits in acquisition step.Thus, it is real Extra incident file misregistration acquisition time need not increased and need not increase the situation of data file by having showed Under, the problem of solving the acquisition time that can not rapidly and accurately recognize invalid data in the prior art.
Brief description of the drawings
Fig. 1 is the flow chart for the collecting method for showing embodiment according to the present invention embodiment;
Fig. 2 is the flow chart for the method for reading data for showing embodiment according to the present invention embodiment;
Fig. 3 is the logic diagram for the data acquisition device for showing embodiment according to the present invention embodiment;
Fig. 4 is the logic diagram for the digital independent device for showing embodiment according to the present invention embodiment.
Embodiment
The present general inventive concept of the present invention is to provide a kind of data acquisition, read method and device, the acquisition method and Device by each data bit of data file by being initialized as predetermined value, and by each acquisition time and the data file In multiple predetermined number of bits be mapped, the write-in of the valid data of data collecting module collected is then completed into above-mentioned initialization Data file afterwards, and for invalid data, the then initial predetermined value of retention data file;On this basis, it is described to read Method and device is in the data file of opening, from corresponding predetermined number of bits of first acquisition time, sequentially reads pre- The detection data of measured length, until the detection data or the end of data file of acquisition time for having read predetermined number are Only, wherein, to the detection data of each acquisition time, if the detection data are predetermined values, by the acquisition time Point is labeled as invalidated acquisitions time point, finally exports the corresponding detection data of each acquisition time and reading.So as to Quickly and accurately recognize invalidated acquisitions time point.
Data acquisition of the embodiment of the present invention, read method and device are described in detail below in conjunction with the accompanying drawings.
Fig. 1 is the flow chart for the collecting method for showing embodiment according to the present invention embodiment.
Reference picture 1, in step S110, in acquisition time, data are detected by data collecting module collected.
Illustrate herein, data acquisition module is the equipment for being capable of gathered data.In this description, with data acquisition module Illustrated for electrocardiogram acquisition equipment.
Alternatively, before data collecting module collected detection data, data file is first set up, and the data set up are literary The size of part then need by data acquisition module according to detection time, frequency acquisition and detect data length determines, wherein, examine Survey data length can with but be not limited to 16bits, 64bits and 128bits etc..
It is determined that after the size for the data file set up, setting up the data corresponding with the size of above-mentioned data file File.For example, detection time is 5 days, and frequency acquisition is 128Hz, and detects that the length of data for 16bits, is then set up The size of data file be:16x128x60x60x24x5=36864000bits, it is therefore desirable to set up 36864000bits big Small data file, namely the data file include 36864000 data bit.
It should be noted that multiple predetermined number of bits that each acquisition time is corresponded respectively in data file, and often Two adjacent acquisition times are separated by the length of the detection data between corresponding two predetermined number of bits respectively.Such as in number When corresponding to two acquisition times according to the size of file for the detection data in 32bits, and the data file, then data are detected Length be 16bits, and above-mentioned, 16 data bit that each acquisition time is corresponded respectively in data file, two phases Adjacent acquisition time is separated by 16 between corresponding two predetermined number of bits respectively.
After above-mentioned data file is set up, the data file can be initialized, specifically, by data file Each data bit is initialized as predetermined value.
Above-mentioned preset value can be 0x1 binary number.As an example it is assumed that the size for the data file set up 32bits, namely the data file include 32 data bit, then each data bit of data file be initialized as after predetermined value be: 1111111111111111,1111111111111111, being expressed as hexadecimal data is then:FFFF, FFFF, namely when initial The data file includes two groups of 16 0x1.
After the initialization of data file is completed, in acquisition time, data acquisition module (such as electrocardiogram acquisition can be passed through Equipment) acquisition testing data.
In step S120, if the detection data of collection are valid data, the detection data are write into default number According in file.
Wherein, the processing that the detection data are write in default data file includes:From in step S110 The acquisition time corresponding predetermined number of bits write-in detection data.
Explanation is needed, data acquisition module can be judged the detection data of collection.When above-mentioned gathered data mould During block operation exception (such as electrode delamination or equipment fault), it is invalid that the detection data of collection are then judged as by the data acquisition module Data, and the detection data gathered when gathered data module is normally run are judged as valid data.
As in previous example, being initialized as by each of data file data bit after predetermined value, data acquisition module Normally run, and the detection data of the 1st acquisition time are:A3BD, its corresponding binary data is: 1010001110111101, then above-mentioned detection data are write from the 1st acquisition time corresponding predetermined number of bits, namely certainly 1st predetermined number of bits plays write-in A3BD, and the content update of above-mentioned data file is:1010001110111101, 1111111111111111, its corresponding hexadecimal data is:A3BD, FFFF.Complete above-mentioned 1st acquisition time After the write-in for detecting data, when data acquisition module under normal operation, collecting the 2nd acquisition time After detection data, due to the 17th data bit in the 2nd acquisition time above-mentioned data file of correspondence, then from above-mentioned 17th Data bit plays the detection data of the 2nd acquisition time of write-in, so the like, until being written in into data file all Valid data.
In addition, as in previous example, it is assumed that during the detection data of data collecting module collected to the 2nd acquisition time, There is the situation of electrode delamination, now the detection data collected are judged as invalid data by data acquisition module, because the 2nd The 17th data bit in the acquisition time above-mentioned data file of correspondence, then the 17th data bit is opened in above-mentioned data file Begin, skip 16 data bit being separated by between the 2nd acquisition time and the 3rd acquisition time, reach data file ending, Whole end of data file.
Alternatively, methods described also includes:Write-in pointer is set.By the write-in pointer, data acquisition module just can be with Corresponding predetermined number of bits in the data file of current acquisition time is accurately obtained, so as to exactly into data file Correspondence position write the detection data of current acquisition time.
The write-in pointer points to current acquisition time corresponding predetermined number of bits in the data file.Such as in previous example In, data acquisition module is when collecting the detection data of the 2nd acquisition time, and the write-in pointer points in data file the 17 data bit.
Specifically, after the write-in of perform detection data, said write pointer is moved to next acquisition time Corresponding predetermined number of bits.
Such as in previous example, when completing to write the detection data of the 1st acquisition time into data file, it will write Enter pointer and be moved to the 2nd acquisition time corresponding 17th data bit.
Further, step S120 can also include:
The write-in detection data from the predetermined number of bits that said write pointer is pointed to.Such as in previous example, complete Into after the write-in of the detection data of the 1st acquisition time, when data acquisition module under normal operation, the 2nd After the detection data of acquisition time, the 2nd acquisition time of write-in from the 17th data bit that write-in pointer is pointed to Detect data.
The collecting method that the present invention is provided can be on the premise of the size of reduction data file, rapidly to data Valid data are write in file.
Fig. 2 is the flow chart for the method for reading data for showing embodiment according to the present invention embodiment.
Reference picture 2, in step 210, opens default data file.
Wherein, multiple predetermined number of bits in the data file are corresponding with acquisition time respectively, and each two is adjacent Acquisition time be separated by the length of the detection data between corresponding two predetermined number of bits respectively.
As an example it is assumed that the size of default data file is 128bits, the content of default data file is: A3BD, 88F5, F488, D6F3, FFFF, FD88, E9FE, 88FF.And the length for assuming to detect data is 16bits, then when gathering Between the number put be 8, and 16 data bit that each acquisition time is corresponded respectively in data file, i.e., the 1st collection Time point corresponding 16 data bit are expressed as hexadecimal and are:A3BD, namely the detection data of the 1st acquisition time are: A3BD, the detection data of the 2nd collection point are:88F5, by that analogy, the detection data of the 8th acquisition time are:88FF. Two adjacent acquisition times are separated by 16 between corresponding two predetermined number of bits respectively.
In step 220, from corresponding predetermined number of bits of first acquisition time, the detection of predetermined length is sequentially read Data, untill having read the detection data of acquisition time of predetermined number or the end of data file.
Wherein, to the detection data of each acquisition time, following checking treatment is performed:
If the detection data are predetermined values, the acquisition time is labeled as invalidated acquisitions time point.
It should be noted that because multiple predetermined number of bits in data file are corresponding with acquisition time respectively, as before State in example, each acquisition time is corresponding with 16 data bit in data file, and the present processes are to have Imitate in data write-in data file, therefore, when the detection data of acquisition time are invalid data, namely not to data file The detection data of middle write-in current acquisition time, then the detection data of current acquisition time are in the data file then to be multiple Predetermined value.When predetermined value is 1, then it represents that be after into hexadecimal data:FFFF.
In such as previous example, after data file is opened, first from the 1st acquisition time (i.e. first acquisition time Point) corresponding 1st data bit, sequentially reads 16 data bit, namely read the length of detection data, the inspection read Surveying data is:A3BD, because the detection data are not predetermined values, namely is not FFFF, the detection data is not handled;So Afterwards from the 2nd acquisition time corresponding 17th data bit, 16 data bit, namely the detection read are sequentially read Data are:88F5, nor the detection data are not handled by FFFF;So the like, until having read 8 samplings Untill the detection data or end of data file at time point.
When reading the detection data of above-mentioned 8 sampling times point, when the detection data for reading the 5th sampling time point When, because the detection data are FFFF, the 5th acquisition time is labeled as invalidated acquisitions time point.
Alternatively, methods described also includes:Reading pointer is set.Pass through the reading pointer, data acquisition module (such as electrocardio Collecting device) corresponding predetermined number of bits in the data file of current acquisition time just can be accurately obtained, so as to standard The detection data of current acquisition time really are read from the correspondence position in data file.
The reading pointer points to current acquisition time corresponding predetermined number of bits in the data file.Such as in previous example In, data acquisition module is when reading the detection data of the 2nd acquisition time, and the reading pointer points to the 17th data bit.
Specifically, after the detection data of predetermined length are read, the reading pointer is moved to next acquisition time The corresponding predetermined number of bits of point.
Such as in previous example, when completing to read the detection data of the 1st acquisition time from data file, it will read Fetching pin is moved to the 17th data bit.
Further, step S220 can also include:
The detection data are read from the predetermined number of bits that the reading pointer is pointed to.Such as in previous example, complete Into after the reading of the detection data of the 1st acquisition time, detection is read from the 17th data bit that reading pointer is pointed to Data.
In step 230, the corresponding detection data of each acquisition time and reading are exported.
In one example, the corresponding detection data of each acquisition time of output and reading are as follows:
Acquisition time T1 T2 T3 T4 T5 T6 T7 T8
Flag bit 1 1 1 1 0 1 1 1
Detect data A3BD 88F5 F488 D6F3 FFFF FD88 E9FE 88FF
Wherein, T1-T8For acquisition time, flag bit 0 represents that the acquisition time is invalidated acquisitions time point.
Alternatively, methods described also includes:Invalidated acquisitions are determined according to the number at the continuous invalidated acquisitions time point Interval, and it is interval to export the invalidated acquisitions.
Such as upper table, acquisition time T5Flag bit be 0, namely only acquisition time T5For invalidated acquisitions time point, vacation If acquisition time T4And T6Flag bit when being also 0, then the number at invalidated acquisitions time point is 3, namely invalidated acquisitions are interval For T4-T6, while exporting invalidated acquisitions interval T4-T6
The method for reading data that the present invention is provided, can be labeled to the acquisition time of invalid data, therefore can be with The acquisition time of invalid data is rapidly and accurately recognized, and when the number at invalidated acquisitions time point is multiple, according to even The number at continuous invalidated acquisitions time point determines that invalidated acquisitions are interval.
Illustrate herein, although in method of the invention, be illustrated by electrocardiogram acquisition equipment of data acquisition module, but Electrocardiogram acquisition equipment is not limited to, every equipment for being capable of gathered data can be used as the data acquisition module in the inventive method Block.
Fig. 3 is the logic diagram for the data acquisition device for showing embodiment according to the present invention embodiment.
Reference picture 3, data acquisition device of the invention includes:Collecting unit 310 and writing unit 320.
Collecting unit 310, in acquisition time, acquisition testing data.
Alternatively, before the acquisition testing data of collecting unit 310, data file is first set up, and the data set up are literary The size of part then need by collecting unit 310 according to detection time, frequency acquisition and detect data length determines, wherein, examine Survey data length can with but be not limited to 16bits, 64bits and 128bits etc..
It is determined that after the size for the data file set up, setting up the data corresponding with the size of above-mentioned data file File.
It should be noted that multiple predetermined number of bits that each acquisition time is corresponded respectively in data file, and often Two adjacent acquisition times are separated by the length of the detection data between corresponding two predetermined number of bits respectively.
After above-mentioned data file is set up, the data file can be initialized, specifically, by data file Each data bit is initialized as predetermined value.The preset value can be 0x1 binary number.
After the initialization of data file is completed, in acquisition time, collecting unit 310 can acquisition testing data.
Writing unit 320, it is if being valid data for the detection data gathered, the detection data write-in is default Data file in, wherein, multiple predetermined number of bits that each acquisition time is corresponded respectively in the data file.
Wherein, writing unit 320 specifically for:From the acquisition time of collecting unit 310 corresponding predetermined number of bits Write the detection data.
Explanation is needed, writing unit 320 can be judged the detection data of collection.When above-mentioned collecting unit 310 During operation exception (such as electrode delamination or equipment fault), the detection data of collection are then judged as invalid number by the writing unit 320 According to, and the detection data gathered when gathered data module is normally run are judged as valid data.
It is initialized as by each of data file data bit after predetermined value, to the detection number of the 1st acquisition time According to the above-mentioned detection data of write-in from the 1st acquisition time corresponding predetermined number of bits.When completing above-mentioned 1st collection Between after the write-in of detection data put, after the detection data of the 2nd acquisition time are collected, due to the 2nd collection 17th data bit in the time point above-mentioned data file of correspondence, then write the 2nd acquisition time from above-mentioned 17th data bit The detection data of point, so the like, until being written in all valid data into data file.
Moreover, it is assumed that when collecting unit 310 collects the detection data of the 2nd acquisition time, there is electrode delamination Situation, now the detection data collected are judged as invalid data by writing unit 320, because the 2nd acquisition time correspondence The 17th data bit in above-mentioned data file, then the 17th data bit starts in above-mentioned data file, skips the 2nd collection 16 data bit being separated by between time point and the 3rd acquisition time, reach data file ending, whole data file knot Beam.
Alternatively, described device also includes:Write-in Pointer unit 330 is set, for setting write-in pointer.Pass through the write-in Pointer, writing unit 320 just can accurately obtain corresponding predetermined number of bits in the data file of current acquisition time, so that The detection data of correspondence position write-in current acquisition time that can exactly into data file.
The write-in pointer points to current acquisition time corresponding predetermined number of bits in the data file.
Specifically, after the write-in of perform detection data, said write pointer is moved to next acquisition time Corresponding predetermined number of bits.
Further, writing unit 320 specifically for:
The write-in detection data from the predetermined number of bits that said write pointer is pointed to.
Fig. 4 is the logic diagram for the digital independent device for showing embodiment according to the present invention embodiment.
Reference picture 4, data acquisition device of the invention includes:Open file unit 410, reading unit 420 and output single Member 430.
File unit 410 is opened, for opening default data file, wherein, it is multiple predetermined in the data file Data bit is corresponding with acquisition time respectively.
Wherein, multiple predetermined number of bits in the data file are corresponding with acquisition time respectively, and each two is adjacent Acquisition time be separated by the length of the detection data between corresponding two predetermined number of bits respectively.
Reading unit 420, for from corresponding predetermined number of bits of first acquisition time, sequentially reading predetermined length Detection data, untill having read the detection data of acquisition time of predetermined number or the end of data file.
Wherein, to the detection data of each acquisition time, following checking treatment is performed:
If the detection data are predetermined values, the acquisition time is labeled as invalidated acquisitions time point.
It should be noted that because multiple predetermined number of bits in data file are corresponding with acquisition time respectively, as before State in example, each acquisition time is corresponding with 16 data bit in data file, and the device of the application is to have Imitate in data write-in data file, therefore, when the detection data of acquisition time are invalid data, namely not to data file The detection data of middle write-in current acquisition time, then the detection data of current acquisition time are in the data file then to be multiple Predetermined value.
Alternatively, described device also includes:Reading pointer unit 440 is set, for setting reading pointer.Pass through the reading Pointer, reading unit 420 just can accurately obtain corresponding predetermined number of bits in the data file of current acquisition time, so that The detection data of current acquisition time can be read from the correspondence position in data file exactly.
The reading pointer points to current acquisition time corresponding predetermined number of bits in the data file.
Specifically, after the detection data of predetermined length are read, the reading pointer is moved to next acquisition time The corresponding predetermined number of bits of point.
Further, reading unit 420 specifically for:Read from the predetermined number of bits that the reading pointer is pointed to described Detect data.
Output unit 430, the corresponding detection data for exporting each acquisition time and reading.
Alternatively, described device also includes:Determining unit 450, for according to the continuous invalidated acquisitions time point Number determines that invalidated acquisitions are interval, and it is interval to export the invalidated acquisitions.
To sum up, the collection of data provided in an embodiment of the present invention, read method and device, by by data file each Data bit is initialized as predetermined value, and each acquisition time corresponding with multiple predetermined number of bits in the data file is risen Come, the valid data write-in of data collecting module collected is then completed into the data file after above-mentioned initialization, and for nothing Data are imitated, then the initial predetermined value of retention data file;On this basis, from corresponding predetermined number of bits of first acquisition time Rise, sequentially read the detection data of predetermined length, detection data or institute until acquisition time for having read predetermined number Untill stating end of data file, wherein, to the detection data of each acquisition time, if the detection data are predetermined values, The acquisition time is then labeled as invalidated acquisitions time point, the corresponding inspection of each acquisition time and reading is finally exported Survey data.So as to quickly and accurately recognize invalidated acquisitions time point.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (11)

1. a kind of collecting method, it is characterised in that methods described includes:
Acquisition step:In acquisition time, data are detected by data collecting module collected;
Write step:If the detection data of collection are valid data, by the write-in pointer of setting by the detection data Write in default data file,
Wherein, each data bit of the data file is initialized to predetermined value, and each acquisition time corresponds respectively to institute Multiple predetermined number of bits in data file are stated,
Wherein, the processing that the detection data are write in default data file includes:Described in from acquisition step Acquisition time corresponding predetermined number of bits plays the write-in detection data.
2. according to the method described in claim 1, it is characterised in that in the data file, during the adjacent collection of each two Between put the length for being separated by the detection data between corresponding two predetermined number of bits respectively.
3. method according to claim 2, it is characterised in that methods described also includes:After write step is performed, by institute State write-in pointer and be moved to corresponding predetermined number of bits of next acquisition time.
4. method according to claim 3, it is characterised in that described that the detection data are write into default data file In processing include:The write-in detection data from the predetermined number of bits that said write pointer is pointed to.
5. a kind of method for reading data, it is characterised in that methods described includes:
Open default data file, wherein, multiple predetermined number of bits in the data file respectively with acquisition time pair Should;
From corresponding predetermined number of bits of first acquisition time, predetermined length is sequentially read by the reading pointer of setting Data are detected, untill having read the detection data of acquisition time of predetermined number or the end of data file, wherein, To the detection data of each acquisition time, following checking treatment is performed:
If the detection data are predetermined values, the acquisition time is labeled as invalidated acquisitions time point;
Export the corresponding detection data of each acquisition time and reading.
6. method according to claim 5, it is characterised in that in the data file, during the adjacent collection of each two Between put the length for being separated by the detection data between corresponding two predetermined number of bits respectively.
7. method according to claim 6, it is characterised in that methods described also includes:Reading the detection of predetermined length After data, the reading pointer is moved to corresponding predetermined number of bits of next acquisition time.
8. method according to claim 7, it is characterised in that the processing bag of the detection data of the reading predetermined length Include:The detection data are read from the predetermined number of bits that the reading pointer is pointed to.
9. the method according to any one of claim 5~8, it is characterised in that methods described also includes:According to continuous The number at the invalidated acquisitions time point determines that invalidated acquisitions are interval, and it is interval to export the invalidated acquisitions.
10. a kind of data acquisition device, it is characterised in that described device includes:
Collecting unit:For in acquisition time, acquisition testing data;
Writing unit:If being valid data for the detection data gathered, by the write-in pointer of setting by the detection Data are write in default data file,
Wherein, each data bit of the data file is initialized to predetermined value, and each acquisition time corresponds respectively to institute Multiple predetermined number of bits in data file are stated,
Wherein, said write unit specifically for:Write from the acquisition time of the collecting unit corresponding predetermined number of bits Enter the detection data.
11. a kind of digital independent device, it is characterised in that described device includes:
File unit is opened, for opening default data file, wherein, multiple predetermined number of bits point in the data file It is not corresponding with acquisition time;
Reading unit, for from corresponding predetermined number of bits of first acquisition time, by the reading pointer of setting sequentially The detection data of predetermined length are read, until the detection data or the data file of acquisition time for having read predetermined number Untill end, wherein, to the detection data of each acquisition time, perform following checking treatment:
If the detection data are predetermined values, the acquisition time is labeled as invalidated acquisitions time point;
Output unit, the corresponding detection data for exporting each acquisition time and reading.
CN201410555179.7A 2014-10-17 2014-10-17 Data acquisition, read method and device Active CN104281416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410555179.7A CN104281416B (en) 2014-10-17 2014-10-17 Data acquisition, read method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410555179.7A CN104281416B (en) 2014-10-17 2014-10-17 Data acquisition, read method and device

Publications (2)

Publication Number Publication Date
CN104281416A CN104281416A (en) 2015-01-14
CN104281416B true CN104281416B (en) 2017-09-01

Family

ID=52256331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410555179.7A Active CN104281416B (en) 2014-10-17 2014-10-17 Data acquisition, read method and device

Country Status (1)

Country Link
CN (1) CN104281416B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846606B (en) * 2017-02-08 2019-09-20 深圳怡化电脑股份有限公司 A kind of collecting method, device and finance device
CN109480820B (en) * 2017-09-13 2021-07-23 深圳市理邦精密仪器股份有限公司 Dynamic electrocardiogram processing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372202A (en) * 2001-02-21 2002-10-02 富士通株式会社 Semiconductor storage device and information process unit
CN101249020A (en) * 2008-04-10 2008-08-27 中国检验检疫科学研究院 Method and device for monitoring recording products use information
CN102254013A (en) * 2011-07-21 2011-11-23 深圳市华力特电气股份有限公司 Data processing method and data processing device
CN102768684A (en) * 2012-07-13 2012-11-07 深圳市邦健电子有限公司 Method and equipment for storing, reading and managing physiological parameter data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009079407A2 (en) * 2007-12-14 2009-06-25 Jagtag Corp Apparatuses, methods, and systems for a code-mediated content delivery platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372202A (en) * 2001-02-21 2002-10-02 富士通株式会社 Semiconductor storage device and information process unit
CN101249020A (en) * 2008-04-10 2008-08-27 中国检验检疫科学研究院 Method and device for monitoring recording products use information
CN102254013A (en) * 2011-07-21 2011-11-23 深圳市华力特电气股份有限公司 Data processing method and data processing device
CN102768684A (en) * 2012-07-13 2012-11-07 深圳市邦健电子有限公司 Method and equipment for storing, reading and managing physiological parameter data

Also Published As

Publication number Publication date
CN104281416A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN104216350B (en) sensing data analysis system and method
CN104317709B (en) software performance testing method and system
US20080148238A1 (en) Runtime Analysis of a Computer Program to Identify Improper Memory Accesses that Cause Further Problems
CN107729210A (en) The abnormality diagnostic method and device of Distributed Services cluster
CN106649089B (en) A kind of program crashing analysis method and system
US8990792B2 (en) Method for constructing dynamic call graph of application
CN112857669B (en) Fault detection method, device and equipment of pressure sensor and storage medium
CN101833631B (en) Pointer analysis-combined software security hole dynamic detection method
CN109117327A (en) A kind of hard disk detection method and device
CN109029992A (en) The method and system of the bearing failure diagnosis of machine tool chief axis
CN104281416B (en) Data acquisition, read method and device
CN108228446A (en) A kind of software anomaly processing method and software detection device
CN109645979A (en) Ambulatory ecg signal artifact identification method and device
CN108324271A (en) Electrocardiosignal recognition methods, system and cardioelectric monitor equipment
CN105630657B (en) A kind of temperature checking method and device
CN105490777A (en) Satellite telemetry data outlier elimination pre-processing method
CN109086186B (en) Log detection method and device
CN202915884U (en) Winding deformation tester
CN103955678A (en) Image recognition method and device
CN107398612A (en) A kind of electric spark clearance discharge condition detection apparatus and method based on cluster analysis
CN202058148U (en) Axis track analyzer
CN109489223A (en) Data processing method, device, equipment and air-conditioning
CN101950368B (en) Recognition method of storage capacity of 24C series chip
CN103743585A (en) Mechanical failure diagnosing method
CN114464299A (en) Image big data analysis system based on medical cloud platform

Legal Events

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