CN115001880A - Modular connection control method, upper computer and storage medium - Google Patents

Modular connection control method, upper computer and storage medium Download PDF

Info

Publication number
CN115001880A
CN115001880A CN202210592300.8A CN202210592300A CN115001880A CN 115001880 A CN115001880 A CN 115001880A CN 202210592300 A CN202210592300 A CN 202210592300A CN 115001880 A CN115001880 A CN 115001880A
Authority
CN
China
Prior art keywords
module
target
experiment
modules
equipment list
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.)
Pending
Application number
CN202210592300.8A
Other languages
Chinese (zh)
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.)
Chinainstru and Quantumtech Hefei Co Ltd
Original Assignee
Chinainstru and Quantumtech Hefei Co Ltd
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 Chinainstru and Quantumtech Hefei Co Ltd filed Critical Chinainstru and Quantumtech Hefei Co Ltd
Priority to CN202210592300.8A priority Critical patent/CN115001880A/en
Publication of CN115001880A publication Critical patent/CN115001880A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a modular connection control method, an upper computer and a storage medium, wherein the control method is used for controlling an EPR device, the EPR device comprises a plurality of modules, and the method comprises the following steps: receiving a module selection instruction, and generating an equipment list according to the module selection instruction; establishing connection with a target module in the equipment list, and confirming the connection state with the target module; and after the successful connection with all the target modules in the equipment list is confirmed and the experiment starting instruction is received, locking the equipment list. When the modularized connection control method is used for experiments, only modules participating in the experiments in the EPR equipment are started, the modules not participating in the experiments are in a closed or standby state, and no data transmission exists between the modules and an upper computer, so that the energy consumption and the computing resources of the equipment are reduced, and when the modules not participating in the experiments break down, the whole equipment cannot report errors, and the robustness of the EPR equipment is improved.

Description

