CN109413066A - Communication protocol converter of analytical instrument - Google Patents

Communication protocol converter of analytical instrument Download PDF

Info

Publication number
CN109413066A
CN109413066A CN201811266082.9A CN201811266082A CN109413066A CN 109413066 A CN109413066 A CN 109413066A CN 201811266082 A CN201811266082 A CN 201811266082A CN 109413066 A CN109413066 A CN 109413066A
Authority
CN
China
Prior art keywords
level
conversion
output
transistor
module
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
CN201811266082.9A
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.)
Xuepuda Analytical Instruments Tianjin Co ltd
Original Assignee
Xuepuda Analytical Instruments Tianjin 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 Xuepuda Analytical Instruments Tianjin Co ltd filed Critical Xuepuda Analytical Instruments Tianjin Co ltd
Priority to CN201811266082.9A priority Critical patent/CN109413066A/en
Publication of CN109413066A publication Critical patent/CN109413066A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The invention relates to the field of analytical instruments, in particular to a communication protocol converter of an analytical instrument. The invention provides an analyzer communication protocol converter. The communication protocol converter can realize the compatibility between the analyzers of a plurality of brands and the sample injectors of a plurality of brands by converting the coding format and the signal level of the output instruction coding signal of the analyzer under the condition of not changing the software and hardware structures of the analyzer and the sample injectors, and has the advantages of saving resources, reducing waste and improving the use efficiency of equipment.

Description

