CN104301407B - The method and apparatus of Backup Data in distributed monitor system - Google Patents
The method and apparatus of Backup Data in distributed monitor system Download PDFInfo
- Publication number
- CN104301407B CN104301407B CN201410530270.3A CN201410530270A CN104301407B CN 104301407 B CN104301407 B CN 104301407B CN 201410530270 A CN201410530270 A CN 201410530270A CN 104301407 B CN104301407 B CN 104301407B
- Authority
- CN
- China
- Prior art keywords
- server
- patient monitor
- connection
- data
- sent
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Measuring And Recording Apparatus For Diagnosis (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The present invention relates to a kind of method of the Backup Data in distributed monitor system, comprise the following steps:When the connection for confirming patient monitor and original connected server disconnects, acquirement patient monitor storage, the prior server list for being provided with the order of connection;According to the order of server in the server list, each address corresponding to server in the list is obtained successively, and connection request is sent to the server one by one;As server allows to connect, then the monitoring data for connecting and obtaining the patient monitor is established with the server and uploads to the server that connection is established with the patient monitor;Otherwise repeat the above steps.The invention further relates to a kind of device for realizing the above method.Implement the method and apparatus of Backup Data in the distributed monitor system of the present invention, have the advantages that:It can automatically be switched between multiple servers, back up its data.
Description
Technical field
The present invention relates to medical menitoring system, more specifically to Backup Data in a kind of distributed monitor system
Method and apparatus.
Background technology
Use of the central monitoring system in hospital is popularized very much, is divided into BS and the major classes of CS two according to networking mode.CS
The central monitoring system of mode occurs earliest, and it uses Socket at central station end(Or serial ports)Number is transmitted with patient monitor
According to.User needs to install special client to connect central station.This system architecture has single central station(Or service
Device);The appearance of BS mode central stations so that user computer directly accesses monitoring data by IE browser and is achieved;BS side
The central monitoring system of formula is also in central station end Socket(Or serial ports)Completion interacts with patient monitor data.This germline
System can use the structure of multiple central stations, and employing database synchronization between central station completes data sharing, DB Backup etc.
Strategy guarantees data security;User may browse through different network address and access different central monitoring systems.Also have in BS modes
A kind of different framework, web server is all built-in with all Ethernet patient monitors in central monitoring system.User can be straight
Connect and log in the web services on patient monitor to check and operate monitoring data.Now, patient monitor is if desired accessed, it is necessary to step on one by one
Enter the web services on patient monitor, on condition that knowing correct IP address, naturally it is also possible to log in patient monitor using central station.
This framework can be relatively more to the limitation of operation, because what user directly changed is data on original monitor.Supervise simultaneously
Shield data are dispersed on each patient monitor, and the management of data is cumbersome, and the guarantee of data safety needs the function of other auxiliary.
This framework can not provide support to serial ports patient monitor, other non-Ethernet patient monitors.It is view of the above, it will be seen that existing
Central monitoring system, influenceed by factors such as networking, deployment, performances, there is multiple identical central monitoring systems for many hospitals
System.Have plenty of what is isolated mutually between these systems, having plenty of can interdepend what is completed historical data synchronization or back up.But
Be when some central station breaks down, the patient monitor real time data below this central station cannot on other central stations quilt
It was observed that.Generally occur within the patient monitor under the central station of failure can after being safeguarded to failure central station or switching monitoring
Instrument is connected to other central stations and carrys out access system again.But this mode for switching or accessing again can be to the work of medical personnel
Bring many inconvenience, especially intensive care unit(ICU)In the observation of monitoring data can be pretty troublesome, be more seriously likely to occur
Malpractice.
The content of the invention
The technical problem to be solved in the present invention is, above-mentioned for prior art needs to safeguard server or people
Work carries out the defects of connection switching between server and patient monitor, there is provided one kind can be carried out between multiple servers automatically
The method and apparatus of Backup Data in the distributed monitor system of connection switching and data backup.
The technical solution adopted for the present invention to solve the technical problems is:Construction one kind backs up in distributed monitor system
The method of data, the monitor system include multiple servers and multiple patient monitors, each patient monitor and the multiple server
In one uploaded to by network connection and obtained monitoring data in connected server, it is characterised in that
The method of the data backup comprises the following steps:
A)When the connection for confirming patient monitor and original connected server disconnects, patient monitor storage, thing are obtained
First it is provided with the server list of the order of connection;
B)According to the order of server in the server list, obtain successively in the list corresponding to each server
Address, connection request is sent to the server one by one;As server allows to connect, then next step is performed;Otherwise, this step is repeated
Suddenly;
C)Establish and connect with the server;
D)The monitoring data that the patient monitor obtains is uploaded to this and establishes the server connected with the patient monitor.
Further, also comprise the following steps:
E)As repeat step B)When upper server is still not connected with after setting time, can judgement receive the transmission of other servers
Broadcast message, if, perform next step, otherwise, when the patient monitor initial access network in the way of search server
And connection is established, then perform step C);
F)Whether include the mark of the patient monitor in the broadcast message for judging to receive one by one, in this way, perform next step
Suddenly, otherwise, when the patient monitor initial access network in the way of search server and establish connection, then perform step C);
G)The server address in all broadcast messages for including the patient monitor mark is obtained, and is sent to connection and asks
Ask;Allow connection message as server returns, then step C);As server does not allow connection or without response, then this step is repeated,
Connection is not allowed or without response to next server address transmission connection request, such as Servers-all, by the patient monitor
Mode during initial access network searches server and establishes connection, then performs step C).
Further, broadcast message is constantly sent when the server is online at set time intervals respectively;Institute
State server address, server connecting end slogan and the patient monitor mark for allowing access that broadcast message includes being arranged in order.
Further, the step G)Further comprise following steps:
G1)Sequencing according to the broadcast message received obtains server address and end in a broadcast message
Mouthful, and send connection request to the server;
G2)Opening intercepts port, receives receiveing the response from the server;
G3)Judge whether to receive the message for allowing connection that the server is sent, in this way, establish and connect with the server
Connect;Such as not receiving server response or server response more than setting time does not allow to connect, then judges whether also to receive
Broadcast message do not send connection request, if any return to step E1), connection is sent to the server of not connected broadcast message
Request;Such as nothing, when the patient monitor initial access network in the way of search server and establish connection.
Further, the step G)Further comprise following steps:
G4)Receive the connection request that patient monitor is sent;
G5)Obtain patient monitor therein to represent, and the mark is searched in list of devices, such as find, perform next step;
Otherwise, the connection with the patient monitor is disconnected;
G6)Establish the connection with the patient monitor and it is managed.
Further, the step D)Further comprise following steps:
D1)Receive and handle the current monitoring data that the patient monitor is sent;
D2)Using package number polling routine, currently transmitted next package number is gradually subtracted one, and described in requirement
The packet that the package number that patient monitor sends to obtain is pointed to, all prisons after the patient monitor will go offline for the last time
Shield packet is sent out;
D3)Current data are arrived after being gone offline by package number sequential storage last time.
Further, the step D2)Further comprise:
D21)The package number that current patient monitor is sent is obtained, packet is put into after subtracting one by the package number
In numbering query statement, and the instruction is sent to patient monitor;
D22)The patient monitor is by calculating the data in last go offline time and its inquiry packet instruction that receives
Packet number judge whether need send go offline after packet.If any execution next step;Otherwise, history number is exited
According to transmission;
D23)The patient monitor receives the instruction, and finds the packet of its sensing, is marked as historical data
After send.
The present embodiment further relates to a kind of device for realizing the above method, including:
Server list obtains module:For being disconnected when the connection for confirming patient monitor and original connected server
When, obtain server list that patient monitor stores, being provided with the order of connection in advance;
Server connection request module:For the order according to server in the server list, obtain successively described in
Each address corresponding to server in list, connection request is sent to the server one by one;As server allows to connect, then call
Server-connection module;
Server-connection module:Connected for being established with the server;
Data uploading module:Monitoring data for the patient monitor to be obtained, which uploads to this and established with the patient monitor, to be connected
The server connect.
Further, in addition to:
Broadcast judge module:For being still not connected with taking after the server connection request module is in setting time
During business device, judge that the broadcast message of other servers transmission can be received, if, call patient monitor mark judge module;Otherwise,
Invoking server link block;
Patient monitor mark judge module:For whether including the patient monitor in the broadcast message that judges to receive one by one
Mark, in this way, call broadcasting server link block, otherwise, invoking server link block;
Broadcasting server link block:For obtaining the server in all broadcast messages for including the patient monitor mark
Address, and it is sent to connection request;Allow connection message as server returns, then invoking server link block;Such as service
Device does not allow connection or without response, then sends connection request to next server address;As Servers-all does not allow to connect
Connect or without response, then invoking server connection request module.
Further, the data uploading module further comprises:
Current data reception unit:The current monitoring data sent for receiving and handling the patient monitor;
Inquiry of historical data unit:For using package number polling routine, by currently transmitted next package number
Gradually subtract one, and require the packet that the package number that the patient monitor sends to obtain is pointed to, until the patient monitor will most
All monitoring data bags after once going offline afterwards are sent out;
History data store unit:For arriving current number after being gone offline by package number sequential storage last time
According to.
Implement the method and apparatus of Backup Data in the distributed monitor system of the present invention, have the advantages that:By
In multiple servers on network be present, these servers are respectively arranged with the patient monitor mark that can be connected, and these are serviced
Device sends broadcast packet according to setting time on network respectively, and the address of oneself and acceptable patient monitor mark are sent to
On network, so, when the server that any one patient monitor is connected breaks down, the patient monitor can receive above-mentioned broadcast
Bag, obtain that the server address of connection can be established with oneself, and establish a connection, back up data to thereon.So, supervise
When the connection protected between instrument and server is broken down, automatically it can be switched between multiple servers, and back up it
Data.
Brief description of the drawings
Fig. 1 be Backup Data in distributed monitor system of the present invention method and apparatus embodiment in data back up method
Flow chart;
Fig. 2 is by the flow chart for the connection server that broadcasts the message in the embodiment;
Fig. 3 is the particular flow sheet that the embodiment patient monitor is connected with server;
Fig. 4 is the flow chart that historical data uploads in the embodiment;
Fig. 5 is apparatus structure schematic diagram in the embodiment.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the present invention is further illustrated.
As shown in figure 1, in the distributed monitor system of the present invention in the method and apparatus embodiment of Backup Data, monitoring
The data backup of instrument and server comprises the following steps:
Step S11 determines that the connection between patient monitor and server disconnects:In the present embodiment, distributed monitor system
Including multiple servers and multiple patient monitors, these servers and patient monitor are connected on same network, wherein, each monitoring
Instrument passes through network connection with one in the multiple server(In the presence of or establish interface channel)And obtained monitoring
Data are uploaded in connected server;The connection inventory of patient monitor is stored with server, specifies the server can be with
The patient monitor mark of connection;The patient monitor mark can be title, network address, identity code or the position of setting of patient monitor
Put etc. parameter.In the present embodiment, when being electrically connected to network on patient monitor(I.e. patient monitor initial connection server when), it is
The connection server inventory being stored therein by transferring, according to the order of server in the inventory, connection request is sent one by one,
If successful connection, attempt to connect following server.I.e. obtain patient monitor storage, be provided with the order of connection in advance
Server list;According to the order of server in the server list, each server pair in the list is obtained successively
The address answered, connection request is sent to the server one by one;As server allows to connect, then establish and connect with the server, and
Upload monitoring data;Otherwise, repeated the above steps using different server address, connected until establishing always(Be probably and
Any one server in above-mentioned inventory establishes connection).In the inventory, including the title of server, address and its it is used for
The port of connection;Can sends connection request to server after patient monitor obtains these parameters, when server allows connection,
The two establishes interface channel, and the monitoring data that patient monitor obtains will be formed packet and upload to the server and store;Work as clothes
When business device often receives the packet that a patient monitor is sent, one determination signal of the patient monitor can be all returned, represents server
Receive the packet.But for various reasons, the connection of the server and patient monitor may be interrupted, particularly in server
In the case of failure.In general, the performance of this failure is that server is not responded to the packet that patient monitor uploads,
I.e. server will not send the determination signal for receiving packet.When there is above-mentioned interruption situation, this step is performed, it is determined that monitoring
Instrument and the interface channel of its server being originally connected are already off, and patient monitor does not receive the determination signal that server is beamed back.
Can also it not received accordingly in scheduled duration by central station further, it is also possible to be detected and whether connected according to network signal
Packet judges whether that central station and patient monitor disconnect.
Step S12 obtains the server list of storage, sends connection request one by one:In this step, as in previous step
The patient monitor of description be initially connected to it is operated during network as, obtain be previously stored in patient monitor can connection server
Server inventory, and send each server in connection request to the inventory one by one according to the inventory;Please when sending connection
When asking to a server, the server may allow to connect or not allow to connect or not respond, and allow the situation of connection
Under, patient monitor attempts to connect next server, performs next step;When server reply does not allow to connect or does not have back
When multiple(Within the time of a setting), patient monitor is to the server transmission connection request on next inventory, repetition the above;
If the server on whole inventories had all tried, but all then repeated this step without in connection.
The server for allowing connection of the first reply of step S13 connections:In this step, due to the connection request of transmission
Being serviced device receives and allows to connect, and in this step, will connect the server(Even if there are multiple servers to connect, but
Being replied at first due to the server allows to connect, and patient monitor will not attempt to connect other servers)With the patient monitor, at the two
Between establish interface channel.After having performed this step, next step is performed.
Step S14 uploads data:In this step, the service by being originally stored in the connection inventory in patient monitor
The mode of device address, the patient monitor go offline and then secondary connection on another be connected to server on network.Therefore,
The monitoring data currently obtained is uploaded on the server and stored.In some cases, can also be by the patient monitor most
Current monitoring data is arrived after once going offline afterwards(Or it is historical data)The server is uploaded to, to ensure the complete of monitoring data
Whole property.
Generally, when the server in the server list stored in patient monitor can connect, above-mentioned steps are enough
The patient monitor to go offline is connected in secondary and online server and carries out data backup.But answering due to network environment
Polygamy, in the present embodiment, it is also possible to another situation occur, i.e., the server in the patient monitor server list is due to kind
Kind reason can not all connect.Now, after the S12 setting times that repeat the above steps, the patient monitor still can not connect, and show this
Server in server list is likely to occur problem, therefore, in the present embodiment, can perform following steps(Refer to figure
2):
Whether step S21 receives broadcast message, performs next step in this way;Otherwise, it is initial to perform above-mentioned patient monitor
Connection Step, until establishing connection with any one server in the server inventory in above-mentioned patient monitor, that is, jump to step
Rapid S25.
Whether this patient monitor mark is carried in step S22 broadcast messages:In this step, the broadcast received is judged
Whether the mark of this patient monitor is carried in information.Specifically, exactly the broadcast message received is unpacked, taking-up is wherein set
What carrying was put in positioning can be with the server(Send the server of the broadcast message)The mark of the patient monitor of connection, and with
The mark of this patient monitor is compared, if identical, is judged as carrying the mark of this patient monitor, the clothes in the broadcast message
Business device can connect with this patient monitor, perform next step;If it is not the same, then it is judged as that the server can not be with this patient monitor
Connection, jumps to step S25.
Step S23 obtains the server address in the broadcast message, sends connection request:In this step, broadcast is taken out
Server address and connectivity port in message send connection request as destination address to the server.In the present embodiment,
Above-mentioned server address and connectivity port are also in the specified location in the broadcast message, as long as broadcast message is unpacked simultaneously
Read the data of specified location, you can obtain above-mentioned server address and connectivity port.It is noted that in the present embodiment
In, patient monitor is likely to be received multiple broadcast messages from different server, in this case, according to the priority received
Order carries out above-mentioned judgement to multiple broadcast messages, only when all broadcast messages are all without the mark of this patient monitor,
Step S24 can be performed;When wherein there is the mark that this patient monitor is carried in multiple broadcast messages, by according to the order received
Next step is performed one by one, i.e., according to reception order, takes out the server address in broadcast message respectively, and send connection one by one
Request, until connection is established.
Whether step S24 servers allow to connect:After patient monitor sends connection request, begin to listen on network
Information, is waited and what the reception server was sent allows the echo message of connection, if receive that the server sends allows to connect
The information connect, then it is judged as that server allows to connect, performs next step;If above-mentioned clothes are not received by setting time
The information for allowing connection that business device is sent, then be judged as that server does not allow to connect, and performs step S25.Similarly, in this implementation
In the case of this patient monitor mark being present in the above-mentioned broadcast message that multiple servers be present and send in example, when judging that one services
, it is necessary to which another server sends connection request when device does not allow to connect, and wait its response;Only carrying is sent all
The server of the broadcast message of patient monitor mark is all judged as in the case of not allowing connection, can just jump to step S17
Perform.
Step S25 when patient monitor initial access network by the way of connection server:In this step, according to above-mentioned
The mode that patient monitor initially connects, connection request is sent to the server connected on inventory stored in the patient monitor one by one, and
Its response is waited, until connection is established.In fact, in the present embodiment, this step and above-mentioned steps S12 are roughly the same.
After having performed this step, step S26 is performed.
The server and the patient monitor that step S26 connections are replied:In this step, due to the connection request bedding and clothing of transmission
Business device receives and allows to connect, and in this step, will connect the server and the patient monitor, and it is logical to establish connection between
Road.In fact, in the present embodiment, this step and above-mentioned steps S13 are roughly the same.After having performed this step, it will redirect
Go to perform to step S14.
Fig. 3 shows that patient monitor is when obtaining a server address carried by broadcast message in the present embodiment, with this
Server establishes the specific steps of connection.In figure 3, the step of patient monitor establishes connection with server is as follows:
Step S31 obtains the server address in broadcast message:In this step, the broadcast that patient monitor is received disappears
Breath unpacks, and the specified location of the information after unpacking obtains sending the address and its connection end of the server of the broadcast message
Mouthful.
Step S32 sends connection request:In this step, by the server address obtained in above-mentioned steps and connection end
Mouth is used as destination address, is formed and sends connection request to above-mentioned server.
Step S33 takes out the patient monitor mark in connection request, is searched in inventory:In step, in server reception
The connection request that patient monitor is sent is stated, and takes out the patient monitor mark carried in the connection request, the patient monitor is the company of sending
Connect the patient monitor of request;Afterwards, the patient monitor mark is searched in the patient monitor inventory of its own storage, if the patient monitor mark
Know in the patient monitor inventory of server, identify the server and be set and can be connected with the patient monitor, then the server is sent out
Go out echo message, expression allows to connect, and then performs step S35;If the patient monitor mark in above-mentioned inventory, does not service
Device does not send the response for allowing connection.
Step S34 is opened and is intercepted port, the echo message of the reception server:In this step, when patient monitor transmission is above-mentioned
After connection request, that opens its mixed-media network modules mixed-media intercepts port, to receive the echo message of server.It is noted that
Because step S34 and S33 occur on different physical supports, so, from the time, actually step S34 is hair
Life is preceding, and the arrangement mode of the two steps is not offered as step S34 mono- and is scheduled on step just for the sake of the convenience of narration herein
Occur before rapid S33.
Step S35 establishes connection:In this step, patient monitor and server establish connection, in order to which patient monitor can incite somebody to action
The monitoring data that historical data after going offline currently obtains is transferred to above-mentioned server and carries out data backup.
Step S36 is managed to patient monitor:In this step, due to having been built between patient monitor and server
Connection is stood, it is possible to which certain management is carried out to above-mentioned patient monitor by server.Such as, it is desirable to patient monitor uploads history
Data etc..
Fig. 4 shows in the present embodiment how by current monitoring data bags to obtain the flow of historical data.In Fig. 4, should
Flow includes:
Step S41 is by obtaining its package number in current data packet:As described above, when patient monitor and a new clothes
It is engaged in after device foundation connection, patient monitor starts currently available monitoring data uploading to the server.In the present embodiment, each
The packet that patient monitor is sent is provided with package number, and it is demonstrated by the order of packet.In this step, there is above-mentioned prison
Shield instrument establishes after connection first packet transmitted with new server and obtains the numbering of the packet.
The package number is subtracted one by step S42, it is required that package number, and the packet of the requirement is compiled
Number it is sent to patient monitor:The numbering of packet obtained above is subtracted one, a packet before obtaining current data packet is compiled
Number, that is, the package number required, the packet is historical data, i.e., in patient monitor go offline after and the new server of connection it
Preceding packet.The packet is not transferred to server holding due to going offline.
Step S43 obtains the model of historical data bag by the package number of go offline time and the above-mentioned requirements of last time
Enclose:In this step, the time point to be gone offline by patient monitor and the package number of above-mentioned requirements, obtain the patient monitor and going offline it
Afterwards, the physiological parameter data bag gathered before the connection with server is re-established.In the present embodiment, because starting time is
It is known.The time interval for sending packet is known, meanwhile, the numbering of current data packet(Or the packet of above-mentioned requirements
Numbering)It is known, so the data for being not difficult to obtain therebetween included by how many packet are not delivered to server.
Step S44 judges whether historical data bag is sent completely, and in this way, performs lower step S46, otherwise, performs step
S45:In this step, due to obtaining needing to send multiple packets in above-mentioned steps, so judging above-mentioned go through in this step
Whether history packet is sent, and in this way, performs step S46;Otherwise step S45 is performed.
Step S45 is searched and is concurrently sent packet corresponding to the package number of above-mentioned requirements:In this step, due to still
Need to send historical data and the package number of known requirement, so searching the packet of the numbering on patient monitor, find
After be sent to server.It is noted that the packet is not current data.But historical data, so servicing
It is labelled on device, it is historical data to show it.After performing this step, using the package number of above-mentioned requirements as currently
Numbering, jumps to step S42;
Step S46 exits historical data transmission, only sends current data packet:In this step, it is all due to having sent
Historical data(Gone offline by patient monitor last time to all packets current data packet), gone through so not retransmiting
History packet, and current monitoring data is only sent to above-mentioned server.
In the present embodiment, above-mentioned distributed monitor system needs the central station of 2 and more than 2(Server), often
Individual central station can both access patient monitor in real time, other can also be waited to allow the patient monitor of access to access at any time, so as to realize
There is the target of multiple backup central stations.For example, in the case where there is two central stations, central station 1 is intercepted specific using Socket
Port waits patient monitor connection.The central station address that patient monitor configures according to itself is connected to central station 1.How many patient monitor
Central station 1 is connected to, there is the TCP of respective numbers(Transmission Control Protocol)It is connected to central station 1
Between patient monitor;Central station 2 intercepts particular port using Socket and waits patient monitor connection.Patient monitor configures according to itself
Central station address is connected to central station 2.How many patient monitor is connected to central station 2, and the TCP that there is respective numbers is connected to
Between central station 2 and patient monitor.In the present embodiment, above-mentioned patient monitor with central station is connected by Ethernet under normal conditions
's;But in some cases, patient monitor may also be non-Ethernet interface, at this time, it may be necessary to the patient monitor and central station it
Between connect a non-Ethernet AM access module so that should be linked into without patient monitor of Ethernet interface by virtual mode
On above-mentioned central station.After non-Ethernet AM access module starts, according to the central station address of its configuration, non-Ethernet will be linked into and connect
Enter the patient monitor of module virtually and be connected to central station, can be central station 1 or central station 2.Deposited under non-Ethernet AM access module
In how many individual patient monitors, then the TCP that respective numbers are there is between non-Ethernet AM access module and central station is connected.
The example of one reality is, the TCP that central station 1 and central station 2 first start socket intercepts access service, waits
Come from the patient monitor connection of network;Then UDP is started(User Datagram Protocol)Address broadcast service, it is generally every
The broadcast once available link address of itself, port and the additional monitoring for allowing to be connected to central station by broadcast address in 3 seconds
Instrument is numbered.The content format of broadcast message is:
Central station IP address | Central station port numbers | Allow the patient monitor numbering of access |
The patient monitor numbering of access is wherein allowed to be pre-configured with central station.
According to the central station IP address information of configuration after patient monitor startup, central station is attempted to connect to socket TCP
1.Start address broadcast simultaneously and intercept, for etc. the address broadcast message to be received from central station;Central station 1 receives connection
Searched with patient monitor numbering in the accessible patient monitor list of this central station, if allowing access just the connection IP of patient monitor
Location information and patient monitor numbering are added to the start-up operation such as managing listings, device data analysis service, and patient monitor is on central station
Line.If not allowing, patient monitor is disconnected.
If patient monitor successful connection is put into normal work stage.If patient monitor is disconnected, in the present embodiment.It can adopt
With a kind of access for realizing patient monitor in following 3 kinds of modes:
Static backup:Patient monitor can use the address of the central station address list of default configuration, attempt one by one and center
Stand connection, until can be connected to work(.Here address is pre-configured with patient monitor, preserves these ground for a long time by patient monitor
Location, to complete to automatically switch using these addresses when breaking down.This mode is the most frequently used, is easiest to realize
Backup mode.
Dynamic backup:Patient monitor is attempted to connect using the central station broadcast address received.Patient monitor is first from address
The numbering of this patient monitor is searched whether in message, if in the presence of the central station address and port that connect in this message, it is no
Then just abandon using the address in the message.When multiple central stations broadcast address message simultaneously be present, using first first
Principle, message is attempted one by one.If message addresses are all attempted to be all connected with unsuccessful, patient monitor automatically attempts to connect default configuration
Central station address, until can be with normal work.
Quiet dynamic combination:Patient monitor first attempts the central station of connection backup, if unsuccessful, prison using first way above
Shield instrument continues to use the broadcast address in the second way to attempt to be connected with central station, until success.In superincumbent description, adopt
It is exactly this connected mode.
When central station receives patient monitor connection request, first lookup patient monitor is numbered from the list of devices for allowing access.
If allowing the numbering of access, access the patient monitor and do corresponding management work, otherwise disconnect.Accessed in the patient monitor
Management work in, judged whether patient monitor is in the patient monitor list from backup before this.If the patient monitor of backup, center
Stand and first access patient monitor.So far, patient monitor has accessed central station, and in the present embodiment, backing up in realtime for data can adopt
Take one kind in following method:
Only focus on current latest data:Patient monitor only sends current real time data, and central station is exposed directly to user, right
Go offline to the data for being connected to Current central station and do not process from original failure central station, i.e., backup flow is or else toward below step
Perform, so far terminate.The transmission of this method is fairly simple, is a kind of the most frequently used mode.
Preferential current latest data simultaneously pays close attention to the historical data after failure:Patient monitor sends current real-time data in real time
Centre station, central station not only handles current newest real time data, and is calculated from the first bag data in the real-time messages of access
Obtain from the failure of central station 1 to the order for accessing this period of central station 2.
Central station starts special service routine to include the numbering of this bag data from patient monitor real time data, from this
It is the data number for obtaining the previous second that secondary Bale No., which subtracts 1, and command format is:
Historical data order word code | The package number needed | The package number received |
Patient monitor now has been coupled to central station 2, and receives the order of the acquisition fault section data of central station 2.Its
This order bag of first checking parsing, and the data needed in order are found from patient monitor historical data table, get the life
, it is necessary to notice that the mark to the data is set to historical data, to distinguish current real time data after the data that order needs.
Central station 2 is identified after historical data mark, to subtract again data storage and by data number after receiving packet
1, the order for obtaining historical data is reorganized, steps be repeated alternatively until and transmit all historical datas.
In the present embodiment, the acquisition that patient monitor goes offline time point according to the last time of itself and central station 2 issues is gone through
Bale No. voluntarily judges whether to need to send historical data in the order of history data, until the data after being gone offline from central station 1 are complete
Portion is sent to central station 2.
So far, patient monitor just completes automatic switching function, in ensureing that newest real time data can completely is sent to
In the station of centre simultaneously, repeating the above steps from the background, just can be by the data acquisition of needs to another central station.
In addition, in the present embodiment, in some cases, it is desirable to use non-Ethernet AM access module.Non-Ethernet accesses
Module be in order to access the patient monitor of the networking models such as serial ports, 485,433, and make its indirectly with Ethernet patient monitor with
Network function and a kind of small parts developed.Its internal simulation Ethernet patient monitor and the pattern and one of central station communication
A little miscellaneous functions, the patient monitor that can will be linked into its inside are abstracted into the connection for being similar to Ethernet net patient monitor one by one,
For central station, do not know it is the Ethernet patient monitor simulated completely.Its inner workings is as follows:
Start the address service message for receiving central station broadcast, no matter whether use, address message real-time reception simultaneously updates;
Start corresponding agreement access patient monitor service, such as serial port protocol or 484 agreements, the patient monitor that every kind of agreement is directed to is different.First will
Non-Ethernet AM access module is run according to patient monitor protocol format, and patient monitor is reached the standard grade, and its data is reached inside modules;Pin
To each patient monitor, a memory object is taken out in inside modules, its data is delayed in real time in units of independent object
Deposit, do not interfere with each other, and the order of strict guarantee data.Generally 86400 message in each target cache 24 hours, i.e., per second one
Individual packet, to provide data source to backing up in realtime;According to the central station list of default configuration or the center of internal receipt
The data that station address accesses patient monitor are sent to central station from internal memory using Socket;Start one service be used for complete with
Central station interaction sends historical data, according to the acquisition order of historical data, finds data and organizes and be sent to central station;
When the central station of non-Ethernet AM access module connection breaks down, the step of its internal Ethernet automatic switchover repeated above
Suddenly, data backup is completed.
As shown in figure 5, the present embodiment further relates to a kind of device for realizing the above method, including server list obtains module
1st, server connection request module 2, server-connection module 3 and data uploading module 4;Wherein, server list obtains mould
Block 1 is used for when the connection for confirming patient monitor and original connected server disconnects, obtain patient monitor storage, set in advance
The server list of the order of connection is put;Server connection request module 2 is used for according to server in the server list
Sequentially, each address corresponding to server in the list is obtained successively, and connection request is sent to the server one by one;Such as service
Device allows to connect, then invoking server link block 3;Server-connection module 3, which is used to establish with the server, to be connected;Data
Uploading module 4 is used to the monitoring data that the patient monitor obtains uploading to the server with patient monitor foundation connection.
On this basis, under certain situation in the present embodiment, the device also includes broadcast judge module 5, prison
Protect instrument mark judge module 6 and broadcasting server link block 7;Wherein, broadcast judge module 5 is used to work as the service
When device connection request module is still not connected with server after setting time, judge that the broadcast of other servers transmission can be received
Message, if, call patient monitor mark judge module 6;Otherwise, invoking server link block 3;Patient monitor mark judge module
Whether include the mark of the patient monitor in 6 broadcast messages for being used to judge to receive one by one, in this way, call broadcasting server to connect
Connection module 7, otherwise, invoking server link block 3;Broadcasting server link block 7, which is used to obtain, includes the patient monitor mark
Server address in all broadcast messages known, and it is sent to connection request;Allow connection message as server returns, then
Invoking server link block 3;As server does not allow to connect or without response, then sends connection to next server address and asks
Ask;As Servers-all does not allow connection or without response, then invoking server connection request module 3.
In the present embodiment, data uploading module 4 further comprises:Current data reception unit 41, the inquiry of historical data
Unit 42 and history data store unit 43;Wherein, current data reception unit 41 is used to receive and handle the patient monitor
The current monitoring data sent;Inquiry of historical data unit 42 is used to use package number polling routine, will be currently transmitted
The package number come gradually subtracts one, and requires the packet that the package number that the patient monitor sends to obtain is pointed to, until
All monitoring data bags after the patient monitor will go offline for the last time are sent out;History data store unit 43 is used to press institute
State after package number sequential storage last time goes offline and arrive current data.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (8)
1. a kind of method of the Backup Data in distributed monitor system, the monitor system includes multiple servers and multiple prisons
Protect instrument, each patient monitor and one in the multiple server are uploaded to by network connection and obtained monitoring data
In connected server, it is characterised in that the method for the Backup Data comprises the following steps:
A) when the connection for confirming patient monitor and original connected server disconnects, obtain patient monitor storage, set in advance
The server list of the order of connection is put;The connection of patient monitor and original connected server, which disconnects, includes the patient monitor
The determination signal for the packet that the server is sent to the patient monitor is not received;
B) according to the order of server in the server list, ground corresponding to each server in the list is obtained successively
Location, connection request is sent to the server one by one;As server allows to connect, then next step is performed;Otherwise, this step is repeated
Suddenly;
C) establish and connect with the server for allowing to be connected of first reply;
D the monitoring data that the patient monitor obtains) is uploaded to this and establishes the server connected with the patient monitor;The monitoring
Data include arriving current monitoring data after patient monitor last time goes offline;
E) as repeat step B) after setting time still not connected upper server when, judge that the wide of other servers transmission can be received
Message is broadcast, if, next step is performed, otherwise, performs step H);
F whether include the mark of the patient monitor in the broadcast message for) judging to receive one by one, in this way, perform next step, it is no
Then, step H is performed);
G the server address in all broadcast messages for including the patient monitor mark) is obtained, and is sent to connection request;
Allow connection message as server returns, then perform step C);As server do not allow connection or without response, then repeat this step
Suddenly, connection request is sent to next server address, as Servers-all does not allow connection or without response, execution step
H);
H) when the patient monitor initial access network in the way of search server and establish connection, then perform step C);
Wherein, it is provided with each server allows the patient monitor inventory of connection;Other described servers are not described
Server in the server inventory of patient monitor storage.
2. the method for the Backup Data according to claim 1 in distributed monitor system, it is characterised in that the service
Constantly send broadcast message when device is online at set time intervals respectively;The broadcast message includes the service being arranged in order
Device address, server connecting end slogan and the patient monitor mark for allowing access.
3. the method for the Backup Data according to claim 1 in distributed monitor system, it is characterised in that the step
G following steps) are further comprised:
G1 server address and the port in a broadcast message) are obtained according to the sequencing of the broadcast message received, and
Connection request is sent to the server;
G2) open and intercept port, receive receiveing the response from the server;
G3) judge whether to receive the message for allowing connection that the server is sent, in this way, establish and connect with the server;
Such as not receiving server response or server response more than setting time does not allow to connect, then judges whether also to receive wide
Broadcast message and do not send connection request, if any return to step E1), connection request is sent to the server of not connected broadcast message;
Such as nothing, when the patient monitor initial access network in the way of search server and establish connection.
4. the method for the Backup Data according to claim 3 in distributed monitor system, it is characterised in that the step
G following steps) are further comprised:
G4 the connection request that patient monitor is sent) is received;
G5) obtain patient monitor therein to represent, and the mark is searched in list of devices, such as find, perform next step;It is no
Then, the connection with the patient monitor is disconnected;
G6) establish the connection with the patient monitor and it is managed.
5. the method for the Backup Data according to claim 1 in distributed monitor system, it is characterised in that the step
D following steps) are further comprised:
D1) receive and handle the current monitoring data that the patient monitor is sent;
D2 package number polling routine) is used, currently transmitted next package number is gradually subtracted one, and require the monitoring
The packet that the package number that instrument sends to obtain is pointed to, all monitoring numbers after the patient monitor will go offline for the last time
Sent out according to bag;
D3 current data are arrived after) being gone offline by package number sequential storage last time.
6. the method for the Backup Data according to claim 5 in distributed monitor system, it is characterised in that the step
D2) further comprise:
D21 the package number that current patient monitor is sent) is obtained, package number is put into after subtracting one by the package number
In query statement, and the instruction is sent to patient monitor;
D22) patient monitor is compiled by calculating the packet in last go offline time and its inquiry packet instruction that receives
Packet after number judge whether to need to send go offline,.If any execution next step;Otherwise, historical data is exited
Send;
D23) patient monitor receives the instruction, and finds the packet of its sensing, is sent out after being marked as historical data
Send.
7. a kind of device for realizing the Backup Data method in distributed monitor system as claimed in claim 1, its feature exist
In, including:
Server list obtains module:For when the connection for confirming patient monitor and original connected server disconnects, taking
Obtain server list that patient monitor stores, being provided with the order of connection in advance;Patient monitor and originally connected server
Connection, which disconnects, includes the determination signal that the patient monitor does not receive the packet that the server is sent to the patient monitor;
Server connection request module:For the order according to server in the server list, the list is obtained successively
In address corresponding to each server, connection request is sent to the server one by one;As server allows to connect, then service is called
Device link block;
Server-connection module:Connected for being established with the server;
Data uploading module:Monitoring data for the patient monitor to be obtained uploads to this and establishes connection with the patient monitor
Server;The monitoring data includes arriving current monitoring data after patient monitor last time goes offline;
Broadcast judge module:For being still not connected with server after the server connection request module is in setting time
When, judge that the broadcast message of other servers transmission can be received, if, call patient monitor mark judge module;Otherwise, call
Server-connection module;
Patient monitor mark judge module:For whether including the mark of the patient monitor in the broadcast message that judges to receive one by one
Know, in this way, call broadcasting server link block, otherwise, invoking server link block;
Broadcasting server link block:For with obtaining the server in all broadcast messages for including the patient monitor mark
Location, and it is sent to connection request;Allow connection message as server returns, then invoking server link block;Such as server
Do not allow connection or without response, then connection request is sent to next server address;As Servers-all does not allow to connect
Or without response, then invoking server connection request module;Wherein, it is provided with each server allows the patient monitor of connection
Inventory;Other described servers are the not server in the server inventory of patient monitor storage.
8. device according to claim 7, it is characterised in that the data uploading module further comprises:
Current data reception unit:The current monitoring data sent for receiving and handling the patient monitor;
Inquiry of historical data unit:For using package number polling routine, by currently transmitted next package number gradually
Subtract one, and require that the patient monitor sends the packet that obtained package number is pointed to, until the patient monitor by last
It is secondary go offline after all monitoring data bags send out;
History data store unit:For arriving current data after being gone offline by package number sequential storage last time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410530270.3A CN104301407B (en) | 2014-10-10 | 2014-10-10 | The method and apparatus of Backup Data in distributed monitor system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410530270.3A CN104301407B (en) | 2014-10-10 | 2014-10-10 | The method and apparatus of Backup Data in distributed monitor system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104301407A CN104301407A (en) | 2015-01-21 |
CN104301407B true CN104301407B (en) | 2018-03-30 |
Family
ID=52320970
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410530270.3A Active CN104301407B (en) | 2014-10-10 | 2014-10-10 | The method and apparatus of Backup Data in distributed monitor system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104301407B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105407135B (en) * | 2015-10-21 | 2019-02-26 | 西安理邦科学仪器有限公司 | The breaker point continuous transmission method and system of data |
CN105827531B (en) * | 2016-04-20 | 2019-08-30 | 努比亚技术有限公司 | A kind of routing access method and terminal |
CN107845416B (en) * | 2016-09-20 | 2021-07-09 | 西安理邦科学仪器有限公司 | Method and device for managing monitoring equipment and monitoring sensor |
CN110830281B (en) * | 2018-08-13 | 2022-06-14 | 浙江宇视科技有限公司 | Hot standby method and system based on mesh network structure |
CN111628880A (en) * | 2019-02-27 | 2020-09-04 | 深圳迈瑞生物医疗电子股份有限公司 | Method for transferring failure of in-hospital equipment and monitoring system |
CN111696657A (en) * | 2019-03-12 | 2020-09-22 | 深圳迈瑞生物医疗电子股份有限公司 | Intermediate server, medical monitoring apparatus, connection method thereof, and storage medium |
CN113271327B (en) * | 2020-02-17 | 2023-05-02 | 西安理邦科学仪器有限公司 | Networking method of central monitoring system and medical equipment |
CN113691573A (en) * | 2020-05-19 | 2021-11-23 | 深圳市理邦精密仪器股份有限公司 | Monitoring method, equipment, system and storage device of medical monitoring system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103222220A (en) * | 2012-10-31 | 2013-07-24 | 华为技术有限公司 | Network data method and equipment |
CN103731287A (en) * | 2012-10-16 | 2014-04-16 | 无锡云捷科技有限公司 | Method for selecting server to take over fault server |
CN103873472A (en) * | 2014-03-18 | 2014-06-18 | 广州市纬志电子科技有限公司 | Method for automatically having access to network |
CN103929488A (en) * | 2014-04-25 | 2014-07-16 | 西安理邦科学仪器有限公司 | Method and device for data synchronization of distributed central monitoring system |
-
2014
- 2014-10-10 CN CN201410530270.3A patent/CN104301407B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103731287A (en) * | 2012-10-16 | 2014-04-16 | 无锡云捷科技有限公司 | Method for selecting server to take over fault server |
CN103222220A (en) * | 2012-10-31 | 2013-07-24 | 华为技术有限公司 | Network data method and equipment |
CN103873472A (en) * | 2014-03-18 | 2014-06-18 | 广州市纬志电子科技有限公司 | Method for automatically having access to network |
CN103929488A (en) * | 2014-04-25 | 2014-07-16 | 西安理邦科学仪器有限公司 | Method and device for data synchronization of distributed central monitoring system |
Also Published As
Publication number | Publication date |
---|---|
CN104301407A (en) | 2015-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104301407B (en) | The method and apparatus of Backup Data in distributed monitor system | |
CN100414890C (en) | Method and system for centrally configurating terminal equipment | |
US8676157B2 (en) | Wireless network system | |
CN101543012B (en) | Communication system | |
CN101459534A (en) | Network topology collecting method for tree shaped network and network equipment | |
US9319309B2 (en) | Mobile router information management server, mobile router, mobile router network, and communication method for same | |
EP2991278A1 (en) | Method and system for managing network traffic | |
CN102045409A (en) | Network penetrating method and network communication system | |
EP2494769B1 (en) | Communications system | |
CN101145940A (en) | A method for searching network element device and establishing topology connection in network management system | |
JP2001306343A (en) | System for device with fpga | |
CN113132218A (en) | Home gateway access method, device, system processor and storage medium | |
CN101873225A (en) | Cluster network management system and method thereof with high reliability and flexibility | |
EP2136506B1 (en) | Keepalive monitoring method, system and apparatus of a subscriber session group | |
CN106941680B (en) | Base station monitoring method, terminal, VPN server and system | |
CN101888308A (en) | Method for realizing integrated management of multi-board embedded device | |
CN101277247A (en) | Real-time communication system | |
CN105827637A (en) | Method and system for configuring IMS (IP Multimedia Subsystem) fixed phone number | |
CN102739443B (en) | OLT (optical line terminal) communication module in PON (passive optical network) system and OLT communication implementation method | |
US20010029536A1 (en) | Display of phones on a map of a network | |
JP2000099428A (en) | Method for collecting information between networks and network managing device to be used for the same | |
CN101702820B (en) | Method of wireless PPPoE handshake message answer and equipment thereof | |
CA2455493A1 (en) | Distributed service component systems | |
JP2003345686A (en) | Method, apparatus, and program for home network electrical appliance remote operation | |
CN1666488B (en) | Communication network comprising communication components having client and server functionalities and search functions |
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 |