Modular connection control method, upper computer and storage medium
Technical Field
The invention relates to the technical field of EPR (Ethernet Passive optical network) equipment, in particular to a modular connection control method, an upper computer and a storage medium.
Background
The EPR (Electron Paramagnetic Resonance) has a wide range of applications, for example, detection of carriers and crystal defects in conductors and semiconductors in physics, detection of organometallic compounds in chemistry, radical reaction kinetics experiment, petroleum research, research on molecular diradicals and triplets, detection of free radicals, drug detection, research on carcinogen reaction, and the like in organic living cell tissues in biomedicine, and also age determination of geological and archaeological samples, food irradiation safety monitoring, detection of polymerization inhibitor performance in material science, measurement of oxygen free radicals in atmosphere in environmental science, and the like.
In different application scenarios and different experimental stages, different experiments, such as modulation field amplitude scan experiment, microwave power scan experiment, time scan experiment, noise scan experiment, magnetic field delay experiment, common continuous wave experiment, common pulse experiment, corner experiment, temperature change experiment, sweep echo detection experiment, etc., need to be carried out on the EPR.
In different experiments, an EPR system does not need to apply to all functions in the system. Conventional EPR equipment and host computer are established to be connected, then develop the experiment after the function that the instruction selection that assigns according to the host computer needs, above-mentioned scheme has the relatively poor shortcoming of the whole robustness of equipment, and when arbitrary part broke down, the equipment is whole to report the mistake to the development of experiment is influenced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, one objective of the present invention is to provide a modular connection control method, which improves the robustness of an EPR device and reduces the device energy consumption and computational resources.
A second object of the invention is to propose a computer-readable storage medium.
The third purpose of the invention is to provide an upper computer.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a modular connection control method, where the method is used to control an EPR device, where the EPR device includes a plurality of modules, and the method includes: receiving a module selection instruction, and generating an equipment list according to the module selection instruction; establishing connection with a target module in the equipment list, and confirming the connection state with the target module; and after the successful connection with all target modules in the equipment list is confirmed and an experiment starting instruction is received, locking the equipment list.
According to the modular connection control method provided by the embodiment of the invention, when relevant experiments are carried out, only the module participating in the experiments in the EPR equipment is started, the module not participating in the experiments is in a closed or standby state, no data is transmitted between the module not participating in the experiments and the upper computer, the energy consumption and the computing resources of the equipment are reduced, and when the module not participating in the experiments breaks down, the whole equipment cannot report errors, so that the robustness of the EPR equipment is improved.
In addition, the modular connection control method proposed according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, the module selection instruction includes experiment type information, wherein generating an equipment list according to the module selection instruction includes: and determining a target module according to the experiment type information, and generating the equipment list according to the determined target module.
According to an embodiment of the present invention, establishing a connection with a target module in the device list includes: sending a handshake instruction to the target module; receiving response information fed back by the target module aiming at the handshake instruction; and when all the target modules in the equipment list are detected to feed back the response information, the completion of the connection establishment with the target modules in the equipment list is confirmed.
According to an embodiment of the present invention, the confirming the connection status with the target module in the device list includes: initiating polling to all target modules in the device list; and receiving a response data packet fed back by the target module aiming at the polling, determining that the connection with all the target modules in the equipment list is successful when detecting that all the target modules in the equipment list feed back the response data packet, and sending an experiment starting prompt.
According to one embodiment of the invention, upon detecting the presence of an unanswered target module, the method further comprises: sending a handshake instruction to the target module which does not respond, and starting polling to all the target modules in the equipment list again after connection is completed; or sending handshake instructions to all the target modules in the device list, and after connection is completed, starting polling to the target modules in the device list again.
According to an embodiment of the present invention, the experiment type information includes a plurality of experiment stage information, each of the experiment stage information corresponds to a set of target modules, wherein generating the device list according to the module selection instruction includes: determining a target module group of each experimental stage according to the experimental stage information, and generating the equipment list according to the target module group corresponding to the first experimental stage; the method further comprises the following steps: and when entering the next experiment stage after the current experiment stage is finished, unlocking the equipment list, and updating the equipment list by using the target module group corresponding to the next experiment stage.
According to an embodiment of the invention, the method further comprises: when an experiment ending instruction is received, unlocking the equipment list; and updating the equipment list when a module adding instruction or a module disconnecting instruction is received.
According to an embodiment of the present invention, when updating the device list, a disconnection module and a new module are determined; and sending a waving instruction to the disconnection module to disconnect the connection with the disconnection module, and sending a handshake instruction to the newly added module to establish the connection with the newly added module.
To achieve the above object, a second embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the modular connection control method as described above.
In order to achieve the above object, a third aspect of the present invention provides a host computer, including a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the host computer implements the above modular connection control method.
Drawings
FIG. 1 is a schematic diagram of a communication connection between a host computer and an EPR device according to an embodiment of the present invention;
FIG. 2 is a flow chart of a modular connectivity control method of one embodiment of the present invention;
FIG. 3 is a flow diagram of establishing a connection with a target module in a device list, according to one embodiment of the invention;
FIG. 4 is a flow diagram of validating connection status of a target module, according to one embodiment of the invention;
FIG. 5 is a flowchart of unlocking or updating a device list after an experiment is completed, in accordance with one embodiment of the present invention;
FIG. 6 is a flow diagram of updating a device list according to one embodiment of the invention;
FIG. 7 is a flow chart of a modular connectivity control method of an embodiment of the present invention;
FIG. 8 is a schematic diagram of an upper computer of one embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and intended to explain the present invention and should not be construed as limiting the present invention.
The modular connection control method, the upper computer and the storage medium according to the embodiment of the invention will be described in detail with reference to fig. 1 to 8 and specific embodiments of the specification.
The modular connection control method is used for controlling the EPR equipment, and the EPR equipment comprises a plurality of modules.
Specifically, a plurality of modules of the EPR equipment are all in communication connection with an upper computer. Each module includes a communication interface and each module corresponds to an IP address. Each module is in communication connection with an upper computer through a communication interface. The upper computer can determine a corresponding unique module according to the IP address.
In the embodiment of the invention, the upper computer comprises an operating system and an operating interface. And all modules of the EPR equipment are displayed on the operation interface.
In the embodiment of the invention, when the plurality of modules included in the EPR device are classified and divided in a digitalized manner, the EPR device can be divided into a control module and a signal module. The control module can comprise a microwave transmitting module, a microwave receiving module, a resonant cavity module, a magnetic field module, a radio frequency module, a modulation field module, a temperature control module and the like. The signal module may include a scaling module, an integration module, an oscillometric module, an acquisition module, and the like. The division manner of the modules is not limited to the division manner of the products. The upper computer is in communication connection with the control module and the signal module, as shown in fig. 1.
Fig. 2 is a flow chart of a modular connectivity control method of one embodiment of the present invention. In one embodiment of the present invention, as shown in fig. 2, a modular connection control method may include:
and S1, receiving a module selection instruction, and generating a device list according to the module selection instruction.
Specifically, when relevant experiments are carried out, modules required by the experiments are determined according to experiment requirements. The user can select and confirm the module required by the experiment on the operation interface of the upper computer, namely, a module selection instruction is issued. And after receiving the module selection instruction, the upper computer determines a target module according to the module selection instruction and generates an equipment list according to the determined target module.
In an embodiment of the present invention, the module selection instruction may include selection information of the target module, wherein generating the device list according to the module selection instruction may include: and determining a target module according to the selection information, and generating a device list according to the determined target module.
Specifically, a user sequentially selects and confirms modules required by the experiment on an operation interface of the upper computer, module selection instructions are issued, after the upper computer receives the module selection instructions, the target modules are determined according to selection information of the target modules in the module selection instructions, and an equipment list is generated according to the determined target modules.
As a feasible example, the EPR equipment comprising all modules is displayed on the operation interface, the operation interface comprises a 'determination' option, and a user clicks the required modules in sequence and clicks the 'determination' option, so that a module selection instruction can be issued.
And S2, establishing connection with the target module in the device list, and confirming the connection state with the target module.
Specifically, connection with the target module in the device list is established according to the target module in the device list, and after the connection is established, the connection state with the target module is confirmed so as to prevent disconnection of the target module after the connection is established.
In one embodiment of the present invention, as shown in fig. 3, establishing a connection with a target module in the device list may include:
and S21, sending a handshake instruction to the target module.
And S22, receiving response information fed back by the target module aiming at the handshake instruction.
And S23, confirming that the connection with the target modules in the equipment list is completed when detecting that all the target modules in the equipment list feed back the response information.
Specifically, a connection option is selected and determined on the operation interface, for example, a user clicks connection on the operation interface, the upper computer sends a handshake instruction to all target modules in the device list according to the device list, and after receiving the handshake instruction, the target modules start the modules and acquire parameters of the modules, and send response information, such as connection confirmation information and parameter information of the modules, to the upper computer. And the upper computer receives response information (connection confirmation information of the target module and self parameter information of the target module) fed back by the target module aiming at the handshake instruction, traverses each target module on the equipment list, and confirms that the connection between the upper computer and the target modules in the equipment list is completed when all the target modules feed back the response information.
It should be noted that the module is started only after the target module receives the handshake instruction, and other non-target modules are in a shutdown or standby state at this time. And no data transmission exists between the non-target module and the upper computer, so that the energy consumption and the computing resources are reduced.
And after the upper computer is connected with the target modules in the equipment list, confirming the connection condition of the upper computer and the target modules in the equipment list so as to prevent the target modules from being disconnected after the connection is established.
In an embodiment of the present invention, as shown in fig. 4, the confirming the connection status with the target module in the device list may include:
s24, initiate polling to all target modules in the device list.
And S25, receiving a response data packet fed back by the target module for polling.
And S26, when detecting that all the target modules in the equipment list feed back the response data packets, determining that the connection with all the target modules in the equipment list is successful, and sending an experiment starting prompt.
Specifically, the upper computer sends polling requests to all target modules in the equipment list, and after receiving the polling requests, the target modules send response data packets aiming at the polling requests to the upper computer. And after receiving the response data packet fed back by the target module aiming at the polling, the upper computer traverses each target module on the equipment list, detects whether the target module which does not feed back the response data packet exists, determines that the connection with all the target modules in the equipment list is successful when all the target modules in the equipment list feed back the response data packet, and sends out an experiment starting prompt. The experiment starting prompt can be an operation interface displaying an experiment starting mark.
It should be noted that the information of the response data packet fed back by different types of modules is different. The response data packet of the control module includes changed device parameter information and "null" data in which the device parameters are unchanged. The reply data packet of the signal module includes changed device parameter information, "null" data in which the device parameter is not changed, and detection data information.
When the target module without the feedback response data packet exists, the upper computer is not successfully connected with the target module without the feedback response data packet, the operation interface prompts that the target module without the feedback response data packet is disconnected, and the experiment cannot be started at the moment.
In an embodiment of the present invention, when it is detected that there is an unanswered target module, the modular connection control method may further include: sending a handshake instruction to the target modules which do not respond, and starting polling to all the target modules in the equipment list again after connection is completed; or sending handshake commands to all target modules in the device list, and starting polling to the target modules in the device list again after connection is completed.
Specifically, a user can manually select an object module which is connected with an unanswered object module independently, the user selects the object module which is not answered on an operation interface, the upper computer sends a handshake instruction to the object module which is not answered independently, receives a response data packet which is fed back by the object module which is not answered aiming at the handshake instruction, starts polling to all object modules in the equipment list again after connection with the object module which is not answered is completed, detects whether the response data packet which is fed back by all the object modules aiming at the polling is received, and displays that all the object modules are successfully connected and sends out an experiment starting prompt after the response data packet which is fed back by all the object modules is received. Otherwise, the operation interface keeps prompting the 'off-line state'.
Specifically, the user can click the connection option on the operation interface again, the upper computer sends the handshake instruction to all target modules in the device list again, receives response data packets fed back by all the target modules according to the handshake instruction, after connection is established with all the target modules, starts polling to all the target modules in the device list again, detects whether the response data packets fed back by all the target modules according to the polling are received, and after the response data packets fed back by all the target modules are received, displays that all the target modules are successfully connected, and sends out an experiment starting prompt. Otherwise, the operation interface keeps prompting the 'off-line state'.
It should be noted that, if the reconnection and polling are performed by the two methods, the connection with the target module that has not responded still cannot be successfully established, which indicates that the target module has a fault, and the user may select an experiment that can be developed to work according to the available modules.
And S3, after the connection with all the target modules in the equipment list is confirmed to be successful and the experiment starting instruction is received, locking the equipment list.
Specifically, the upper computer is successfully connected with all target modules in the equipment list, an 'experiment starting' mark is displayed on the operation interface, a user clicks an 'experiment starting' option to issue an experiment starting instruction, or after the upper computer confirms that all target modules in the equipment list are successfully connected, the 'experiment starting' mark is displayed on the operation interface and automatically issues the experiment starting instruction, and the upper computer locks the equipment list after receiving the experiment starting instruction and starts an experiment. At the moment, the user cannot change the equipment list, and can adjust the equipment list only after the experiment is finished or the experiment is interrupted, so that the safety of the experiment carrying process is ensured to a certain extent.
In an embodiment of the present invention, as shown in fig. 5, the modular connection control method may further include:
s31, when the experiment end instruction is received, the device list is unlocked.
And S32, updating the device list when a module adding instruction or a module disconnecting instruction is received.
Specifically, after the experiment is finished, the operation interface displays an experiment end mark, the user clicks the experiment end to issue an experiment end instruction, or the upper computer automatically issues the experiment end instruction after judging that the experiment is finished, and the upper computer unlocks the equipment list after receiving the experiment end instruction. At this point, adjustments may be made to the device list, such as adding a target module, or deleting a target module from the device list.
Further specifically, the target modules in the device list may be adjusted according to the modules required for the next experiment. And selecting a newly added module needing to be connected or a disconnected module needing to be disconnected on the operation interface. And the upper computer receives the module newly-increased instruction, determines a newly-increased module according to the module newly-increased instruction, and updates the equipment list, namely adding a newly-increased module record in the equipment list. And when the upper computer receives the module disconnection instruction, the upper computer determines a disconnection module according to the module disconnection instruction, and updates the equipment list, namely removes the module record needing to be disconnected in the equipment list.
In one embodiment of the present invention, as shown in fig. 6 and 7, when updating the device list, the method may include:
s321, determining a disconnection module and a newly added module;
s322, sending a waving instruction to the disconnection module to disconnect the connection with the disconnection module, and sending a handshake instruction to the new module to establish the connection with the new module.
Specifically, when the upper computer receives a module adding instruction, adding a newly added module record in the device list, determining a newly added module according to the module adding instruction, sending a handshake instruction to the newly added module, and establishing connection with the newly added module, wherein the connection mode between the upper computer and the newly added module is similar to the connection mode between the upper computer and the target module, and is not repeated here.
Specifically, when the upper computer receives a module disconnection instruction, the module record needing to be disconnected is removed from the equipment list, the disconnection module is determined according to the module disconnection instruction, and a hand waving instruction is sent to the disconnection module to disconnect the connection with the disconnection module.
It should be noted that the number of the disconnection modules and the new modules may be 1, 2, 3, and the like, which is not limited herein. And the upper computer establishes connection with the target module in the updated equipment list according to the updated equipment list and then starts polling again.
In the embodiment of the invention, the operation interface of the upper computer not only displays all modules of the EPR equipment, but also displays the experiment types capable of carrying out related experiments. When the correlation is carried out, a user can select modules required by the experiment in sequence to carry out the experiment and can also select the type of the experiment to carry out the experiment.
In an embodiment of the present invention, the module selection instruction may include experiment type information, wherein generating the device list according to the module selection instruction may include: and determining a target module according to the experiment type information, and generating an equipment list according to the determined target module.
Specifically, a user selects and confirms the experiment type required by the experiment on an operation interface of the upper computer, a module selection instruction is issued, after the upper computer receives the module selection instruction, the upper computer determines a target module according to the fact that the experiment type information in the module selection instruction comprises a group of target modules, and an equipment list is generated according to the determined target modules.
It should be noted that each experiment type information correspondingly includes a set of preset target modules.
As a feasible implementation manner, a user selects and confirms a target experiment type on an operation interface, and selects an automatic configuration module, and the upper computer automatically configures a corresponding equipment list according to the target experiment type selected by the user, that is, determines a set of preset target modules corresponding to the target experiment type, and generates the set of target modules into the equipment list.
It should be noted that the device list may be displayed on the operation interface, and the user may check whether the device list automatically generated by the upper computer according to the experiment type information is correct, and if not, the user may manually add or remove the target module in the device list. And if the connection is correct, the user clicks the 'confirm' option, and the upper computer sends a connection establishment request to the corresponding target module according to the content of the equipment list. And after connection with the target modules in the equipment list is established, confirming the connection condition with the target modules, and after the successful connection with all the target modules in the equipment list is confirmed and an experiment starting instruction is received, locking the equipment list.
In an embodiment of the present invention, the experiment type information further includes a plurality of experiment stage information, each of the experiment stage information corresponds to a group of target modules, wherein the generating of the device list according to the module selection instruction may include: determining a target module group of each experiment stage according to the experiment stage information, and generating an equipment list according to the target module group corresponding to the first experiment stage; the modular connection control method may further include: and when the next experiment stage is entered after the current experiment stage is finished, unlocking the equipment list, and updating the equipment list by using the target module group corresponding to the next experiment stage.
The device list of the embodiment of the invention also has a dynamic list attribute. A complete experimental program may include different experimental phases corresponding to different target modules. Therefore, when a complete experiment program comprises different experiment stages, namely a user selects and confirms a plurality of experiment stages on an operation interface, and the experiment type information received by the upper computer comprises a plurality of experiment stage information, in the experiment process, the upper computer can be connected with one part of target modules in a certain experiment stage, and can be connected with the other part of target modules in another experiment stage. When the experiment type information comprises a plurality of experiment stage information, the upper computer can automatically configure the dynamic equipment list according to the experiment type information.
It should be noted that, the user also needs to select a custom experiment automatic configuration module in the multiple experiment stages selected and confirmed by the operation interface.
Specifically, the upper computer determines a group of target modules corresponding to the first experiment stage information according to the first experiment stage information, generates an equipment list, sends handshake instructions to all the target modules in the equipment list after the equipment list is generated, the target modules receive the handshake instructions sent by the upper computer and feed back response information, and when all the target modules in the equipment list are detected to feed back the response information, the upper computer establishes connection with the target modules in the equipment list. And after the connection between the upper computer and all the target modules in the equipment list is completed, polling all the target modules in the equipment list is started, and after all the target modules feed back response data packets, the upper computer and all the target modules in the equipment list are successfully connected, locking the current equipment list, and carrying out the stage of experiment.
Further specifically, after the current experiment stage is finished and before the experiment of the next stage is started, the upper computer automatically releases the locking of the current equipment list, updates the equipment list according to a group of target module groups corresponding to the next experiment stage, establishes connection with the updated target modules based on the updated equipment list, confirms the connection state, locks the current equipment list after the connection is determined, and performs the experiment of the stage until the experiment of the last stage is finished. It should be noted that, here, the manner of updating the device list, the manner of establishing the connection, and the confirmation of the connection state are the same as those described above, and are not described herein again.
As an example, before the normal continuous wave experiment starts, a modulation field amplitude scanning experiment is performed to correct the spectrometer modulation field amplitude, and then a microwave power scanning experiment is performed to find the proper microwave power of the sample, because the signal intensity of the sample and the microwave power are not simply linear relations. And finally, carrying out a common continuous wave experiment. The experiment is used as a complete experiment program, and the complete experiment program comprises three stages of correcting the amplitude of a spectrometer modulation field, searching a sample for proper microwave power and performing a common continuous wave experiment according to an experiment sequence.
And selecting the three experiment types on the operation interface by the user, checking the self-defined experiment automatic configuration option, and clicking the 'determination' of the operation interface. The three different stages have different experiment types, the corresponding target module groups are different, and the corresponding equipment lists of the experiments in the different stages are different. The upper computer automatically configures a dynamic equipment list in different experimental stages, namely, in the stage of correcting the modulation field amplitude of the spectrometer, automatically configures an equipment list corresponding to the experimental stage, automatically configures an equipment list corresponding to the modulation field amplitude of the spectrometer, establishes connection with a target module group in the equipment list corresponding to the experimental stage, confirms the connection state with the target module, and after confirming that all target modules in the equipment list are successfully connected and receiving an experiment starting instruction, locks the equipment list corresponding to the stage of correcting the modulation field amplitude of the spectrometer and performs an experiment of correcting the modulation field amplitude of the spectrometer.
After the experiment of the phase of correcting the amplitude of the modulation field of the spectrometer is completed, the upper computer unlocks the equipment list, compares the equipment list corresponding to the phase of searching for the proper microwave power of the sample with the equipment list corresponding to the phase of correcting the amplitude of the modulation field of the spectrometer, determines a disconnected module and/or a newly added module, sends a hand waving instruction to the module needing to be disconnected so as to disconnect, sends a handshake instruction to the module needing to be newly added so as to establish connection, judges that the connection is completed after the hand waving instruction and/or the handshake instruction are completely completed, starts polling to a target module in the equipment list corresponding to the phase of searching for the proper microwave power of the sample so as to confirm the connection state with the target module, and locks the equipment list corresponding to the phase of searching for the proper microwave power of the sample after confirming that the equipment list is successfully connected with all the target modules in the equipment list and receiving the experiment starting instruction, an experiment was conducted to find a suitable microwave power for the sample.
After the experiment for finding the proper microwave power of the sample is finished, similarly, the equipment list is updated to the equipment list corresponding to the ordinary continuous wave experiment stage according to the equipment list updating mode, and the equipment list corresponding to the ordinary continuous wave experiment stage is established, confirmed in connection and connection state and locked. After the ordinary continuous wave experiment is finished, namely after the experiment at the last stage in the whole experiment process is finished, the operation interface displays an experiment completion mark. The operation interface displays an experiment completion mark which can prompt a user that the experiment is completely completed in a form of a progress bar and a percentage.
It should be noted that the ordinary continuous wave experiment stage also includes a plurality of sub-stages, and when the ordinary continuous wave experiment stage is performed, the instruction to start the experiment is issued only once, and all the sub-stages perform the experiment in sequence. Specifically, for example, a temperature-changing experiment (ordinary continuous wave experiment under different temperature conditions): and starting the experiment at an initial value, such as 20 ℃, executing the ordinary continuous wave experiment under the temperature condition, after the experiment is finished, raising the temperature to 30 ℃, then executing the ordinary continuous wave experiment under the temperature condition, and the like.
It should be noted that, in the processes of the experiment for correcting the modulation field amplitude of the spectrometer, the experiment for searching the proper microwave power of the sample and the ordinary continuous wave experiment, the equipment list is in a locked state.
According to the modular connection control method, when a plurality of modules in an EPR device are controlled to perform experiments, a target module of the experiment is determined, a device list containing the target module is generated, only the connection with the target module in the device list is established, and the connection state of the target module in the device list is confirmed. Other modules required by non-experiments are in a closed or standby state, when the module not participating in the experiment breaks down, the error report of the EPR equipment can not occur in the experiment stage, and the experiment can still be normally carried out. Only the module (target module) participating in the experiment is in a working state, the module not participating in the experiment is in a closing or standby state, and data does not need to be transmitted between the module not participating in the experiment and the upper computer, so that unnecessary energy consumption and computational resources are avoided. When the upper computer establishes connection with the target module, the connection condition is confirmed, and when a certain target module is disconnected, connection is carried out in time. When individual modules in the EPR equipment break down, the user can arrange the modules according to the available modules and select the experiment which can be developed to work.
The invention also provides a computer readable storage medium.
In one embodiment of the invention, a computer program is stored on a computer readable storage medium, which when executed by a processor implements the modular connection control method as described above.
The invention also provides an upper computer.
In an embodiment of the present invention, as shown in fig. 8, the upper computer 100 includes a memory 10 and a processor 20, and a computer program is stored on the memory 20, and when the computer program is executed by the processor 20, the modular connection control method as described above is implemented.
According to the modular connection control method, the upper computer and the storage medium, the module required by the experiment is started according to the user module selection instruction, other modules not required by the experiment are in a closed or standby state, no data is transmitted between the upper computer and the other modules not required by the experiment, energy consumption and computing resources of the equipment are reduced, when the modules not involved in the experiment break down, the whole EPR equipment cannot report errors, and the robustness of the EPR equipment is improved. And after the connection between the upper computer and the target module is established, the connection condition is confirmed so as to connect in time when a certain target module is disconnected. When individual modules in the EPR equipment break down, the user can arrange the modules according to the available modules and select the experiment which can be developed to work.
It should be noted that the logic and/or steps shown in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Further, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be interconnected within two elements or in a relationship where two elements interact with each other unless otherwise specifically limited. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A modular connection control method for controlling an EPR device comprising a plurality of modules, the method comprising:
receiving a module selection instruction, and generating an equipment list according to the module selection instruction;
establishing connection with a target module in the equipment list, and confirming the connection state with the target module;
and after the successful connection with all target modules in the equipment list is confirmed and an experiment starting instruction is received, locking the equipment list.
2. The modular connection control method of claim 1, wherein the module selection instruction comprises experiment type information, wherein generating the device list according to the module selection instruction comprises:
and determining a target module according to the experiment type information, and generating the equipment list according to the determined target module.
3. The modular connectivity control method of claim 1, wherein establishing connectivity with a target module in the device list comprises:
sending a handshake instruction to the target module;
receiving response information fed back by the target module aiming at the handshake instruction;
and when all the target modules in the equipment list are detected to feed back the response information, the completion of the connection establishment with the target modules in the equipment list is confirmed.
4. The modular connection control method of claim 4, wherein confirming the connection status with the target module in the device list comprises:
initiating polling to all target modules in the device list;
receiving a response data packet of the target module for the polling feedback;
and when detecting that all target modules in the equipment list feed back response data packets, determining that the connection with all target modules in the equipment list is successful, and sending an experiment starting prompt.
5. The modular connection control method of claim 4, wherein upon detecting the presence of an unanswered target module, the method further comprises:
sending a handshake instruction to the target module which does not respond, and starting polling to all the target modules in the equipment list again after connection is completed; or the like, or, alternatively,
and sending handshake instructions to all the target modules in the equipment list, and starting polling to the target modules in the equipment list again after connection is completed.
6. The modular connection control method of claim 2, wherein the experiment type information comprises a plurality of experiment stage information, each experiment stage information corresponding to a set of target modules, wherein generating the device list according to the module selection instruction comprises:
determining a target module group of each experimental stage according to the experimental stage information, and generating the equipment list according to the target module group corresponding to the first experimental stage;
the method further comprises the following steps:
and when entering the next experiment stage after the current experiment stage is finished, unlocking the equipment list, and updating the equipment list by using the target module group corresponding to the next experiment stage.
7. The modular connectivity control method of claim 1, further comprising:
when an experiment ending instruction is received, unlocking the equipment list;
and updating the equipment list when a module adding instruction or a module disconnecting instruction is received.
8. Modular connection control method according to claim 6 or 7, characterized in that, when updating the device list,
determining a disconnection module and a newly added module;
and sending a hand waving instruction to the disconnection module to disconnect the connection with the disconnection module, and sending a handshake instruction to the newly added module to establish the connection with the newly added module.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the modular connection control method according to any one of claims 1 to 8.
10. A host computer comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, implements the modular connection control method of any of claims 1-8.
CN202210592300.8A 2022-05-27 2022-05-27 Modular connection control method, upper computer and storage medium Pending CN115001880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210592300.8A CN115001880A (en) 2022-05-27 2022-05-27 Modular connection control method, upper computer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210592300.8A CN115001880A (en) 2022-05-27 2022-05-27 Modular connection control method, upper computer and storage medium

