CN114826966A - Time interval measuring instrument and system capable of adaptively selecting physical interface - Google Patents
Time interval measuring instrument and system capable of adaptively selecting physical interface Download PDFInfo
- Publication number
- CN114826966A CN114826966A CN202210474540.8A CN202210474540A CN114826966A CN 114826966 A CN114826966 A CN 114826966A CN 202210474540 A CN202210474540 A CN 202210474540A CN 114826966 A CN114826966 A CN 114826966A
- Authority
- CN
- China
- Prior art keywords
- interface
- data
- module
- physical
- selection
- 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.)
- Granted
Links
- 238000012544 monitoring process Methods 0.000 claims abstract description 104
- 238000004891 communication Methods 0.000 claims abstract description 57
- 238000004806 packaging method and process Methods 0.000 claims description 71
- 238000004458 analytical method Methods 0.000 claims description 58
- 238000007405 data analysis Methods 0.000 claims description 55
- 238000012545 processing Methods 0.000 claims description 9
- 239000000835 fiber Substances 0.000 claims description 4
- 238000000034 method Methods 0.000 abstract description 11
- 238000005259 measurement Methods 0.000 abstract description 2
- 238000013461 design Methods 0.000 description 25
- 239000013307 optical fiber Substances 0.000 description 15
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q1/00—Details of selecting apparatus or arrangements
- H04Q1/02—Constructional details
- H04Q1/028—Subscriber network interface devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q1/00—Details of selecting apparatus or arrangements
- H04Q1/18—Electrical details
- H04Q1/20—Testing circuits or apparatus; Circuits or apparatus for detecting, indicating, or signalling faults or troubles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention relates to the technical field of time interval measurement, and discloses a time interval measuring instrument and a system capable of adaptively selecting physical interfaces, wherein the measuring instrument comprises an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, any two physical interfaces in the plurality of physical interfaces are different, a data stream monitoring module and an interface driving module corresponding to the interface are configured in each physical interface, the plurality of physical interfaces correspond to a plurality of preset and different data streams one by one, so that the measuring instrument can be instructed to automatically select a target physical interface for subsequent data transceiving only by transmitting a specific data stream corresponding to the target physical interface in the current data transceiving process on the premise that external equipment is in communication connection with the target physical interface in the plurality of physical interfaces in advance, the purpose of completing interface switching on line is achieved, and the friendliness of the measuring instrument on an interface connection scheme can be effectively improved.
Description
Technical Field
The invention belongs to the technical field of time interval measurement, and particularly relates to a time interval measuring instrument and a time interval measuring system capable of adaptively selecting a physical interface.
Background
At present, the time interval measuring technology can reach a high level, namely, the time interval measuring instrument designed based on the principles of a direct counting method, an analog interpolation method, a vernier method and the like can reach higher precision, and a plurality of products can be applied to the market. In order to adapt to more scenarios, for example, to meet the requirement of connection with a computer or to be conveniently integrated into other devices, a plurality of physical interfaces, such as a USB (Universal Serial Bus) interface, an ethernet interface (sometimes also referred to as a network port), an optical fiber interface (sometimes also referred to as an optical port), and a Serial interface (sometimes also referred to as a Serial port), are reserved during the design of the time interval measuring instrument.
When the time interval measuring instrument is connected and used, in order to select a certain target physical interface, the existing interface connection scheme is to add a dial switch (also called a toggle switch, an over-frequency switch, an address switch, a toggle switch, a digital switch or a dip switch, which is an address switch for operation control and adopts the binary coding principle of 0/1), and to agree in advance that a certain coded value represents a physical interface, and before connecting external equipment, the dial switch is firstly made to point at the coded value corresponding to the target physical interface, and then the external equipment is connected to the target physical interface, so that the inside of the instrument can transmit and receive data with the external equipment through the target physical interface. However, the scheme has the obvious problem of lacking friendliness, namely, a user needs to select a target physical interface in advance and enable the dial switch to point to a corresponding code value, and the purpose of automatically selecting another physical interface and switching the interfaces cannot be realized in the data receiving and transmitting process.
Disclosure of Invention
In order to solve the problem of lack of friendliness of the conventional time interval measuring instrument in an interface connection scheme, the invention aims to provide a novel time interval measuring instrument and a time interval measuring system capable of adaptively selecting a physical interface.
The invention provides a time interval measuring instrument capable of adaptively selecting physical interfaces, which comprises an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, wherein any two physical interfaces in the plurality of physical interfaces are different, a data stream monitoring module and an interface driving module corresponding to the interface are configured in each physical interface, and the plurality of physical interfaces correspond to a plurality of preset and different data streams one by one;
the interface selection monitoring module is respectively in communication connection with each data stream monitoring module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and each interface driving module;
the interface driving module is used for driving the corresponding interface to receive and transmit data;
the data stream monitoring module is used for monitoring the data stream received at the corresponding interface to obtain a data stream monitoring result;
the interface selection monitoring module is used for generating interface selection indication information according to the data stream monitoring result from each data stream monitoring module;
the interface data selection module is used for selecting a certain physical interface from the plurality of physical interfaces according to the interface selection indication information, receiving data from the certain physical interface, and forwarding the data to be sent to an interface driving module of the certain physical interface.
Based on the invention content of the first aspect, an instrument side design scheme capable of adaptively selecting a physical interface is provided, that is, the instrument side design scheme includes an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with a data stream monitoring module and an interface driving module corresponding to the interface, and the plurality of physical interfaces correspond to a plurality of preset and different data streams one to one; the interface selection monitoring module is respectively in communication connection with the data stream monitoring modules, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the interface driving modules, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, a time interval measuring instrument can be indicated to automatically select the target physical interface for subsequent data transceiving only by transmitting a specific data stream corresponding to the target physical interface in the current data transceiving process, the purpose of completing interface switching on line is achieved, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and practical application and popularization are facilitated.
In one possible design, generating interface selection indication information according to a data stream monitoring result from each of the data stream monitoring modules includes:
when the data stream monitoring result from each data stream monitoring module comprehensively indicates that only one data stream exists, generating first interface selection indication information for indicating to select a physical interface corresponding to the data stream;
and/or when the data stream monitoring result from each data stream monitoring module comprehensively indicates that at least two different data streams exist, selecting a physical interface corresponding to the highest interface priority from the at least two physical interfaces according to a preset interface priority order, and then generating second interface selection indication information for indicating selection of the physical interface, wherein the at least two physical interfaces are in one-to-one correspondence with the at least two data streams.
In one possible design, the system also comprises a data analysis and package module which is in communication connection with the interface data selection module and a service module which is in communication connection with the data analysis and package module;
the data analyzing and packaging module is used for analyzing the data from the certain physical interface, then transmitting an analysis result to the service module, and packaging the data to be transmitted from the service module so as to transmit the data to the outside through the interface driving module of the certain physical interface;
and the business module is used for carrying out business processing on the analysis result from the data analysis and packaging module and generating the data to be sent.
In one possible design, the plurality of physical interfaces includes a USB interface, an ethernet interface, a fiber optic interface, and/or a serial interface.
The invention provides another time interval measuring instrument capable of adaptively selecting a physical interface, which comprises an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, wherein any two physical interfaces in the plurality of physical interfaces are different, and each physical interface is provided with an interface driving module and a data analysis and package module corresponding to the interface;
the interface selection monitoring module is respectively in communication connection with the data analysis and packaging modules, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the data analysis and packaging modules;
the interface driving module is used for driving the corresponding interface to receive and transmit data;
the data analyzing and packaging module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and packaging the data to be transmitted from the interface data selection module so as to transmit the data to the outside through the interface driving module;
the interface selection monitoring module is used for acquiring an interface switching instruction from the analysis result of each data analysis and packaging module and generating interface selection indication information according to the interface switching instruction;
the interface data selection module is used for selecting a certain physical interface from the plurality of physical interfaces according to the interface selection indication information, receiving an analysis result from the certain physical interface, and forwarding the data to be sent to the data analysis and packaging module of the certain physical interface.
Based on the invention content of the second aspect, another design scheme of an instrument side capable of adaptively selecting a physical interface is provided, that is, the design scheme includes an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with an interface driving module and a data parsing and packaging module corresponding to the interfaces; the interface selection monitoring module is respectively in communication connection with the data analysis and package module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the data analysis and package module, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, a time interval measuring instrument can be instructed to automatically select the target physical interface for subsequent data transceiving only by transmitting an interface switching instruction for instructing to switch to the target physical interface in the current data transceiving process, the purpose of completing interface switching on line is realized, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and the practical application and popularization are facilitated.
In one possible design, when the number of the interface switching instructions is at least two, generating interface selection indication information according to the interface switching instructions includes:
judging whether switching to the same physical interface is instructed in the instruction contents of at least two interface switching instructions;
and if so, generating third interface selection indication information for indicating to select the same physical interface, otherwise, switching to a physical interface corresponding to the highest interface priority from at least two different physical interfaces according to a preset interface priority sequence, and then generating fourth interface selection indication information for indicating to select the physical interface.
In one possible design, the system further comprises a service module which is in communication connection with the interface data selection module;
and the service module is used for carrying out service processing on the analysis result from the interface data selection module and generating the data to be sent. .
The third aspect of the present invention provides another time interval measuring instrument capable of adaptively selecting a physical interface, which includes a service module, a data forwarding module and a plurality of physical interfaces, wherein any two physical interfaces of the plurality of physical interfaces are different, and each of the physical interfaces is configured with an interface driving module and a data parsing and packaging module corresponding to the interfaces;
the data forwarding module is in communication connection with the service module, and each data analysis and packaging module is in communication connection with the data forwarding module respectively;
the interface driving module is used for driving the corresponding interface to receive and transmit data;
the data analyzing and packaging module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and packaging the data to be transmitted from the data forwarding module so as to transmit the data to the outside through the interface driving module;
the data forwarding module is used for forwarding and transmitting the analysis result serving as the only effective analysis data to the service module when only the analysis result from a certain data analysis and packaging module is received, and forwarding the data broadcast to be sent from the service module to each data analysis and packaging module;
and the service module is used for carrying out service processing on the analysis data and generating the data to be sent.
Based on the invention content of the third aspect, another design scheme of an instrument side capable of adaptively selecting a physical interface is provided, that is, the design scheme includes a service module, a data forwarding module and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with an interface driving module and a data parsing and packaging module corresponding to the interfaces; the data forwarding module is in communication connection with the service module, and each data analysis and package module is in communication connection with the data forwarding module respectively, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, the time interval measuring instrument can be instructed to automatically select the target physical interface for instant data transceiving only by transmitting data to the target physical interface, the purpose of completing interface switching on line is achieved, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and practical application and popularization are facilitated.
In one possible design, the data forwarding module is further configured to select, when analysis results from the at least two data analysis and packaging modules are received simultaneously, an analysis result corresponding to a highest interface priority from the at least two analysis results as unique and valid analysis data according to a preset interface priority order, and then forward and transmit the unique and valid analysis data to the service module, where the at least two analysis results correspond to the at least two data analysis and packaging modules one to one.
A fourth aspect of the present invention provides a time interval measuring system, comprising a controller and the time interval measuring apparatus as described in any of the first to third aspects and any possible design of the first to third aspects, wherein the controller is configured to simultaneously communicatively connect at least two physical interfaces of a plurality of physical interfaces of the time interval measuring apparatus.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an internal structure of a first time interval measuring instrument provided by the present invention.
Fig. 2 is a diagram of an application example of a first time interval measuring instrument provided by the present invention.
Fig. 3 is a schematic diagram of the internal structure of a second time interval measuring instrument provided by the present invention.
Fig. 4 is a diagram of an application example of a second time interval measuring instrument provided by the invention.
Fig. 5 is a schematic diagram of the internal structure of a third time interval measuring instrument provided by the present invention.
Fig. 6 is a schematic structural diagram of a time interval measuring system provided by the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. Specific structural and functional details disclosed herein are merely representative of exemplary embodiments of the invention. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another. For example, a first object may be referred to as a second object, and similarly, a second object may be referred to as a first object, without departing from the scope of example embodiments of the present invention.
It should be understood that, for the term "and/or" as may appear herein, it is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, B exists alone or A and B exist at the same time; for the term "/and" as may appear herein, which describes another associative object relationship, it means that two relationships may exist, e.g., a/and B, may mean: a exists singly or A and B exist simultaneously; in addition, for the character "/" that may appear herein, it generally means that the former and latter associated objects are in an "or" relationship.
Example one
As shown in fig. 1 to 2, the first time interval measuring instrument capable of adaptively selecting a physical interface provided in this embodiment includes, but is not limited to, an interface selection monitoring module, an interface data selection module, and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with a data stream monitoring module and an interface driving module corresponding to the interface, and the plurality of physical interfaces correspond to a plurality of preset and different data streams one to one; the interface selection monitoring module is respectively in communication connection with each data stream monitoring module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and each interface driving module; the interface driving module is used for driving the corresponding interface to receive and transmit data; the data stream monitoring module is used for monitoring the data stream received at the corresponding interface to obtain a data stream monitoring result; the interface selection monitoring module is used for generating interface selection indication information according to the data stream monitoring result from each data stream monitoring module; the interface data selection module is used for selecting a certain physical interface from the plurality of physical interfaces according to the interface selection indication information, receiving data from the certain physical interface, and forwarding the data to be sent to an interface driving module of the certain physical interface.
As shown in fig. 1-2, in a specific structure of the first time interval measuring instrument, the plurality of physical interfaces include, but are not limited to, a USB interface, an ethernet interface, an optical fiber interface, and/or a serial interface, so that the interface driving module includes, but is not limited to, a USB port driving module, a network port driving module, an optical port driving module, and/or a serial port driving module. For example, if the plurality of physical interfaces include a USB interface, an ethernet interface, an optical fiber interface, a serial interface, and the like, it may be preset that the USB interface uniquely corresponds to the data stream a, the ethernet interface uniquely corresponds to the data stream B, the optical fiber interface uniquely corresponds to the data stream C, and the serial interface uniquely corresponds to the data stream D. The data stream monitoring module may monitor the data stream received at the corresponding interface by using the existing data stream monitoring means, and identify and obtain the currently transmitted data stream (i.e., the data stream monitoring result). In addition, in order to make each data stream uniquely represent the indication to select the corresponding physical interface, each data stream needs to be unique, and the implementation may specifically be implemented by using an existing data stream or a custom data stream.
Specifically, the interface selection indication information is generated according to the data stream monitoring result from each data stream monitoring module, and includes but is not limited to: when the data stream monitoring result from each data stream monitoring module (which may be a data stream monitoring module from one physical interface or a data stream monitoring module from at least two physical interfaces) indicates that there is only one data stream comprehensively, first interface selection indication information for indicating selection of a physical interface corresponding to the data stream is generated. For example, as shown in fig. 2, when an external controller (which needs to install upper computer software or a driver of the first time interval measuring instrument in advance) is communicatively connected to a USB interface of the first time interval measuring instrument based on USB technology and performs data transceiving, if it is desired to control the first time interval measuring instrument to adaptively select another physical interface, which is an ethernet interface (which may be connected to the controller or not) and is communicatively connected in advance, to perform data transceiving, a data stream B may be transmitted to the USB interface, such that a data stream listening result from each of the data stream listening modules comprehensively indicates that there is only one data stream B (since no data is received by the other physical interfaces, a corresponding data stream listening result is no data stream), so that the first interface selection indication information for indicating selection of the ethernet interface may be generated, and after the data stream B is transmitted, the interface data selection module receives data from the ethernet interface, and forwards data to be transmitted to the network port driver module (at this time, data transmission and reception are no longer performed through the USB interface).
Therefore, based on the detailed description of the first time interval measuring instrument, an instrument-side design scheme capable of adaptively selecting a physical interface is provided, that is, the instrument-side design scheme includes an interface selection monitoring module, an interface data selection module, and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with a data stream monitoring module and an interface driving module corresponding to the data stream monitoring module, and the plurality of physical interfaces correspond to a plurality of preset and different data streams one to one; the interface selection monitoring module is respectively in communication connection with the data stream monitoring modules, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the interface driving modules, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, a time interval measuring instrument can be indicated to automatically select the target physical interface for subsequent data transceiving only by transmitting a specific data stream corresponding to the target physical interface in the current data transceiving process, the purpose of completing interface switching on line is achieved, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and practical application and popularization are facilitated.
Preferably, the generating interface selection indication information according to the data stream monitoring result from each data stream monitoring module further includes but is not limited to: when the data stream monitoring result from each data stream monitoring module comprehensively indicates that at least two different data streams exist, selecting a physical interface corresponding to the highest interface priority from the at least two physical interfaces according to a preset interface priority sequence, and then generating second interface selection indication information for indicating selection of the physical interface, wherein the at least two physical interfaces are in one-to-one correspondence with the at least two data streams. For example, when the priority order of the interfaces is from high to low: when the USB interface, the ethernet interface, the optical fiber interface, and the serial interface are equal, if the data stream monitoring result from the data stream monitoring module of the USB interface indicates that the data stream C exists, the data stream monitoring result from the data stream monitoring module of the ethernet interface indicates that the data stream D exists, and the data stream monitoring result from the data stream monitoring module of the serial interface indicates that the data stream D exists, the optical fiber interface can be selected from the optical fiber interface uniquely corresponding to the data stream C and the serial interface uniquely corresponding to the data stream D (i.e., because the optical fiber interface and the serial interface have the highest interface priority), and then second interface selection indication information for indicating selection of the optical fiber interface is generated, so that the possible interface selection conflict problem can be solved.
Preferably, the first time interval measuring instrument further includes, but is not limited to, a data parsing and packaging module in communication connection with the interface data selecting module, and a service module in communication connection with the data parsing and packaging module; the data analyzing and packaging module is used for analyzing the data from the certain physical interface, then transmitting an analysis result to the service module, and packaging the data to be transmitted from the service module so as to transmit the data to the outside through the interface driving module of the certain physical interface; and the business module is used for carrying out business processing on the analysis result from the data analysis and packaging module and generating the data to be sent.
In summary, the first time interval measuring instrument provided by the embodiment and capable of adaptively selecting a physical interface has the following technical effects:
(1) the embodiment provides an instrument side design scheme capable of adaptively selecting a physical interface, which includes an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, wherein any two physical interfaces of the plurality of physical interfaces are different, and each physical interface is configured with a data stream monitoring module and an interface driving module corresponding to the corresponding interface, and the plurality of physical interfaces correspond to a plurality of preset and different data streams one to one; the interface selection monitoring module is respectively in communication connection with the data stream monitoring modules, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the interface driving modules, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, a time interval measuring instrument can be indicated to automatically select the target physical interface for subsequent data transceiving only by transmitting a specific data stream corresponding to the target physical interface in the current data transceiving process, the purpose of completing interface switching on line is achieved, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and practical application and popularization are facilitated.
Example two
As shown in fig. 3 to 4, the present embodiment provides another time interval measuring apparatus having the same inventive concept as that of the first embodiment and capable of adaptively selecting a physical interface, that is, including but not limited to an interface selection monitoring module, an interface data selection module, and a plurality of physical interfaces, where any two physical interfaces of the plurality of physical interfaces are different, and each of the physical interfaces is configured with an interface driving module and a data parsing and packaging module corresponding to the interfaces; the interface selection monitoring module is respectively in communication connection with the data analysis and packaging modules, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the data analysis and packaging modules; the interface driving module is used for driving the corresponding interface to receive and transmit data; the data analysis and package module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and packaging the data to be sent from the interface data selection module so as to send the data to the outside through the interface driving module; the interface selection monitoring module is used for acquiring an interface switching instruction from the analysis result of each data analysis and packaging module and generating interface selection indication information according to the interface switching instruction; the interface data selection module is used for selecting a certain physical interface from the plurality of physical interfaces according to the interface selection indication information, receiving an analysis result from the certain physical interface, and forwarding the data to be sent to the data analysis and packaging module of the certain physical interface.
As shown in fig. 3 to 4, in a specific structure of the second time interval measuring instrument, the plurality of physical interfaces also include, but are not limited to, a USB interface, an ethernet interface, an optical fiber interface, and/or a serial interface, so that the interface driving module includes, but is not limited to, a USB port driving module, a network port driving module, an optical port driving module, and/or a serial port driving module. The data analysis and packaging module can perform data analysis or data packaging based on the communication protocol of the corresponding interface. For example, as shown in fig. 4, when an external controller is communicatively connected to a serial interface of the second time interval measuring instrument based on a serial port technology and performs data transceiving, if it is desired to control the second time interval measuring instrument to adaptively select another physical interface, which is an ethernet interface (which may or may not be connected to the controller) that is communicatively connected in advance, to perform data transceiving, an interface switching instruction for instructing to switch to the ethernet interface may be transmitted to the serial interface, so that the interface selection monitoring module may generate the interface selection instruction information for instructing to select the ethernet interface according to an analysis result from each data analysis and packet module, and further cause the interface data selection module to subsequently receive only data from the ethernet interface, and forward data to be transmitted to an internet interface driving module (at this time, data transceiving is no longer performed through the serial interface) ).
Therefore, based on the detailed description of the second time interval measuring instrument, another instrument-side design scheme capable of adaptively selecting a physical interface is provided, that is, the instrument-side design scheme includes an interface selection monitoring module, an interface data selection module, and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with an interface driving module and a data parsing and packaging module corresponding to the interface; the interface selection monitoring module is respectively in communication connection with the data analysis and package module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the data analysis and package module, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, a time interval measuring instrument can be instructed to automatically select the target physical interface for subsequent data transceiving only by transmitting an interface switching instruction for instructing to switch to the target physical interface in the current data transceiving process, the purpose of completing interface switching on line is realized, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and the practical application and popularization are facilitated.
Preferably, when the number of the interface switching instructions is at least two, interface selection indication information is generated according to the interface switching instructions, including but not limited to: firstly, judging whether instruction contents of at least two interface switching instructions indicate to switch to the same physical interface; if so, generating first interface selection indication information for indicating to select the same physical interface, otherwise, switching to a physical interface corresponding to the highest interface priority from at least two different physical interfaces according to a preset interface priority sequence, and then generating fourth interface selection indication information for indicating to select the physical interface. For example, when the priority order of the interfaces is from high to low: when the USB interface, the ethernet interface, the optical fiber interface, and the serial interface are equal, if the analysis result of the data analysis and packaging module from the USB interface carries an interface switching instruction for instructing switching to the ethernet interface, and the analysis result of the data analysis and packaging module from the optical fiber interface also carries an interface switching instruction for instructing switching to the ethernet interface, fourth interface selection instruction information for instructing selection of the ethernet interface may be generated; if the analysis result of the data analysis and packaging module from the USB interface carries an interface switching instruction for instructing switching to the optical fiber interface, and the analysis result of the data analysis and packaging module from the serial port interface carries an interface switching instruction for instructing switching to the ethernet interface, an ethernet interface can be selected from the ethernet interface and the optical fiber interface (i.e. because the ethernet interface and the optical fiber interface have the highest interface priority), and then fourth interface selection indication information for instructing selection of the ethernet interface is generated, so that the possible problem of interface selection conflict can be solved.
Preferably, the second time interval measuring instrument further comprises a service module in communication connection with the interface data selection module; and the service module is used for carrying out service processing on the analysis result from the interface data selection module and generating the data to be sent.
In summary, the second time interval measuring instrument provided by the embodiment and capable of adaptively selecting a physical interface has the following technical effects:
(1) the embodiment provides another design scheme of an instrument side capable of adaptively selecting a physical interface, namely, the design scheme comprises an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, wherein any two physical interfaces in the plurality of physical interfaces are different, and each physical interface is provided with an interface driving module and a data analysis and package module corresponding to the interface; the interface selection monitoring module is respectively in communication connection with the data analysis and package module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the data analysis and package module, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, a time interval measuring instrument can be instructed to automatically select the target physical interface for subsequent data transceiving only by transmitting an interface switching instruction for instructing to switch to the target physical interface in the current data transceiving process, the purpose of completing interface switching on line is realized, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and the practical application and popularization are facilitated.
EXAMPLE III
As shown in fig. 5, the present embodiment provides another time interval measuring apparatus having the same inventive concept as that of the first embodiment and capable of adaptively selecting a physical interface, that is, including but not limited to a service module, a data forwarding module and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with an interface driving module and a data parsing and packaging module corresponding to the interfaces; the data forwarding module is in communication connection with the service module, and each data analysis and packaging module is in communication connection with the data forwarding module respectively; the interface driving module is used for driving the corresponding interface to receive and transmit data; the data analyzing and packaging module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and packaging the data to be transmitted from the data forwarding module so as to transmit the data to the outside through the interface driving module; the data forwarding module is used for forwarding and transmitting the analysis result serving as the only effective analysis data to the service module when only the analysis result from a certain data analysis and packaging module is received, and forwarding the data broadcast to be sent from the service module to each data analysis and packaging module; and the service module is used for carrying out service processing on the analysis data and generating the data to be sent.
As shown in fig. 5, in a specific structure of the third time interval measuring instrument, the plurality of physical interfaces also include, but are not limited to, a USB interface, an ethernet interface, a fiber interface, and/or a serial interface, so that the interface driving module includes, but is not limited to, a USB port driving module, a network port driving module, an optical port driving module, and/or a serial port driving module. The data analysis and packaging module can perform data analysis or data packaging based on the communication protocol of the corresponding interface. For example, when an external controller is communicatively connected to the serial interface and the USB interface of the third time interval measuring instrument, if the third time interval measuring instrument is to be controlled to adaptively select the USB interface for data transceiving, data may be transmitted only to the USB interface, so that the data forwarding module may forward an analysis result of the data analysis and packaging module from the USB interface as unique and effective analysis data to the service module, and forward the to-be-transmitted data from the service module to each data analysis and packaging module in a broadcast manner, so that the USB port driving module can transmit the to-be-transmitted data to the controller in a packaged form, and further, the third time interval measuring instrument may immediately select the USB interface for data transceiving with the controller.
Therefore, based on the detailed description of the third time interval measuring instrument, another instrument-side design scheme capable of adaptively selecting a physical interface is provided, that is, the instrument-side design scheme includes a service module, a data forwarding module and a plurality of physical interfaces, where any two of the plurality of physical interfaces are different, and each of the physical interfaces is configured with an interface driving module and a data parsing and packaging module corresponding to the interfaces; the data forwarding module is in communication connection with the service module, and each data analysis and package module is in communication connection with the data forwarding module respectively, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, the time interval measuring instrument can be instructed to automatically select the target physical interface for instant data transceiving only by transmitting data to the target physical interface, the purpose of completing interface switching on line is achieved, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and practical application and popularization are facilitated.
Preferably, the data forwarding module is further configured to select, when analysis results from the at least two data analysis and packaging modules are received simultaneously, an analysis result corresponding to the highest interface priority from the at least two analysis results as unique and effective analysis data according to a preset interface priority order, and forward and transmit the unique and effective analysis data to the service module, where the at least two analysis results are in one-to-one correspondence with the at least two data analysis and packaging modules. For example, when the priority order of the interfaces is from high to low: when the USB interface, the ethernet interface, the fiber interface, and the serial interface are equal, if a first parsing result of the data parsing and packaging module from the USB interface and a second parsing result of the data parsing and packaging module from the serial interface are received at the same time, the first parsing result (because the corresponding USB interface has a higher interface priority) can be forwarded and transmitted to the service module as the only and effective parsing data, and further, the possible problem of interface selection conflict can be solved.
In summary, the third time interval measuring instrument that is provided by the embodiment and can adaptively select the physical interface has the following technical effects:
(1) the embodiment provides another design scheme of an instrument side capable of adaptively selecting a physical interface, namely, the design scheme comprises a service module, a data forwarding module and a plurality of physical interfaces, wherein any two physical interfaces in the plurality of physical interfaces are different, and each physical interface is provided with an interface driving module and a data analyzing and packaging module of the corresponding interface; the data forwarding module is in communication connection with the service module, and each data analysis and package module is in communication connection with the data forwarding module respectively, so that on the premise that external equipment is in communication connection with a target physical interface in the plurality of physical interfaces in advance, the time interval measuring instrument can be instructed to automatically select the target physical interface for instant data transceiving only by transmitting data to the target physical interface, the purpose of completing interface switching on line is achieved, the friendliness of the time interval measuring instrument on an interface connection scheme can be effectively improved, and practical application and popularization are facilitated.
Example four
As shown in fig. 6, the present embodiment provides a time interval measuring system based on the time interval measuring instrument according to the first embodiment, the second embodiment or the third embodiment, that is, the time interval measuring instrument includes, but is not limited to, a controller and the time interval measuring instrument according to any one of the first to third embodiments, wherein the controller is simultaneously connected to at least two physical interfaces of a plurality of physical interfaces of the time interval measuring instrument in a communication manner. For example, as shown in fig. 6, the controller is respectively connected to the USB interface, the ethernet interface, and the serial interface of the time interval measuring instrument in a communication manner, so that the time interval measuring instrument can be controlled to automatically select the USB interface, the ethernet interface, or the serial interface to perform data transmission and reception with the controller at any time during data transmission and reception, thereby effectively improving the friendliness of the whole time interval measuring system.
The technical details and the technical effects of the present embodiment can be derived based on the first to third embodiments, and are not described herein again.
Finally, it should be noted that the present invention is not limited to the above alternative embodiments, and that various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined by the appended claims, which are intended to be interpreted according to the breadth to which the description is entitled.
Claims (10)
1. A time interval measuring instrument capable of adaptively selecting physical interfaces is characterized by comprising an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, wherein any two physical interfaces in the plurality of physical interfaces are different, a data stream monitoring module and an interface driving module corresponding to the interfaces are configured in each physical interface, and the plurality of physical interfaces correspond to a plurality of preset and different data streams one to one;
the interface selection monitoring module is respectively in communication connection with each data stream monitoring module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and each interface driving module;
the interface driving module is used for driving the corresponding interface to receive and transmit data;
the data stream monitoring module is used for monitoring the data stream received at the corresponding interface to obtain a data stream monitoring result;
the interface selection monitoring module is used for generating interface selection indication information according to the data stream monitoring result from each data stream monitoring module;
the interface data selection module is used for selecting a certain physical interface from the plurality of physical interfaces according to the interface selection indication information, receiving data from the certain physical interface, and forwarding the data to be sent to an interface driving module of the certain physical interface.
2. The time interval measuring instrument according to claim 1, wherein generating interface selection indication information according to the data stream monitoring result from each of the data stream monitoring modules comprises:
when the data stream monitoring result from each data stream monitoring module comprehensively indicates that only one data stream exists, generating first interface selection indication information for indicating to select a physical interface corresponding to the data stream;
and/or when the data stream monitoring result from each data stream monitoring module comprehensively indicates that at least two different data streams exist, selecting a physical interface corresponding to the highest interface priority from the at least two physical interfaces according to a preset interface priority order, and then generating second interface selection indication information for indicating selection of the physical interface, wherein the at least two physical interfaces are in one-to-one correspondence with the at least two data streams.
3. The time interval measuring instrument as claimed in claim 1, further comprising a data parsing and packaging module communicatively connected to said interface data selecting module and a service module communicatively connected to said data parsing and packaging module;
the data analyzing and packaging module is used for analyzing the data from the certain physical interface, then transmitting an analysis result to the service module, and packaging the data to be transmitted from the service module so as to transmit the data to the outside through the interface driving module of the certain physical interface;
and the business module is used for carrying out business processing on the analysis result from the data analysis and packaging module and generating the data to be sent.
4. The time interval measuring instrument according to claim 1, wherein the plurality of physical interfaces include a USB interface, an ethernet interface, a fiber optic interface, and/or a serial interface.
5. A time interval measuring instrument capable of adaptively selecting a physical interface is characterized by comprising an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, wherein any two physical interfaces in the plurality of physical interfaces are different, and each physical interface is provided with an interface driving module and a data analysis and package module corresponding to the interface;
the interface selection monitoring module is respectively in communication connection with the data analysis and packaging modules, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and the data analysis and packaging modules;
the interface driving module is used for driving the corresponding interface to receive and transmit data;
the data analyzing and packaging module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and packaging the data to be transmitted from the interface data selection module so as to transmit the data to the outside through the interface driving module;
the interface selection monitoring module is used for acquiring an interface switching instruction from the analysis result of each data analysis and packaging module and generating interface selection indication information according to the interface switching instruction;
the interface data selection module is used for selecting a certain physical interface from the plurality of physical interfaces according to the interface selection indication information, receiving an analysis result from the certain physical interface, and forwarding the data to be sent to the data analysis and packaging module of the certain physical interface.
6. The time interval measuring instrument according to claim 5, wherein when the number of the interface switching commands is at least two, generating interface selection indication information according to the interface switching commands includes:
judging whether switching to the same physical interface is instructed in the instruction contents of at least two interface switching instructions;
and if so, generating third interface selection indication information for indicating to select the same physical interface, otherwise, switching to a physical interface corresponding to the highest interface priority from at least two different physical interfaces according to a preset interface priority sequence, and then generating fourth interface selection indication information for indicating to select the physical interface.
7. The time interval measuring instrument as claimed in claim 5, further comprising a service module communicatively coupled to said interface data selection module;
and the business module is used for carrying out business processing on the analysis result from the interface data selection module and generating the data to be sent.
8. A time interval measuring instrument capable of adaptively selecting physical interfaces is characterized by comprising a service module, a data forwarding module and a plurality of physical interfaces, wherein any two physical interfaces in the plurality of physical interfaces are different, and each physical interface is provided with an interface driving module and a data analysis and package module of the corresponding interface;
the data forwarding module is in communication connection with the service module, and each data analysis and packaging module is in communication connection with the data forwarding module respectively;
the interface driving module is used for driving the corresponding interface to receive and transmit data;
the data analyzing and packaging module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and packaging the data to be transmitted from the data forwarding module so as to transmit the data to the outside through the interface driving module;
the data forwarding module is used for forwarding and transmitting the analysis result serving as the only effective analysis data to the service module when only the analysis result from a certain data analysis and packaging module is received, and forwarding the data broadcast to be sent from the service module to each data analysis and packaging module;
and the service module is used for carrying out service processing on the analysis data and generating the data to be sent.
9. The time interval measuring instrument according to claim 8, wherein the data forwarding module is further configured to select, when the analysis results from the at least two data parsing and packaging modules are received simultaneously, an analysis result corresponding to the highest interface priority from the at least two analysis results as the only valid analysis data according to a preset interface priority order, and forward and transmit the only valid analysis data to the service module, wherein the at least two analysis results are in one-to-one correspondence with the at least two data parsing and packaging modules.
10. A time interval measuring system, comprising a controller and a time interval measuring instrument according to any one of claims 1 to 9, wherein the controller is in simultaneous communication with at least two of the plurality of physical interfaces of the time interval measuring instrument.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210474540.8A CN114826966B (en) | 2022-04-29 | 2022-04-29 | Time interval measuring instrument and system capable of adaptively selecting physical interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210474540.8A CN114826966B (en) | 2022-04-29 | 2022-04-29 | Time interval measuring instrument and system capable of adaptively selecting physical interface |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114826966A true CN114826966A (en) | 2022-07-29 |
| CN114826966B CN114826966B (en) | 2024-02-09 |
Family
ID=82511344
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210474540.8A Active CN114826966B (en) | 2022-04-29 | 2022-04-29 | Time interval measuring instrument and system capable of adaptively selecting physical interface |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114826966B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002152407A (en) * | 2000-11-08 | 2002-05-24 | Nec Corp | Portable communication terminal device |
| US20040077341A1 (en) * | 2002-10-17 | 2004-04-22 | Chandranmenon Girish P. | Multi-interface mobility client |
| CN1735059A (en) * | 2003-10-24 | 2006-02-15 | 微软公司 | Network and interface selection on computing device in which connection can be established via plurality of network communication media |
| US7447149B1 (en) * | 2004-07-13 | 2008-11-04 | Juniper Networks, Inc. | Virtual interface with active and backup physical interfaces |
| US20110153815A1 (en) * | 2009-12-17 | 2011-06-23 | Canon Kabushiki Kaisha | Information processing apparatus having a plurality of communication interfaces and control method |
| CN107018070A (en) * | 2016-01-28 | 2017-08-04 | 南水北调中线干线工程建设管理局 | A kind of isomery multimode gateway equipment and its transmission method and application |
| CN109672574A (en) * | 2019-01-29 | 2019-04-23 | 四川九洲电器集团有限责任公司 | A kind of adaptive switching module of multilink for unmanned platform telemetry communication |
| CN112804264A (en) * | 2021-04-01 | 2021-05-14 | 北京小鸟科技股份有限公司 | Method, system and equipment for self-adaptive switching of multiple coding standards and transmission interfaces |
-
2022
- 2022-04-29 CN CN202210474540.8A patent/CN114826966B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002152407A (en) * | 2000-11-08 | 2002-05-24 | Nec Corp | Portable communication terminal device |
| US20040077341A1 (en) * | 2002-10-17 | 2004-04-22 | Chandranmenon Girish P. | Multi-interface mobility client |
| CN1735059A (en) * | 2003-10-24 | 2006-02-15 | 微软公司 | Network and interface selection on computing device in which connection can be established via plurality of network communication media |
| US7447149B1 (en) * | 2004-07-13 | 2008-11-04 | Juniper Networks, Inc. | Virtual interface with active and backup physical interfaces |
| US20110153815A1 (en) * | 2009-12-17 | 2011-06-23 | Canon Kabushiki Kaisha | Information processing apparatus having a plurality of communication interfaces and control method |
| CN107018070A (en) * | 2016-01-28 | 2017-08-04 | 南水北调中线干线工程建设管理局 | A kind of isomery multimode gateway equipment and its transmission method and application |
| CN109672574A (en) * | 2019-01-29 | 2019-04-23 | 四川九洲电器集团有限责任公司 | A kind of adaptive switching module of multilink for unmanned platform telemetry communication |
| CN112804264A (en) * | 2021-04-01 | 2021-05-14 | 北京小鸟科技股份有限公司 | Method, system and equipment for self-adaptive switching of multiple coding standards and transmission interfaces |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114826966B (en) | 2024-02-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112988495B (en) | Multifunctional test method, device and system for SOC chip multiplex pin | |
| EP0622711B1 (en) | Digital communication network data transmission method and apparatus | |
| CN102195946A (en) | Intelligent communication controller based on ARM (Advanced RISC Machines) technology | |
| CN113328870B (en) | Multi-node parallel working method of multi-protocol hybrid network | |
| CN113325768B (en) | Communication control device and method of industrial control system and industrial control system | |
| CN114826966A (en) | Time interval measuring instrument and system capable of adaptively selecting physical interface | |
| CN113891537B (en) | Method, device and medium for timing logic through computer analog digital dimming protocol | |
| CN103532686B (en) | Serial data transceiver circuit with line sequence adaptive function and its control method | |
| CN111010250A (en) | Method and system for realizing high-precision time synchronization | |
| CN101464844B (en) | Control method and bus interface of RAM use right | |
| CN113886316A (en) | Data communication method and related device, equipment, system and storage medium | |
| CN106130829B (en) | Bus test method and device | |
| CN119690386A (en) | Gigabit Ethernet engineering module division method and system | |
| CN110113209B (en) | MIPI (Mobile industry processor interface) protocol-based inter-device communication method and equipment topological structure | |
| CN113328926A (en) | FC-AE-1553 and FC-AE-ASM hybrid network system | |
| CN114039939B (en) | Device, FPGA and method for self-adaptive photoelectric interface | |
| CN113890790B (en) | Method and device for transmitting service data in industrial network, equipment and storage medium | |
| CN111314242B (en) | Multi-channel supporting packet cache scheduling simulation verification method and system | |
| CN117579119A (en) | Multi-user reliability and high-capacity data transmission method based on Beidou No. three RDSS system | |
| CN112311477B (en) | Method, device and system for transmitting data | |
| CN115378454A (en) | Multichannel data link communication system | |
| CN113573265A (en) | General wireless communication module based on oil field net electricity digital equipment | |
| CN114884765A (en) | PLC bus communication method and system based on relay equipment and relay equipment | |
| CN112994824A (en) | Time synchronization method, device and system for IRIG-B code non-delay transmission | |
| CN110569211B (en) | System-on-chip internal communication method |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |