CN101753394A - Communication method for accessing a plurality of intelligent devices to single serial port and single serial port - Google Patents

Communication method for accessing a plurality of intelligent devices to single serial port and single serial port Download PDF

Info

Publication number
CN101753394A
CN101753394A CN200910188896A CN200910188896A CN101753394A CN 101753394 A CN101753394 A CN 101753394A CN 200910188896 A CN200910188896 A CN 200910188896A CN 200910188896 A CN200910188896 A CN 200910188896A CN 101753394 A CN101753394 A CN 101753394A
Authority
CN
China
Prior art keywords
serial ports
baud rate
smart machine
single serial
serial port
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
CN200910188896A
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.)
Vertiv Tech Co Ltd
Original Assignee
Emerson Network Power 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 Emerson Network Power Co Ltd filed Critical Emerson Network Power Co Ltd
Priority to CN200910188896A priority Critical patent/CN101753394A/en
Publication of CN101753394A publication Critical patent/CN101753394A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a communication method for accessing a plurality of intelligent devices to a single serial port and a single serial port. The plurality of intelligent devices are at least one intelligent device. The Baud rate in basic parameters of the serial communication configured by the intelligent devices is stored in a configuration file. The communication method comprises the following steps in turn: opening the single serial port; and repeating the following sub-steps of 2-1) and 2-2) so as to communicate with each intelligent device: 2-1) reading the configuration file to acquire the Baud rate of one intelligent device, and modifying the configuration parameters of the single serial port according to the Baud rate of the intelligent device; and 2-2) communicating the single serial port with the intelligent device in the Baud rate modified in the sub-step 2-1). By dynamically modifying the Baud rate of the communication parameters of the serial port, the function of communicating with the plurality of intelligent devices can be realized under the condition of a collector and one serial port on the premise of opening the serial port.

Description

A kind of single serial ports inserts communication means and a kind of single serial ports of a plurality of smart machines
Technical field
The present invention relates to serial communication, particularly relate to communication means and a kind of single serial ports that a kind of single serial ports inserts a plurality of smart machines.
Background technology
Existing serial communication has the point-to-point mode of RS232, and the bus mode of RS422/485 is also arranged.In dynamic environment security protection monitoring field, the serial ports of bottom collector is if the RS422/485 model, will hang over the smart machine that the RS422/485 interface can be provided under this RS422/485 serial ports during communication, purpose is to utilize serial port resource limited on the collector, monitors smart machine as much as possible.Under this application scenario, each smart machine that hangs under the same serial ports must be configured to identical baud rate, as shown in Figure 1.When the baud rate of serial communication parameter configuration was 9600Bps, the baud rate of connected smart machine A, B, C must all be 9600Bps, could realize communication.Its communication means has following steps as shown in Figure 1 successively:
1) baud rate that reads in the serial communication basic parameter of smart machine A, B, C configuration is 9600Bps;
2) open serial ports;
3) poll is gathered smart machine A, B, C;
4) communicate with baud rate 9600Bps and smart machine A in the serial communication basic parameter of smart machine A configuration;
5) communicate with baud rate 9600Bps and smart machine B in the serial communication basic parameter of smart machine B configuration;
6) communicate with baud rate 9600Bps and smart machine C in the serial communication basic parameter of smart machine C configuration;
7) with smart machine C sign off after, close serial ports.
Yet, different and can't revise the smart machine of configuration at least two baud rates, be that the same serial ports that can not be connected the bottom collector is realized communication.
Summary of the invention
Technical problem to be solved by this invention is: remedy above-mentioned the deficiencies in the prior art, propose communication means and a kind of single serial ports that a kind of single serial ports connects a plurality of smart machines, realize that same serial ports inserts the function that the smart machine of a plurality of different baud rates communicates.
Technical problem of the present invention is solved by following technical scheme:
A kind of single serial ports inserts the communication means of a plurality of smart machines, describedly a plurality ofly is meant at least one, and the baud rate in the serial communication basic parameter of described smart machine configuration is stored in the configuration file; And following steps are arranged successively:
1) opens described single serial ports;
2) repeat following substep 2-1) 2-2), communicate with each smart machine:
2-1) read the baud rate that configuration file obtains a smart machine, revise the configuration parameter of described single serial ports according to the baud rate of described smart machine;
2-2) described single serial ports is with substep 2-1) baud rate that is modified as communicates by letter with described smart machine.
In the optimized technical scheme,
Described single serial ports is RS422 serial ports or RS485 serial ports.
Also comprise the single serial ports of step 3) communicate by letter with each smart machine finish after, close serial ports.
A kind of single serial ports, comprise serial ports body and baud rate receiver module, described baud rate receiver module receives the baud rate of the smart machine that is equipped with, also comprise serial ports configuration modification module, described serial ports configuration modification module is revised the configuration parameter of described single serial ports according to the baud rate of described baud rate receiver module output.
The beneficial effect that the present invention is compared with the prior art is:
The present invention proposes communication means and a kind of single serial ports that a kind of single serial ports connects a plurality of smart machines, by on-the-fly modifying the mode of serial communication parameter baud rate, the function that can communicate at the smart machine that is implemented under the prerequisite of not closing serial ports under the situation of collector and a serial ports a plurality of different baud rates, so that the bottom collector in the dynamic environment security protection supervisory control system can communicate with the smart machine of a plurality of different baud rates that are connected same serial ports, thereby, make full use of limited serial port resource and monitor smart machine as much as possible.
Description of drawings
Fig. 1 is the flow chart that single serial ports is communicated by letter with three smart machines in the background technology;
Fig. 2 is the flow chart that single serial ports is communicated by letter with three smart machines in the specific embodiment of the invention.
Embodiment
Below in conjunction with embodiment and contrast accompanying drawing the present invention is described in further details.
As shown in Figure 2, be the flow chart of communication mode of the present invention.In the present embodiment, serial ports is the RS422 serial ports.Serial ports also can be the RS485 serial ports.Serial ports is connected with three smart machine A, B and C.Earlier the baud rate that hangs over a plurality of smart machines under this serial ports is stored in the configuration file.When the poll that begins to communicate by letter is gathered this serial ports connected equipment, at first read configuration file, obtain the baud rate of first equipment, on-the-fly modify the serial ports configuration parameter then, described serial ports can communicate with first equipment.After serial ports and first devices communicating are finished, obtain the baud rate of second equipment, on-the-fly modify the serial ports configuration parameter then, communicate with second equipment again.Mode communicates with the 3rd equipment according to this.Communication process is:
1) baud rate in the serial communication basic parameter of described smart machine configuration is stored in the configuration file, from described configuration file, read the baud rate in the serial communication basic parameter of smart machine configuration, obtain baud rate and be respectively 2400Bps, 9600Bps and 19200Bps;
2) open single serial ports;
3) poll is gathered described smart machine;
4) baud rate that reads in the serial communication basic parameter that configuration file obtains smart machine A configuration is 2400Bps, and the baud rate in the serial communication basic parameter of described serial ports configuration is modified as 2400Bps;
5) communicate with baud rate 2400Bps and smart machine A in the serial communication basic parameter of smart machine A configuration;
6) obtain baud rate 9600Bps in the serial communication basic parameter of smart machine B configuration, the baud rate in the serial communication basic parameter of described serial ports configuration is modified as 9600Bps;
7) communicate with baud rate 9600Bps and smart machine B in the serial communication basic parameter of smart machine B configuration;
8) obtain baud rate 19200Bps in the serial communication basic parameter of smart machine C configuration, the baud rate in the serial communication basic parameter of described serial ports configuration is modified as 19200Bps;
9) communicate with baud rate 19200Bps and smart machine C in the serial communication basic parameter of smart machine C configuration;
10) sign off is closed serial ports.
In the communication process, by on-the-fly modifying the mode of serial communication parameter baud rate, the function that can communicate at the smart machine that is implemented under the prerequisite of not closing serial ports under the situation of collector and a serial ports a plurality of different baud rates, so that the bottom collector in the dynamic environment security protection supervisory control system can communicate with the smart machine of a plurality of different baud rates that are connected same serial ports, thereby, make full use of limited serial port resource and monitor smart machine as much as possible.
A kind of single serial ports, comprise serial ports body, baud rate receiver module and serial ports configuration modification module, the baud rate receiver module receives the baud rate of the smart machine that is equipped with, and outputs to serial ports configuration modification module, serial ports configuration modification module is revised the configuration parameter of single serial ports according to the baud rate that receives.This list serial ports can be realized the function that the smart machine of a plurality of different baud rates of access communicates.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, make some substituting or obvious modification without departing from the inventive concept of the premise, and performance or purposes are identical, all should be considered as belonging to protection scope of the present invention.

