CN104580461A - Communication method for multiple hosts and multiple slaves - Google Patents

Communication method for multiple hosts and multiple slaves Download PDF

Info

Publication number
CN104580461A
CN104580461A CN201510007417.5A CN201510007417A CN104580461A CN 104580461 A CN104580461 A CN 104580461A CN 201510007417 A CN201510007417 A CN 201510007417A CN 104580461 A CN104580461 A CN 104580461A
Authority
CN
China
Prior art keywords
communication
many
data
slave devices
communication gate
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.)
Granted
Application number
CN201510007417.5A
Other languages
Chinese (zh)
Other versions
CN104580461B (en
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.)
SICHUAN AEROSPACE TUOXIN BASALT INDUSTRIAL Co Ltd
Original Assignee
SICHUAN AEROSPACE TUOXIN BASALT INDUSTRIAL 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 SICHUAN AEROSPACE TUOXIN BASALT INDUSTRIAL Co Ltd filed Critical SICHUAN AEROSPACE TUOXIN BASALT INDUSTRIAL Co Ltd
Priority to CN201510007417.5A priority Critical patent/CN104580461B/en
Publication of CN104580461A publication Critical patent/CN104580461A/en
Application granted granted Critical
Publication of CN104580461B publication Critical patent/CN104580461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention relates to the field of communication and provides a communication method for multiple hosts and multiple slaves. The problem that multiple host devices and multiple slave devices cannot conduct data interaction or instruction control is solved. The method includes the steps that the host devices send a connection request and identification tokens to a communication gateway for identification authentication, and after identification authentication passes, the host devices are in data transmission with the communication gateway; the communication gateway initiatively sends the connection request and the identification tokens to the slave devices for identification authentication, and after identification authentication passes, the communication gateway is in data transmission with the slave devices. According to the technical scheme, communication between the hosts and the slaves is achieved, and the host devices and the slave devices can conduct data interaction and instruction control.

Description