Publications (1)

Publication Number Publication Date
CN115001880A true CN115001880A (en) 2022-09-02

Family

ID=83028537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210592300.8A Pending CN115001880A (en) 2022-05-27 2022-05-27 Modular connection control method, upper computer and storage medium

Country Status (1)

Country Link
CN (1) CN115001880A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854904A (en) * 1996-10-15 1998-12-29 Brown; Erik Lee Object-oriented modular electronic component system
WO2007050772A2 (en) * 2005-10-25 2007-05-03 Allied Healthcare Products, Inc. Monitoring system
CN203134222U (en) * 2013-02-01 2013-08-14 江世明 Cordwood modularized singlechip experimental facility
CN106875793A (en) * 2017-02-16 2017-06-20 深圳盛思科教文化有限公司 Modularized electronic instructional device and its joining method
CN107067907A (en) * 2016-03-09 2017-08-18 南京邮电大学 A kind of real time remote restructural online experiment chamber system
CN108196674A (en) * 2017-12-29 2018-06-22 梁穗 Physical model for virtually sensing reality, system and implementation method by virtual unit sensing real model
CN113110994A (en) * 2021-04-19 2021-07-13 深圳市元征科技股份有限公司 Vehicle diagnosis method and device, electronic equipment and storage medium
CN113556210A (en) * 2021-07-16 2021-10-26 青岛信芯微电子科技股份有限公司 Upper computer and method for establishing communication connection

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854904A (en) * 1996-10-15 1998-12-29 Brown; Erik Lee Object-oriented modular electronic component system
WO2007050772A2 (en) * 2005-10-25 2007-05-03 Allied Healthcare Products, Inc. Monitoring system
CN203134222U (en) * 2013-02-01 2013-08-14 江世明 Cordwood modularized singlechip experimental facility
CN107067907A (en) * 2016-03-09 2017-08-18 南京邮电大学 A kind of real time remote restructural online experiment chamber system
CN106875793A (en) * 2017-02-16 2017-06-20 深圳盛思科教文化有限公司 Modularized electronic instructional device and its joining method
CN108196674A (en) * 2017-12-29 2018-06-22 梁穗 Physical model for virtually sensing reality, system and implementation method by virtual unit sensing real model
CN113110994A (en) * 2021-04-19 2021-07-13 深圳市元征科技股份有限公司 Vehicle diagnosis method and device, electronic equipment and storage medium
CN113556210A (en) * 2021-07-16 2021-10-26 青岛信芯微电子科技股份有限公司 Upper computer and method for establishing communication connection