Claims (4)

1. a single serial ports inserts the communication means of a plurality of smart machines, describedly a plurality ofly is meant at least one, it is characterized in that: the baud rate in the serial communication basic parameter of described smart machine configuration is stored in the configuration file; And following steps are arranged successively:
1) opens described single serial ports;
2) repeat following substep 2-1) 2-2), communicate with each smart machine:
2-1) read the baud rate that configuration file obtains a smart machine, revise the configuration parameter of described single serial ports according to the baud rate of described smart machine;
2-2) described single serial ports is with substep 2-1) baud rate that is modified as communicates by letter with described smart machine.
2. single serial ports according to claim 1 connects the communication means of a plurality of smart machines, it is characterized in that: described single serial ports is RS422 serial ports or RS485 serial ports.
3. single serial ports according to claim 1 connects the communication means of a plurality of smart machines, it is characterized in that: also comprise the single serial ports of step 3) communicate by letter with each smart machine finish after, close serial ports.
4. single serial ports that adopts communication means as claimed in claim 1 to communicate, comprise serial ports body and baud rate receiver module, described baud rate receiver module receives the baud rate of the smart machine that is equipped with, it is characterized in that: also comprise serial ports configuration modification module, described serial ports configuration modification module is revised the configuration parameter of described single serial ports according to the baud rate of described baud rate receiver module output.
CN200910188896A 2009-12-09 2009-12-09 Communication method for accessing a plurality of intelligent devices to single serial port and single serial port Pending CN101753394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910188896A CN101753394A (en) 2009-12-09 2009-12-09 Communication method for accessing a plurality of intelligent devices to single serial port and single serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910188896A CN101753394A (en) 2009-12-09 2009-12-09 Communication method for accessing a plurality of intelligent devices to single serial port and single serial port

Publications (1)

Publication Number Publication Date
CN101753394A true CN101753394A (en) 2010-06-23

Family

ID=42479829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910188896A Pending CN101753394A (en) 2009-12-09 2009-12-09 Communication method for accessing a plurality of intelligent devices to single serial port and single serial port

Country Status (1)