A kind of many main frames and many communication meanss from machine
Technical field
The present invention relates to the communications field, particularly a kind of many main frames and many communication meanss from machine.
Background technology
Basalt continuous fiber take basalt ore as raw material, in smelting furnace after high-temperature fusion, by platinum-rhodium alloy bushing, at the continuous fiber of about 1200 degree high speed pullings, this fiber is except having the feature such as high strength, high-modulus, also there is resistance to high/low warm nature, acid and alkali-resistance, anti-oxidant, the excellent properties such as radioresistance, thermal acoustic insulation, fire protection flame retarding, therefore, basalt fibre can be widely used in the fields such as fire-fighting, environmental protection, Aero-Space, military project, automobile shipbuilding, engineering plastics and building.
The ore producing basalt continuous fiber needs high temperature melting in kiln, and then through the bushing of high temperature, could form qualified fiber.Obviously, temperature for bushing controls and assurance is vital, the impact of the factors such as temperature, furnace pressure, the rotating speed of wire drawing, the flow of solution is subject to due to basalt fibre, so in the process of workman's wire drawing, it is the operation inevitably will carrying out heating, cooling to bushing.Due to production environment restriction, control room is on-the-spot away from operative, and on-the-spot heating, cooling action need is transferred to control room to carry out, so that unified centralized management.
Bushing was heated up in the past, control fairly simpleization of cooling, just there are button and the indicator light of several dispersion, like this in normal production in the future, components and parts especially easily damage, and numeral method also there will be inaccurate, the situation of mess code, also improve material cost and construction cost simultaneously, such as every platform kiln needs the electric wire of 6 0.5mm in the past, this may be inappreciable for a kiln, but for a production line or a factory, 6 wires all wanted by every platform kiln, when apart from far, just need the tens even electric wire of up to a hundred, so just have very large workload, and debugging is got up also very loaded down with trivial details.
In order to overcome the above problems, can adopt a kind of based on Modbus communications protocol for bushing liter, local communication device in cooling system, this local communication device is by main process equipment, communication gate and slave devices composition, main process equipment, communicate based on RS485 network between communication gate and slave devices, and general in RS485 communication network common at present what adopt is master-slave communication mode, namely a main frame band is multiple from machine, when there is multiple main process equipment, data interaction can not be carried out and instruction controls between multiple main process equipment and multiple slave devices.
Summary of the invention
[technical problem that will solve]
The object of this invention is to provide a kind of many main frames with how the communication means from machine, to solve under the communication mode based on RS485 network, multiple main process equipment and multiple slave devices can not carry out the problem that data interaction and instruction control.
[technical scheme]
The present invention is achieved by the following technical solutions.
The present invention relates to a kind of many main frames and many communication meanss from machine, the method comprises:
The real-time monitoring communications gateway of each main process equipment, judge whether communication gate has new request of data, if communication gate has new request of data, then main process equipment carries out authentication to communication gate transmission connection request and identity token, authentication carries out transfer of data between this main process equipment and communication gate after passing through, if communication gate does not have new request of data, then each main process equipment continues monitoring communications gateway;
Communication gate initiatively sends connection request to each slave devices and identity token carries out authentication, and authentication is by carrying out transfer of data between rear communication gate and slave devices.
As one preferred embodiment, all adopt packet to carry out transfer of data between described main process equipment and communication gate, between slave devices and communication gate, described packet comprises device token, data function order, register address, packet and check code.
As another preferred embodiment, the recipient of described packet, after receiving packet, also comprises following treatment step:
Steps A: data receiver carries out tearing frame open according to the form of packet;
Step B: data receiver judges that whether identity token is correct, if identity token correctly, performs step C, otherwise then exits present treatment flow process;
Step C: data receiver carries out Frame and to unpack and check code is checked;
Step D: data receiver carries out the control action of data processing or correspondence according to data function order.
As another preferred embodiment, the recipient of described packet is main process equipment, slave devices or communication gate.
As another preferred embodiment, described main process equipment is display terminal, and described slave devices is data collection station.
As another preferred embodiment, the communication interface between described main process equipment and communication gate, between communication gate and slave devices is RS485 interface.
As another preferred embodiment, the communication pattern between described main process equipment and communication gate, between communication gate and slave devices is RTU pattern.
As another preferred embodiment, the communication protocol between described main process equipment and communication gate, between communication gate and slave devices is Modbus communication protocol.
[beneficial effect]
The technical scheme that the present invention proposes has the following advantages:
(1) adopt identity token to carry out certification in communication process, improve the reliability of communication;
(2) encapsulate data as unified packet, main process equipment, communication gate, slave devices all can be operated packet according to the type of packet accordingly, improve the efficiency of transmission of data;
(3) based on RS485 real-time performance many main frames with how from the communication of machine, multiple main process equipment and multiple slave devices can carry out data interaction and instruction controls.
Accompanying drawing explanation
The flow chart of the communication means between the main process equipment that Fig. 1 provides for embodiments of the invention and communication gate;
The flow chart of the communication means between the slave devices that Fig. 2 provides for embodiments of the invention and communication gate.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, clear, complete description is carried out to the specific embodiment of the present invention, obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiment, neither limitation of the present invention.Based on embodiments of the invention, those of ordinary skill in the art, not paying the every other embodiment obtained under creative work prerequisite, belong to protection scope of the present invention.
The flow chart of the communication means between the main process equipment that Fig. 1 provides for embodiments of the invention and communication gate, the flow chart of the communication means between the slave devices that Fig. 2 provides for embodiments of the invention and communication gate.
In the present embodiment, main process equipment comprises the first main frame display terminal, the second main frame display terminal, the 3rd main frame display terminal and the 4th main frame display terminal, and slave devices comprises first from machine control device, second from machine control device, the 3rd from machine control device, the 4th from machine control device, the 5th from machine control device and the 6th from machine control device.Between each main frame display terminal and communication gate, communication gate and each is between machine control device, all adopt the RS485 electric interfaces after " isolation, defence surge, terminal resistance coupling ", the communication pattern of employing is RTU pattern, and the communication protocol of employing is Modbus communication protocol.
The following describes the second main frame display terminal and the 6th from the communication process of machine control device, this communication process specifically comprises flow process one and flow process two, wherein flow process one is the communication process between the second main frame display terminal and communication gate, and flow process two is the 6th from the communication process between machine control device and communication gate.
Flow process one comprises step 11 to step 14, is described respectively below to step 11 to step 14.
Step 11: the second main frame display terminal initiates request to communication gate.
Step 12: the second main frame display terminal initiatively judges whether to receive correct response, if receive correct response, then perform step 13, otherwise then prompting makes mistakes.
Step 13: communication gate sends connection request to the second main frame display terminal and identity token carries out authentication, and certification then performs step 14 by rear, otherwise then ignores this connection request
Step 14: carry out transfer of data between the second main frame display terminal and communication gate.
Particularly, if the second main frame display terminal sends packet to communication gate, wherein packet comprises device token, data function order, register address, packet and check code, then step 14 specifically comprises:
Communication gate carries out tearing frame open according to the form of packet;
Communication gate judges that whether identity token is correct, if identity token correctly, performs next step, otherwise then exits step 14;
Communication gate carries out Frame and to unpack and check code is checked;
Communication gate carries out the control action of data processing or correspondence according to data function order.
Flow process two comprises step 21 to step 24, is described respectively below to step 21 to step 24.
Step 21: communication gate initiates request to the 6th slave devices.
Step 22: communication gate initiatively judges whether to receive correct response, if receive correct response, then perform step 23, otherwise then prompting makes mistakes.
Step 23: the 6th slave devices sends connection request to communication gate and identity token carries out authentication, and certification then performs step 24 by rear, otherwise then ignores this connection request.
Step 24: the 6th carries out transfer of data between slave devices and communication gate.
Particularly, if communication gate sends packet to the 6th main process equipment, wherein packet comprises device token, data function order, register address, packet and check code, then step 24 specifically comprises:
6th slave devices carries out tearing frame open according to the form of packet;
6th slave devices judges that whether identity token is correct, if identity token correctly, performs next step, otherwise then exits step 24;
6th slave devices carries out Frame and to unpack and check code is checked;
6th slave devices carries out the control action of data processing or correspondence according to data function order.
The communication between the second main frame display terminal and the 6th slave devices is achieved through flow process one and flow process two.
As can be seen from the above embodiments, adopt identity token to carry out certification in the communication process of the embodiment of the present invention, improve the reliability of communication; The embodiment of the present invention encapsulates data as unified packet, main process equipment, communication gate, slave devices all can be operated packet according to the type of packet accordingly, improve the efficiency of transmission of data; The embodiment of the present invention adopt based on RS485 real-time performance many main frames with how the communication from machine, multiple main process equipment and multiple slave devices can carry out data interaction and instruction controls.

