CN114500158A - Computer resolvable Modbus-RTU universal standardized configuration method - Google Patents

Computer resolvable Modbus-RTU universal standardized configuration method Download PDF

Info

Publication number
CN114500158A
CN114500158A CN202210401911.XA CN202210401911A CN114500158A CN 114500158 A CN114500158 A CN 114500158A CN 202210401911 A CN202210401911 A CN 202210401911A CN 114500158 A CN114500158 A CN 114500158A
Authority
CN
China
Prior art keywords
modbus
data
configuration
computer
equipment
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
CN202210401911.XA
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.)
China Railway Jixun Technology Co Ltd
Original Assignee
China Railway Jixun 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 China Railway Jixun Technology Co Ltd filed Critical China Railway Jixun Technology Co Ltd
Priority to CN202210401911.XA priority Critical patent/CN114500158A/en
Publication of CN114500158A publication Critical patent/CN114500158A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technical field of communication transmission, in particular to a computer resolvable Modbus-RTU universal standardized interface configuration method, which comprises the steps of accessing Modbus terminal equipment into an Internet of things platform through a gateway; configuring a data source of the Modbus terminal equipment, wherein the data source comprises equipment access type data, equipment data algorithm rules, communication protocols and control instructions; selecting a matched configuration executor and the corresponding data source; the configuration executor executes the configuration of the Modbus terminal equipment based on the corresponding data source. The method can meet the requirement of unified recognition of the computer.

Description

