CN104580461B - A kind of communication means of more hosts and more slaves - Google Patents

A kind of communication means of more hosts and more slaves Download PDF

Info

Publication number
CN104580461B
CN104580461B CN201510007417.5A CN201510007417A CN104580461B CN 104580461 B CN104580461 B CN 104580461B CN 201510007417 A CN201510007417 A CN 201510007417A CN 104580461 B CN104580461 B CN 104580461B
Authority
CN
China
Prior art keywords
communication
data
slave devices
communication gate
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.)
Active
Application number
CN201510007417.5A
Other languages
Chinese (zh)
Other versions
CN104580461A (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 present invention relates to the communications fields, provide the communication means of a kind of more hosts and more slaves, to solve the problems, such as that multiple main frames equipment and multiple slave devices not can be carried out data interaction and instruction controls.This method comprises: host equipment sends connection request to communication gate and identity token carries out authentication, carry out data transmission between the host equipment and communication gate after authentication passes through;Communication gate actively sends connection request to each slave devices and identity token carries out authentication, and authentication between rear communication gate and slave devices by carrying out data transmission.Technical solution proposed by the present invention realizes the communication of more hosts Yu more slaves, and multiple main frames equipment and multiple slave devices are able to carry out data interaction and instruction controls.

Description

A kind of communication means of more hosts and more slaves
Technical field
The present invention relates to the communications field, in particular to a kind of communication means of more hosts and more slaves.
Background technique
Basalt continuous fiber in smelting furnace after high-temperature fusion, is closed by platinum rhodium using basalt ore as raw material Golden bushing, the continuous fiber made of 1200 degree or so high speed pullings, which, which removes, has the characteristics that high-intensitive, high-modulus Outside, also there are the excellent properties such as resistance to high/low warm nature, acid and alkali-resistance, anti-oxidant, anti-radiation, thermal acoustic insulation, fire protection flame retarding, it is therefore, profound Military rock fiber can be widely applied to the neck such as fire-fighting, environmental protection, aerospace, military project, automobile shipbuilding, engineering plastics and building Domain.
The ore for producing basalt continuous fiber needs to melt in kiln high temperature, then leaks using the wire drawing of high temperature Plate could form qualified fiber.Clearly for bushing temperature control and assurance be it is vital, due to the Black Warrior Rock fiber is influenced by the factors such as flow of temperature, furnace pressure, the revolving speed of wire drawing, solution, so in the mistake of worker's wire drawing Cheng Zhong is inevitable the operation that heating, cooling is carried out to bushing.Since production environment limits, control room is separate Worker operation scene, live heating, cooling operation needs to be transferred to control room progress, in order to unified centralized management.
In the past to control fairly simpleization of bushing heating, cooling, only there are the button and indicator light of several dispersions, In this way in normal production in the future, component is particularly easy to damage, and numeral method also will appear inaccuracy, messy code Situation, while also improving material cost and construction cost, such as previous every kiln need the electric wire of 6 0.5mm, this for It may be inappreciable for one kiln, but for a production line or a factory, every kiln will be 6 Electric wire, apart from far, it is necessary to tens even up to a hundred electric wires thus have very big workload, And it debugs also troublesome.
In order to solve problem above, based on a kind of communications protocol by Modbus can be used for bushing liter, Local communication device in cooling system, the local communication device are made of host equipment, communication gate and slave devices, host It is communicated between equipment, communication gate and slave devices based on RS485 network, and in RS485 communication network common at present It is generally adopted by master-slave communication mode, the i.e. multiple slaves of host tape, when there are multiple main frames equipment, multiple main frames are set It is standby not can be carried out data interaction and instruction control between multiple slave devices.
Summary of the invention
[technical problems to be solved]
The object of the present invention is to provide the communication means of a kind of more hosts and more slaves, to solve be based on RS485 network Communication mode under, multiple main frames equipment and multiple slave devices not can be carried out data interaction and the problem of instruction control.
[technical solution]
The present invention is achieved by the following technical solutions.
The present invention relates to the communication means of a kind of more hosts and more slaves, this method comprises:
Each host equipment monitors communication gate in real time, judges whether communication gate has new request of data, if communication Gateway has new request of data, then host equipment sends connection request to communication gate and identity token carries out authentication, Carry out data transmission between the host equipment and communication gate after authentication passes through, if the not new data of communication gate are asked It asks, then each host equipment continues to monitor communication gate;
Communication gate actively sends connection request to each slave devices and identity token carries out authentication, and identity is recognized Card between rear communication gate and slave devices by carrying out data transmission.
As a preferred embodiment, between the host equipment and communication gate, slave devices and communication gate Between be all made of data packet and carry out data transmission, the data packet include device token, data function order, register address, Data packet and check code.
As another preferred embodiment, the recipient of the data packet after receiving data packet, further include with Lower processing step:
Step A: data receiver carries out tearing frame open according to the format of data packet;
Step B: data receiver judges whether identity token is correct, on the contrary if identity token correctly thens follow the steps C Then exit present treatment process;
Step C: data receiver's progress data frame is unpacked and check code verification;
Step D: data receiver carries out data processing or corresponding control action according to data function order.
As another preferred embodiment, the recipient of the data packet is host equipment, slave devices or communication Gateway.
As another preferred embodiment, the host equipment is display terminal, and the slave devices are adopted for data Collect terminal.
As another preferred embodiment, between the host equipment and communication gate, communication gate and slave set Communication interface between standby is RS485 interface.
As another preferred embodiment, between the host equipment and communication gate, communication gate and slave set Communication pattern between standby is RTU mode.
As another preferred embodiment, between the host equipment and communication gate, communication gate and slave set Communication protocol between standby is Modbus communication protocol.
[beneficial effect]
Technical solution proposed by the present invention has the advantage that
(1) it is authenticated in communication process using identity token, improves the reliability of communication;
(2) it encapsulates data as unified data packet, makes host equipment, communication gate, slave devices can be according to number Corresponding operation is carried out to data packet according to the type of packet, improves the efficiency of transmission of data;
(3) communication based on RS485 network implementations more hosts and more slaves, multiple main frames equipment and multiple slave devices It is able to carry out data interaction and instruction control.
Detailed description of the invention
Fig. 1 is the flow chart of the communication means between host equipment and communication gate that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the communication means between slave devices and communication gate that the embodiment of the present invention provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing, to of the invention specific Embodiment carries out clear, complete description, it is clear that and described embodiment is a part of the embodiments of the present invention, rather than Whole embodiments, nor limitation of the present invention.Based on the embodiment of the present invention, those of ordinary skill in the art are not paying Every other embodiment obtained, belongs to protection scope of the present invention under the premise of creative work.
Fig. 1 is the flow chart of the communication means between host equipment and communication gate that the embodiment of the present invention provides, Fig. 2 The flow chart of the communication means between slave devices and communication gate provided for the embodiment of the present invention.
In the present embodiment, host equipment is shown including the first host display terminal, the second host display terminal, third host Terminal and the 4th host display terminal, slave devices include the first slave control device, the second slave control device, third slave Control device, the 4th slave control device, the 5th slave control device and the 6th slave control device.Each host display terminal Between communication gate, it between communication gate and each slave control device, is all made of " isolation, defence surge, terminal resistance With " after RS485 electric interfaces, the communication pattern used is RTU mode, and the communication protocol used is Modbus communication protocol.
Illustrate that the communication process of the second host display terminal and the 6th slave control device, the communication process specifically wrap below Process one and process two are included, wherein communication process of the process one between the second host display terminal and communication gate, process two For the communication process between the 6th slave control device and communication gate.
Process one includes step 11 to step 14, is illustrated separately below to step 11 to step 14.
Step 11: the second host display terminal initiates to request to communication gate.
Step 12: the second host display terminal actively judges whether to receive correct response, if receiving correct response, hold Row step 13, it is on the contrary then prompt to malfunction.
Step 13: communication gate sends connection request to the second host display terminal and identity token carries out identity and recognizes Card, certification then follow the steps 14 after passing through, on the contrary then ignore the connection request
Step 14: carrying out data transmission between the second host display terminal and communication gate.
Specifically, if the second host display terminal sends data packet to communication gate, wherein data packet includes that equipment enables Board, data function order, register address, data packet and check code, then step 14 specifically includes:
Communication gate carries out tearing frame open according to the format of data packet;
Communication gate judges whether identity token correct, if identity token correctly if perform the next step it is rapid, it is on the contrary then move back Step 14 out;
Communication gate progress data frame is unpacked and check code verification;
Communication gate carries out data processing or corresponding control action according to data function order.
Process two includes step 21 to step 24, is illustrated separately below to step 21 to step 24.
Step 21: communication gate initiates to request to the 6th slave devices.
Step 22: communication gate actively judges whether to receive correct response, if receiving correct response, then follow the steps 23, it is on the contrary then prompt to malfunction.
Step 23: the 6th slave devices send connection request to communication gate and identity token carries out authentication, recognize Card thens follow the steps 24 after passing through, on the contrary then ignore the connection request.
Step 24: carrying out data transmission between the 6th slave devices and communication gate.
Specifically, if communication gate sends data packet to the 6th host equipment, wherein data packet includes device token, number According to command function, register address, data packet and check code, then step 24 specifically includes:
6th slave devices carry out tearing frame open according to the format of data packet;
6th slave devices judge whether identity token correct, if identity token correctly if perform the next step it is rapid, it is on the contrary Then exit step 24;
6th slave devices progress data frame is unpacked and check code verification;
6th slave devices carry out data processing or corresponding control action according to data function order.
The communication between the second host display terminal and the 6th slave devices is realized by process one and process two.
As can be seen from the above embodiments, it is authenticated, is mentioned using identity token in the communication process of the embodiment of the present invention The high reliability of communication;The embodiment of the present invention encapsulates data as unified data packet, make host equipment, communication gate, from Machine equipment can carry out corresponding operation to data packet according to the type of data packet, improve the efficiency of transmission of data;This hair Bright embodiment uses the communication based on RS485 network implementations more hosts and more slaves, and multiple main frames equipment is set with multiple slaves It is standby to be able to carry out data interaction and instruction control.

Claims (8)

1. a kind of communication means of more hosts and more slaves, characterized by comprising: each host equipment host is actively to communication Gateway initiates request, judges whether to receive correct response, to monitor communication gate in real time, it is new to judge whether communication gate has Request of data, if communication gate has new request of data, host equipment sends connection request and identity to communication gate Token carries out authentication, carries out data transmission between the host equipment and communication gate after authentication passes through, if communication The not new request of data of gateway, then each host equipment continues to monitor communication gate;
Communication gate actively initiates to request to each slave devices, judges whether to receive correct response, if receiving correct response, Then slave devices send connection request to communication gate and identity token carries out authentication, and authentication passes through rear communication network It closes and carries out data transmission between slave devices.
2. the communication means of more hosts and more slaves according to claim 1, it is characterised in that the host equipment and logical Between letter gateway, data packet is all made of between slave devices and communication gate carrying out data transmission, the data packet includes equipment Token, data function order, register address, data packet and check code.
3. the communication means of more hosts and more slaves according to claim 2, it is characterised in that the reception of the data packet Side further includes following processing step after receiving data packet:
Step A: data receiver carries out tearing frame open according to the format of data packet;
Step B: data receiver judges whether identity token is correct, on the contrary then move back if identity token correctly thens follow the steps C Present treatment process out;
Step C: data receiver's progress data frame is unpacked and check code verification;
Step D: data receiver carries out data processing or corresponding control action according to data function order.
4. the communication means of more hosts and more slaves according to claim 3, it is characterised in that the reception of the data packet Side is host equipment, slave devices or communication gate.
5. according to claim 1 to the communication means of any more hosts and more slaves in 4, it is characterised in that the host Equipment is display terminal, and the slave devices are slave control device.
6. according to claim 1 to the communication means of any more hosts and more slaves in 4, it is characterised in that the host Communication interface between equipment and communication gate, between communication gate and slave devices is RS485 interface.
7. according to claim 1 to the communication means of any more hosts and more slaves in 4, it is characterised in that the host Communication pattern between equipment and communication gate, between communication gate and slave devices is RTU mode.
8. according to claim 1 to the communication means of any more hosts and more slaves in 4, it is characterised in that the host Communication protocol between 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 CN104580461A (en) 2015-04-29
CN104580461B true 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)

