A kind of access method of blood-pressure measurement data
Technical field
The present invention relates to field of signal transmissions, particularly a kind of access method of blood-pressure measurement data.
Background technology
It is the Yi Faren of high blood pressure disease that hypertension threatens the disease occurred frequently of health of people, especially middle-aged and elderly people always
Group, previous people need hospital that could measure blood pressure, and nowadays with the progress of science and technology, present home-use blood pressure instrument is also got over
Used come more, people, which stay indoors to be in, can also measure blood pressure, blood pressure instrument slowly become it is existing in the family must can not
Few measuring instrument, when measuring blood pressure, measurement data is that we weigh the whether normal important parameter of blood pressure, current blood pressure
Instrument can not be transmitted data, data are without preservation, or are only stored in measurement chip, such blood without development interface
The data pressed the preservable data of instrument limited or preserved can be by previously stored data cover, in addition, limited data are also unfavorable
In statistics and finishing analysis to blood pressure data.
The content of the invention
The object of the present invention is to provide a kind of access method of blood-pressure measurement data, using this method convenient for users to preservation
Measure obtained blood pressure data, it is ensured that the security and validity of data, and convenient for users to finishing analysis data, meanwhile,
This method can ensure the security of data acquisition, and unauthorized user malice can be avoided to obtain data.
To achieve the above object, the present invention provides a kind of access method of blood-pressure measurement data, the data including blood pressure instrument
Storage method and high in the clouds blood pressure data acquisition methods, the date storage method of the blood pressure instrument comprise the following steps:
(a) data of blood pressure instrument measurement are sent to the software of mobile terminal by the development interface that is disposed thereon through bluetooth
It is interior;
(b) mobile terminal software preserves the data received in software, while mobile terminal software starts Network Check
Part checks whether network can connect, and such as non-network connectible device waits network connection to upload data;Network can be such as connected, it is mobile
Terminal software by Internet transmission and preserves the data received into cloud database;It is mobile in data procedures are uploaded
Data are encrypted in terminal software.
The high in the clouds blood pressure data acquisition methods of the blood pressure instrument comprise the following steps:
(1) user enters website by network using the purpose website information that request accesses, and is logged in if user does not have
Account number obtains account by registering, then logs into acquisition page of data;If user, which has, logs in account number, directly log in
Into acquisition page of data;
(2) developer is applied to become by applying for that developer's page fills in callback URL information;
(3) if applying successfully, user obtains Developer Key, Developer Secret;If apply for unsuccessful execution
(2) step;
(4) Developer Key, Developer Secret, callback URL information are inputted in the data acquisition page, correctly
User gets BloodAuth request tokens URL after matching;It such as cannot correctly match and repeat this step;
(5) token URL is asked by opening, obtains Back User Key, Back User Secret information;
(6) awarded in data acquisition page input Back User Key, Back User Secret with obtaining terminal user
Power, user gets a URL ' link after obtaining terminal user authorization;Terminal user authorization cannot such as be obtained and repeat this
Step;
(7) by the URL ' links in opening steps (6), user obtains User id information;
(8) User id are inputted in the data acquisition page, user, which obtains, after correct matching accesses data token URL information;Such as
It cannot correctly match and repeat this step;
(9) data token URL is accessed by opening, obtains Access User Key, Access User Secret letter
Breath;
(10) it is correct to match in data acquisition page input Access User Key, Access User Secret information
User gets user data URL afterwards;It such as cannot correctly match and repeat this step;
(11) by opening user data URL, user obtains all data of developer's account number.
Data can be decrypted after getting data.
The data in step (a) in the date storage method of the blood pressure instrument include blood pressure data, device numbering, warp
Degree, testing time.This has great convenience for data analysis and statistics.
The cloud database timing carries out data backup.It can guarantee the security of high in the clouds data with this.
The Developer Key of each account number, Developer Secret information are different from.In this way, it avoids
The repeatability of Developer Key, Developer Secret information, also make it have not regulation, and can improve the peace of data
Quan Xing.
The term of validity of the request token URL is 2 minutes.So advantageously reduce the number that malice obtains data.
Blood pressure instrument is equipped with developer's interface in the present invention, and the data of measurement can be transferred to mobile terminal software, mobile whole
End voluntarily preserves data, when that can not network, waits connection network;When that can network, mobile terminal software is by data transmission
It is preserved to row during cloud database, this improves the security that measurement data preserves process, while it is easy to be lost to avoid data
Risk avoids the risk that malicious user destroys data;User obtains to be needed progressively to verify in data procedures, and is set with verification
Time, can effectively prevent malicious user obtain data or attack cloud database, user after terminal user authorization is obtained,
Data can be quickly got, this will greatly improve development efficiency.In addition, doctor is by analyzing the number in cloud database
According to, can by it is convenient provide for blood pressure patient make the life better in a manner of and eating habit suggestion.
Description of the drawings
Fig. 1 is the flow chart of the present invention;
Fig. 2 is the flow chart that mobile terminal uses in the present invention.
Specific embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
As shown in Figure 1, a kind of access method of blood-pressure measurement data, date storage method and high in the clouds blood including blood pressure instrument
Data capture method is pressed, the date storage method of the blood pressure instrument comprises the following steps:
(a) data of blood pressure instrument measurement are sent to the software of mobile terminal by the development interface that is disposed thereon through bluetooth
It is interior;
(b) mobile terminal software preserves the data received in software, while mobile terminal software starts Network Check
Part checks whether network can connect, and such as non-network connectible device waits network connection to upload data;Network can be such as connected, it is mobile
Terminal software by Internet transmission and preserves the data received into cloud database;
The high in the clouds blood pressure data acquisition methods of the blood pressure instrument comprise the following steps:
(1) user enters website by network using the purpose website information that request accesses, and is logged in if user does not have
Account number obtains account by registering, then logs into acquisition page of data;If user, which has, logs in account number, directly log in
Into acquisition page of data;
(2) developer is applied to become by applying for that developer's page fills in callback URL information;The callback URL information can
To be the loopback address of user oneself.
(3) if applying successfully, user obtains Developer Key, Developer Secret information;If application is unsuccessful
Perform (2) step;
(4) Developer Key, Developer Secret, callback URL information are inputted in the data acquisition page, correctly
User gets BloodAuth request tokens URL after matching;It such as cannot correctly match and repeat this step;
(5) token URL is asked by opening, obtains Back User Key, Back User Secret information;
(6) awarded in data acquisition page input Back User Key, Back User Secret with obtaining terminal user
Power, user gets a URL ' link after obtaining terminal user authorization;Terminal user authorization cannot such as be obtained and repeat this
Step;
(7) by the URL ' links in opening steps (6), user obtains User id information;
(8) User id are inputted in the data acquisition page, user, which obtains, after correct matching accesses data token URL information;Such as
It cannot correctly match and repeat this step;
(9) data token URL is accessed by opening, obtains Access User Key, Access User Secret letter
Breath;
(10) it is correct to match in data acquisition page input Access User Key, Access User Secret information
User gets user data URL afterwards;It such as cannot correctly match and repeat this step;
(11) by opening user data URL, user obtains all data of developer's account number.
The data in step (a) in the date storage method of the blood pressure instrument include blood pressure data, device numbering, warp
Degree, testing time.This has great convenience for data analysis and statistics.
The cloud database timing carries out data backup.It can guarantee the security of high in the clouds data with this.
The Developer Key of each account number, Developer Secret information are different from.In this way, it avoids
The repeatability of Developer Key, Developer Secret information, also make it have not regulation, and can improve the peace of data
Quan Xing.
The term of validity of the request token URL is 2 minutes, and effectively after it, user needs to obtain request token from new
URL.So advantageously reduce the number that malice obtains data.
Blood pressure instrument is equipped with developer's interface in the present invention, and the data of measurement can be transferred to mobile terminal software, mobile whole
End voluntarily preserves data, when that can not network, waits connection network;When that can network, mobile terminal software is by data transmission
It is preserved to row during cloud database, this improves the security that measurement data preserves process, while it is easy to be lost to avoid data
Risk avoids the risk that malicious user destroys data;User obtains to be needed progressively to verify in data procedures, and is set with verification
Time, can effectively prevent malicious user obtain data or attack cloud database, user after terminal user authorization is obtained,
Data can be quickly got, this will greatly improve development efficiency.In addition, doctor is by analyzing the number in cloud database
According to, can by it is convenient provide to the user make the life better in a manner of and eating habit suggestion.
As shown in Fig. 2, mobile terminal can be mobile phone, it is using step specifically:
Whether the mobile terminal of (1-1) user is already installed with APP softwares, if execution (1-2) step is fitted without, if
Installation performs (1-3) step;
(1-2) downloads APP softwares, on mobile terminal;
Whether (1-3) user has had registered account on APP softwares, (1-4) step is performed if not registering, if
Possess account and perform (1-5);
(1-4) register account number on APP softwares;
(1-5) logs in cloud database, obtains historical data or carries out data storage.