The specific embodiment
For making the purpose, technical solutions and advantages of the present invention clearer,, the present invention is described in further details below in conjunction with embodiment and accompanying drawing.At this, exemplary embodiment of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
Embodiment one
The invention provides a kind of oximeter, as shown in Figure 2, this oximeter 200 comprises measuring unit 201, control unit 202, communication unit 203 and power supply unit 205; Wherein,
Power supply unit 205 is connected with control unit 202, measuring unit 201 and communication unit 203, and this power supply unit 205 is this measuring unit 201 or communication unit 203 power supplies under the control of control unit 202;
Measuring unit 201 is connected with power supply unit 205, and when power supply unit 205 was these measuring unit 201 power supplies, this measuring unit 201 was used to measure relevant parameter, and this relevant parameter is transmitted;
Control unit 202 is used to control power supply unit 205 and is measuring unit 201 power supplies, and is used for the relevant parameter that measuring unit 201 transmits is handled; And judge whether this relevant parameter is transmitted,, the relevant parameter after handling is sent to communication unit 203 if judged result is then controlled power supply unit 205 for communication unit 203 power supplies for being;
Communication unit 203 is connected with power supply unit 205 with control unit 202, when power supply unit 205 is powered for this communication unit, and the relevant parameter after the processing that these communication unit 203 reception control units 202 transmit, and the relevant parameter after will handling transmits.
From the above, control, make, stop communication unit 203 power supplies in the surveying work time by 202 pairs of power supply units 205 of control unit; Therefore, reduce the energy expenditure of this oximeter, prolonged the working time of this oximeter, solved the technical problem that exists in the prior art.
In addition, this oximeter 200 also can comprise memory element 204, is connected with control unit 202, is used to store the relevant parameter after the processing.
In the communication work time, also can stop measuring unit being powered in addition, can further reduce energy expenditure.
In the present invention, relevant parameter can be blood oxygen parameter and pulse frequency parameter, but is not limited thereto, and also can comprise other parameter.
Above-mentioned communication unit 203 can be wire communication unit or wireless communication unit, as bluetooth unit, when adopting wireless communication unit to carry out transfer of data, can reduce the quantity of cable, brings convenience to surveying work.Following embodiment of the present invention is to be that example describes with the wireless communication unit.
Fig. 3 is that the oximeter of another embodiment of the present invention constitutes sketch map.As shown in Figure 3, this oximeter 300 comprises measuring unit 301, control unit 302, communication unit 303 and power supply unit 305; Wherein, measuring unit 301, power supply unit 305, communication unit 303 is similar with measuring unit 201, communication unit 203 and power supply unit 205 in the embodiment shown in Figure 2, repeats no more herein.
In the embodiment shown in Fig. 3, control unit 302 can comprise processing unit 302a and task management unit 302b.Wherein, task management unit 302b, this task management unit 302b are used to control power supply unit 305 and are measuring unit 301 power supplies; Judge whether relevant parameter is transmitted, if judged result is for being, then this task management unit 302b is used to control power supply unit 305 and powers for communication unit 303;
Processing unit 302a is connected with task management unit 302b with measuring unit 301, is used for the relevant parameter that measuring unit 301 transmits is handled, and when relevant parameter is transmitted, the relevant parameter after handling is sent to communication unit 303.
In addition, this oximeter 300 also can comprise memory element 304, and 302a is connected with processing unit, is used to store the relevant parameter after the processing.
Fig. 4 is that the oximeter of another embodiment of the present invention constitutes sketch map.As shown in Figure 4, this oximeter 400 comprises measuring unit 401, control unit 402, communication unit 403 and power supply unit 405; Wherein, measuring unit 401, power supply unit 405, communication unit 403 and Fig. 2,3 similar repeat no more herein.
In the present embodiment, processing unit 402a can comprise:
The parameter recognition unit, be used for the relevant parameter that measuring unit 401 transmits is handled, promptly this parameter recognition unit is used to judge whether to receive relevant parameter, if the result who judges is for being, judge then whether the received relevant parameter of current time is accurate, if judged result is accurately, then this relevant parameter is stored.
Because after measuring unit 401 starts, need regular hour ordering parameter setting, calculate exact value.But, the difference of this time according to measurement environment changes, like this, whether the relevant parameter that can identify current measurement according to the relevant parameter that current time is measured is accurate, wherein can be in the following way: the difference of calculating the relevant parameter that relevant parameter that current time receives and previous moment receive at least; Judge that whether described difference is less than preset value; If judged result is for being, then the relevant parameter that receives of current time is accurate.If when continuously calculating three times, its process is as follows: calculate current time for the first time, i.e. the relevant parameter and the previous moment that receive constantly of t, i.e. the difference K1 of the relevant parameter that receives constantly of t-1; Judge that whether this difference K1 is less than preset value; If judged result, is then calculated the difference K2 of the relevant parameter that relevant parameter that t+1 receives constantly and t receive constantly for being; Judge that whether this difference K2 is less than preset value; If judged result, is then calculated the difference K3 of the relevant parameter that relevant parameter that t+2 receives constantly and t+1 receive constantly for being; Judge that whether this difference K3 is less than preset value; Received relevant parameter is accurate if judged result, then illustrates the current t+3 moment for being.Like this,, accurately judge the duty of parameter measurement, avoid producing measurement error by the identification that the realization of parameter recognition unit is measured states to measuring unit 401.
Like this, oximeter 400 also comprises memory element 404, and this memory element 404 is connected with the parameter recognition unit, is used for the relevant parameter that the stored parameter recognition unit transmits.
As shown in Figure 4, processing unit 402a also can comprise compression unit.This compression unit is connected with the parameter recognition unit, when to communication unit 403 power supply and before carrying out transfer of data, this compression unit is used to receive the relevant parameter of parameter recognition unit transmission, and is sent to communication unit 403 after this relevant parameter compressed.Perhaps this compression unit obtains relevant parameter from memory element 404, is sent to communication unit 403 after the compression.Like this, reduce data quantity transmitted to a certain extent, thereby reduce energy expenditure.
In the present embodiment, measuring unit 201,301,401 can be respectively under the control of control unit 202,302,402, periodically measure relevant parameter according to certain time interval, and in this interval, stop measuring unit 201,301 and 401 power supplies.
Fig. 7 is a power supply process sketch map in the embodiment of the present invention.As shown in Figure 7, when measuring unit 201,301 and 401 periodic measurement relevant parameters, only measuring unit 201,301 and 401 is powered at Measuring Time T2, and in the interval T1 that measures, stop measuring unit 201,301 and 401 power supplies, and in the periodic measurement process, promptly in Tong Xin the interval (T3), power supply unit 205,305 and 405 also stops communication unit 203,303 and 403 power supplies; When communication unit 203,303 and 403 transmission relevant parameters, in data transmission procedure (T4), power supply unit 205,305 and 405 stops measuring unit 201,301 and 401 power supplies, therefore, compared with prior art, this oximeter can reduce the consumption of energy significantly, prolongs its working time.
Wherein, Measuring Time T2 depends on the parameter recognition unit.And the used time T 4 of transmission relevant parameter depends on the size of institute's transmitted data amount.
From the above, by the working time of measuring unit and communication unit is rationally switched, make unit consumed energy not under idle condition, thereby reduce the working time that energy disappears, prolongs this oximeter, solved the technical problem that exists in the prior art.
Embodiment two
The present invention also provides a kind of method of work of oximeter, and as shown in Figure 5, this method comprises:
Start measuring unit and measure relevant parameter, and when measuring relevant parameter, stop communication unit power supply (seeing step 501); Relevant parameter is handled (seeing step 502); Judge whether the relevant parameter after handling is transmitted (seeing step 503); If judged result is then powered to communication unit for being, the relevant parameter after handling is transmitted (seeing step 504).If in step 503, judged result is then got back to step 501 and is proceeded to measure for not carrying out transfer of data.
In addition, when the transmission relevant parameter, stop measuring unit being powered.
From the above,, make, stop communication unit being powered, thereby reduced the energy expenditure of this oximeter, prolong the working time of this oximeter, solved the technical problem that exists in the prior art in the surveying work time by this method.
In addition, in embodiment of the present invention,, also can stop measuring unit being powered, can further reduce energy expenditure in the communication work time.
In the present embodiment, after relevant parameter is handled, also comprise: preserve the relevant parameter after handling.
In the present embodiment, shown in Fig. 2 or 3,4, in measuring unit 201,301 and 401 working times, measuring unit 201,301 and 401 can periodically be measured relevant parameter according to certain time interval T1 under the control of control unit 202,302 and 402, and stops measuring unit being powered in interval T1.Like this, can further reduce energy expenditure.
If when measuring unit 201,301 and 401 periodic measurement relevant parameters, in each measuring period, be that Measuring Time is in the T2,202,302 and 402 pairs of relevant parameters of control unit are handled can be in the following way: judge whether to receive relevant parameter, if judged result is for being, then the relevant parameter that receives is analyzed, judged whether the relevant parameter that current time receives is accurate; If judged result for being, is then preserved relevant parameter, stop measuring unit 201,301 and 401 power supplies.In the present embodiment, control unit 202,302 and 402 judges whether the related data that current time receives is accurate, can be in the following way: the difference of calculating the relevant parameter that relevant parameter that current time receives and previous moment receive at least; Judge that whether described difference is less than preset value; If judged result is for being, then the relevant parameter that receives of current time is accurate.If continuously the number of times that calculates is for repeatedly the time, can adopt in the similar embodiment one mode of calculating continuously three times, repeat no more herein.
As shown in Figure 4, in order further to reduce the power consumption of communication unit, can before transmitting, can use the relevant parameter after compression unit will be handled to compress to communication unit 403 power supplies, with relevant parameter, with the minimizing data quantity transmitted, thereby save transmission time, minimizing power consumption.
In the present embodiment, when relevant parameter is compressed, as shown in figure 10, can be in the following way: relevant parameter is carried out Huffman coding (seeing step 1001); Adopt the dictionary encoding compression algorithm that the relevant parameter that carries out after Huffman encodes is carried out second-compressed (seeing step 1002).
Following reference oximeter shown in Figure 4 is elaborated to its method of work.
Fig. 6 is the workflow diagram of the oximeter of one embodiment of the present invention.As shown in Figure 6, this oximeter can adopt following working method:
When this oximeter was started working, system mode was initially set to the measurement state.
Step 601 starts measuring unit 401 and begins to measure relevant parameter, and task management unit 402b control power supply unit 405 to stop be communication unit 403 power supplies, thereby reduce energy expenditure;
In the present embodiment, task management unit 402b may command power supply unit 405 periodically is measuring unit 401 power supplies, as shown in Figure 7, stops power supply in interval T1, powers in Measuring Time T2.Like this, but these measuring unit 401 periodic measurement relevant parameters, and therefore, because this power supply unit 405 is powered in Measuring Time T2, T1 does not power at interval, further reduces energy expenditure;
Step 602, processing unit 402a handles relevant parameter can be in the following way: the parameter recognition unit judges whether to receive relevant parameter, if judged result is for being, then the relevant parameter that receives is analyzed, judge whether the relevant parameter that current time receives is accurate; If judged result for being, then transmits relevant parameter to memory element 404 and preserves, at this moment, stop measuring unit 401 power supplies.Wherein, the parameter recognition unit is handled relevant parameter can be in the following way: as shown in Figure 8, judge whether to receive relevant parameter (seeing step 801), if judged result is for being, then judge the relevant parameter received whether accurately (seeing step 802), if judged result is accurately, then preserve this relevant parameter, stop measuring unit 401 power supplies (seeing step 803).Wherein,
As shown in Figure 9, judge whether accurately flow chart of the relevant parameter received for parameter recognition unit in the embodiment of the present invention.As shown in Figure 9, can be in the following way:, then calculate the difference K (seeing step 901) of the received measurement parameter of received relevant parameter of current time and previous moment if calculate once; Judge the difference K calculated then all less than preset value (threshold), if judged result is for being to illustrate that then current received relevant parameter is accurate.
Step 603 judges whether the relevant parameter after handling is transmitted; If judged result is for being that then execution in step 604;
Step 604, the relevant parameter after the parameter recognition unit handled compresses, and like this, can reduce the size of data quantity transmitted, thereby further reduce data transmission period, reduces the consumption of energy.Certainly, the present invention also can not compress above-mentioned relevant parameter and directly transmission.
If in step 602, measuring unit 401 periodic measurement relevant parameters, then the parameter recognition unit is also periodically handled and is preserved relevant parameter.At this moment, the relevant parameter that compression unit compressed should be the exact value of the relevant parameter repeatedly measured.
Step 605, after packed data is finished, to communication unit 403 power supplies, and the relevant parameter after the transmission compression.
Figure 11 is the workflow diagram of the oximeter of the specific embodiment of the invention.The specific implementation process that following periodicity with reference to 11 pairs one independent measurement state of accompanying drawing and communications status starts, stops to switch with task describes.
As shown in Figure 7, in the present embodiment, measuring unit 401 periodic measurement relevant parameters, in Measuring Time T2, measure, in the interval T1 that measures, do not measure, because in the periodic measurement process, power supply unit 405 is not powered to communication unit 403, and also measuring unit 401 is not powered in interval T1.Wherein, the time of total periodic measurement also is the interval T3 of communication, and T4 is the time of transfer of data.
Wherein, the time of total periodic measurement or the interval of communication can be set according to time N1, perhaps set according to the times N 2 of periodic measurement in the measuring process, are illustrated in figure 7 as 5 times.Below be that example describes with the time N1 of total periodic measurement.
In the present embodiment, come the working time of measuring unit 401 and communication unit 403 is switched by intervalometer.Set in advance the interval T1 of measurement and the interval T3 that communicates by letter.
Oximeter 400 is started working, and measuring unit 401 and communication unit 403 all are not powered.
Step 1101 starts intervalometer and interrupts, and is used for timing.
Step 1102 is calculated current the measurement waiting time T and the waiting time N that communicates by letter, and measures waiting time T and communicates by letter waiting time N as shown in Figure 7.
Step 1103, the original state of oximeter 400 is set to the measurement state, enter the measurement state, start measuring unit 401 with interval T1 periodic measurement relevant parameter, and be saved in the memory element 404 after utilizing the parameter recognition unit that this relevant parameter is handled;
Wherein, in the measurement state, power supply unit 405 stops communication unit 403 power supplies, and stops measuring unit 401 power supplies at interval T1.
Measuring unit 401 carries out periodic measurement can be in the following way:
Judge and whether measure waiting time T greater than the interval T1 that measures, if judged result is for being, then the power supply unit 405 of this oximeter 400 is measuring unit 401 power supplies, the calculating of the interval T1 that stop to measure this moment, start measuring unit 401 and measure, and the operation parameter recognition unit handles relevant parameter, obtain to stop to measure and power supply after the exact value, this time Measuring Time is T2, and the time span of T2 depends on concrete measuring process and parameter identifying.When stopping to measure,, wait for the arrival of next T1 interval with the T zero clearing New count of laying equal stress on.When system mode is the measurement state, constantly repeat above process.
Step 1104 judges whether whether communication waiting time N reaches the time T 3 that sets in advance, promptly reach predefined time T 3 by the total time N1 that judges the periodic measurement process and judge;
Step 1105,1106, if judged result is for reaching T3 in step 1104, then the illustrative system state is a communications status.At communications status, stop measuring the counting of waiting time T, stop measuring unit 401 power supplies, begin measured relevant parameter in the measurement state is before compressed, start communication unit 403 then, the data after the compression are all sent finish.
Step 1107, the whole zero setting of waiting time N of will communicating by letter, system mode is returned as original state.
Hereto, the periodicity of independent measurement state and the communications status specific implementation process that starts, stop to switch with task finishes.
In addition, in yet another embodiment of the present invention, also can adopt number of times to judge whether to enter communications status according to the periodic measurement of setting.
Like this, set in advance the number of times X of periodic measurement, be illustrated in figure 7 as 5 times, judge in step 1104 then whether the times N 1 of periodic measurement reaches the number of times X that sets in advance, explanation enters communications status if reach then.
From the above, by this method, make in the surveying work time, stop communication unit being powered, and in the communication work time, stop measuring unit being powered, thereby reduced the energy expenditure of this oximeter, prolong the working time of this oximeter, solved the technical problem that exists in the prior art.
The above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.