CN115801909A - Data acquisition device and method of GPIB protocol - Google Patents

Data acquisition device and method of GPIB protocol Download PDF

Info

Publication number
CN115801909A
CN115801909A CN202211640001.3A CN202211640001A CN115801909A CN 115801909 A CN115801909 A CN 115801909A CN 202211640001 A CN202211640001 A CN 202211640001A CN 115801909 A CN115801909 A CN 115801909A
Authority
CN
China
Prior art keywords
data
gpib
communication unit
processor
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211640001.3A
Other languages
Chinese (zh)
Inventor
周敏
金星勋
高超
刘小贵
周力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xinchao Semiconductor Technology Co ltd
Original Assignee
Shanghai Xinchao Semiconductor Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xinchao Semiconductor Technology Co ltd filed Critical Shanghai Xinchao Semiconductor Technology Co ltd
Priority to CN202211640001.3A priority Critical patent/CN115801909A/en
Publication of CN115801909A publication Critical patent/CN115801909A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to a data acquisition device and a method of a GPIB protocol, wherein the data acquisition device comprises a processor, the processor is used for realizing the conversion between the GPIB protocol and a TCP/IP protocol; the first communication unit is connected with the processor and used for realizing data transmission with the equipment end through the first communication unit; the second communication unit is used for realizing the transmission of the internet access data through the second communication unit; the third communication unit is used for realizing the transmission of the analog quantity through the third communication unit; a power supply unit for supplying power to the processor and/or to the second communication unit. The invention receives data and sends out a control instruction in a TCP/IP mode, can be converted into a GPIB communication protocol and transmitted to the equipment end, feeds back data through the equipment end and transmits the data to the Ethernet in a TCP/IP mode, effectively realizes data acquisition of the equipment end and does not influence data communication between the equipment ends.

Description

Data acquisition device and method of GPIB protocol
Technical Field
The invention relates to the technical field of communication protocol conversion equipment, in particular to a data acquisition device and a data acquisition method of a GPIB protocol, which are suitable for GPIB communication equipment.
Background
The GPIB is an interface bus or connection system used to connect electronic test instruments to a central controller to implement automated testing. GPIB is widely used for remote control of electronic test equipment, from digital multimeters to various signal generators, switch matrices, spectrum analyzers, power meters, network analyzers, and the like.
At present, all equipment in an FT/CP test workshop exchanges data through a GPIB protocol to realize a scene of data acquisition and control, but due to the characteristic of GPIB bus communication, a GPIB system does not allow two or more organizers or controllers for data transmission to act simultaneously, namely, the data acquisition work cannot be carried out. On the other hand, if the board card is purchased externally, the stability of the solution is poor, and the cost is higher than the customer expectation.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, it is an object of the present invention to provide a data acquisition apparatus and method for GPIB protocol, so as to solve one or more problems in the prior art.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a data acquisition device of GPIB protocol comprises
The processor is used for realizing the conversion between the GPIB protocol and the TCP/IP protocol;
the first communication unit is connected with the processor and used for realizing data transmission with a device side through the first communication unit;
the second communication unit is also connected with the processor and is used for realizing the transmission of internet access data through the second communication unit;
the third communication unit is also connected with the processor and is used for realizing the transmission of the analog quantity through the third communication unit;
a power supply unit to supply power to the processor and/or to the second communication unit.
Further, the first communication unit includes at least one GPIB driver chip and a GPIB interface connected to the GPIB driver chip, where the GPIB interface is used to connect to an equipment terminal, so as to transmit data to the equipment terminal through a GPIB protocol.
Further, the second communication unit includes a PHY chip and a network interface transformer connected to the PHY chip, the PHY chip is also connected to the processor, and the network interface transformer is connected to at least one network interface.
Further, the third communication unit comprises at least one RS485 driver chip and an RS485 interface connected with the RS485 driver chip.
Further, the electrical unit include power module and with the POE module that power module connects, power module's output with the treater is connected, power module's some input is connected with the POE module, the POE module with network interface connects to the realization is got the electricity/is supplied power from network interface department through the POE module.
Furthermore, the power supply module is also provided with another part of input ends connected with a DC power supply to realize power supply through the DC power supply, and the input voltage range of the DC power supply is 8-60 VDC.
Furthermore, the output end of the processor is also connected with at least one driving module.
Further, the output end of the processor is also connected with at least one reset module.
Correspondingly, the invention also provides a method for acquiring data according to the data acquisition device of the GPIB protocol, which comprises the following steps:
sending an acquisition instruction;
receiving an acquisition instruction and processing the instruction to form data;
completing data transmission between the current time period and the first equipment end and/or the second equipment end;
the second equipment end reads the data and judges whether the data are in accordance, if so, the data are returned, and if not, the data are not returned;
collecting and processing return data to form reply data, and transmitting the reply data to the Ethernet;
the user receives the reply data;
and the data transmission with the first equipment end and/or the second equipment end is carried out again.
Compared with the prior art, the invention has the following beneficial technical effects
The invention receives data and sends out a control instruction in a TCP/IP mode, can be converted into a GPIB communication protocol to be transmitted to the equipment end, feeds back data through the equipment end and transmits the data to the Ethernet in a TCP/IP mode, effectively realizes data acquisition of the equipment end and does not influence data communication between the equipment ends.
Furthermore, the data acquisition device provided by the invention has an IP address and a port number, can monitor the connection of the client through the server, and establishes communication after the connection. Similarly, the client can be connected with the server according to the IP address and the port number, connection is established after adaptation, and then data monitoring among all equipment ends is achieved, and the equipment ends are asked and answered in a socket mode.
Drawings
Fig. 1 shows a schematic structural diagram of a data acquisition apparatus and method of a GPIB protocol according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart illustrating a data acquisition apparatus and method for GPIB protocol according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating a flow of sending data by a first device in a data acquisition apparatus and method for a GPIB protocol according to an embodiment of the present invention.
Fig. 4 is a schematic flowchart illustrating a process of sending data by a second device in the data acquisition apparatus and method for GPIB protocol according to the embodiment of the present invention.
In the drawings, the reference numbers: 1. a processor; 2. a drive module; 3. a reset module; 4. a power supply module; 5. a chip; 6. a network port transformer; 7. a POE module; 8. inputting a power supply; 9. a first GPIB driver chip; 10. a second GPIB driver chip; 11. an RS485 driving chip; 12. a first GPIB interface; 13. a second GPIB interface; 14. an RS485 interface; 15. a network interface; 16. a first device side; 17. and a second device end.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the following will explain in detail a data acquisition apparatus and method of GPIB protocol in accordance with the present invention with reference to the accompanying drawings and the detailed description. The advantages and features of the present invention will become more apparent from the following description. It is to be noted that the drawings are in a very simplified form and are all used in a non-precise scale for the purpose of facilitating and distinctly aiding in the description of the embodiments of the present invention. To make the objects, features and advantages of the present invention more comprehensible, reference is made to the accompanying drawings. It should be understood that the structures, ratios, sizes, and the like shown in the drawings and described in the specification are only used for matching with the disclosure of the specification, so as to be understood and read by those skilled in the art, and are not used to limit the implementation conditions of the present invention, so that the present invention has no technical significance, and any structural modification, ratio relationship change or size adjustment should still fall within the scope of the present invention without affecting the efficacy and the achievable purpose of the present invention.
The data acquisition device for the GPIB protocol according to this embodiment includes the following structure:
the processor 1 is used for realizing the conversion between the GPIB protocol and the TCP/IP protocol, and mainly converts original data into binary data, then divides the binary data into a plurality of small data segments and packages the data segments.
And the first communication unit is connected with the processor 1 and used for realizing data transmission with the equipment side through the first communication unit.
The first communication unit includes at least one GPIB driver chip and a GPIB interface connected to the GPIB driver chip, and in this embodiment, the at least one GPIB driver chip is a first GPIB driver chip 9 and a second GPIB driver chip 10, where the first GPIB driver chip 9 is connected to a first GPIB interface 12 and the second GPIB driver chip 10 is connected to a second GPIB interface 13. The device end specifically includes a first device end 16 and a second device end 17 in this embodiment, where the first device end 16 may be a controller such as a computer, and the second device end 17 may be a listener such as a probe station, a switch matrix, a signal generator, a power meter, a network analyzer, and the like, where the first device end 16 is connected to the first GPIB interface 12, and the second device end 17 is connected to the second GPIB interface 13.
Further, the data acquisition device further includes a second communication unit, please refer to fig. 1, where the second communication unit is also connected to the processor 1, so as to implement transmission of internet access data through the second communication unit;
specifically, with continued reference to fig. 1, the second communication unit includes a PHY chip 5 and a network interface transformer 6 connected to the PHY chip 5, the PHY chip 5 is also connected to the processor 1, and the network interface transformer 6 is connected to at least one network interface 15. The PHY chip 5 is configured to receive and transmit data frames of ethernet, and the port transformer 6 is configured to transmit ethernet signals without distortion and meet the requirement of electrical isolation.
Further, the PHY chip 5 may be a PHY chip having N (N =1, 2, 4, 8 … …) ports, one of the ports may be configured as a dedicated electrical interface, directly connected to the network port transformer 6, and then connected to the network interface 15 through the network port transformer 6 to implement a complete electrical interface.
Further, the data acquisition device further comprises a third communication unit, and the third communication unit is also connected to the processor 1, so as to implement transmission of the analog quantity through the third communication unit.
Referring to fig. 1, the third communication unit includes at least one RS485 driver chip 11 and an RS485 interface 14 connected to the RS485 driver chip 11, wherein the RS485 interface 14 is used for connecting to an RS485 device and is used for inputting and outputting analog quantities. Specifically, the RS485 interface can form a wireless measurement and control network with equipment such as a PLC, a DCS, configuration software, a man-machine section, a touch screen, an intelligent instrument or a sensor, or can be used for parameter setting.
Specifically, the signal with the RS485 communication equipment is sent into the RS485 driver chip through the RS485 interface 14, the RS485 driver chip 11 converts the signal into a signal which can be identified by the processor 1, and the driver module 2 of the RS485 driver chip 11, namely the indicator light, can check whether the communication between the RS485 driver chip and the RS485 communication equipment is normal.
Further, please continue to refer to fig. 1, the data acquisition apparatus further includes a power supply unit, and the power supply unit is configured to supply power to the processor 1 and/or to the second communication unit.
Specifically, power supply unit includes power module 4 and the POE module 7 of being connected with power module 4, and is preferred, power module 4 adopts DCDC to keep apart power module in this embodiment, POE module 7 is connected with network interface 15 to the realization is got the electricity/is supplied power from network interface 15 through POE module 7.
Of course, with continued reference to fig. 1, the power module 4 may also adopt other power supply modes, for example, power supply, the power module 4 is connected to the DC power supply 8, and the input voltage range of the DC power supply 8 is 8 to 60VDC.
The two power taking modes of taking power by the DC power supply 8 or taking power by the POE module 7 may be performed simultaneously or any one of the two power taking modes may be selected arbitrarily, which is not further limited in the present invention.
Further, with reference to fig. 1, an output end of the processor 1 is connected to at least one driving module 2, and the driving module 2 is preferably an indicator light, which may be any one or more of a system status indicator light or a power indicator light. And the starting state of the data acquisition device is observed through the power indicator lamp, and the state of the data acquisition device is observed through the system state indicator lamp.
Further, please refer to fig. 1, an output end of the processor 1 is further connected to at least one reset module 3, preferably, the reset module 3 is a system reset key in this embodiment, and default configuration parameters can be restored through the system reset key.
Accordingly, the present invention also provides a method for a data acquisition apparatus according to the above GPIB protocol, characterized by comprising the steps of:
s0: sending a collection instruction: and the user sends an acquisition instruction to the data acquisition device through the Ethernet by using the socket client. The socket is called a socket, describes an IP address and a port of a computer, and is used for data communication among programs running in the computer, and the process of socket communication specifically includes:
the socket server program binds a socket to a specified IP address and port, and waits and monitors the request of a client through the socket;
(II) the client program sends a connection request to the address and the port bound by the socket server program;
(III) the service end accepts the connection request;
and (IV) the socket client and the socket server communicate through the read-write socket.
Further, the socket server is a PHY chip 5 in the data acquisition device, and has an IP address and a port number, and a user needs to use a socket client to adapt to the IP address and the port number of the data acquisition device, and the socket server monitors whether the socket client exists, and establishes communication if the socket client exists, or otherwise, the socket client connects to the socket server according to the IP address and the port number, and establishes connection if the socket server with the adaptation is found.
S1: referring to fig. 2, a collection command is received: the acquisition instruction is sent to the PHY chip 5 of the data acquisition device through the network interface 15, the PHY chip 5 converts the acquisition instruction into a signal which can be identified by the processor 1 and sends the signal to the processor 1, the processor 1 receives the signal in the form of a socket server and then checks whether the signal is idle, if the signal is idle, the data in the instruction is disassembled, and then the disassembled data is sent to the second GPIB interface 13 through the second GPIB driving chip 10.
S2: and finishing the data transmission between the current time period and the first equipment end and/or the second equipment end. Referring to fig. 2, specifically, when the processor 1 receives the acquisition instruction, it first completes data transmission between the current time slot and the device side, for example, completes data transmission between the processor 1 and the first device side 16 and/or completes data transmission between the processor 1 and the second device side 17 in the current time slot, and the specific transmission process is described in steps A1 to A3 and steps B1 to B3.
S3: with continued reference to fig. 1 and fig. 2, the second device 17 responds after reading data from the second GPIB interface 13, and returns data if the command format of the second device 17 is met, otherwise, the data is not returned.
S4: the data acquisition device reads data from the second GPIB interface 13, and feeds the read data back to the processor 1 through the second GPIB driver chip 10, or the read data is intercepted by the processor 1, and the read data is divided into a plurality of small data segments through the processor 1, and simultaneously encapsulated into a GP7 protocol (a self-defined protocol), and sent back to the ethernet through the Socket server, and specifically, the reply data is fed back to the PHY chip 5 by the processor 1 and transmitted to the ethernet through the network port transformer 6 and the network interface 16.
S5: the user may receive reply data from the Socket server.
S6: and the data acquisition device performs data transmission with the first equipment end 16 and the second equipment end 17 again.
Referring to fig. 1 and 3, specifically, the data transmission process of the first device 16, i.e. the controller, is as follows:
a1: the first device terminal 16 sends the data to the first GPIB interface 12 of the data acquisition apparatus.
A2: data are transmitted to the processor 1 through the first GPIB interface 12 and the first GPIB driver chip 9, the processor 1 converts a TCP/IP protocol into a GPIB protocol and sends the GPIB protocol to the Socket client, and meanwhile, the data are transmitted to the second GPIB interface 13 through the second GPIB driver chip 10.
A3: the second device terminal 17 receives data via the second GPIB interface 13.
Similarly, referring to fig. 1 and fig. 4, the process of sending data by the second device 17 is as follows:
b1: the second device end 17 sends the data to the second GPIB interface 13 of the data acquisition apparatus in the form of a TCP/IP protocol.
B2: and receiving and transmitting the data to the processor 1 through the second GPIB driver chip 10 and the second GPIB interface 13, wherein if the Socket client is connected, the processor 1 converts the data into a GPIB protocol and transmits the GPIB protocol to the Socket client, and simultaneously transmits the data to the first GPIB interface 12.
B3: the first device terminal 16 receives data from the first GPIB interface 12. All possible combinations of the technical features of the above embodiments may not be described for the sake of brevity, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A data acquisition device for the GPIB protocol, comprising: the data acquisition device comprises
The processor is used for realizing the conversion between a GPIB protocol and a TCP/IP protocol;
the first communication unit is connected with the processor and used for realizing data transmission with a device side through the first communication unit;
the second communication unit is also connected with the processor and is used for realizing the transmission of the internet access data through the second communication unit;
the third communication unit is also connected with the processor and is used for realizing the transmission of the analog quantity through the third communication unit;
a power supply unit for supplying power to the processor and/or to the second communication unit.
2. The GPIB protocol data collection apparatus of claim 1, wherein: the first communication unit comprises at least one GPIB driving chip and a GPIB interface connected with the GPIB driving chip, and the GPIB interface is used for being connected with the equipment end so as to transmit data to the equipment end through a GPIB protocol.
3. The apparatus for data acquisition of the GPIB protocol of claim 2, wherein: the second communication unit comprises a PHY chip and a network port transformer connected with the PHY chip, the PHY chip is also connected with the processor, and the network port transformer is connected with at least one network interface.
4. The GPIB protocol data collection apparatus of claim 1, wherein: the third communication unit comprises at least one RS485 driving chip and an RS485 interface connected with the RS485 driving chip.
5. The apparatus for data acquisition of the GPIB protocol of claim 3 wherein: the power supply unit includes power module and with the POE module that power module connects, power module's output with the treater is connected, power module's some input and POE module are connected, the POE module with network interface connects to the realization is got the electricity/is supplied power from network interface department through the POE module.
6. The apparatus for data acquisition of the GPIB protocol of claim 5 wherein:
the power supply module is also provided with another part of input ends connected with a DC power supply to realize power supply through the DC power supply, and the input voltage range of the DC power supply is 8-60 VDC.
7. The GPIB protocol data collection apparatus of claim 1, wherein:
the output end of the processor is also connected with at least one driving module.
8. The GPIB protocol data collection apparatus of claim 1, wherein:
the output end of the processor is also connected with at least one reset module.
9. A method for a data acquisition apparatus for the GPIB protocol according to any one of claims 1 to 8, comprising the steps of:
sending an acquisition instruction;
receiving an acquisition instruction and processing the instruction to form data;
completing data transmission between the current time period and the first equipment end and/or the second equipment end;
the second equipment end reads the data and judges whether the data are in accordance, if so, the data are returned, and if not, the data are not returned;
collecting and processing return data to form reply data, and transmitting the reply data to the Ethernet;
the user receives the reply data;
and the data transmission with the first equipment end and/or the second equipment end is carried out again.
CN202211640001.3A 2022-12-20 2022-12-20 Data acquisition device and method of GPIB protocol Pending CN115801909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211640001.3A CN115801909A (en) 2022-12-20 2022-12-20 Data acquisition device and method of GPIB protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211640001.3A CN115801909A (en) 2022-12-20 2022-12-20 Data acquisition device and method of GPIB protocol

Publications (1)

Publication Number Publication Date
CN115801909A true CN115801909A (en) 2023-03-14

Family

ID=85427271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211640001.3A Pending CN115801909A (en) 2022-12-20 2022-12-20 Data acquisition device and method of GPIB protocol

Country Status (1)

Country Link
CN (1) CN115801909A (en)

Similar Documents

Publication Publication Date Title
US8107491B2 (en) System and method for providing communication between intelligent electronic devices via an open channel
CA2229318C (en) Interface monitor for communicating between different communication protocols
CN110913362B (en) Method and device for realizing wireless signal test through client and test equipment
CN101107578A (en) Automation system
CN112564772B (en) Satellite data acquisition system
CN103152274A (en) Energy efficiency and safety data wireless network routing device, energy efficiency and safety data wireless network routing system and method applying same
CN101477184A (en) Full-automatic test system for energy management terminal
CN218830001U (en) Data acquisition device of GPIB protocol
CN115801909A (en) Data acquisition device and method of GPIB protocol
CN112711504A (en) Test system and test method
CN111258836B (en) Multifunctional vehicle bus consistency testing device and method
CN211427481U (en) Function detection device for electricity consumption information acquisition terminal
CN114337802A (en) Transformer substation fiber alignment device and method
CN216086678U (en) Automatic testing arrangement of intelligent terminal based on ethernet
CN220651102U (en) Digital signal input/output control circuit and card type bus IO module
CN216670562U (en) Online collection, operation and maintenance supporting device
CN114859283B (en) System and method for testing full performance of measuring unit
CN2630864Y (en) Long distance calibrating installation for electric energy meter
CN220188583U (en) Electrical equipment data detection system
CN220120973U (en) Intelligent transformer remote monitoring system
CN220673456U (en) Remote data acquisition device of photovoltaic power generation system
CN220603888U (en) Digital quantity signal remote control circuit and card type bus IO module
CN215867555U (en) GNSSMET monitoring device
CN219718252U (en) Hub for multi-device data transmission
CN213545525U (en) Novel wireless communication device suitable for photovoltaic combiner box measurement and control equipment

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