The system of selection of via node in a kind of community medicine sign data wireless transmission
Technical field
The invention belongs to technical field of data transmission, be specifically related to the system of selection of via node in a kind of community medicine sign data wireless transmission.
Background technology
Community medicine provides the Health Care Services easily of integration, refers to that patient is in some medical treatment and the observation after hospitalize of changing the place of examination before hospital or training.Community medicine is worked under the concrete background of family and community.Present stage, the medical resource of China 80% concentrates on 20% big city, causes seeing a doctor the stand-by period long, and the berth of being in hospital is anxious to be lacked.Perfecting community medicine network is one of Main Means solving the current difficulty and high cost of getting medical of China, is also more rational Allocation of Medical Resources mode.Community medical institutions will become the main body of the urban community health services such as prevention and health care, basic medical, health education, disease control.
" Chinese community medicine industry market prediction and investment strategy planning application report prediction " shows, China's community medical service is still in the starting stage.2009,2.98% of national Community Health Service center and service station Jin Zhan health organ sum, its health workers only account for 4.52% of health workers' sum.The human resource situation of community medical institutions has also limited diagnosis and treatment service level.
Therefore, using Wearable equipment to carry out real-time sign monitoring to patient the old and the weak in community and family, and the abnormal health that response occurs in time, is important development direction and the means of existing community medicine.Old man or patient by day even evening all unsuperviseds, by measuring the equipment of sign data in wearing (such as Wrist belt-type) with it, can carry out real-time measurement to healths such as heart rate, blood pressure, blood oxygen, motion states (whether falling), and send the data to community hospital by wireless signal.Once generation abnormal conditions, can give first aid to the fastest speed.
At present, to the Real-time Collection of the sign state such as heart rate, blood pressure, blood oxygen, had ripe technology and product, therefore Wearable equipment one of the key issue that will solve of still needing is the real-time radio transmission of sign data.
The wireless transmission method of Wearable equipment is mainly divided into two kinds:
1. the network or the Wifi that provide by operators such as GSM, 3G, 4G carry out transfer of data.The advantage of this transmission means is that the covering of signal is comprehensive, real-time good, realizes simple.Can establish the link by the server of the base station of operator or the AP of Wifi and community hospital by the mode of similar surfing Internet with cell phone.But its shortcoming is also significantly, and the electric weight that this data transfer mode consumes is larger, and due to the restriction such as weight, volume of Wearable equipment, battery electric quantity is less, is difficult to the data communication that maintains for a long time, repeatedly, and flying power is about 1 day conventionally.
2. sink devices is installed in community, will dresses equipment and meeting point networking by MANET agreements such as zigbee, thereby data are sent to meeting point from wearing equipment, then send to the Internet by meeting point by cable network, finally reach the server of community hospital.The main advantage of this transmission means is power saving, and Zigbee adopts 802.15 agreements, can effectively reduce energy consumption, and battery flying power can reach 3-6 month.But the greatest difficulty of this method is how can to ensure that wearing equipment can be in real time (after abnormal generation short as far as possible time in), data are sent.
Use Wireless Ad Hoc Networks can carry out the wireless transmission of sign data.In community, patient and old man all wear the Wearable equipment of monitoring sign.The sign data that arrives patient when patient's Wearable equipment Preliminary detection is abnormal, because communication range is limited, cannot, directly to meeting point transmission data, therefore data first be sent to passerby's Wearable equipment, entrust it to send the data to meeting point, at this moment on commission equipment is called via node.Through the limited time, passerby moves near of meeting point, and on commission equipment is by the data retransmission just now receiving to meeting point, and meeting point sends to community hospital by cable network again.This method had both extended the battery flying power of Wearable equipment, avoid again the cost of a large amount of installation meeting points, can ensure that data send to community medicine within the short as far as possible time, met the requirement of Wearable equipment sign data fast transport in community medicine simultaneously.
The on commission equipment of How to choose is one of key of this technology.Select equipment most possibly the fastest and that meeting point communicates as via node, can significantly improve reliability and the speed of transmission, and reduce the energy consumption of equipment.
Summary of the invention
The present invention is directed to community medicine sign data wireless transmission problem, propose the system of selection of via node in a kind of community medicine sign data wireless transmission.
The main thought of the inventive method is: each node is at the meeting point track of wearer's daily on record process; a for example node is often understood and is passed through in order a within a short period of time; b, these 3 meeting points of c, abc is exactly a track sequence of this node so.If node has passed through ab in current time, it will be very large through the probability of c so, can estimate it simultaneously and arrive the time of c.In the time that abnormal nodes needs other its forwarding datas of node side to meeting point, abnormal nodes is first broadcasted, near normal node after receiving broadcast, utilize self track sequence to calculate this node and anticipate the time that reaches next meeting point, and send to abnormal nodes.Abnormal nodes is therefrom selected the normal node that may reach the earliest next meeting point, as via node.
The inventive method comprises the track that records all nodes and pass through meeting points, time, the required via node of selection abnormal nodes that estimation node arrives next meeting point.
Described meeting point is the equipment for receiving and send data, can carry out transfer of data by communication with near Wearable equipment, can carry out transfer of data by cable network and community hospital's server.
Described node is for needing to carry out the patient of sign monitoring, the Wearable equipment that old man wears in community, can gather at any time the sign data of human body, there is wireless transport module, can carry out transfer of data by communication with neighbouring meeting point or other nodes.
Described abnormal nodes is the Wearable equipment of wearer sign data when abnormal.
Described via node is entrusted for accepting abnormal nodes, the sign data of abnormal nodes is transmitted to other normal node of meeting point.
Record the track of all nodes through meeting point, each node records the track S set of wearer through meeting point in normal course of operation, and concrete steps are:
Step 1, B=
,
...,
be the set of all meeting points in community,
for the number of meeting point; Δ t is set for the double shortest time interval allowing through meeting point, node does not stop between two meeting points;
Step 2, arrangement set S=Φ is set, Φ is null set;
Step 3, w=1 is set, represents when w sequence of pre-treatment; Current sequence s is set
w=ε, ε is empty sequence; K=0 is set, and k is current sequence s
wthe meeting point number of process; Create s
wtime array T
w[], is used for record and reaches s
win time of each meeting point;
Step 4, node are monitored the broadcast singal that meeting point sends, if node receives meeting point
broadcast singal, 1≤
≤
, s
w=s
w<>
, the bound symbol that wherein <> is sequence, T
w[1]=t
1, wherein t
1for receiving the time of this broadcast singal, then carry out k=k+1;
Step 5, node are monitored the broadcast singal that meeting point sends, if receive meeting point
broadcast singal, 1≤
≤
, carry out k=k+1; Receive meeting point
time of broadcast singal be t
k;
If step 6 t
k-T
w[k-1]≤Δ t, s=s<>
, T
s[k]=t
k; Repeated execution of steps 5.
If step 7 t
k-T
w[k-1] > Δ t, by sequence s
wput into S set, carry out S=S ∪ { s
w;
Step 8, execution w=w+1, represent to start to process next sequence; Sequence s is set
w=
, create s
wtime array T
w[]; T
w[1]=t
k; K=1 is set; Repeated execution of steps 4.
Estimate that node arrives the time of next meeting point, each node, after the broadcast that receives abnormal nodes, calculates the time weighting t' that self arrives next meeting point, and concrete steps are:
Step I, obtain node current arrangement set S, current sequence s
wand s
wthe meeting point number k of process;
If step II s
wfor sky, i.e. s
w=ε, t
k+1=∞; Directly execution step n.
Step III, use s
wwith arrangement set S={s
1, s
2..., s
w-1calculate as follows:
1. a=1 is set, represents a sequence s in current treatment S
a;
P=0, p represents the current s that matched in S
wsequence number;
T'=0, t' represents from s
warrive the time weighting of next meeting point;
2. from S, get s
aif, s
ws
asubsequence, i.e. s
a=s
a-prefs
ws
a-suf, and s
a-sufbe not empty, p=p+1, t'=t'+T
a[| s
a-prefs
w|+1]-T
a[| s
a-prefs
w|], wherein s
a-prefrepresent s
amiddle s
wthe prefix of subsequence, s
a-sufrepresent s
amiddle s
wthe suffix of subsequence, | s
a-prefs
w| represent sequence s
a-prefs
wthe number of middle element;
3. a=a+1 is set; If 2. a≤w-1, jump to;
④t'=?t'×(w-1)/p
2;
Step IV, return to the t' obtaining in step III.
Select the required via node of abnormal nodes, abnormal nodes is selected other nodes around, determines the via node that can sign data be sent to the shortest time to meeting point, and concrete grammar is:
First, abnormal nodes is broadcasted towards periphery, requires to carry out data retransmission;
Then, other nodes that receive abnormal nodes broadcast obtain the time weighting t' of this node, send to abnormal nodes as replying;
Finally, abnormal nodes, in all nodes of replying, selects the node of t' minimum as via node.
The inventive method, for the sign data wireless transmission of Wearable equipment in community medicine, proposes a kind of system of selection of via node.The method is analyzed by the movement locus to node, prediction node arrives the expected time of next meeting point, select fastest to the node that reaches meeting point as via node, send to it to forward patient's sign data, this method ensures that data send to community hospital within the short as far as possible time.
Brief description of the drawings
Fig. 1 is the method schematic diagram of node of record through the track of meeting point.
Embodiment
A system of selection for via node in community medicine sign data wireless transmission, comprises and records all nodes through the track of meeting point, time, the required via node of selection abnormal nodes that estimation node arrives next meeting point.
Meeting point is the equipment for receiving and send data, can carry out transfer of data by communication with near Wearable equipment, can carry out transfer of data by cable network and community hospital's server.Meeting point is arranged on the position such as turnpike road in the cell gate gateway, gateway, community, community of community conventionally; Meeting point can periodically send broadcast data packet; The wireless signal covering radius of meeting point is r.
Node, for needing to carry out the patient of sign monitoring, the Wearable equipment that old man wears in community, can gather the sign data of human body at any time, has wireless transport module, can carry out transfer of data by communication with neighbouring meeting point or other nodes.The covering radius of the wireless signal of node is r.
Abnormal nodes is the Wearable equipment of wearer sign data when abnormal.Abnormal nodes attempts, in the fastest mode, sign data is sent to meeting point.
Via node is entrusted for accepting abnormal nodes, the sign data of abnormal nodes is transmitted to other normal node of meeting point.Send to from abnormal nodes at sign data the process of meeting point, may be through 0 to multiple via nodes.
Record the track of all nodes through meeting point, each node records the track S set of wearer through meeting point in normal course of operation, and as shown in Figure 1, concrete steps are:
Step 1, B=
,
...,
be the set of all meeting points in community,
for the number of meeting point; Δ t is set for the double shortest time interval allowing through meeting point, node does not stop between two meeting points;
Step 2, arrangement set S=Φ is set, Φ is null set;
Step 3, w=1 is set, represents when w sequence of pre-treatment; Current sequence s is set
w=ε, ε is empty sequence; K=0 is set, and k is current sequence s
wthe meeting point number of process; Create s
wtime array T
w[], is used for record and reaches s
win time of each meeting point;
Step 4, node are monitored the broadcast singal that meeting point sends, if node receives meeting point
broadcast singal, 1≤
≤
, s
w=s
w<>
, the bound symbol that wherein <> is sequence, T
w[1]=t
1, wherein t
1for receiving the time of this broadcast singal, then carry out k=k+1;
Step 5, node are monitored the broadcast singal that meeting point sends, if receive meeting point
broadcast singal, 1≤
≤
, carry out k=k+1; Receive meeting point
time of broadcast singal be t
k;
If step 6 t
k-T
w[k-1]≤Δ t, s=s<>
, T
s[k]=t
k; Repeated execution of steps 5.
If step 7 t
k-T
w[k-1] > Δ t, by sequence s
wput into S set, carry out S=S ∪ { s
w;
Step 8, execution w=w+1, represent to start to process next sequence; Sequence s is set
w=
, create s
wtime array T
w[]; T
w[1]=t
k; K=1 is set; Repeated execution of steps 4.
Estimate that node arrives the time of next meeting point, each node, after the broadcast that receives abnormal nodes, calculates the time weighting t' that self arrives next meeting point, and concrete steps are:
Step I, obtain node current arrangement set S, current sequence s
wand s
wthe meeting point number k of process;
If step II s
wfor sky, i.e. s
w=ε, t
k+1=∞; Directly execution step n.
Step III, use s
wwith arrangement set S={s
1, s
2..., s
w-1calculate as follows:
1. a=1 is set, represents a sequence s in current treatment S
a;
P=0, p represents the current s that matched in S
wsequence number;
T'=0, t' represents from s
warrive the time weighting of next meeting point;
2. from S, get s
aif, s
ws
asubsequence, i.e. s
a=s
a-prefs
ws
a-suf, and s
a-sufbe not empty, p=p+1, t'=t'+T
a[| s
a-prefs
w|+1]-T
a[| s
a-prefs
w|], wherein s
a-prefrepresent s
amiddle s
wthe prefix of subsequence, s
a-sufrepresent s
amiddle s
wthe suffix of subsequence, | s
a-prefs
w| represent sequence s
a-prefs
wthe number of middle element;
3. a=a+1 is set; If 2. a≤w-1, jump to;
④t'=?t'×(w-1)/p
2;
Step IV, return to the t' obtaining in step III.
Select the required via node of abnormal nodes, abnormal nodes is selected other nodes around, determines the via node that can sign data be sent to the shortest time to meeting point, and concrete grammar is:
First, abnormal nodes is broadcasted towards periphery, requires to carry out data retransmission;
Then, other nodes that receive abnormal nodes broadcast obtain the time weighting t' of this node, send to abnormal nodes as replying;
Finally, abnormal nodes, in all nodes of replying, selects the node of t' minimum as via node.