Families Citing this family (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
CN110995686B (en) * 2019-11-26 2022-04-01 珠海泰芯半导体有限公司 Software communication protocol checking method
CN111124986B (en) * 2019-12-30 2023-04-18 贵州兔淘智能科技有限公司 Asynchronous serial port communication protocol compatible with Modbus and high in efficiency
CN112765076B (en) * 2021-01-13 2022-12-06 上海是杰工业技术有限公司 MODBUS data processing method, device, equipment and computer readable storage medium
CN113051101B (en) * 2021-04-26 2021-12-14 广州市新矽亚电子科技有限公司 Communication system and method of common bus and multiple slaves
CN115982072B (en) * 2023-03-16 2023-05-30 中京科信技术有限公司 Information communication method, apparatus, computer device 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
基于数字家庭网关的身份认证平台的设计与实现;张淑娟;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130315(第03期);第3.3小节、图3.7

Also Published As

Publication number Publication date
CN104580461A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104580461B (en) A kind of communication means of more hosts and more slaves
WO2021012728A1 (en) Channel encryption method for fieldbus in water management automation control system
CN103438548B (en) Based on the system and method for the Long-distance Control central air-conditioning of mobile terminal
CN102752150B (en) Distributed communication equipment capable of providing remote board card debugging and remote board card debugging method
WO2021057017A1 (en) Method for automatic replay attack test in field bus
CN109756588A (en) A kind of automatic distribution address system and method for RS485 communication
CN106568168A (en) Debugging method, debugger and system
CN110557244A (en) Application data unit encryption method in water conservancy industrial control system
CN106545955B (en) Communication relay device and method and air conditioner
CN104468497B (en) The data isolation method and device of monitoring system
CN204028696U (en) Testing device and system for air conditioner wire controller
CN208063238U (en) Data encryption security ViGap
CN104950880A (en) Industrial control equipment debugging system and method
CN202600464U (en) Intelligent building controlling and monitoring management platform
US20150005909A1 (en) Communication Device, Communication Method, and Management Device
CN108880761A (en) Server network card information obtains system
CN211630190U (en) Terminal equipment safety encryption and decryption system based on safety chip
CN204406163U (en) Local communication device
CN202935897U (en) Sudden-stop lock switch position recognition device of belt conveyor
CN207123747U (en) A kind of electric boiler remote wireless monitoring system
CN205377912U (en) Embedded web gateway based on wi -Fi and PROFIBUS -DP bus
CN106487772A (en) A kind of intranet security isolation gap system
CN101667155A (en) Software monitoring method and device
CN103853139A (en) Air conditioner gateway and building centralized control system
CN115296791B (en) Replay attack preventing device and method for field 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