Claims (8)

1. main frame more than and many communication meanss from machine, is characterized in that comprising:
The real-time monitoring communications gateway of each main process equipment, judge whether communication gate has new request of data, if communication gate has new request of data, then main process equipment carries out authentication to communication gate transmission connection request and identity token, authentication carries out transfer of data between this main process equipment and communication gate after passing through, if communication gate does not have new request of data, then each main process equipment continues monitoring communications gateway;
Communication gate initiatively sends connection request to each slave devices and identity token carries out authentication, and authentication is by carrying out transfer of data between rear communication gate and slave devices.
2. many main frames according to claim 1 and many communication meanss from machine, it is characterized in that all adopting packet to carry out transfer of data between described main process equipment and communication gate, between slave devices and communication gate, described packet comprises device token, data function order, register address, packet and check code.
3. many main frames according to claim 2 and many communication meanss from machine, is characterized in that the recipient of described packet is after receiving packet, also comprises following treatment step:
Steps A: data receiver carries out tearing frame open according to the form of packet;
Step B: data receiver judges that whether identity token is correct, if identity token correctly, performs step C, otherwise then exits present treatment flow process;
Step C: data receiver carries out Frame and to unpack and check code is checked;
Step D: data receiver carries out the control action of data processing or correspondence according to data function order.
4. many main frames according to claim 3 and many communication meanss from machine, is characterized in that the recipient of described packet is for main process equipment, slave devices or communication gate.
5., according to described many main frames arbitrary in Claims 1-4 and many communication meanss from machine, it is characterized in that described main process equipment is display terminal, described slave devices is from machine control device.
6., according to described many main frames arbitrary in Claims 1-4 and many communication meanss from machine, it is characterized in that the communication interface between described main process equipment and communication gate, between communication gate and slave devices is RS485 interface.
7., according to described many main frames arbitrary in Claims 1-4 and many communication meanss from machine, it is characterized in that the communication pattern between described main process equipment and communication gate, between communication gate and slave devices is RTU pattern.
8., according to described many main frames arbitrary in Claims 1-4 and many communication meanss from machine, it is characterized in that the communication protocol between described main process equipment and communication gate, between communication gate and slave devices is Modbus communication protocol.
CN201510007417.5A 2015-01-07 2015-01-07 A kind of communication means of more hosts and more slaves Active CN104580461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510007417.5A CN104580461B (en) 2015-01-07 2015-01-07 A kind of communication means of more hosts and more slaves

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510007417.5A CN104580461B (en) 2015-01-07 2015-01-07 A kind of communication means of more hosts and more slaves

Publications (2)

Publication Number Publication Date
CN104580461A true CN104580461A (en) 2015-04-29
CN104580461B CN104580461B (en) 2019-03-01

Family

ID=53095618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510007417.5A Active CN104580461B (en) 2015-01-07 2015-01-07 A kind of communication means of more hosts and more slaves

Country Status (1)

