CN104079667B - The tele-control system and method tested for synchrotron radiation - Google Patents

The tele-control system and method tested for synchrotron radiation Download PDF

Info

Publication number
CN104079667B
CN104079667B CN201410345284.8A CN201410345284A CN104079667B CN 104079667 B CN104079667 B CN 104079667B CN 201410345284 A CN201410345284 A CN 201410345284A CN 104079667 B CN104079667 B CN 104079667B
Authority
CN
China
Prior art keywords
information
user
experiment
far
client terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410345284.8A
Other languages
Chinese (zh)
Other versions
CN104079667A (en
Inventor
高振华
陶冶
黄艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of High Energy Physics of CAS
Original Assignee
Institute of High Energy Physics of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of High Energy Physics of CAS filed Critical Institute of High Energy Physics of CAS
Priority to CN201410345284.8A priority Critical patent/CN104079667B/en
Publication of CN104079667A publication Critical patent/CN104079667A/en
Application granted granted Critical
Publication of CN104079667B publication Critical patent/CN104079667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of tele-control system tested for synchrotron radiation and method.The tele-control system includes:Client terminal device, far-end control device and experimental provision;Client terminal device includes:Subscriber interface module and link block, link block sends the operation information of user input to far-end control device, receive the second handshake information, to judge whether network connection interrupts according to the second handshake information, and synchronous subscriber interface module current display interface module and the current display interface module of far-end control device;Far-end control device includes:Display interface module;Network connecting module, it sends the object information of the experiment of user's selection;The first handshake information is received, to judge whether network connection interrupts according to the first handshake information, and the current display interface module of simultaneous display interface module and the current display interface module of client terminal device;And operational module, the operation information sent according to network connecting module controlled to experimental provision.

Description

The tele-control system and method tested for synchrotron radiation
Technical field
The present invention relates to remote control technology field, more particularly to a kind of tele-control system tested for synchrotron radiation And method.
Background technology
At present, remote control typically uses RemotePanel (remote control panel), the DataSocket network communications technologys and remote Several implementations such as journey desktop login.But these modes are confined to use in LAN, are not suitable for Internet network, Its real time response speed slow (delayed obvious), network connectivty difference are its subject matter.Wherein, RemotePanel and long-range table It is all that, as Transmission of graphic images, real-time is poor, and response lag is obvious using display interface module that face, which is logged in,.
It is complete and the network program transmission for using C/S (client/server) mode development is the data such as parameter, state The data volume transmitted into said function needs is much smaller (bandwidth occupancy is small), and the real-time performance of remote control obtains carrying greatly very much It is high.
But the synchrotron radiation related remote control system of existing use C/S model exploitation is also only limited to office at present Run in the net of domain, do not account for the net caused by the network speed uncertain (unstability) when being tested based on Internet network Auto-reconnect problem and autonomous retransmission data after the problem of one or many receptions of packet are uneven when speed is slower, suspension etc. Problem.
The content of the invention
In view of the above problems, the invention provides a kind of tele-control system and method, it is applicable to by Internet Network synchronizes radiation experiments.
The additional aspect and advantage of the present invention will be set forth in part in the description, and partly will be from description It is apparent from, or can the acquistion by the practice of the present invention.
One aspect of the present invention provides a kind of tele-control system tested for synchrotron radiation, and the system includes:Client End device, far-end control device and at least one experimental provision;Wherein described client terminal device and the far-end control device it Between by network connection, to manipulate the experiment that the far-end control device performs user's selection;The far-end control device difference At least one described experimental provision of connection, to control the corresponding experimental provision of experiment of user's selection;The client dress Put including:Subscriber interface module;And, link block, it receives the operation that the user is inputted by the subscriber interface module Information, and the operation information is sent to the far-end control device;Send first to the far-end control device and shake hands and disappear Breath;The second handshake information is received, to judge whether the network connection interrupts according to second handshake information, and it is synchronous described The current display interface module of subscriber interface module and the current display interface module of the far-end control device;The distal end control Device processed includes:Display interface module;Network connecting module, it connects the display interface module, receives the operation information; The object information of the experiment of user's selection is sent to the client terminal device;First handshake information is received, with basis First handshake information judges whether the network connection interrupts, and the current display interface of the synchronous display interface module Module and the current display interface module of the client terminal device;Second handshake information is sent to the client terminal device; And, operational module, it connects the network connecting module, receives the operation information that the network connecting module is sent, with One of at least one experimental provision according to operation information control.
In an embodiment, the operation information includes:The user is selected to test corresponding operational order and corresponding Experiment parameter value, the at user option experiment includes:PLE and emission spectra collection in synchrotron radiation experiment, sample choosing Select, sample position optimizes, experimental temperature control;And/or, the experiment information of user's selection includes:User's selection Experimental data and experiment parameter value.
In another embodiment, the operation information and/or the object information use the Length Indication word of regular length Section is packaged, and the length indication field is used for the total length for indicating the packet after encapsulation.
In another embodiment, the subscriber interface module includes IP address and sets interface, for the user input institute State the IP address of far-end control device.
In another embodiment, the network connecting module carries out the network after the network connection interruption is judged The reconstruction of connection;The link block is after the network connection interruption is judged, the net for waiting the network connecting module to initiate The reconstruction of network connection.
In another embodiment, the network connecting module performs and sends the object information simultaneously, receives described second Handshake information, the reconstruction for sending first handshake information and the network connection.
In another embodiment, the link block performs the experiment information for receiving user's selection simultaneously, receives institute State the first handshake information and send the operation of second handshake information.
In another embodiment, the subscriber interface module includes network connection prompt message, to point out the user to work as Whether preceding network connection interrupts.
Another aspect of the present invention provides a kind of long-range control method tested for synchrotron radiation, for client terminal device Remote control is carried out to far-end control device by network connection, including:Receive the user input that the client terminal device is sent Operation information, wherein the operation information include the user select experiment and the experiment parameter;Used into described Interface corresponding to the experiment of family selection;Receive handshaking information;According to the handshaking information, synchronous current display interface module with The current display interface module of the client terminal device;According to the handshaking information, judge whether the network connection interrupts, such as Fruit is interrupted, then carries out the reconstruction of the network connection;And, according to the parameter of the experiment, perform user's selection Experiment, and send to the client terminal device data of the experiment.
In an embodiment, this method also includes:Rebuild after the network connection, again according to the handshaking information of reception, Synchronous current display interface module and the current display interface module of the client terminal device.
In another embodiment, the IP address of the operation information also far-end control device including user input; The long-range control method also includes:The IP address is verified.
Further aspect of the present invention provides a kind of long-range control method tested for synchrotron radiation, for client terminal device Remote control is carried out to far-end control device by network connection, including:The operation information of user input is received, wherein the behaviour Making information includes the experiment that the user selects;The operation information is sent to the far-end control device;Into the user Interface corresponding to the experiment of selection;Receive handshaking information;According to the handshaking information, synchronous current display interface module and institute State the current display interface module of far-end control device;According to the handshaking information, judge whether the network connection interrupts, such as Fruit is interrupted, and waits the reconstruction of the network connection of the far-end control device initiation;And, receive user's selection Experiment object information.
In an embodiment, this method also includes:Rebuild after the network connection, again according to the handshaking information of reception, Synchronous current display interface module and the current display interface module of the far-end control device.
In another embodiment, the operation information also includes the IP address of the far-end control device;The long-range control Method processed also includes:The IP address is sent to the far-end control device.
Tele-control system and method that the present invention is provided, terminal device can be made by being sent by using the timing of handshaking information The connection status of current network is known in time, to carry out data re-transmission in time, improves the continuous of transmission response speed and transmission Property;In addition, by being designed to data packet format, on the basis of it can transmit polytype packet, reduce simultaneously The expense of transfer resource, and add the efficiency of operation.
Brief description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other feature of the invention and advantage will become It is more obvious.
Fig. 1 is the structural representation of the tele-control system of the embodiment of the present invention.
Fig. 2 is the structural representation of the client terminal device of the embodiment of the present invention.
Fig. 3 is the far-end control device IP address inputting interface schematic diagram of the embodiment of the present invention.
Fig. 4 is the User logs in interface schematic diagram of the embodiment of the present invention.
Fig. 5 is user's operation selection interface schematic diagram after the logining successfully of the embodiment of the present invention.
Fig. 6 selects the schematic diagram of sub-interface for the sample of the embodiment of the present invention.
Fig. 7 is the structural representation of the far-end control device of the embodiment of the present invention.
Fig. 8 is the hardware architecture diagram of the experimental provision of the preferred embodiment of the present invention.
Fig. 9 is the flow chart of the long-range control method of one embodiment of the invention.
Figure 10 is the flow chart of the long-range control method of another embodiment of the present invention.
Figure 11 is the flow chart of the long-range control method of further embodiment of the present invention.
Figure 12 is the flow chart of the long-range control method of further embodiment of the present invention.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the present invention will Fully and completely, and by the design of example embodiment those skilled in the art is comprehensively conveyed to.
Described feature, structure can be combined in one or more embodiments in any suitable manner.Under Embodiments of the present invention are fully understood so as to provide there is provided many details in the description in face.However, this area skill Art personnel, which will be appreciated that, does not have one or more in the specific detail, or using other methods, constituent element etc., may be used yet To put into practice technical scheme.In other cases, it is not shown in detail or describes known features or operates to avoid mould The paste present invention.
Fig. 1 is the structural representation of the tele-control system of the embodiment of the present invention.As shown in figure 1, tele-control system 1 is wrapped Include:At least one client terminal device 11, far-end control device 12 and at least one experimental provision 13.
Wherein, carried out between client terminal device 11 and far-end control device 12 by LAN, Metropolitan Area Network (MAN) or wide area network etc. Connection, is, for example, that the C/S model based on ICP/IP protocol is attached by Internet network.Far-end control device 12 and reality RS232, RS485, GPIB (General-Purpose Interface Bus, general-purpose interface can be for example used between experiment device 13 Bus) etc. mode be attached.
Fig. 2 is the structural representation of the client terminal device of the embodiment of the present invention.Such as Fig. 2, client terminal device 11 includes:User Interface module 111 and link block 112.
Wherein subscriber interface module 111 provides the user exercisable interface, such as remote including as shown in Figures 3 to 5 User's operation selection interface after holding control device IP address inputting interface, User logs in interface and logining successfully.
As shown in figure 3, far-end control device IP address inputting interface includes:Far-end control device IP address input area, really Recognize key and cancel key etc..As shown in figure 4, User logs in interface may include:User name and Password Input area, acknowledgement key and cancel key Deng.As shown in figure 5, user's operation selection interface may include:PLE collection, emission spectra collection, sample selection, sample position are excellent The experimental implementations such as change, temperature control, end experiment.
After user have selected different experiments operation, the sub-interface of corresponding operating can be also shown, current operation status is shown, Or prompting data accordingly realize parameter etc..Fig. 6 selects the schematic diagram of sub-interface for the sample of the embodiment of the present invention, as shown in fig. 6, Sample selection sub-interface includes:Sample number column, user can be selected sample by drop-down menu, when user selectes some sample After product, corresponding coordinate column can show the coordinate of selected sample automatically, and the coordinate can be the ginseng that client terminal device 11 is stored Numerical value or user select after, the parameter value returned from far-end control device 12.Sample selection of Fig. 6 examples Interface is only a schematic diagram, and design not by various sub-interfaces of the invention and the input of each parameter etc. are limited.
In addition, in user operates selection interface and/or each sub-interface, also including connection prompting, such as with the company of display Continuous counting mode prompting user current network connection is normal, once and the connection reminding module stops counting, then it represents that current net Network is interrupted, and needs to wait for network connection reconstruction.
Link block 112 is connected with subscriber interface module 111, and 111 connection for receiving subscriber interface module is indicated, with root The far-end control device 12 specified according to the operation of user with user is interacted.
When user inputs the IP address for the far-end control device 12 specified by far-end control device IP address inputting interface And after confirming, link block 112 is set up with the far-end control device 12 that this is specified and is connected, such as TCP/IP connections.
After user inputs username and password by user's login interface, link block 112 passes through subscriber interface module 111 receive the username and password, and are communicated by the connection set up with far-end control device 12, by the user name with Password is sent to far-end control device 12 and verified, only when far-end control device 12 is by testing the username and password Demonstrate,prove, and return is proved to be successful after message, subscriber interface module 111 can just enter access customer operation selection interface, it is allowed to which user is carried out Related experiment is operated;Otherwise, subscriber interface module 111 is received after authentication failed message by link block 112, then display is tested Card failure interface, is operated with the further experiment for refusing user.
By the operation specified IP address and verified to username and password, it can be prevented with the operation safety of protection system The tele-control system of malice is attacked by malice.
After user is successfully entered user's operation selection interface, i.e., after username and password is proved to be successful, choosing can be passed through Select various option of operation to carry out related experiment, link block 112 is then responsible for the selection of user being sent to far-end control device 12, to indicate that far-end control device 12 manipulates corresponding experimental provision 13, accordingly to be tested.
Link block 112 is in communication process, in order to lift operational efficiency, using multithreading, and reality can be carried out simultaneously When experimental implementation, such as real-time reception far-end control device 12 transmit experimental data and equipment state data;Timing connects The handshaking information (seeing below on being discussed in detail for handshaking information part) for detection network connection status is received to judge Whether network connection disconnects;Timing to remote client device 12 send handshaking information, and user input stopping experiment The other users order such as stop orders.
Client terminal device 11 is, for example, PC (PC), and above-mentioned subscriber interface module 111 for example may be used in implementation process Realized by client software mode;Network adapter in for example, PC of link block 112 etc..
Fig. 7 is the structural representation of the far-end control device of the embodiment of the present invention.As shown in fig. 7, far-end control device 12 Including:Network connecting module 121 and operational module 122.
Network connecting module 121 is set up with the link block 112 of client terminal device 11 by network and is connected, such as TCP/IP Connection, and in the laggard row data communication of successful connection.
In communication process, network connecting module 121 and the link block 112 of client terminal device 11 can carry out a variety of numbers According to the interaction of type, data type includes:Experiment order and related experiment parameter that user is inputted by client terminal device 11, and Experiment parameter, result that far-end control device 12 is returned to client terminal device 11 under a certain or some experimental status etc., in addition Also include connection status and error reporting etc..It can be transmitted by setting " type of data packet " field in the packet to distinguish The type of data, such as 0 represents order, and 1 represents parameter, and 2 represent data, and 3 represent state, and 4 represent mistake etc..
During network connecting module 121 communicates with the link block 112 of client terminal device 11, in data packet format, set " data packet length " field represents the total length of packet." data packet length " field can use regular length, such as 4 words Section, relative to using transmission means of the fixed a certain spcial character as packet end mark, it is to avoid during each reception all time Search end mark is gone through, it is excellent with flexibility, strong adaptability and operational efficiency height etc. from without being limited by some spcial characters Point.
During reception, the link block 112 of network connecting module 121 or client terminal device 11 is received using circulation Mode, packet is spliced, until receive entire packet (can by " data packet length " field indicate packet Length determines whether whole receptions), i.e., when receiving a uneven complete packet in the time-out time once received, example Such as only received a part for a packet, then must circulate reception until collect packet, solved with this when network speed compared with When slow, one or many receptions are not the problem of homogeneous number is according to bag.Because the network speed of Internet network is unstable, the recipient Formula can effectively lift the reliability of Internet network transmission.
In communication process, by periodically between the link block 112 of network connecting module 121 and client terminal device 11 Send handshaking information and come whether detection network connection is interrupted, i.e., whether occur " suspension ".If network connecting module 121 or client The link block 112 of end device 11 does not receive handshaking information (such as by Timer Controlling) within the defined time and then judged For network connection interruption, after occurring network interruption, network connection reconstruction and the re-transmission of packet are carried out in time.
In addition, far-end control device 12 can also also include display interface module 123, network connecting module 121 is connected, with The current experimental implementation of prompting.The display interface module 123 of far-end control device 12, should be with client when network is normally connected Interface shown by the subscriber interface module 111 of device 11 is identical or corresponding, if the i.e. user interface mould of client terminal device 11 Block 111 shows user's operation selection interface, then display interface module 123 displays that operation selection interface, and works as client terminal device 11 subscriber interface module 111 shows the experimental implementation sub-interface of user's selection, and such as sample selects sub-interface, then display interface Module 123 should also show the sub-interface, such as sample selection sub-interface.
It is identical with the interface shown by far-end control device 12 in order to ensure above-mentioned client terminal device 11, using proofreading twice The method of current interface.For example, when entering a certain interface, client terminal device 11 in handshaking information by carrying current interface Field indicates its current interface state of far-end control device 12, to indicate far-end control device 12 by its current interface shape State and the current interface state of client terminal device 11 are adjusted to consistent.In addition, after suspension and network reconnection success, client dress 11 are put again by current interface field is carried in handshaking information to indicate its current interface state of far-end control device 12, With the current display interface module of synchronous far-end control device 12.
For the security that Strengthens network is run, far-end control device 12 also includes authentication module, connects network connection mould Block 121, it is whether legal for verifying the username and password that client terminal device 11 is sent.For example, authentication module prestores user The username and password inputted during registration, or user carry out the password that updates after password modification to associated user's name, with to The username and password inputted when family is used is matched, if the match is successful, then it is assumed that be proved to be successful, otherwise, authentication failed, And return to the result.
Network connecting module 121 and the link block 112 of client terminal device 11 are during receiving and sending messages, also with daily record (log files etc.) writing function, with real-time tracking system running status, diagnostic analysis hand is provided for software debugging, failture evacuation Section.
Network connecting module 121 is in communication process, in order to lift operational efficiency, using multithreading, can enter simultaneously The real-time experimental implementation of row, the data such as sending experimental data and equipment state in real time to client terminal device 11;Timing receipt The other users orders such as the stop orders of stopping experiment of handshaking information and user input for detection network connection status;It is fixed When to client terminal device 11 send handshaking information;Network connection in experimentation is rebuild.
Wherein experimental data is returned for example during experiment is carried out by the selected experimental provision 13 for performing experiment.
Operational module 122 connects network connecting module 121, and client terminal device 11 is received by network connecting module 121 Order, to manipulate at least one experimental provision 13 for being connected, for example synchronize PLE collection in radiofluorescence experiment, Emission spectra collection, sample selection, sample position optimization, temperature control etc..
The mode such as by RS232, RS485, GPIB is attached between operational module 122 and experimental provision 13.
Far-end control device 12 is, for example, server, and network connecting module 121 is, for example, the network adapter in server, Other each modules can for example be realized in implementation process by software mode.
Experimental provision 13 for example including:PLE harvester, emission spectra harvester, sample selection device, sample position Put optimization device, temperature control equipment etc..Fig. 8 is the hardware architecture diagram of the experimental provision of the preferred embodiment of the present invention, its Middle main frame is the main frame of far-end control device 12, PLE harvester for example including:Exciting light monochromator:Seya- Namioka type grating monochromators, fluorescent probe:Shore pine H8259 type photon counters, counter:(ORTEC) 974 counters/ Timer;Emission spectra harvester for example including:Emission monochromator:(ARC) 308 type monochromator, fluorescent probe:Shore pine H8259 type photon counters, counter:(ORTEC) 974 counter/timer;Sample selection device for example including:PM16C16 Road controllor for step-by-step motor, SAKAE13FLP25A resistance scales, CYZ TC-NS05 digital display meters;Sample position optimization device is for example wrapped Include:PM16C16 roads controllor for step-by-step motor, 57BYG250C stepper motors, SAKAE13FLP25A resistance scales, CYZ TC-NS05 Digital display meter, fluorescent probe:Shore pine H8259 type photon counters, counter:(ORTEC) 974 counter/timer;Alternating temperature is filled Put for example including:Refrigeration machine LEYBOLD RW5, temperature controller:DEG C ryoLab202, relay module:Make every effort to achieve 9060.But the present invention It is not limited with above-mentioned hardware implementation mode.
Fig. 9 is the flow chart of the long-range control method of one embodiment of the invention.The long-range control method includes:
Step S901, communication initialization is carried out to each equipment connected.
Step S902, checks whether each equipment communication state is normal.
Step S903:Judge whether communications status is normal, if normally, performing step S904, otherwise, return to step S902。
Step S904, creates network connection.
Step S905, waits and receives user's connection.
Whether step S906, checking IP address allows to access, after being verified, and performs step S907;Otherwise, refuse Exhausted user's connection.
Step S907, checking user name and password, after being verified, perform step S908;Otherwise, refusal user connects Connect.
Step S908, the operation interface for the client device that synchronous current operation interface is used with user.
For example the synchronous operation in interface can be carried out by the handshaking information of C/S both sides.
Step S909, waits user operation commands to be received, and receives handshaking information simultaneously, to judge network connection state.
Step S910, judges whether network connection interrupts, if do not interrupted, and performs step S911;Otherwise, step is performed Rapid S914.
Step S911, whether be exit experiment, if it is not, then performing step S912 if judging user's operational order;Otherwise, perform Step 913.
Step S912, according to user's operational order of reception, selects and performs corresponding experimental implementation.
For example PLE collection experimental implementation, emission spectra collection experimental implementation, the operation of sample choice experiment, sample position are excellent Change experimental implementation or temperature control experiments operation.
After above-mentioned corresponding experimental implementation is completed, return to step S908.
Step S913, closes the communication interface of network connection and each equipment, completes this experiment.
Step S914, waits network connection to rebuild, after rebuilding successfully, return to step S908.
Figure 10 is the flow chart of the long-range control method of another embodiment of the present invention.Using an experimental implementation of selection as Example, the long-range control method includes:
Step S1001, the operation interface for the client device that synchronous current operation interface is used with user.
For example can be by receiving the subscriber interface module field in handshaking information, to determine the behaviour of user client device Make interface, if the operation interface of current operation interface and user client device is inconsistent, updating current operation interface is The operation interface of user client device.
Step S1002, sends experiment parameter currency to user;
Step S1003, the operation interface for the client device that synchronous current operation interface is used with user.
Step S1004, judges whether to there occurs that network connection is rebuild, if it is, performing step S1005;Otherwise, perform Step S1006.
When realizing, for example, it can rebuild mark to indicate whether to there occurs network connection by arrange parameter network connection Rebuild, in the event of network connection reconstruction, then set this be masked as 1, otherwise set is 0, and the initialization value of the mark is for example For 0.
Step S1005, the experimental data collected and current parameter value are retransmitted to user.
Step S1006, circulation receives the operational order of user.
Step S1007, whether be exit, if so, then performing step S1007 if judging operational order;Otherwise, step is performed S1008。
Step S1008, terminates this experiment.
Step S1009, receives experiment parameter, and perform experimental implementation according to the experiment parameter of reception;
Step S1010, sends experimental data and equipment state in real time;
Additionally include data storage, and draw curve, if midway suspension, skip follow-up transmitting-receiving operation, continue Tested, data storage and drawn.
Step S1011, real-time reception handshaking information, and user command,
User command includes stopping the stop orders of experiment halfway and receives prompt message dialog box confirmation order in experiment Deng.
Step S1012, timing sends handshaking information.
Step S1013, if network connection interruption, performs network connection and rebuilds, after rebuilding successfully, return to step S1003.
If once rebuilding unsuccessful, process of reconstruction is continuously carried out, until network connection is rebuild successfully.
Can also be 1 by parameter network connection reconstruction flag set after the completion of reconstruction when realizing.
Above-mentioned steps S1010 to step S1013 can be performed simultaneously, such as using multithreading.
Above-mentioned steps S1010, S1011, S1013 are continuously carried out, until this experiment terminates.
In addition, in the data packet format of above-mentioned interaction, " data packet length " field can be set to represent the total of packet Length." data packet length " field can use regular length, such as 4 bytes, relative to using fixed a certain spcial character conduct The transmission means of packet end mark, it is to avoid all traversal search end mark during each reception, from without by some spcial characters Limitation, have the advantages that flexibility, strong adaptability and operational efficiency are high.
Figure 11 is the flow chart of the long-range control method of further embodiment of the present invention.This method includes:
Step S1101, User logs in simultaneously carries out authentication.
The operation interface of step S1102, synchronous current operation interface and server-side devices.
Interface synchronization is for example carried out by the handshaking information of C/S both sides, to keep returning to main interface from next bed boundary When C/S both sides interface uniformity.
Step S1103, receives the order of user input.
Step S1104, whether the order for judging user input is to exit, if it is, performing step S1105;Otherwise, hold Row step S1106.
Step S1105, closes connection, exits experiment.
Step S1106, is selected according to user, into corresponding sub-interface, and performs corresponding experimental implementation.
For example, PLE collection experimental implementation, emission spectra gather experimental implementation, the operation of sample choice experiment, sample position Optimal Experimental operation, temperature control experiments operation.
Complete after selected experiment, return to step S1102, continue waiting for the input order of user.
Figure 12 is the long-range control method of further embodiment of the present invention.By taking an experimental implementation of selection as an example, this is remote Process control method includes:
The operation interface of step S1201, synchronous current operation interface and server-side devices.
Step S1202, receives experiment parameter currency;
The operation interface of step S1203, synchronous current operation interface and server-side devices.
Step S1204, judges whether to there occurs that network connection is rebuild, if it is, performing step S1205;Otherwise, perform Step S1206.
When realizing, for example, it can rebuild mark to indicate whether to there occurs network connection by arrange parameter network connection Rebuild, in the event of network connection reconstruction, then set this be masked as 1, otherwise set is 0, and the initialization value of the mark is for example For 0.
Step S1205, the experimental data collected again, current parameter value etc..
Step S1206, transmits the operational order of user input.
Step S1207, whether be exit, if exiting if judging the operational order, then perform step S1208;Otherwise, hold Row step S1209.
Step S1208, exits the experimental implementation of this user selection.
Step S1209, transmits each experiment parameter, starts the experimental implementation of user's selection.
Step S1210, real-time reception experimental data and device status data etc..
And the data received are stored, drawn etc. with operation.When receiving above-mentioned data, handshaking information is filtered.
Step S1211, real-time reception handshaking information.
Step S1212, judges whether network connection interrupts, if it is, performing step S1214, otherwise, performs and returns to step Rapid S1211.
The operational order of step S1213, timing transmission handshaking information, and user input, such as stopping stop orders.
Above-mentioned steps S1210, step S1011 and step S1013 can be performed simultaneously, such as using multithreading.
Step S1214, skips subsequent experimental process.
Step S1215, waits network connection to rebuild.
Step S1216, judges whether reconstruction succeeds, if it succeeds, return to step S1203, and parameter network is connected It is 1 to rebuild flag set;Otherwise, return to step S1215.
In addition, in the data packet format of above-mentioned interaction, " data packet length " field can be set to represent the total of packet Length." data packet length " field can use regular length, such as 4 bytes, relative to using fixed a certain spcial character conduct The transmission means of packet end mark, it is to avoid all traversal search end mark during each reception, from without by some spcial characters Limitation, have the advantages that flexibility, strong adaptability and operational efficiency are high.
Tele-control system and method that the present invention is provided, terminal device can be made by being sent by using the timing of handshaking information The connection status of current network is known in time, to carry out data re-transmission in time, improves the continuous of transmission response speed and transmission Property;In addition, by being designed to data packet format, on the basis of it can transmit polytype packet, reduce simultaneously The expense of transfer resource, and add the efficiency of operation.
The illustrative embodiments of the present invention are particularly shown and described above.It should be understood that the invention is not restricted to institute Disclosed embodiment, on the contrary, it is intended to cover comprising various modifications within the scope of the appended claims and equivalent put Change.

Claims (10)

1. a kind of tele-control system tested for synchrotron radiation, it is characterised in that including:Client terminal device, remote control Device and at least one experimental provision;By network connection between wherein described client terminal device and the far-end control device, To manipulate the experiment that the far-end control device performs user's selection;The far-end control device connect respectively it is described at least one Experimental provision, to control the corresponding experimental provision of experiment of user's selection;
The client terminal device includes:
Subscriber interface module;And,
Link block, it receives the operation information that the user is inputted by the subscriber interface module, and the operation is believed Breath is sent to the far-end control device;The first handshake information is sent to the far-end control device;Receive the remote control The second handshake information that device is sent, to judge whether the network connection interrupts according to second handshake information, and according to Synchronously the subscriber interface module shows second handshake information with the current of the display interface module of the far-end control device Show interface;
The far-end control device includes:
Display interface module;
Network connecting module, it connects the display interface module, receives the operation information;Sent to the client terminal device The object information of the experiment of user's selection;First handshake information that the client terminal device is sent is received, with basis First handshake information judges whether the network connection interrupts, and according to first handshake information synchronously display circle The current display interface of face mould block and the subscriber interface module of the client terminal device;Described the is sent to the client terminal device Two handshake informations;And,
Operational module, it connects the network connecting module, receives the operation information that the network connecting module is sent, with One of at least one experimental provision according to operation information control;
Wherein, the link block and the network connecting module are spliced, directly by the way of circulation is received to packet To the packet that reception homogeneous is complete.
2. the tele-control system according to claim 1 tested for synchrotron radiation, wherein the operation information includes: The user is selected to test corresponding operational order and corresponding experiment parameter value, and the at user option experiment includes:Together Walk the PLE in radiation experiments and emission spectra collection, sample selection, sample position optimization, experimental temperature control;And/or, institute Stating the experiment information of user's selection includes:The experimental data and experiment parameter value of user's selection.
3. it is according to claim 1 for synchrotron radiation test tele-control system, wherein the operation information and/or The object information is packaged using the length indication field of regular length, and the length indication field is used to indicate after encapsulation Packet total length.
4. the tele-control system according to claim 1 tested for synchrotron radiation, wherein the network connecting module After the network connection interruption is judged, the reconstruction of the network connection is carried out;The link block is judging the network company Connect after interruption, wait the reconstruction of the network connection of the network connecting module initiation.
5. the tele-control system according to claim 4 tested for synchrotron radiation, wherein the network connecting module Perform simultaneously and send the object information, receive second handshake information, send first handshake information and the network The reconstruction of connection.
6. the tele-control system according to claim 1 tested for synchrotron radiation, wherein the link block is simultaneously The experiment information for receiving user's selection is performed, first handshake information is received and sends the behaviour of second handshake information Make.
7. a kind of long-range control method tested for synchrotron radiation, for client terminal device by network connection to remote control Device carries out remote control, it is characterised in that including:
The operation information for the user input that the client terminal device is sent is received, wherein the operation information is selected including the user The experiment selected and the parameter of the experiment;
The interface corresponding to experiment selected into the user;
Receive handshaking information;
According to the handshaking information, synchronous current display interface and the current display interface of the client terminal device;
According to the handshaking information, judge whether the network connection interrupts, in the event of interrupting, then carry out the network connection Reconstruction;And,
According to the parameter of the experiment, the experiment of user's selection is performed, and the experiment is sent to the client terminal device Data;
Wherein, in received data packet, by the way of circulation is received, packet is spliced, until it is complete to receive homogeneous Whole packet.
8. the long-range control method according to claim 7 tested for synchrotron radiation, it also includes:Rebuild the network After connection, again according to the handshaking information of reception, synchronous current display interface module is currently displaying with the client terminal device Interface module.
9. a kind of long-range control method tested for synchrotron radiation, for client terminal device by network connection to remote control Device carries out remote control, it is characterised in that including:
The operation information of user input is received, wherein the operation information includes the experiment that the user selects;
The operation information is sent to the far-end control device;
The interface corresponding to experiment selected into the user;
Receive handshaking information;
According to the handshaking information, synchronous current display interface and the current display interface of the far-end control device;
According to the handshaking information, judge whether the network connection interrupts, in the event of interrupting, wait the remote control dress Put the reconstruction of the network connection of initiation;And,
Receive the object information of the experiment of user's selection;
Wherein, in received data packet, by the way of circulation is received, packet is spliced, until it is complete to receive homogeneous Whole packet.
10. the long-range control method according to claim 9 tested for synchrotron radiation, it also includes:Rebuild the net After network connection, again according to the handshaking information of reception, synchronous current display interface module is current with the far-end control device Display interface module.
CN201410345284.8A 2014-07-18 2014-07-18 The tele-control system and method tested for synchrotron radiation Active CN104079667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410345284.8A CN104079667B (en) 2014-07-18 2014-07-18 The tele-control system and method tested for synchrotron radiation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410345284.8A CN104079667B (en) 2014-07-18 2014-07-18 The tele-control system and method tested for synchrotron radiation

Publications (2)

Publication Number Publication Date
CN104079667A CN104079667A (en) 2014-10-01
CN104079667B true CN104079667B (en) 2017-07-18

Family

ID=51600707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410345284.8A Active CN104079667B (en) 2014-07-18 2014-07-18 The tele-control system and method tested for synchrotron radiation

Country Status (1)

Country Link
CN (1) CN104079667B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107661893A (en) * 2017-11-02 2018-02-06 上海埃松气流控制技术有限公司 A kind of intelligent vent cabinet system
CN107612760B (en) * 2017-11-03 2021-08-24 睿石网云(北京)科技有限公司 Method and system for monitoring interruption of business service

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1463971A2 (en) * 2001-12-12 2004-10-06 The Regents of the University of California INTEGRATED CRYSTAL MOUNTING AND ALIGNMENT SYSTEM FOR HIGH−THROUGHPUT BIOLOGICAL CRYSTALLOGRAPHY
CN101814248B (en) * 2010-04-07 2011-11-09 清华大学 Remote experiment system for computer hardware series courses

Also Published As

Publication number Publication date
CN104079667A (en) 2014-10-01

Similar Documents

Publication Publication Date Title
CN110414960A (en) A kind of payment processing method and device
CN106131164B (en) The data processing method and device of protocol analysis are carried out beyond the clouds
TW468315B (en) Method and system for providing cross-platform remote control, monitoring, and up-dating of a facility access controller
CN107862351A (en) Be advantageous to the method for failure solution
CN107341109A (en) The generation method and system of a kind of test data
CN101888658B (en) GPRS (General Packet Radio Service) core network simulation and test system
CN104899817A (en) Mobile Internet hospital secure interaction method
CN103812829B (en) A kind of method, remote desktop server and system for improving remote desktop security
CN105337933B (en) Create method, system and the main account device of sub- account and sub- account device
CN103795681B (en) Video equipment collocation method and system, video equipment, video information server
CN107293064A (en) Pick up by oneself cabinet operating method, operating system and pick up by oneself cabinet
CN108259598A (en) A kind of awareness apparatus unified access method based on isomery fusion and cloud analytic technique
CN104079667B (en) The tele-control system and method tested for synchrotron radiation
CN107172685A (en) The method and apparatus that the information of WAP is shown in mobile terminal
CN107590036A (en) Remote debugging method, server and the system of Android device
CN103092167A (en) Glass production line remote monitoring system based on web
CN104954153A (en) Method and device for node fault detection
CN102571808A (en) Method for external network deployment of automatic ratepaying machine
CN102420837B (en) NDIS (Network Driver Interface Standard)-based method and system
CN106649342A (en) Data processing method and apparatus in data acquisition platform
CN108037742A (en) A kind of method and system that raw materials in production process are checked
US20020180614A1 (en) Internet-ready communication modules
CN103384246B (en) Safety supervision system login assistant method
US20060015755A1 (en) Data collector systems and methods
CN105721231B (en) A kind of quality of service perception detection method and device

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