CN114826966B - 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
- CN114826966B CN114826966B CN202210474540.8A CN202210474540A CN114826966B CN 114826966 B CN114826966 B CN 114826966B CN 202210474540 A CN202210474540 A CN 202210474540A CN 114826966 B CN114826966 B CN 114826966B
- Authority
- CN
- China
- Prior art keywords
- interface
- module
- data
- 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.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 claims abstract description 100
- 238000004891 communication Methods 0.000 claims abstract description 51
- 238000005259 measurement Methods 0.000 claims abstract description 34
- 238000007405 data analysis Methods 0.000 claims description 56
- 238000004458 analytical method Methods 0.000 claims description 38
- 238000012545 processing Methods 0.000 claims description 13
- 238000004806 packaging method and process Methods 0.000 claims description 10
- 239000000835 fiber Substances 0.000 claims description 3
- 238000000034 method Methods 0.000 abstract description 12
- 230000005540 biological transmission Effects 0.000 abstract description 6
- 238000013461 design Methods 0.000 description 21
- 239000013307 optical fiber Substances 0.000 description 14
- 238000010586 diagram Methods 0.000 description 6
- 238000012856 packing Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000010354 integration Effects 0.000 description 1
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 interfaces are configured in each physical interface, the plurality of physical interfaces are in one-to-one correspondence with a plurality of preset and different data streams, and therefore, on the premise that an external device is in communication connection with a target physical interface in the plurality of physical interfaces in advance, the measuring instrument can be instructed to automatically select the target physical interface for subsequent data transmission and reception only by transmitting the specific data stream corresponding to the target physical interface in the current data transmission and reception process, the purpose of on-line interface switching 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 system capable of adaptively selecting a physical interface.
Background
At present, the time interval measuring technology can reach a very 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. To accommodate more scenarios, for example, to accommodate connection to a computer or to facilitate integration into other devices, various physical interfaces, such as USB (Universal Serial Bus ) interfaces, ethernet interfaces (sometimes also referred to as "ports"), fiber optic interfaces (sometimes also referred to as "ports"), and serial interfaces (sometimes also referred to as "serial ports"), etc., may be reserved for time interval meter designs.
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 dial switch, a digital switch or a dial switch, which is an address switch for operation control and adopts a binary coding principle of 0/1), and to agree with a certain coding value to represent a physical interface in advance, and before connecting an external device, the dial switch points to the coding value corresponding to the target physical interface, and then the external device is connected to the target physical interface, so that the data can be transmitted and received between the instrument and the external device through the target physical interface. However, this solution has a significant problem of lack of friendliness, that is, the user needs to select the target physical interface in advance and direct the dial switch to the corresponding code value, and the purpose of automatically selecting another physical interface and performing interface switching cannot be achieved in the data transceiving process.
Disclosure of Invention
In order to solve the problem that the existing time interval measuring instrument is lack of friendliness in an interface connection scheme, the invention aims to provide a novel time interval measuring instrument capable of adaptively selecting a physical interface and a time interval measuring system.
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, each physical interface is provided with a data stream monitoring module and an interface driving module of a corresponding interface, and the plurality of physical interfaces are in one-to-one correspondence with a plurality of preset and different data streams;
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 send and receive 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 results from the data stream monitoring modules;
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 above summary of the first aspect, an apparatus-side design solution capable of adaptively selecting a physical interface is provided, that is, the apparatus-side design solution includes an interface selection monitoring module, an interface data selection module and a plurality of physical interfaces, where any two physical interfaces in the plurality of physical interfaces are different, and each physical interface is configured with a data stream monitoring module and an interface driving module of a corresponding interface, and the plurality of physical interfaces are in one-to-one correspondence with a plurality of preset and different data streams; the interface selection monitoring module is respectively in communication connection with each data stream monitoring module, the interface data selection module is respectively in communication connection with the interface selection monitoring module and each interface driving module, so that on the premise that an external device is in advance in communication connection with a target physical interface in the plurality of physical interfaces, the interface selection monitoring module can instruct the time interval measuring instrument to automatically select the target physical interface to carry out 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, the generating interface selection indication information according to the data stream monitoring result from each data stream monitoring module 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 results from the data stream monitoring modules comprehensively indicate that at least two different data streams exist, selecting a physical interface corresponding to the highest interface priority from at least two physical interfaces according to a preset interface priority sequence, and then generating second interface selection indication information for indicating the selection of the physical interfaces, 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 further comprises a data analysis and package module connected with the interface data selection module in a communication way and a service module connected with the data analysis and package module in a communication way;
the data analysis and package module is used for analyzing the data from a certain physical interface, then transmitting the analysis result to the service module, and packaging the data to be sent from the service module so as to be sent outwards through the interface driving module of the certain physical interface;
The service module is used for carrying out service processing on the analysis result from the data analysis and package assembly module and generating the to-be-sent data.
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 second aspect of the present invention provides another time interval measuring apparatus 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 in the plurality of physical interfaces are different, and each physical interface is configured with an interface driving module and a data parsing and packaging module of a corresponding interface;
the interface selection monitoring module is respectively in communication connection with each data analysis and package module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and each data analysis and package module;
the interface driving module is used for driving the corresponding interface to send and receive data;
the data analysis and package module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and performing package processing on the data to be sent from the interface data selection module so as to perform external sending through the interface driving module;
The interface selection monitoring module is used for acquiring interface switching instructions from analysis results from the data analysis and packet assembly modules and generating interface selection indication information according to the interface switching instructions;
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 package module of the certain physical interface.
Based on the above-mentioned second aspect of the present invention, another design solution of an apparatus side capable of adaptively selecting a physical interface is provided, that is, the apparatus side includes an interface selection monitor module, an interface data selection module, and a plurality of physical interfaces, where any two physical interfaces in the plurality of physical interfaces are different, and an interface driving module and a data parsing and packaging module of a corresponding interface are configured in each physical interface; the interface selection monitoring module is respectively in communication connection with each data analysis and package module, the interface data selection module is respectively in communication connection with the interface selection monitoring module and each data analysis and package module, so that on the premise that an external device is in communication connection with a target physical interface in the plurality of physical interfaces in advance, an interface switching instruction for indicating switching to the target physical interface is only required to be transmitted in the current data receiving and transmitting process, the time interval measuring instrument can be instructed to automatically select the target physical interface to carry out subsequent data receiving and transmitting, the purpose of completing interface switching on line is achieved, and 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, when there are at least two interface switching instructions, generating interface selection indication information according to the interface switching instructions includes:
judging whether switching to the same physical interface is indicated in instruction contents of at least two interface switching instructions;
if yes, third interface selection indication information for indicating to select the same physical interface is generated, otherwise, according to a preset interface priority order, a physical interface corresponding to the highest interface priority is selected from at least two different physical interfaces, and then fourth interface selection indication information for indicating to select the physical interface is generated.
In one possible design, the system further comprises a service module in communication with the interface data selection module;
the service module is used for carrying out service processing on the analysis result from the interface data selection module and generating the to-be-sent data. .
The third aspect of the present invention provides another time interval measuring instrument capable of adaptively selecting physical interfaces, which 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 configured with an interface driving module and a data parsing and packaging module of a corresponding interface;
The data forwarding module is in communication connection with the service module, and each data analysis and package assembly module is in communication connection with the data forwarding module respectively;
the interface driving module is used for driving the corresponding interface to send and receive data;
the data analysis and package module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and performing package processing on the data to be sent from the data forwarding module so as to perform external sending through the interface driving module;
the data forwarding module is used for forwarding and transmitting the analysis result as only effective analysis data to the service module when only the analysis result from one data analysis and package module is received, and forwarding the data broadcast to be sent from the service module to each data analysis and package module;
the service module is used for carrying out service processing on the analysis data and generating the to-be-sent data.
Based on the above-mentioned third aspect, another design solution of an apparatus side capable of adaptively selecting a physical interface is provided, that is, the apparatus side includes a service module, a data forwarding module, and a plurality of physical interfaces, where any two physical interfaces in the plurality of physical interfaces are different, and an interface driving module and a data parsing and packaging module of corresponding interfaces are configured in each physical interface; the data forwarding module is in communication connection with the service module, the data analysis and packet assembly modules are respectively in communication connection with the data forwarding module, so that on the premise that an external device is in communication connection with a target physical interface in the plurality of physical interfaces in advance, the data is only required to be transmitted to the target physical interface, the time interval measuring instrument can be instructed to automatically select the target physical interface to carry out instant data receiving and transmitting, 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, when receiving the parsing results from the at least two data parsing and packing modules at the same time, select, according to a preset interface priority order, a parsing result corresponding to a highest interface priority from the at least two parsing results as unique valid parsing data, and forward and transmit the unique valid parsing data to the service module, where the at least two parsing results are in one-to-one correspondence with the at least two data parsing and packing modules.
A fourth aspect of the present invention provides a time interval measurement system comprising a controller and a time interval measurement apparatus as described in any of the first to third aspects and the first to third aspects, wherein the controller is simultaneously communicatively connected to at least two physical interfaces of a plurality of physical interfaces of the time interval measurement apparatus.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of the internal structure of a first time interval measurement instrument according to the present invention.
Fig. 2 is a diagram showing an application example of the first time interval measurement apparatus provided by the present invention.
Fig. 3 is a schematic diagram of the internal structure of a second time interval measurement apparatus according to the present invention.
Fig. 4 is a diagram showing an application example of the second time interval measuring apparatus provided by the present invention.
Fig. 5 is a schematic diagram of the internal structure of a third time interval measurement apparatus according to the present invention.
Fig. 6 is a schematic structural diagram of a time interval measurement system provided by the present invention.
Detailed Description
The invention will be further elucidated with reference to the drawings and to specific embodiments. The present invention is not limited to these examples, although they are described in order to assist understanding of the present invention. Specific structural and functional details disclosed herein are merely representative for purposes of describing example embodiments of the present 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 should be understood that although the terms first and 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 invention.
It should be understood that for the term "and/or" that may appear herein, it is merely one association relationship that describes an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: three cases of A alone, B alone or both A and B exist; for the term "/and" that may appear herein, which is descriptive of another associative object relationship, it means that there may be two relationships, e.g., a/and B, it may be expressed that: the two cases of A and B exist independently or simultaneously; in addition, for the character "/" that may appear herein, it is generally indicated that the context associated object is an "or" relationship.
Example 1
As shown in fig. 1 to 2, the first time interval measuring apparatus provided in this embodiment and capable of adaptively selecting a physical interface 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 physical interfaces in the plurality of physical interfaces are different, and each physical interface is configured with a data stream monitoring module and an interface driving module of a corresponding interface, and the plurality of physical interfaces are in one-to-one correspondence with a plurality of preset and different data streams; 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 send and receive 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 results from the data stream monitoring modules; 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 the specific structure of the first time interval measurement apparatus, 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 includes a USB interface, an ethernet interface, an optical fiber interface, and a serial interface, the USB interface may be preset to uniquely correspond to the data stream a, the ethernet interface may be preset to uniquely correspond to the data stream B, the optical fiber interface may be preset to uniquely correspond to the data stream C, the serial interface may be preset to uniquely correspond to the data stream D, and so on. The data stream monitoring module can monitor the data stream received at the corresponding interface by adopting the existing data stream monitoring means, and identify the current data stream (namely the data stream monitoring result) to be transmitted. In addition, in order to make each data stream uniquely represent the indication of selecting the corresponding physical interface, each data stream needs to be unique, and in particular, the data stream may 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 results from the data stream monitoring modules, which 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 only one data stream is indicated comprehensively, first interface selection indication information for indicating to select 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 the upper computer software or the driver of the first time interval measurement apparatus in advance) is communicatively connected to the USB interface of the first time interval measurement apparatus based on USB technology and performs data transceiving, if it is desired to control the first time interval measurement apparatus to adaptively select another physical interface (which may be the controller or may not be the controller) that is communicatively connected in advance for data transceiving, the data stream B may be transmitted to the USB interface, so that the data stream listening result from each data stream listening module indicates that only one data stream B is available (since no data is received by the other physical interfaces, the corresponding data stream listening result is no data stream), so that the first interface selection indication information for indicating that the ethernet interface is selected may be generated, and further, after the data stream B is transmitted, the interface data selection module receives data from the ethernet interface and forwards the data to the interface driving module (will not perform data transceiving through the USB interface).
Based on the detailed description of the first time interval measuring instrument, an instrument side design scheme capable of adaptively selecting physical interfaces is provided, namely the instrument side 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, a data stream monitoring module and an interface driving module of a corresponding interface are configured in each physical interface, and the plurality of physical interfaces are in one-to-one correspondence with a plurality of preset and different data streams; the interface selection monitoring module is respectively in communication connection with each data stream monitoring module, the interface data selection module is respectively in communication connection with the interface selection monitoring module and each interface driving module, so that on the premise that an external device is in advance in communication connection with a target physical interface in the plurality of physical interfaces, the interface selection monitoring module can instruct the time interval measuring instrument to automatically select the target physical interface to carry out 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 results from the data stream monitoring modules comprehensively indicate that at least two different data streams exist, selecting a physical interface corresponding to the highest interface priority from at least two physical interfaces according to a preset interface priority sequence, and then generating second interface selection indication information for indicating to select 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 interface priority order is from high to low: when the data stream monitoring result of the data stream monitoring module from the USB interface indicates that there is the data stream C, the data stream monitoring result of the data stream monitoring module from the ethernet interface indicates that there is the data stream D, and the data stream monitoring result of the data stream monitoring module from the serial interface indicates that there is the data stream D, 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 has the highest interface priority among the optical fiber interface and the serial interface), and then the second interface selection indication information for indicating the selection of the optical fiber interface is generated, thereby solving the problem of possible interface selection conflict.
Preferably, the first time interval measuring apparatus further includes, but is not limited to, a data parsing and packing module communicatively connected to the interface data selecting module and a service module communicatively connected to the data parsing and packing module; the data analysis and package module is used for analyzing the data from a certain physical interface, then transmitting the analysis result to the service module, and packaging the data to be sent from the service module so as to be sent outwards through the interface driving module of the certain physical interface; the service module is used for carrying out service processing on the analysis result from the data analysis and package assembly module and generating the to-be-sent data.
In summary, the first time interval measuring instrument provided by the embodiment and capable of adaptively selecting the physical interface has the following technical effects:
(1) The embodiment provides an instrument side design scheme capable of adaptively selecting physical interfaces, namely 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, each physical interface is configured with a data stream monitoring module and an interface driving module of a corresponding interface, and the plurality of physical interfaces are in one-to-one correspondence with a plurality of preset and different data streams; the interface selection monitoring module is respectively in communication connection with each data stream monitoring module, the interface data selection module is respectively in communication connection with the interface selection monitoring module and each interface driving module, so that on the premise that an external device is in advance in communication connection with a target physical interface in the plurality of physical interfaces, the interface selection monitoring module can instruct the time interval measuring instrument to automatically select the target physical interface to carry out 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, this embodiment provides another time interval measuring apparatus that has the same inventive concept as the first embodiment and can adaptively select physical interfaces, that is, includes, but is not limited to, an interface selection monitor module, an interface data selection module, and a plurality of physical interfaces, where any two physical interfaces in the plurality of physical interfaces are different, and an interface driving module and a data parsing and packing module of the corresponding interfaces are configured in each physical interface; the interface selection monitoring module is respectively in communication connection with each data analysis and package module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and each data analysis and package module; the interface driving module is used for driving the corresponding interface to send and receive data; the data analysis and package module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and performing package processing on the data to be sent from the interface data selection module so as to perform external sending through the interface driving module; the interface selection monitoring module is used for acquiring interface switching instructions from analysis results from the data analysis and packet assembly modules and generating interface selection indication information according to the interface switching instructions; 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 package module of the certain physical interface.
As shown in fig. 3 to 4, in the specific structure of the second time interval measurement apparatus, 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 grouping module can conduct data analysis or data grouping 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 measurement apparatus based on a serial port technology and performs data transceiving, if it is desired to control the second time interval measurement apparatus to adaptively select another physical interface, i.e. 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 carrying an instruction for switching to the ethernet interface may be transmitted to the serial interface, so that the interface selection listening module may generate the interface selection instruction information for instructing to select the ethernet interface according to the parsing results from the data parsing and packetizing modules, so that the interface data selection module only subsequently receives data from the ethernet interface, and forwards the data to be sent to a network interface driving module (at this time, data transceiving will not be performed through the serial interface).
Based on the detailed description of the second time interval measuring instrument, another instrument side design scheme capable of adaptively selecting physical interfaces is provided, namely the instrument side 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 an interface driving module and a data analysis and package module of corresponding interfaces are configured in each physical interface; the interface selection monitoring module is respectively in communication connection with each data analysis and package module, the interface data selection module is respectively in communication connection with the interface selection monitoring module and each data analysis and package module, so that on the premise that an external device is in communication connection with a target physical interface in the plurality of physical interfaces in advance, an interface switching instruction for indicating switching to the target physical interface is only required to be transmitted in the current data receiving and transmitting process, the time interval measuring instrument can be instructed to automatically select the target physical interface to carry out subsequent data receiving and transmitting, the purpose of completing interface switching on line is achieved, and 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, when there are at least two interface switching instructions, interface selection indication information is generated according to the interface switching instructions, including but not limited to: firstly judging whether the instruction content of at least two interface switching instructions indicates to switch to the same physical interface or not; if yes, generating first interface selection indication information for indicating to select the same physical interface, otherwise, switching the indication to at least two different physical interfaces according to a preset interface priority order to select a physical interface corresponding to the highest interface priority, and then generating fourth interface selection indication information for indicating to select the physical interface. For example, when the interface priority order is from high to low: if the analysis result of the data analysis and packet assembly module from the USB interface carries an interface switching instruction for indicating switching to the Ethernet interface, the analysis result of the data analysis and packet assembly module from the optical fiber interface also carries an interface switching instruction for indicating switching to the Ethernet interface, a fourth interface selection indication information for indicating selecting the Ethernet interface can be generated; if the analysis result of the data analysis and packet assembly module from the USB interface carries an interface switching instruction for indicating switching to the optical fiber interface, and the analysis result of the data analysis and packet assembly module from the serial interface carries an interface switching instruction for indicating switching to the ethernet interface, the 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 indicating selecting the ethernet interface is generated, so that the problem of possible interface selection conflict can be solved.
Preferably, the second time interval measuring instrument further comprises a service module in communication with the interface data selection module; the service module is used for carrying out service processing on the analysis result from the interface data selection module and generating the to-be-sent data.
In summary, the second time interval measuring instrument provided by the embodiment and capable of adaptively selecting the physical interface has the following technical effects:
(1) The embodiment provides another instrument side design scheme capable of adaptively selecting physical interfaces, namely 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 packet assembly module of the corresponding interface; the interface selection monitoring module is respectively in communication connection with each data analysis and package module, the interface data selection module is respectively in communication connection with the interface selection monitoring module and each data analysis and package module, so that on the premise that an external device is in communication connection with a target physical interface in the plurality of physical interfaces in advance, an interface switching instruction for indicating switching to the target physical interface is only required to be transmitted in the current data receiving and transmitting process, the time interval measuring instrument can be instructed to automatically select the target physical interface to carry out subsequent data receiving and transmitting, the purpose of completing interface switching on line is achieved, and 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 III
As shown in fig. 5, this embodiment provides another time interval measuring apparatus that has the same inventive concept as the first embodiment and is also capable of adaptively selecting physical interfaces, that is, includes, but is not limited to, a service module, a data forwarding module, and a plurality of physical interfaces, where any two physical interfaces of the plurality of physical interfaces are different, and an interface driving module and a data parsing and packing module of corresponding interfaces are configured in each physical interface; the data forwarding module is in communication connection with the service module, and each data analysis and package assembly module is in communication connection with the data forwarding module respectively; the interface driving module is used for driving the corresponding interface to send and receive data; the data analysis and package module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and performing package processing on the data to be sent from the data forwarding module so as to perform external sending through the interface driving module; the data forwarding module is used for forwarding and transmitting the analysis result as only effective analysis data to the service module when only the analysis result from one data analysis and package module is received, and forwarding the data broadcast to be sent from the service module to each data analysis and package module; the service module is used for carrying out service processing on the analysis data and generating the to-be-sent data.
As shown in fig. 5, in the specific structure of the third time interval measurement apparatus, 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 grouping module can conduct data analysis or data grouping 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 measurement apparatus, if the third time interval measurement apparatus is to adaptively select the USB interface for data transmission and reception, data may be transmitted only to the USB interface, so that the data forwarding module may forward the analysis result of the data analysis and packet assembly module from the USB interface as the only valid analysis data to the service module, and forward the outgoing data broadcast from the service module to each of the data analysis and packet assembly modules, so that the USB port driving module may transmit the outgoing data to the controller in packet form, and further enable the third time interval measurement apparatus to immediately select the USB interface for data transmission and reception with the controller.
Based on the detailed description of the third time interval measuring instrument, another instrument side design scheme capable of adaptively selecting physical interfaces is provided, namely the instrument side 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 an interface driving module and a data analyzing and packaging module of corresponding interfaces are configured in each physical interface; the data forwarding module is in communication connection with the service module, the data analysis and packet assembly modules are respectively in communication connection with the data forwarding module, so that on the premise that an external device is in communication connection with a target physical interface in the plurality of physical interfaces in advance, the data is only required to be transmitted to the target physical interface, the time interval measuring instrument can be instructed to automatically select the target physical interface to carry out instant data receiving and transmitting, 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, when receiving the parsing results from the at least two data parsing and packaging modules at the same time, select, according to a preset interface priority order, a certain parsing result corresponding to a highest interface priority from the at least two parsing results as unique and valid parsing data, and forward and transmit the unique and valid parsing data to the service module, where the at least two parsing results are in one-to-one correspondence with the at least two data parsing and packaging modules. For example, when the interface priority order is from high to low: if the first analysis result of the data analysis and package assembly module from the USB interface and the second analysis result of the data analysis and package assembly module from the serial interface are received at the same time, the first analysis result (because the corresponding USB interface has higher interface priority) can be used as the only effective analysis data to be forwarded to the service module, and the possible interface selection conflict problem can be solved.
In summary, the third time interval measuring instrument provided by the embodiment and capable of adaptively selecting the physical interface has the following technical effects:
(1) The embodiment provides another instrument side design scheme capable of adaptively selecting physical interfaces, namely the instrument side 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 an interface driving module and a data analysis and packet assembly module of corresponding interfaces are configured in each physical interface; the data forwarding module is in communication connection with the service module, the data analysis and packet assembly modules are respectively in communication connection with the data forwarding module, so that on the premise that an external device is in communication connection with a target physical interface in the plurality of physical interfaces in advance, the data is only required to be transmitted to the target physical interface, the time interval measuring instrument can be instructed to automatically select the target physical interface to carry out instant data receiving and transmitting, 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 IV
As shown in fig. 6, the present embodiment provides a time interval measurement system based on the time interval measurement apparatus according to the first embodiment, the second embodiment or the third embodiment, that is, including but not limited to a controller and the time interval measurement apparatus according to any one of the first to third embodiments, wherein the controller is simultaneously communicatively connected to at least two physical interfaces of a plurality of physical interfaces of the time interval measurement apparatus. For example, as shown in fig. 6, the controller is respectively connected with the USB interface, the ethernet interface and the serial interface of the time interval measurement instrument in a communication manner, so that the time interval measurement 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 in the data transmission and reception process, and the friendliness of the whole time interval measurement system is effectively improved.
The technical details and technical effect descriptions of the present embodiment can be derived based on the first to third embodiments, and are not described herein.
Finally, it should be noted that the invention is not limited to the alternative embodiments described above, but can be used by anyone in various other forms of products in the light of the present invention. The above detailed description should not be construed as limiting the scope of the invention, which is defined in the claims and the description may be used to interpret the claims.
Claims (6)
1. The time interval measuring instrument capable of adaptively selecting the 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, each physical interface is provided with a data stream monitoring module and an interface driving module of a corresponding interface, and the plurality of physical interfaces are in one-to-one correspondence with a plurality of preset and different data streams;
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 send and receive 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 configured to generate interface selection indication information according to data stream monitoring results from the data stream monitoring modules, and specifically includes: when the data stream monitoring results from the data stream monitoring modules comprehensively indicate that at least two different data streams exist, selecting a physical interface corresponding to the highest interface priority from at least two physical interfaces according to a preset interface priority sequence, and then generating interface selection indication information for indicating to select the physical interface, wherein the at least two physical interfaces are in one-to-one correspondence with the at least two data streams;
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 measurement instrument of claim 1, further comprising a data parsing and packetizing module communicatively coupled to the interface data selection module and a service module communicatively coupled to the data parsing and packetizing module;
the data analysis and package module is used for analyzing the data from a certain physical interface, then transmitting the analysis result to the service module, and packaging the data to be sent from the service module so as to be sent outwards through the interface driving module of the certain physical interface;
the service module is used for carrying out service processing on the analysis result from the data analysis and package assembly module and generating the to-be-sent data.
3. The time interval measurement instrument of claim 1, wherein the plurality of physical interfaces comprises a USB interface, an ethernet interface, a fiber optic interface, and/or a serial interface.
4. The time interval measuring instrument capable of adaptively selecting the 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, and each physical interface is provided with an interface driving module and a data analysis and packet assembly module of the corresponding interface;
the interface selection monitoring module is respectively in communication connection with each data analysis and package module, and the interface data selection module is respectively in communication connection with the interface selection monitoring module and each data analysis and package module;
the interface driving module is used for driving the corresponding interface to send and receive data;
the data analysis and package module is used for analyzing the data received at the corresponding interface to obtain an analysis result, and performing package processing on the data to be sent from the interface data selection module so as to perform external sending through the interface driving module;
the interface selection monitoring module is configured to obtain interface switching instructions from analysis results from the data analysis and packet grouping modules, and generate interface selection indication information according to the interface switching instructions, where the interface selection monitoring module specifically includes: judging whether switching to the same physical interface is indicated in instruction contents of at least two interface switching instructions; if yes, generating third interface selection indication information which is used for indicating to select the same physical interface and is used as the interface selection indication information, otherwise, switching to at least two different physical interfaces according to a preset interface priority order to select a physical interface corresponding to the highest interface priority, and then generating fourth interface selection indication information which is used for indicating to select the physical interface and is used as the interface selection indication information;
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 package module of the certain physical interface.
5. The time interval measurement instrument of claim 4, further comprising a service module communicatively coupled to the interface data selection module;
the service module is used for carrying out service processing on the analysis result from the interface data selection module and generating the to-be-sent data.
6. A time interval measurement system comprising a controller and a time interval measurement instrument according to any one of claims 1 to 5, wherein the controller is simultaneously communicatively coupled to at least two of a plurality of physical interfaces of the time interval measurement 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 CN114826966A (en) | 2022-07-29 |
CN114826966B true 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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002152407A (en) * | 2000-11-08 | 2002-05-24 | Nec Corp | Portable communication terminal device |
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 |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7599323B2 (en) * | 2002-10-17 | 2009-10-06 | Alcatel-Lucent Usa Inc. | Multi-interface mobility client |
JP5312308B2 (en) * | 2009-12-17 | 2013-10-09 | キヤノン株式会社 | Information processing apparatus and control method having a plurality of communication interfaces |
-
2022
- 2022-04-29 CN CN202210474540.8A patent/CN114826966B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002152407A (en) * | 2000-11-08 | 2002-05-24 | Nec Corp | Portable communication terminal device |
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 |
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 |
---|---|
CN114826966A (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107919947B (en) | Coding method for long message transmission of CAN bus | |
US9444766B2 (en) | Identifying a port associated with a network node to which a selected network link is connected | |
CN108011743B (en) | Fault injection method and device | |
NO874449L (en) | PROCEDURE AND DEVICE FOR AA CONNECTING COMPUTER WORKING STATIONS. | |
CN101594222A (en) | A kind of interface test method and device | |
US10182132B2 (en) | Method, apparatus and system for communication between OpenFlow device and IP network device | |
CN103827760A (en) | Method for transmitting a process map via a gateway device | |
CN114826966B (en) | Time interval measuring instrument and system capable of adaptively selecting physical interface | |
CN107656884A (en) | A kind of data processing method and system, the quick interconnection equipment of peripheral assembly and main frame | |
CN112511215B (en) | Data channel switching method and terminal equipment | |
CN112422358B (en) | Bus signal analyzer and bus signal analyzing method | |
CN110113209B (en) | MIPI (Mobile industry processor interface) protocol-based inter-device communication method and equipment topological structure | |
CN114614917B (en) | Wireless communication link simulation system and method | |
US20130215936A1 (en) | Two-In-One CFP Form-Factor Pluggable Adapter | |
CN103532686A (en) | Serial data transceiver circuit with line sequence self-adaptive function, and control method thereof | |
CN111314242B (en) | Multi-channel supporting packet cache scheduling simulation verification method and system | |
CN114338270A (en) | Data communication method, device, electronic equipment and storage medium | |
EP2182674A1 (en) | Method for updating the status of network devices and device implementing the method | |
US10057384B2 (en) | Signal conversion system and signal conversion method | |
KR20210045200A (en) | Computer program for driving DDS data conversion and transmission device | |
CN103269319A (en) | Method, device and system for data transmission | |
CN110417762B (en) | Module integration system with message packaging technology | |
US5757805A (en) | Signaling information processing apparatus for use in an electronic switching system | |
CN110445767B (en) | Integrated module integrated system capable of supporting various processors | |
KR20130022795A (en) | Nmea-2000 specification conversion module of marine electronics interface |
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 |