Country Link
CN (1) CN104580461B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423240A (en) * 2017-07-28 2017-12-01 白宏刚 The more main frames of self-learning type read while write the algorithm of serial ports slave computer or bus data
CN110995686A (en) * 2019-11-26 2020-04-10 珠海泰芯半导体有限公司 Software communication protocol checking method
CN111124986A (en) * 2019-12-30 2020-05-08 贵州兔淘智能科技有限公司 Asynchronous serial port communication protocol compatible with Modbus and high in efficiency
CN112765076A (en) * 2021-01-13 2021-05-07 上海是杰工业技术有限公司 MODBUS data processing method, device, equipment and computer readable storage medium
CN113051101A (en) * 2021-04-26 2021-06-29 广州市新矽亚电子科技有限公司 Communication system and method of common bus and multiple slaves
CN115982072A (en) * 2023-03-16 2023-04-18 中京科信技术有限公司 Information communication method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123110A (en) * 2010-01-07 2011-07-13 北京广利核系统工程有限公司 Data transmission method for gateway system, and gateway system
CN102501862A (en) * 2011-10-20 2012-06-20 南车资阳机车有限公司 Network with vehicle-mounted display screen as core
CN104135533A (en) * 2014-08-13 2014-11-05 北京金鸿泰科技有限公司 System and method of transmitting industrial data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123110A (en) * 2010-01-07 2011-07-13 北京广利核系统工程有限公司 Data transmission method for gateway system, and gateway system
CN102501862A (en) * 2011-10-20 2012-06-20 南车资阳机车有限公司 Network with vehicle-mounted display screen as core
CN104135533A (en) * 2014-08-13 2014-11-05 北京金鸿泰科技有限公司 System and method of transmitting industrial data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张淑娟: "基于数字家庭网关的身份认证平台的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423240A (en) * 2017-07-28 2017-12-01 白宏刚 The more main frames of self-learning type read while write the algorithm of serial ports slave computer or bus data
CN110995686A (en) * 2019-11-26 2020-04-10 珠海泰芯半导体有限公司 Software communication protocol checking method
CN111124986A (en) * 2019-12-30 2020-05-08 贵州兔淘智能科技有限公司 Asynchronous serial port communication protocol compatible with Modbus and high in efficiency
CN112765076A (en) * 2021-01-13 2021-05-07 上海是杰工业技术有限公司 MODBUS data processing method, device, equipment and computer readable storage medium
CN112765076B (en) * 2021-01-13 2022-12-06 上海是杰工业技术有限公司 MODBUS data processing method, device, equipment and computer readable storage medium
CN113051101A (en) * 2021-04-26 2021-06-29 广州市新矽亚电子科技有限公司 Communication system and method of common bus and multiple slaves
CN113051101B (en) * 2021-04-26 2021-12-14 广州市新矽亚电子科技有限公司 Communication system and method of common bus and multiple slaves
CN115982072A (en) * 2023-03-16 2023-04-18 中京科信技术有限公司 Information communication method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104580461B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN104580461A (en) Communication method for multiple hosts and multiple slaves
WO2021012728A1 (en) Channel encryption method for fieldbus in water management automation control system
CN104331063A (en) Industrial field equipment remote diagnosis maintenance system and method
WO2013127191A1 (en) Internet of things protocol conversion system and conversion method
CN103438548A (en) System and method for remotely controlling central air conditioner basing on mobile terminal
CN106100955B (en) Industrial internet field layer broadband bus data depth detection implementation method
WO2021042736A1 (en) Encryption method for application data unit in water conservancy industrial control system
CN106568168A (en) Debugging method, debugger and system
WO2015098309A1 (en) Wireless relay device, wireless communication system, and information setting method
CN103595712B (en) A kind of Web authentication method, apparatus and system
CN102681519A (en) Intelligent building control and monitoring management platform as well as corresponding control and monitoring management method
CN104076792A (en) Frequency converter remote monitoring system based on internet
CN103795773A (en) Remote networking monitoring method and system of high-voltage direct-current power supply devices
CN104468497B (en) The data isolation method and device of monitoring system
CN105096564A (en) Refrigerator running environment monitoring system
CN205377930U (en) Be transformed into MODBUS stipulations from TCPIP link serial link's equipment
CN104238415A (en) Wi-Fi plug with electric leakage and over-current protection functions and intelligent household appliance control system applying same
CN204406163U (en) Local communication device
CN105450659A (en) Security authentication system and authentication method for the Internet of things
CN102943671A (en) Coal mining equipment and data transmission system for same
CN202600464U (en) Intelligent building controlling and monitoring management platform
CN104950880A (en) Industrial control equipment debugging system and method
US20150005909A1 (en) Communication Device, Communication Method, and Management Device
CN104506969B (en) Electric system remote control command transfer approach
CN205377912U (en) Embedded web gateway based on wi -Fi and PROFIBUS -DP bus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant