CN114979299A - Multifunctional data acquisition protocol conversion device - Google Patents

Multifunctional data acquisition protocol conversion device Download PDF

Info

Publication number
CN114979299A
CN114979299A CN202210680983.2A CN202210680983A CN114979299A CN 114979299 A CN114979299 A CN 114979299A CN 202210680983 A CN202210680983 A CN 202210680983A CN 114979299 A CN114979299 A CN 114979299A
Authority
CN
China
Prior art keywords
module
protocol
serial port
main
modbus
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
CN202210680983.2A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202210680983.2A priority Critical patent/CN114979299A/en
Publication of CN114979299A publication Critical patent/CN114979299A/en
Pending legal-status Critical Current

Links

Images

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a multifunctional data acquisition protocol conversion device, which comprises a serial port communication module, a main module, a weather V1.3 protocol module, a t188 protocol module, a t645 protocol module, a Modbus Rtu module and a Modbus tcp service module; the output end of the serial port communication module is connected with the input end of a main module, the main module is respectively connected with a communication V1.3 protocol module, a t188 protocol module, a t645 protocol module and a Modbus Rtu module, and the output end of the main module is connected with the input end of a Modbus tcp service module. The invention can access a plurality of serial instruments with standard or non-standard protocols, perform data conversion, store the data in the modbus tcp server and provide the standard modbus tcp protocol; data can be provided for a plurality of acquisition or display terminals simultaneously.

Description

Multifunctional data acquisition protocol conversion device
Technical Field
The invention relates to the technical field of serial port data acquisition, in particular to a multifunctional data acquisition protocol conversion device.
Background
At present, instruments supporting a serial port protocol are continuously increased and function is continuously enriched, and the data acquisition work is more and more difficult and challenging due to protocols of different manufacturers and different standards.
Due to the particularity of serial port work, one serial port instrument can only respond to the access of one serial port device, and a plurality of user terminals needing data acquisition or display cannot access the serial port instrument at the same time.
Disclosure of Invention
In view of the technical deficiencies, the present invention provides a multifunctional data collection protocol conversion device, which can access a plurality of serial instruments with standard or non-standard protocols, perform data conversion, store the data into a modbus tcp server, and provide a standard modbus tcp protocol, so as to provide data for a plurality of collection or display terminals at the same time.
In order to solve the technical problems, the invention adopts the following technical scheme:
the invention provides a multifunctional data acquisition protocol conversion device which is characterized by comprising a serial port communication module, a main module, a weather V1.3 protocol module, a t188 protocol module, a t645 protocol module, a Modbus Rtu module and a Modbus tcp service module;
the output end of the serial port communication module is connected with the input end of a main module, the main module is respectively connected with a weather V1.3 protocol module, a t188 protocol module, a t645 protocol module and a Modbus Rtu module, and the output end of the main module is connected with the input end of a Modbus tcp service module;
the main module reads serial port configuration information and information of each instrument in the configuration file, opens a corresponding serial port according to the information, generates a sending message according to the address and protocol type of the instrument, sends the sending message to the serial port instrument through the serial port communication module, transmits the message to the main module after the serial port communication module receives a response message, calls the Tianxin V1.3 protocol module or the t188 protocol module or the t645 protocol module to read data according to the protocol type, returns the read data to the main module, sequentially writes the received data into the modbus tcp service module, and provides standard modbus tcp protocol service.
The invention has the advantages that a plurality of serial instruments with standard or non-standard protocols can be accessed and subjected to data conversion, and the data are stored in a modbus tcp server to provide a standard modbus tcp protocol; data can be provided for a plurality of acquisition or display terminals simultaneously.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic block diagram of a multifunctional data acquisition protocol conversion apparatus provided in the present invention;
fig. 2 is a schematic block diagram of the interaction between the multifunctional data acquisition protocol conversion device and the serial instrument and the acquisition or display terminal provided by the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1-2, the multifunctional data acquisition protocol conversion device includes a serial instrument, an acquisition or display terminal, a serial communication module, a main module, a native V1.3 protocol module, a t188 protocol module, a t645 protocol module, a Modbus Rtu module, and a Modbus tcp service module;
the serial instrument is connected with the input end of the serial communication module, the output end of the serial communication module is connected with the input end of a main module, the main module is respectively connected with a communication V1.3 protocol module, a t188 protocol module, a t645 protocol module and a Modbus Rtu module, the output end of the main module is connected with the input end of a Modbus tcp service module, and the output end of the Modbus tcp service module is connected with a plurality of acquisition or display terminals through a local area network.
The working principle is as follows: connecting a plurality of serial port instruments with a multifunctional data acquisition protocol conversion device, wherein the multifunctional data acquisition protocol conversion device is connected with a plurality of acquisition or display terminals through a local area network;
firstly, a main module of the multifunctional data acquisition protocol conversion device reads serial port configuration information, addresses of various instruments and other information in a configuration file, opening corresponding serial ports according to the information, generating a sending message according to the address and protocol type of the instrument, the data are sent to a serial instrument through a serial communication module, the serial communication module transmits the messages to a main module after receiving the response messages, the main module calls different protocol modules to read the data according to the types of the protocols, the read data are returned to the main module, the main module writes the received data into a modbus tcp server module in sequence, the modbus tcp server module provides standard modbus tcp protocol services, to which collection or display terminals can access over a network, and the modbus tcp protocol is used for analyzing the message to obtain data, so that the purpose that a plurality of user terminals simultaneously obtain the data of the serial instrument is achieved.
The device is based on a raspberry and a serial port module thereof, programs are compiled by using a python programming language on the basis, data conversion is carried out on various non-standard or standard serial port protocols, the converted data are stored in a modbus tcp server, and standard modbus tcp service is provided for a plurality of terminal users.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (1)

1. The multifunctional data acquisition protocol conversion device is characterized by comprising a serial port communication module, a main module, a weather V1.3 protocol module, a t188 protocol module, a t645 protocol module, a Modbus Rtu module and a Modbus tcp service module;
the output end of the serial port communication module is connected with the input end of a main module, the main module is respectively connected with a weather V1.3 protocol module, a t188 protocol module, a t645 protocol module and a Modbus Rtu module, and the output end of the main module is connected with the input end of a Modbus tcp service module;
the main module reads serial port configuration information and information of each instrument in the configuration file, opens a corresponding serial port according to the information, generates a sending message according to the address and protocol type of the instrument, sends the sending message to the serial port instrument through the serial port communication module, transmits the message to the main module after the serial port communication module receives a response message, calls the Tianxin V1.3 protocol module or the t188 protocol module or the t645 protocol module to read data according to the protocol type, returns the read data to the main module, sequentially writes the received data into the modbus tcp service module, and provides standard modbus tcp protocol service.
CN202210680983.2A 2022-06-16 2022-06-16 Multifunctional data acquisition protocol conversion device Pending CN114979299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210680983.2A CN114979299A (en) 2022-06-16 2022-06-16 Multifunctional data acquisition protocol conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210680983.2A CN114979299A (en) 2022-06-16 2022-06-16 Multifunctional data acquisition protocol conversion device

Publications (1)

Publication Number Publication Date
CN114979299A true CN114979299A (en) 2022-08-30

Family

ID=82962922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210680983.2A Pending CN114979299A (en) 2022-06-16 2022-06-16 Multifunctional data acquisition protocol conversion device

Country Status (1)

Country Link
CN (1) CN114979299A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867398A (en) * 2012-09-21 2013-01-09 济钢集团有限公司 Data collection module
CN202998165U (en) * 2012-10-25 2013-06-12 北京中冶设备研究设计总院有限公司 Electrical power monitoring and controlling communication converter
CN104932364A (en) * 2015-06-03 2015-09-23 太原科技大学 OPC UA conversion apparatus of Modbus communication protocol, and method
CN106131056A (en) * 2016-08-17 2016-11-16 广州中国科学院沈阳自动化研究所分所 A kind of wireless industrial adapter and method of work thereof
CN109525429A (en) * 2018-11-15 2019-03-26 洛阳理工学院 A kind of RTU and its communication means suitable for MODBUS agreement
CN110502467A (en) * 2019-07-25 2019-11-26 江苏诺蓝翌新能源科技有限公司 A kind of general acquisition interface software systems based on serial ports modbus communication protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867398A (en) * 2012-09-21 2013-01-09 济钢集团有限公司 Data collection module
CN202998165U (en) * 2012-10-25 2013-06-12 北京中冶设备研究设计总院有限公司 Electrical power monitoring and controlling communication converter
CN104932364A (en) * 2015-06-03 2015-09-23 太原科技大学 OPC UA conversion apparatus of Modbus communication protocol, and method
CN106131056A (en) * 2016-08-17 2016-11-16 广州中国科学院沈阳自动化研究所分所 A kind of wireless industrial adapter and method of work thereof
CN109525429A (en) * 2018-11-15 2019-03-26 洛阳理工学院 A kind of RTU and its communication means suitable for MODBUS agreement
CN110502467A (en) * 2019-07-25 2019-11-26 江苏诺蓝翌新能源科技有限公司 A kind of general acquisition interface software systems based on serial ports modbus communication protocol

Similar Documents

Publication Publication Date Title
CN109669442B (en) Protocol conversion method and conversion device
US4354263A (en) Computer-communications concentrator for transmission and switching of packetized data
US6216170B1 (en) Methods and apparatus for interconnecting personal computers (PCs) and local area networks (LANs) using packet protocols transmitted over a digital data service (DDS)
US8346209B2 (en) Remote meter reading using the existing mobile network
JPH104432A (en) Electronic mail service gateway, short message processor communication system and electronic mail transmission method to mobile terminal equipment
CN110177013A (en) A kind of EtherCAT master-salve station design and implementation methods based on FPGA
KR910016168A (en) Reception data processing device
CN102378151B (en) Information sharing platform and method thereof
CN101005411A (en) Automatic detecting system, device and method for circuit type data service automation
CN111291157A (en) Response method, response device, terminal and storage medium
CN114979299A (en) Multifunctional data acquisition protocol conversion device
CN111049268B (en) Total station wave recording linkage starting method
CN104125656A (en) Device connection method, electronic device and connection system
CN109361915B (en) Wired network camera installation test method
CN115277867A (en) Collector and electric power communication method and system of Modbus protocol equipment based on collector
JP2009130501A (en) Terminating device
JP3419868B2 (en) Signal transmission method
CN112383543B (en) Power equipment monitoring data processing system
CN113794737A (en) Non-standard terminal node equipment data interaction system
CN107171440B (en) System for collecting electrical data of switch cabinet by intelligent transformer terminal and collecting method thereof
Cheng et al. ET gravimeter data collecting system based on GPRS
CN211454260U (en) Multi-service composite bus centralized controller and networking system thereof
CN214067774U (en) Data acquisition self-adaptive system structure based on enterprise service bus
CN213754542U (en) Internet of things gateway capable of dynamically matching equipment protocol
WO2024044976A1 (en) Data acquisition apparatus, method and system, electronic device, and storage medium

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