Computer resolvable Modbus-RTU universal standardized configuration method
Technical Field
The invention relates to the technical field of communication transmission, in particular to a computer resolvable Modbus-RTU universal standardized configuration method.
Background
Modbus is the field bus standard first proposed by MODICON, USA, and is the first bus protocol for industrial field in the world. As shown in the attached figure 1 of the specification, one Modbus message frame comprises a start bit, a data bit, a check bit and a stop bit from a low bit to a high bit; the data bits are 8 bits, and the level on each bit of data is "0" or "1"; the start bit is "0", the stop bit is "1", and the check bit is "0" or "1". The ModBus network is an industrial communication system and is formed by connecting a programmable controller with an intelligent terminal and a computer through a public line or a local private line. The system structure includes both hardware and software. It can be applied to various data acquisition and process monitoring. The ModBus network has only one host and all communications are sent by him. The network can support as many as 247 remote slave controllers, but the number of slaves actually supported is determined by the communication equipment used. With this system, each PC can exchange information with the central host without affecting the control tasks performed by each PC.
In the prior art, Modbus protocol terminals designed by different equipment manufacturers mostly adopt unique data configuration modes, and the address of a configuration data register and the format of a data packet do not have a unified standard. Based on the fact that field terminal devices are various in types, different devices are suitable for different data packaging modes, and high requirements are provided for unified access and analysis of data. The access descriptions of different terminal devices all adopt a technical document mode to describe the access and data reading modes of the device, different device manufacturers have characteristics on the description of the technical document, and the requirements on the technical description are not uniform.
Therefore, a data configuration method for the Modbus protocol terminal is needed to be provided, which meets the requirement of unified identification of the computer.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a computer resolvable Modbus-RTU universal standardized configuration method which can meet the requirement of unified identification of a computer.
In order to realize the purpose, the invention is realized by the following technical scheme:
the invention provides a computer resolvable Modbus-RTU universal standardized configuration method, which comprises the following steps:
accessing Modbus terminal equipment to an Internet of things platform through a gateway;
configuring a data source of the Modbus terminal equipment, wherein the data source comprises equipment access type data, equipment data algorithm rules, a communication protocol and a control instruction;
selecting a matched configuration executor and the corresponding data source;
the configuration executor executes the configuration of the Modbus terminal equipment based on the corresponding data source.
Further, the device access type data includes the type, attribute, address, serial port bit rate, stop bit, data bit and version number of the Modbus terminal device.
Further, the equipment data algorithm rules comprise equipment register addresses and numbers, Modbus function codes, data storage modes in registers, data packet formats, reading addresses and value ranges of data in sensors and registers, and data calculation rules.
Further, the communication protocol and the control instruction comprise configuration of a gateway, management of the Modbus terminal devices and configuration of a network protocol.
Further, the configuration of the gateway includes configuring access serial port information of the gateway and configuring access setting of the device bus.
Further, the management of the Modbus terminal equipment comprises the configuration of control instructions of the equipment on/off, network access, working time and equipment parameter adjustment.
Further, the configuration of the network protocol includes configuration of information of a communication protocol, an upload address, and an uplink data transmission rule.
Based on the same inventive concept, the present invention also provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the computer program implements the method of any one of the above when executed by the processor.
Based on the same inventive concept, the present invention further provides a readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method of any one of the above.
Advantageous effects
Compared with the known public technology, the technical scheme provided by the invention has the following beneficial effects: the computer-parsable Modbus-RTU universal standardized configuration method provided by the invention uses the data source which can be recognized by the computer to carry out access description on Modbus protocol equipment, thereby realizing unified configuration, meeting the data access of different Modbus protocol equipment, having good expandability and reducing the cost of data access.
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 invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flow chart of a computer-interpretable Modbus-RTU universal standardized configuration method according to an embodiment of the present invention.
FIG. 2 is a schematic block diagram of a computer-interpretable Modbus-RTU universal standardized configuration method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all 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.
First, before describing in detail specific embodiments of the present invention, the names to which the present invention relates are explained:
and (3) Modbus: modbus is a bus communication protocol for industrial control systems;
modbus RTU: and the Modbus protocol remote control terminal is the Modbus terminal equipment mentioned below.
The present invention will be further described with reference to the following examples.
Referring to fig. 1 and 2, an embodiment of the present invention provides a computer-interpretable Modbus-RTU universal standardized configuration method, including the following steps:
s100, accessing Modbus terminal equipment to an Internet of things platform through a gateway;
s200, configuring a data source of the Modbus terminal equipment, wherein the data source comprises equipment access type data, equipment data algorithm rules, communication protocols and control instructions;
s300, selecting a matched configuration executor and the corresponding data source;
s400, the configuration executor executes the configuration of the Modbus terminal equipment based on the corresponding data source.
In the embodiment, a technical description document of the terminal equipment, which is realized by a technology after being understood by a technical person, is converted into a configuration data source which meets the requirement of unified identification of a computer so as to realize the universal configuration and flexible configuration of the equipment. The method comprises configuration functions based on three items of access equipment type, access equipment data algorithm rule and access equipment communication and control protocol.
In this embodiment, in order to meet the requirement that different types of Modbus terminal devices can access the internet of things gateway according to a unified standard, the configuration service of the Modbus terminal devices is met, the device list configuration is realized, and the device access type data includes the type, the attribute, the address, the serial port bit rate, the stop bit, the data bit, the version number and the like of the Modbus terminal devices.
In this embodiment, in order to implement data reading, data parsing, and calculation rule configuration of the terminal device, the device data algorithm rule includes device register addresses and numbers, Modbus function codes, a storage manner of data in a register, a data packet format, read addresses and value ranges of data in a sensor and a register, a data calculation rule, and the like.
In this embodiment, in order to implement downlink control information configuration of the internet of things platform on the terminal device and implement data transmission configuration from the gateway to the internet of things platform after data acquisition of the terminal device, the communication protocol and the control instruction generally include configuration of the gateway, management of the Modbus terminal device, and configuration of the network protocol.
The configuration of the gateway generally comprises the steps of configuring access serial port information of the gateway and configuring access setting of a device bus; the management of the Modbus terminal equipment generally comprises the configuration of control instructions for the startup and shutdown, network access, working time and equipment parameter adjustment of the equipment; the configuration of the network protocol generally includes configuration of information of a communication protocol, an upload address and an uplink data transmission rule.
Based on the same idea, the invention further provides an electronic device, which comprises a processor and a memory, wherein the memory stores a computer program, and the computer program realizes the computer-interpretable Modbus-RTU universal standardized configuration method when being executed by the processor.
The processor may be, in some embodiments, a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor (e.g., a GPU), or other data Processing chip. The processor is typically used to control the overall operation of the electronic device. In this embodiment, the processor is configured to run a program code stored in the memory or process data, for example, a program code for running the rail transit safety integrity identification method.
The memory includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. In other embodiments, the memory may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device. Of course, the memory may also include both internal and external memory units of the electronic device. In this embodiment, the memory is generally used for storing an operating method installed in the electronic device and various types of application software, such as a program code of the rail transit safety integrity identification method. In addition, the memory may also be used to temporarily store various types of data that have been output or are to be output.
Based on the same idea, the invention further provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and when the computer program is executed by a processor, the computer program can realize the computer-resolvable universal standardized configuration method for the Modbus-RTU.
The method has the advantages that the access description of Modbus protocol equipment is carried out by using the data source which can be identified by the computer, so that the unified configuration is realized, the data access of different Modbus protocol equipment is met, the good expandability is realized, and the cost of the data access is reduced.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A computer-interpretable Modbus-RTU universal standardized configuration method is characterized by comprising the following steps:
accessing Modbus terminal equipment to an Internet of things platform through a gateway;
configuring a data source of the Modbus terminal equipment, wherein the data source comprises equipment access type data, equipment data algorithm rules, communication protocols and control instructions;
selecting a matched configuration actuator and a data source of the Modbus terminal equipment;
and the configuration executor executes the configuration of the Modbus terminal equipment based on the data source of the Modbus terminal equipment.
2. The computer-interpretable Modbus-RTU universal standardized configuration method of claim 1, wherein the device access type data includes a type, attributes, address, serial bit rate, stop bit, data bit, and version number of the Modbus terminal device.
3. The computer-interpretable Modbus-RTU universal standardized configuration method according to claim 1, wherein the equipment data algorithm rules comprise equipment register addresses and numbers, Modbus function codes, data storage modes in registers, data packet formats, data reading addresses and value ranges of sensors and registers, and data calculation rules.
4. The computer-interpretable Modbus-RTU universal standardized configuration method of claim 1, wherein the communication protocols and control commands include configuration of gateways, management of the Modbus terminal devices, and configuration of network protocols.
5. The computer-interpretable Modbus-RTU universal standardized configuration method of claim 4, wherein the configuring of the gateway includes configuring access serial port information of the gateway and configuring access settings of the device bus.
6. The computer-interpretable Modbus-RTU universal standardized configuration method of claim 4, wherein the management of the Modbus terminal devices includes configuration of control commands for on/off, network access, on-time, and device parameter adjustment of the devices.
7. The computer-interpretable Modbus-RTU universal standardized configuration method of claim 4, wherein the configuration of the network protocol includes configuration of information for communication protocols, upload addresses, upstream data transmission rules.
8. An electronic device comprising a processor and a memory, the memory having stored thereon a computer program which, when executed by the processor, implements the method of any of claims 1 to 7.
9. A readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202210401911.XA 2022-04-18 2022-04-18 Computer resolvable Modbus-RTU universal standardized configuration method Pending CN114500158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210401911.XA CN114500158A (en) 2022-04-18 2022-04-18 Computer resolvable Modbus-RTU universal standardized configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210401911.XA CN114500158A (en) 2022-04-18 2022-04-18 Computer resolvable Modbus-RTU universal standardized configuration method