A kind of analysis instrument communication protocol converter
Technical field
The invention belongs to field of analytic instrument, and in particular to a kind of analysis instrument communication protocol converter.
Background technique
Chromatography refers to by substance the difference of distribution coefficient between stationary phase and mobile phase and is separated, analyzed Method.Chromatography instrument is used to the chromatogram of separate substance and detection, recorded matter, and carries out the instrument of qualitative and quantitative analysis Device, abbreviation analysis instrument.In experimental analysis, the device for sample being sent into chromatographic column that can be quantified is called sample injector.
Sample injector is divided into two kinds of manually sample injector and autosampler.Autosampler be it is a kind of it is intelligent, from The sample introduction instrument of dynamicization, when use, need to only connect the communication cable with analysis instrument, be put into sample to be tested, autosampler The control command that can be issued according to analysis instrument completes automatic sampling process.
But present analysis instrument is divided according to brand, is established one's own system, and is assisted using respectively different control systems and communication View, since the analysis instrument of different brands and the sample injector of other brands use different communications protocol, communication transfer Rate and hardware interface design are different from (as shown in table 1,2), this results in the analysis instrument of different brands only in oneself product It is run in board analysis instrument, therefore the sample injector of different brands analysis instrument cannot be general, user is caused to repeat configuration purchase, wave Take very big.
Summary of the invention
It is real the technical problem to be solved in the present invention is to provide a kind of technical solution for meeting the conversion of analysis instrument communications protocol Communications protocol is compatible between the analysis instrument and the sample injector of multiple brands of existing multiple brands.
In view of the above problems, the invention proposes a kind of analysis instrument communication protocol converters.The communications protocol conversion Device in the case where not changing analysis instrument software and hardware structure, can realize multiple brands analysis instrument and multiple brands into The effect of compatibility between sample device has and economizes on resources, reduces waste, improve equipment service efficiency.
The communication protocol converter, including input interface adapter, incoming level conversion module, serioparallel exchange module, Coding inquiry and decoded output module, parallel serial conversion module, output level conversion module and output interface adapter.
The input interface adapter, for connecting the communication interface of different type analysis instrument.
The output interface adapter, for connecting the communication interface of different type sample injector.
The incoming level conversion module, for the encoded signal from the input interface adapter to be converted to TTL Level coding signal is then output to the serioparallel exchange module;
The serioparallel exchange module, for will be from the serial Transistor-Transistor Logic level encoded signal of the incoming level conversion module Parallel bus encoded signal is converted to, the coding inquiry and decoded output module are then output in parallel to;
The coding inquiry and decoded output module, believe for that will encode from the parallel bus of the serioparallel exchange module It number is decoded, parses correct control command, according still further to required Signal coding format, weight is carried out to the control command It is newly encoded, the parallel bus encoded signal for meeting sample injector use demand is generated, finally simultaneously by the parallel bus encoded signal Row is output to the parallel serial conversion module;
The parallel serial conversion module is believed for that will encode from the parallel bus of the coding inquiry and decoded output module Number carry out parallel-serial conversion, then Serial output to the output level conversion module;
The output level conversion module, for will be from the serial Transistor-Transistor Logic level encoded signal of the parallel serial conversion module The encoded signal for meeting sample injector communication interface level is converted to, the output interface adapter is output to.
Further, the coding inquiry and decoded output module include CPU, and institute will be come from by executing software program by CPU The parallel bus encoded signal for stating serioparallel exchange module is decoded, and parses correct control command, according still further to required letter Number coded format, recompiles the control command, generates the parallel bus coding letter for meeting sample injector use demand Number, the parallel bus encoded signal is finally output in parallel to the parallel serial conversion module.
Further, the CPU model MC68332.
Further, the coding inquiry and decoded output module include F28F008SA memory, for storing analysis instrument Control command table.
Further, there are three independent channels for the incoming level conversion module, are respectively completed RS485, RS232 and LAN Conversion of the format signal level to Transistor-Transistor Logic level.
Further, the output and input level conversion module, from MAX485 chip complete RS485 format signal level to The conversion of Transistor-Transistor Logic level;Conversion of the RS232 format signal level to Transistor-Transistor Logic level is completed from MAX232 chip;It is complete by CH9121 chip Conversion at from LAN format signal level to Transistor-Transistor Logic level, wherein CH9121 chip is completed at the same time TCP/IP encoded signal to UART The conversion of encoded signal.
Further, the output level conversion module is there are three independent channel, be respectively completed Transistor-Transistor Logic level to RS485, The conversion of RS232 and LAN format signal level.
Further, the output level conversion module completes Transistor-Transistor Logic level to RS485 format signal electricity from MAX485 chip Flat conversion;Conversion of the Transistor-Transistor Logic level to RS232 format signal level is completed from MAX232 chip;TTL is completed by CH9121 chip Conversion of the level to LAN format signal level, wherein CH9121 chip, which is completed at the same time, encodes UART encoded signal to TCP/IP The conversion of signal.
Further, the input format conversion module realizes serial UART said shank signal by UART16550 chip Serioparallel exchange.
Further, the output format conversion module realizes parallel UART said shank signal by UART16550 chip Parallel-serial conversion.
A kind of analysis instrument communication protocol converter provided by the invention, has the advantages that the communications protocol Converter changes the coded format and signal level of analysis instrument output control command according to the communication protocol type of sample injector, The sample injector for making to be only applicable to single analysis instrument originally is suitable for a variety of analysis instruments, can also make can only to control originally it is single into The analysis instrument of sample device can control a variety of sample injectors, has and economizes on resources, and reduce waste, improve the function of equipment service efficiency Effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the working principle diagram of analysis instrument communication protocol converter in the embodiment of the present invention;
Fig. 2 is the structural block diagram of analysis instrument communication protocol converter in the embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out below Detailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art are obtained all without making creative work Other embodiment belongs to the range that the present invention is protected.
The working principle of analysis instrument communication protocol converter is as shown in Figure 1, for different brands in the embodiment of the present invention Analysis instrument and sample injector, the communications protocol that communication interface uses be different from, therefore its export control command coding Format and signal level are all different, therefore in the different situation of communications protocol, the analysis instrument and sample introduction of different brands Device cannot be compatible with.In Fig. 1, the control command that analysis instrument communication protocol converter exports different brands analyzer is carried out The conversion of coded format and signal level, output are suitable for the encoded signal of sample injector communication interface.
The circuit structure of analysis instrument communication protocol converter is as shown in Fig. 2, include input interface in the embodiment of the present invention Adapter, incoming level conversion module, serioparallel exchange module, coding inquiry and decoded output module, parallel serial conversion module, output Level switch module and output interface adapter.
The input interface adapter and the output interface adapter can be equipped with various communication interfaces.
Communications protocol, transmission communication transmission rate and the hardware interface design of canonical analysis instrument are referring to Tables 1 and 2:
1 different brands analysis instrument communications protocol of table
Communications protocol Operating rate Working method
UART(232) 4.8K Duplex
UART(485) 2.4K Half-duplex
TCP/IP 100M Duplex
The hardware design that the different communications protocol of table 2 use
Communications protocol Physical interface agreement Physical interface type Interfaces level Type of attachment
UART(232) RS232 KMH24 ±15V It is direct-connected
UART(485) RS485 DB9 - 8 to+12.5V It is direct-connected
TCP/IP LAN RJ45 0-5V It is direct-connected
Based on the above canonical analysis instrument, tri- kinds of communication terminals of RS485, RS232 and LAN are can be set in input interface adapter Mouthful, the analysis instrument using tri- kinds of UART (485), UART (232) and TCP/IP communications protocol can be separately connected.
Based on the above canonical analysis instrument, tri- kinds of communication terminals of RS485, RS232 and LAN are can be set in output interface adapter Mouthful, can be separately connected using UART (485), tri- kinds of communications protocol of UART (232) and TCP/IP three kinds of communications protocol into Sample device.
It should be noted that needing input interface adapter and output interface adapter that can also be arranged according to Functional Design More type communication interfaces, the embodiment of the present invention will not enumerate.
The incoming level conversion module can be respectively used to make using chips such as MAX232, MAX485 and CH9121 It is Transistor-Transistor Logic level with the incoming coded signal level conversion of the communications protocol such as UART (485), UART (232) and TCP/IP, wherein CH9121 chip includes that ICP/IP protocol turns UART protocol function, when completing signal level conversion, completes TCP/IP association together Discuss conversion of the coded format to UART protocol coded format;
The serioparallel exchange module can use UART16550 chip, the string using UART protocol for that will receive Row Transistor-Transistor Logic level signal is converted to parallel bus signal and is exported.
The coding inquiry and decoded output module, using 32 high-speed CPU MC68332.The CPU uses M5M5256 high Fast storehouse temporary storage receives the TTL encoded signal of serioparallel exchange module output, after parsing correct control command, root According to the meaning of the control command, by retrieving the analysis instrument control command being pre-stored in F28F008SA protocol memories Table, CPU filter out control command used in analysis instrument corresponding to current sample injector, are led to according still further to by current sample injector News agreement recompiles control command, is sent to serioparallel exchange module, orders to realize and control different communications protocol The conversion of order.
For example, currently used is type-A analysis instrument and B type sample injector, type-A analysis instrument exports control command A, representative, which is meant that, allows sample injector motor to rotate, by retrieving the analysis being pre-stored in F28F008SA protocol memories Instrument controlling command table learns that B type analysis instrument allows sample injector motor to rotate using control command B, filters out control command B After, control command B is recompiled according still further to by the communications protocol of B type sample injector, is sent to serioparallel exchange module.
Representative communication assists coded format as shown in table 3:
3 representative communication of table association coding lattice
Communications protocol Communications protocol coding
UART232 + 2 bit check code of+16 data encodings of 16 control words
UART485 8+2 bit check codes of data encoding
TCP/IP 32 control bit data bit+verification shuffling code
The parallel serial conversion module can use UART16550 chip, for will receive it is using UART protocol and Row bus signal is converted to serial Transistor-Transistor Logic level signal and is exported.
The output level conversion module, there are three independent channel, the serial TTL that the parallel serial conversion module is exported Encoded signal level conversion is the level to match with sample injector communication interface.From MAX485 chip complete Transistor-Transistor Logic level to The conversion of RS485 signal level;Transistor-Transistor Logic level is completed from MAX232 chip to convert to RS232 signal level;It is completed by CH9121 chip Transistor-Transistor Logic level is to lan signal level conversion, and wherein CH9121 chip includes that UART protocol coded format turns ICP/IP protocol coding lattice The function of formula completes UART protocol coded format to ICP/IP protocol coded format when completing signal level conversion together Conversion;
It is as shown in table 4 that typical communication protocol signal level and the present embodiment carry out the chip that level conversion uses:
4 typical communication protocol signal level of table and electrical level transferring chip
Communications protocol Interfaces level Electrical level transferring chip
UART(232) ±15V MAX232
UART(485) - 8 to+12.5V MAX485
TCP/IP 0-5V CH9121
In use, analysis instrument passes through cable model corresponding with analysis instrument communication protocol converter input port adapter Port is connected, and sample injector passes through cable model corresponding with analysis instrument communication protocol converter input port adapter port phase Even, after system electrification, it is automatically performed the conversion of communication protocol.
Analysis instrument communication protocol converter provided in this embodiment meets UART (485), UART (232) and TCP/IP tri- Further types of communication association may be implemented by extending the upgrading and extension of software and hardware in mutual conversion between kind communications protocol View is exchanged.
Analysis instrument communication protocol converter provided in this embodiment, is designed using external, can not change analysis In the case where instrument software and hardware structure, by voltage conversion and coded format convert, realize UART (485), UART (232) and Mutual conversion between tri- kinds of communications protocol of TCP/IP, so that being realized using the analysis instrument and sample injector of different communications protocol simultaneous Hold;Built-in CPU is decoded by software realization communications protocol, and retrieval recompiles function, convenient for the upgrading and extension of system, therefore By increase voltage ALT-CH alternate channel, adaptor interface quantity and software upgrading can increase voltage translation type.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of communication protocol converter, which is characterized in that including input interface adapter, incoming level conversion module, Serioparallel exchange module, coding inquiry and decoded output module, parallel serial conversion module, output level conversion module and output interface are suitable Orchestration;
The input interface adapter, for connecting the communication interface of different type analysis instrument;
The output interface adapter, for connecting the communication interface of different type sample injector;
The incoming level conversion module, for the encoded signal from the input interface adapter to be converted to Transistor-Transistor Logic level Encoded signal is then output to the serioparallel exchange module;
The serioparallel exchange module, for that will be converted from the serial Transistor-Transistor Logic level encoded signal of the incoming level conversion module For parallel bus encoded signal, it is then output to the coding inquiry and decoded output module;
Coding inquiry and decoded output module, for will the parallel bus encoded signal from the serioparallel exchange module into Row decoding, parses correct control command, according still further to required Signal coding format, is compiled again to the control command Code generates the new parallel bus encoded signal for meeting sample injector use demand, and the new parallel bus is encoded letter later Number it is output in parallel to the parallel serial conversion module;
The parallel serial conversion module is believed for that will encode from the new parallel bus of the coding inquiry and decoded output module Number carry out parallel-serial conversion, then Serial output to the output level conversion module;
The output level conversion module, for that will be converted from the serial Transistor-Transistor Logic level encoded signal of the parallel serial conversion module For the encoded signal for meeting sample injector communication interface level, it is output to the output interface adapter.
2. communication protocol converter according to claim 1, which is characterized in that the coding inquiry and decoded output module Including CPU, software program is executed by CPU and is decoded incoming coded signal, parses correct control command, then to control Order is recompiled, and the Signal coding format for meeting sample injector use demand is converted to.
3. communication protocol converter according to claim 2, which is characterized in that the CPU model MC68332.
4. communication protocol converter according to claim 2, which is characterized in that the coding inquiry and decoded output module Including F28F008SA memory, for storing analysis instrument control command table.
5. communication protocol converter according to claim 1, which is characterized in that there are three the incoming level conversion modules Independent channel is respectively completed conversion of RS485, RS232 and LAN format signal level to Transistor-Transistor Logic level.
6. communication protocol converter according to claim 1, which is characterized in that the output and input level conversion module, Conversion of the RS485 format signal level to Transistor-Transistor Logic level is completed from MAX485 chip;RS232 format letter is completed by MAX232 chip Number conversion of the level to Transistor-Transistor Logic level;Conversion of the LAN format signal level to Transistor-Transistor Logic level is completed from CH9121 chip, wherein CH9121 chip is completed at the same time the conversion by TCP/IP encoded signal to UART encoded signal.
7. communication protocol converter according to claim 1, which is characterized in that there are three the output level conversion modules Independent channel is respectively completed conversion of the Transistor-Transistor Logic level to RS485, RS232 and LAN format signal level.
8. communication protocol converter according to claim 1, which is characterized in that the output level conversion module, by MAX485 chip completes conversion of the Transistor-Transistor Logic level to RS485 format signal level;Transistor-Transistor Logic level is completed to RS232 from MAX232 chip The conversion of format signal level;Conversion of the Transistor-Transistor Logic level to LAN format signal level is completed from CH9121 chip, wherein CH9121 Chip is completed at the same time the conversion by UART encoded signal to TCP/IP encoded signal.
9. communication protocol converter according to claim 1, which is characterized in that the input format conversion module, by UART16550 chip realizes the serioparallel exchange of serial UART said shank signal.
10. communication protocol converter according to claim 1, which is characterized in that the output format conversion module, by UART16550 chip realizes the parallel-serial conversion of parallel UART said shank signal.
CN201811266082.9A 2018-10-26 2018-10-26 Communication protocol converter of analytical instrument Pending CN109413066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811266082.9A CN109413066A (en) 2018-10-26 2018-10-26 Communication protocol converter of analytical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811266082.9A CN109413066A (en) 2018-10-26 2018-10-26 Communication protocol converter of analytical instrument

Publications (1)

Publication Number Publication Date
CN109413066A true CN109413066A (en) 2019-03-01

Family

ID=65470185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811266082.9A Pending CN109413066A (en) 2018-10-26 2018-10-26 Communication protocol converter of analytical instrument

Country Status (1)

Country Link
CN (1) CN109413066A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505200A (en) * 2019-07-09 2019-11-26 惠州市亿能电子有限公司 A kind of multi-protocols daisy chain interface conversion chip
CN114417408A (en) * 2022-01-18 2022-04-29 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101769901A (en) * 2008-12-31 2010-07-07 北京联合大学生物化学工程学院 Liquid phase chromatography data processing system based on FPGA
CN102023949A (en) * 2010-12-02 2011-04-20 西北工业大学 Interface method of distance measuring equipment (DME) receiving system and high-speed intelligent unified bus
CN102045334A (en) * 2010-09-27 2011-05-04 北京泰豪智能工程有限公司 Protocol conversion method and device
CN102510322A (en) * 2011-09-20 2012-06-20 北京雷久科技有限责任公司 IO (Input and Output) interface board card and method for transporting data by same
CN107124405A (en) * 2017-04-21 2017-09-01 杭州知物数据科技有限公司 Industrial Fieldbus protocols conversion method and device are realized based on FPGA

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101769901A (en) * 2008-12-31 2010-07-07 北京联合大学生物化学工程学院 Liquid phase chromatography data processing system based on FPGA
CN102045334A (en) * 2010-09-27 2011-05-04 北京泰豪智能工程有限公司 Protocol conversion method and device
CN102023949A (en) * 2010-12-02 2011-04-20 西北工业大学 Interface method of distance measuring equipment (DME) receiving system and high-speed intelligent unified bus
CN102510322A (en) * 2011-09-20 2012-06-20 北京雷久科技有限责任公司 IO (Input and Output) interface board card and method for transporting data by same
CN107124405A (en) * 2017-04-21 2017-09-01 杭州知物数据科技有限公司 Industrial Fieldbus protocols conversion method and device are realized based on FPGA

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505200A (en) * 2019-07-09 2019-11-26 惠州市亿能电子有限公司 A kind of multi-protocols daisy chain interface conversion chip
CN114417408A (en) * 2022-01-18 2022-04-29 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105488032A (en) Speech recognition input control method and system
CN109413066A (en) Communication protocol converter of analytical instrument
CN202602697U (en) Train communication gateway device based on computer program configuration item (CPCI) trunk
CN102752166A (en) Debugging method, chip, single board and system
CN105718359A (en) Energy consumption information processing device and system and terminal
CN107885675B (en) Multifunctional measuring instrument program control command processing method
CN112217805A (en) Power distribution Internet of things multimode protocol adaptation method
CN103984539A (en) Operation method and operation system for household appliance
CN202652246U (en) Train communication gateway device based on VME bus
CN102881146A (en) Industrial on-site equipment data acquirer of multiple industrial buses
CN102508455B (en) Control method and system of biochemical analyzer
CN112055027A (en) User power consumption information acquisition system based on protocol interface adaptation
CN207780763U (en) Multiplex roles CPU module
CN214954951U (en) General virtual module for detection
CN104022933B (en) A kind of vehicle bus debugging system changed based on multimode signal
CN107835108B (en) OpenWrt-based MAC (media Access control) layer protocol stack verification platform
CN109067760A (en) A kind of distribution DTU device and its method for accessing smart machine
CN205212819U (en) HDB3 coder circuit based on CPLD
CN209170052U (en) A kind of multi-level communication conversion module that 10kV switch controller is embedded
CN205210878U (en) USB interface converting equipment based on STM32 singlechip
CN204302969U (en) The USB/RS232-CAN translation debugging device of various configurations mode
CN208433000U (en) A kind of multiclass I/O signal processor based on photoelectricity and differential conversion
CN114595182B (en) Bidirectional conversion circuit and method for multiple communication serial ports
CN207586291U (en) A kind of three-phase intelligent electric-energy meter and PLC module assembly system
CN209311880U (en) A kind of switch acquisition control device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301

RJ01 Rejection of invention patent application after publication