Country Link
CN (1) CN101753394A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143064A (en) * 2011-01-21 2011-08-03 河南力安测控科技有限公司 Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host
CN102566517A (en) * 2010-12-15 2012-07-11 上海电科电器科技有限公司 Detection method capable of automatically identifying state of controlled equipment through photovoltaic data collector
CN104954211A (en) * 2014-03-27 2015-09-30 江西飞尚科技有限公司 Intelligent accessing device identification system based on RS 485 industrial bus
CN105426328A (en) * 2015-10-28 2016-03-23 淮安庄子电气有限公司 Method for realizing two communication modes by utilization of single SCI
CN106383795A (en) * 2016-09-26 2017-02-08 南京创瑞达电力技术有限公司 Communication modeling method and apparatus, and communication management apparatus
CN113259169A (en) * 2021-06-01 2021-08-13 武汉慧联无限科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113438142A (en) * 2021-06-21 2021-09-24 京东方科技集团股份有限公司 Communication method, communication system and storage system
WO2022082950A1 (en) * 2020-10-23 2022-04-28 福州富昌维控电子科技有限公司 Method for improving device serial communication efficiency and terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566517A (en) * 2010-12-15 2012-07-11 上海电科电器科技有限公司 Detection method capable of automatically identifying state of controlled equipment through photovoltaic data collector
CN102566517B (en) * 2010-12-15 2014-02-26 上海电科电器科技有限公司 Detection method capable of automatically identifying state of controlled equipment through photovoltaic data collector
CN102143064A (en) * 2011-01-21 2011-08-03 河南力安测控科技有限公司 Method for achieving interconnection of communication parameters for automatically matching peripheral slave machine with host
CN104954211A (en) * 2014-03-27 2015-09-30 江西飞尚科技有限公司 Intelligent accessing device identification system based on RS 485 industrial bus
CN105426328A (en) * 2015-10-28 2016-03-23 淮安庄子电气有限公司 Method for realizing two communication modes by utilization of single SCI
CN105426328B (en) * 2015-10-28 2019-11-01 淮安庄子电气有限公司 A method of two kinds of communication patterns are realized using single port SCI
CN106383795A (en) * 2016-09-26 2017-02-08 南京创瑞达电力技术有限公司 Communication modeling method and apparatus, and communication management apparatus
CN106383795B (en) * 2016-09-26 2019-05-31 南京创瑞达电力技术有限公司 A kind of communication modeling method, device and Communications Management Units
WO2022082950A1 (en) * 2020-10-23 2022-04-28 福州富昌维控电子科技有限公司 Method for improving device serial communication efficiency and terminal
CN113259169A (en) * 2021-06-01 2021-08-13 武汉慧联无限科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113438142A (en) * 2021-06-21 2021-09-24 京东方科技集团股份有限公司 Communication method, communication system and storage system

Similar Documents

Publication Publication Date Title
CN101753394A (en) Communication method for accessing a plurality of intelligent devices to single serial port and single serial port
CN104301122B (en) A kind of method and apparatus for waking up node
CN104936312B (en) The method of work of Internet of Things intelligent node with data prediction and equipment Management Function
CN107666425A (en) A kind of new-energy automobile remote control administrative system
CN102752299B (en) Debugging-free composite communication device and method for electric vehicle charging station
CN104636300A (en) Serial transceiver based on SOC FPGA and data receiving and sending method
CN106936838A (en) It is applied to the control system and control method of industrial equipment communication Protocol Conversion
CN203849595U (en) Modularized structure for distributed greenhouse integrated environment intelligent regulation and control system on-site controller
CN205563260U (en) Multi -functional data collection station and collection system based on wisdom mill
CN205961144U (en) Intelligent integrated management terminal
CN201479157U (en) Ethernet type ZigBee gateway device
CN203178820U (en) Embedded liquid level monitoring device based on ARM
CN206332699U (en) Elevator Internet of Things smart box and system
CN206237448U (en) Collecting vehicle information terminal and Research on Vehicle Remote Monitoring System Based on GPRS
CN113645290B (en) AP and Station dual-mode-based power exchange Station and vehicle WIFI communication equipment
CN207216369U (en) A kind of industrial field data collection and edge analysis device
CN107508737A (en) Radio communication device and its communication means based on EtherCAT
CN205594375U (en) Communication system based on PLC
CN209170052U (en) A kind of multi-level communication conversion module that 10kV switch controller is embedded
CN205621088U (en) Gate inhibition system
CN202261377U (en) Power protocol converter
CN205256238U (en) Motor vehicle intelligent control device
CN104320864B (en) A kind of data transmission method and wireless access point AP
CN202004777U (en) Public accumulation fund network compliance manager communication device
CN203010841U (en) Fresh air energy-saving system managed and controlled in centralized mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100623