Similar Documents

Publication Publication Date Title
AU2018202770A1 (en) Pairing of a battery monitor to a communication device, by message encoded in battery current
CN111478737B (en) Radio frequency test method, device, electronic device and storage medium
CN102474716B (en) Communication apparatus and communication apparatus control method
US20150117317A1 (en) Apparatus and method for determining validity of wifi connection in wireless communication system
CN102413585A (en) Wireless terminal and wireless connection method
CN111615123A (en) Method, device and storage medium for intelligent device network distribution
CN109814892A (en) Device updating method, apparatus and system, storage medium
TWI255110B (en) Access point
US8230491B2 (en) Automatic access to network devices using various authentication schemes
CN110752954A (en) Networking fault detection method and related device for household electrical appliance
CN115001880A (en) Modular connection control method, upper computer and storage medium
CN112272118A (en) Network repairing method, device, storage medium and electronic equipment
CN114721917A (en) Data acquisition method, device, system, equipment and storage medium
CN110853323A (en) Upgrading method and device for remote control equipment
CN111277428A (en) Network distribution method and system for Internet of things equipment
US11489719B2 (en) Configuration device and method
CN115034050A (en) Experiment method, storage medium, electronic device, and experiment system
CN104469656B (en) Data transmission method based on NFC and system
CN108574950B (en) Public land network PLMN access method and device
US20130198283A1 (en) Apparatus and method of control point for device discovery
CN114785461A (en) Data transmission method and system for continuous monitoring system
CN110519736B (en) Bluetooth device switch connection method and device and computer readable storage medium
CN114693315A (en) Product encryption method, production line tooling equipment and production system
CN111836240B (en) Bluetooth connection establishment method and device, electronic equipment and storage medium
CN113709793A (en) Distribution network testing method and system of intelligent lamp

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 230088 floor 1-4, zone a, building E2, phase II, innovation industrial park, No. 2800, innovation Avenue, high tech Zone, Hefei, Anhui Province

Applicant after: Guoyi Quantum Technology (Hefei) Co.,Ltd.

Address before: 230088 floor 1-4, zone a, building E2, phase II, innovation industrial park, No. 2800, innovation Avenue, high tech Zone, Hefei, Anhui Province

Applicant before: Guoyi Quantum (Hefei) Technology Co.,Ltd.