Publications (1)

Publication Number Publication Date
CN114500158A true CN114500158A (en) 2022-05-13

Family

ID=81489359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210401911.XA Pending CN114500158A (en) 2022-04-18 2022-04-18 Computer resolvable Modbus-RTU universal standardized configuration method

Country Status (1)

Country Link
CN (1) CN114500158A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116170522A (en) * 2023-04-21 2023-05-26 深圳市智汉科技有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170063566A1 (en) * 2011-10-04 2017-03-02 Electro Industries/Gauge Tech Internet of things (iot) intelligent electronic devices, systems and methods
CN107819657A (en) * 2017-12-07 2018-03-20 广州鲁邦通物联网科技有限公司 A kind of method based on central controlled dynamic analysis Modbus agreements, things-internet gateway equipment and system
CN110049014A (en) * 2019-03-18 2019-07-23 武汉虹信技术服务有限责任公司 A kind of OpenAPI converting system and method based on more Modbus bus protocols
CN114185585A (en) * 2021-11-23 2022-03-15 北京国基科技股份有限公司 Data acquisition method, system, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170063566A1 (en) * 2011-10-04 2017-03-02 Electro Industries/Gauge Tech Internet of things (iot) intelligent electronic devices, systems and methods
CN107819657A (en) * 2017-12-07 2018-03-20 广州鲁邦通物联网科技有限公司 A kind of method based on central controlled dynamic analysis Modbus agreements, things-internet gateway equipment and system
CN110049014A (en) * 2019-03-18 2019-07-23 武汉虹信技术服务有限责任公司 A kind of OpenAPI converting system and method based on more Modbus bus protocols
CN114185585A (en) * 2021-11-23 2022-03-15 北京国基科技股份有限公司 Data acquisition method, system, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈可伟等: ""基于Modbus协议的无线传感器网络网关设计"", 《测控技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116170522A (en) * 2023-04-21 2023-05-26 深圳市智汉科技有限公司 Data transmission method and device, electronic equipment and storage medium
CN116170522B (en) * 2023-04-21 2023-06-30 深圳市智汉科技有限公司 Data transmission method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US7941530B2 (en) Thermostat status notification through a network
CN102902243B (en) For the system and method for the field apparatus in automatization of service factory
CN108737259A (en) Gateway device, data transmission method and storage medium
CN114500158A (en) Computer resolvable Modbus-RTU universal standardized configuration method
CN108199941A (en) A kind of CAN bus communication means based on CAN2.0B
EP2804361B1 (en) Integrated interface system for power-system monitoring and control system
CN111490947A (en) Data packet transmitting method, data packet receiving method, system, device and medium
CN112422450A (en) Computer equipment, and flow control method and device for service request
EP2649755B1 (en) Dynamic host profiles for option modules
EP2398190B1 (en) Field communication system
JP2000137506A (en) Programmable controller
CN112003761A (en) Data acquisition method, device and storage medium
CN102147608B (en) Communication system of upper device and of PLC (programmable logic controller) in monitoring system
CN113938351A (en) Data acquisition method, system and computer readable storage medium
CN114513792B (en) Remote network control method and device based on eSIM card
CN108306865B (en) Modbus packet-sticking processing method and device based on Netty framework
CN110611610A (en) Embedded Internet of things energy gateway and Internet of things system
CN116055347A (en) Computing system and network device management method
CN111526075A (en) Intelligent device control method, storage medium and electronic device
CN219999399U (en) Gateway of reader-writer
CN112765076B (en) MODBUS data processing method, device, equipment and computer readable storage medium
CN112653627B (en) Data transmission method, device and system, computer equipment and computer readable storage medium
CN217428147U (en) Gateway with edge computing function and capable of accessing industrial Internet of things
CN116760872A (en) Device control system, method, apparatus, computer device, and storage medium
EP4236213A1 (en) Converter device and measurement system

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

Application publication date: 20220513