[go: up one dir, main page]

CN103150282A - Method for automatically configuring RS422/RS485 through flow control parameters and system for implementing same - Google Patents

Method for automatically configuring RS422/RS485 through flow control parameters and system for implementing same Download PDF

Info

Publication number
CN103150282A
CN103150282A CN2013101072854A CN201310107285A CN103150282A CN 103150282 A CN103150282 A CN 103150282A CN 2013101072854 A CN2013101072854 A CN 2013101072854A CN 201310107285 A CN201310107285 A CN 201310107285A CN 103150282 A CN103150282 A CN 103150282A
Authority
CN
China
Prior art keywords
flow control
serial
serial ports
equipment
control parameters
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
CN2013101072854A
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.)
SHENZHEN NETCORE INDUSTRIAL Co Ltd
Original Assignee
SHENZHEN NETCORE 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 SHENZHEN NETCORE INDUSTRIAL Co Ltd filed Critical SHENZHEN NETCORE INDUSTRIAL Co Ltd
Priority to CN2013101072854A priority Critical patent/CN103150282A/en
Publication of CN103150282A publication Critical patent/CN103150282A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a method for automatically configuring RS422/RS485 through flow control parameters and a system for implementing the same, belonging to the technical field of wireless networks. The method is implemented by the following steps of: connecting RS485 serial equipment or RS422 serial equipment to a serial to switch to Ethernet equipment; configuring the flow control property of virtual serial drive; and after configuration, switching the serial to Ethernet equipment for normal use. Through the setting, the defects of increase in the workload and great inconvenience in engineering operation caused by the need of detaching a shell of equipment due to setting of an access way through hardware wire jumping for switching the serial to Ethernet equipment in the prior art are overcome, configuration can be completed through flow control, an implementation way is simple, and the flow control parameters in networks are utilized fully; and the method is very easy to operate, and is suitable for popularizing and using.

Description

Automatically configure the method for RS422/RS485 and realize the system of the method by flow control parameters
Technical field
The present invention relates to the radio network technique field, specifically, relate to and a kind ofly automatically configure the method for RS422/RS485 and realize the system of the method by flow control parameters.
Background technology
RS422 is unidirectional, the balance transmission standard that a kind of unit sends, multimachine receives, RS485 is the new standard of formulating on the basis of RS422, has increased the ability of multiple spot, two-way communication.In the practical application circuit of RS422/RS485 compatibility, need to wire jumper be set at the part pin of chip, thereby complete the conversion between RS422/RS485 communication protocol.
Turning ethernet device for the serial ports of supporting simultaneously RS485 and two kinds of modes of connection of RS422, be all generally by hardware jumper, its access way to be set at present, and hardware jumper often needs the shell of the equipment of taking apart to arrange, quite inconvenience of engineering operation.
Summary of the invention
The object of the invention is to overcome the serial ports of supporting simultaneously RS485 and two kinds of modes of connection of RS422 of the prior art and turn ethernet device and need to shell that its access way causes taking apart equipment be set by hardware jumper and arrange and increase workload and make the quite defective of inconvenience of engineering operation, provide a kind of and automatically configure the method for RS422/RS485 and realize the system of the method by flow control parameters.
To achieve these goals, the technical solution used in the present invention is as follows:
A kind of method that automatically configures RS422/RS485 by flow control parameters, realize by following steps:
(1) RS485 serial equipment or RS422 serial equipment are connected to turn on ethernet device;
(2) the Flow Control attribute of configuration virtual serial port drive;
(3) configuration is completed.
Further, pass through network management configuration or configuration automatically in described step (2).
Further, when RS485 is connected to serial ports and turns on ethernet device, be configured to hardware flow control, when RS422 is connected to serial ports and turns on ethernet device, be configured to without Flow Control.
Be the function of performing step (2), the concrete methods of realizing of described step (2) is as follows:
(2a) open serial ports by PC, and the Flow Control attribute of configuration serial ports;
(2b) after opening serial ports, the flow control parameters relevant to serial ports sends to serial ports by network and turns ethernet device;
After (2c) serial ports turns ethernet device and received flow control parameters, RS485 or the corresponding equipment of RS422 are carried out the Flow Control setting, RS422 or RS485 are transferred in Ethernet.
Based on the above-mentioned method that automatically configures RS422/RS485 by flow control parameters, the present invention also provides the system that realizes its function, comprise that serial ports turns ethernet device, be connected to serial ports and turn PC, RS485 serial equipment or RS422 serial equipment on ethernet device.
The present invention compares than prior art, has the following advantages and beneficial effect:
(1) the present invention takes full advantage of the mode of connection that this characteristic of Flow Control attribute is revised configuration RS422 and RS485, and mostly adopt hardware jumper to access in prior art, need the scene to take serial ports apart and turn ethernet device, can control by PC is long-range in the present invention, reduce step and the scene that need not of operation and taken ethernet device apart, implementation is simple and safe and reliable, and owing to having utilized simultaneously the Flow Control attribute that network burden can not increased the weight of.
(2) the present invention is mainly used in configuring RS485 and RS422, what adopt due to RS422 is full-duplex communication and RS485 adopts is half-duplex operation, so the selection institute scope of application of carrying out the mode of connection by flow control parameters in the present invention comprises half-duplex operation and full-duplex communication.
(3) the present invention is except revising the Flow Control attribute by PC, also can directly configure by the webmaster that serial ports turns on Ethernet, compare the operation of PC, serial ports turn webmaster on Ethernet revise the Flow Control attribute more directly and equipment needed thereby still less.
(4) advantage of maximum of the present invention is not configure new software and solves in prior art and to change RS485 and RS422 and serial ports by wire jumper and turn configuration between Ethernet, realize remote conversion but take full advantage of Flow Control attribute of the prior art, both can in turning the private tube apparatus of ethernet device, realize serial ports the mapping of mode of connection parameter, can turn virtual serial port that ethernet device provides at serial ports again realizes in driving, no matter be full duplex or semiduplex communication, can change well.
(5) operation is very simple compared to existing technology in the present invention, is fit to promote the use of.
Description of drawings
Fig. 1 realizes in the present invention that flow control parameters configures the system chart of the method for RS422/RS485 automatically.
Embodiment
The invention will be further described below in conjunction with accompanying drawing and embodiment, and embodiments of the present invention include but not limited to the following example.
Embodiment 1
As shown in Figure 1, the present invention includes RS422 serial equipment and RS485 serial equipment, be connected with serial ports and turn ethernet device between RS422 serial equipment and RS485 serial equipment, easily RS422 and RS485 serial equipment are changed into and have the TCP/IP socket, turn at this serial ports and also be connected with PC on ethernet device, PC is provided with virtual serial port.
Wherein in the present embodiment the mode of configuration RS422 and RS485 interface be mainly by flow control parameters arrange complete, its implementation is as follows:
(1) RS422 serial equipment or RS485 serial equipment are connected on the serial ports Ethernet, in the present embodiment, preferred serial ports turns connection RS422 serial equipment on ethernet device;
(2) open " equipment manager " on PC, find serial ports in equipment manager, revise the Flow Control attribute of serial ports, serial ports is opened, and the flow control parameters of therefore being correlated with and other serial ports parameters together send to serial ports by network and turn ethernet device;
(3) serial ports turns and after ethernet device is received flow control parameters, hardware is arranged, if employing full-duplex communication, configuration attribute is without Flow Control or software flow control (XON/XOFF), serial ports turns ethernet device and RS422 serial ports both sides and adopts without Flow Control or carry out each other the flow control mode that software is consulted like this, in the TCP/IP network of the RS422 interface can being transferred.
Above-mentionedly it should be noted that what adopt due to RS422 is the full-duplex communication that there is no the hardware flow control line, can't use hardware flow control, thereby no matter be to adopt Flow Control or software flow control, all can satisfy the requirement of RS422 full-duplex communication.
Embodiment 2
The difference of the present embodiment and embodiment 1 is, in the present embodiment, to turn what connect on ethernet device be the RS485 serial equipment to serial ports, and therefore employing hardware flow control mode is transferred the RS485 interface in the TCP/IP network in step (3).
According to above-described embodiment, just can realize well the present invention.What deserves to be explained is; under prerequisite based on above-mentioned design concept; for solving same technical matters; even some that make on content basis disclosed in this invention are without substantial change or polishing; the essence of the technical scheme that adopts is still the same with the present invention, therefore it also should be in protection scope of the present invention.

Claims (5)

1. automatically configure the method for RS422/RS485 by flow control parameters, it is characterized in that, realize by following steps:
(1) RS485 serial equipment or RS422 serial equipment are connected to turn on ethernet device;
(2) the Flow Control attribute of configuration virtual serial port drive;
(3) configuration is completed.
2. the method that automatically configures RS422/RS485 by flow control parameters according to claim 1, is characterized in that, passes through network management configuration or configuration automatically in described step (2).
3. the method that automatically configures RS422/RS485 by flow control parameters according to claim 2, it is characterized in that, when RS485 is connected to serial ports and turns on ethernet device, be configured to hardware flow control, when RS422 is connected to serial ports and turns on ethernet device, be configured to without Flow Control.
4. the method that automatically configures RS422/RS485 by flow control parameters according to claim 3, is characterized in that, the concrete methods of realizing of described step (2) is as follows:
(2a) open serial ports by PC, and the Flow Control attribute of configuration serial ports;
(2b) after opening serial ports, the flow control parameters relevant to serial ports sends to serial ports by network and turns ethernet device;
After (2c) serial ports turns ethernet device and received flow control parameters, RS485 or the corresponding equipment of RS422 are carried out the Flow Control setting, RS422 or RS485 are transferred in Ethernet.
5. realize the system that automatically configures the method for RS422/RS485 by flow control parameters as described in claim 1~4, it is characterized in that, comprise that serial ports turns ethernet device, be connected to serial ports and turn PC, RS485 serial equipment or RS422 serial equipment on ethernet device.
CN2013101072854A 2013-03-29 2013-03-29 Method for automatically configuring RS422/RS485 through flow control parameters and system for implementing same Pending CN103150282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101072854A CN103150282A (en) 2013-03-29 2013-03-29 Method for automatically configuring RS422/RS485 through flow control parameters and system for implementing same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101072854A CN103150282A (en) 2013-03-29 2013-03-29 Method for automatically configuring RS422/RS485 through flow control parameters and system for implementing same

Publications (1)

Publication Number Publication Date
CN103150282A true CN103150282A (en) 2013-06-12

Family

ID=48548372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101072854A Pending CN103150282A (en) 2013-03-29 2013-03-29 Method for automatically configuring RS422/RS485 through flow control parameters and system for implementing same

Country Status (1)

Country Link
CN (1) CN103150282A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050260996A1 (en) * 2004-05-24 2005-11-24 Groenendaal Joannes G V System and method for automatically configuring a mobile device
CN101414177A (en) * 2008-10-17 2009-04-22 上海纳杰电气成套有限公司 System for converting serial port to Ethernet based on field bus data acquisition
CN201708815U (en) * 2010-06-23 2011-01-12 安徽省电力公司芜湖供电公司 Networked structure of telecontrol digital channel
CN201708810U (en) * 2010-06-01 2011-01-12 天津通广集团振通电子有限公司 Serial-to-Ethernet device
CN201869208U (en) * 2010-11-11 2011-06-15 利尔达科技有限公司 Embedded serial port-to-Ethernet converter
CN102833112A (en) * 2012-08-31 2012-12-19 深圳市中电电力技术股份有限公司 Communication management machine having looped network function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050260996A1 (en) * 2004-05-24 2005-11-24 Groenendaal Joannes G V System and method for automatically configuring a mobile device
CN101414177A (en) * 2008-10-17 2009-04-22 上海纳杰电气成套有限公司 System for converting serial port to Ethernet based on field bus data acquisition
CN201708810U (en) * 2010-06-01 2011-01-12 天津通广集团振通电子有限公司 Serial-to-Ethernet device
CN201708815U (en) * 2010-06-23 2011-01-12 安徽省电力公司芜湖供电公司 Networked structure of telecontrol digital channel
CN201869208U (en) * 2010-11-11 2011-06-15 利尔达科技有限公司 Embedded serial port-to-Ethernet converter
CN102833112A (en) * 2012-08-31 2012-12-19 深圳市中电电力技术股份有限公司 Communication management machine having looped network function

Similar Documents

Publication Publication Date Title
CN102461100B (en) Data transmission equipment for remote monitoring and control of distributed process systems
CN104749996B (en) A kind of ZigBee remote controlers long-range control method
CN204719527U (en) A kind of wireless intelligent house system
CN104378137B (en) Repeater and information transferring method thereof
CN103152183A (en) Electric modem switching device and method for mutual switching of electric signals and network signals
CN102195946A (en) Intelligent communication controller based on ARM (Advanced RISC Machines) technology
CN104615006A (en) Power line carrier communication based home control system
CN102833137B (en) A kind of digital family system based on intelligent gateway
CN205028848U (en) Network relay
CN105807619A (en) Small household electrical appliance wireless network control method
CN103312908B (en) Data transmission method used for Voice VLAN (virtual local logic network)
CN203608411U (en) Novel intelligent LED lamp control circuit based on WiFi
CN109120063B (en) Plug-and-play sensor monitoring method, system and acquisition unit thereof
CN215121064U (en) A charging pile gateway and charging pile
CN212211033U (en) Intelligent gateway for power cable state diagnosis system
CN106302056B (en) Household Internet of things communication connection system and communication connection method
CN103150282A (en) Method for automatically configuring RS422/RS485 through flow control parameters and system for implementing same
CN107360539A (en) A kind of low-power consumption emergency communication network hardware system based on LoRa technologies
CN106406459A (en) Four-serial-port server
CN108123946A (en) A kind of multi-functional data processing equipment and system
CN207677744U (en) A kind of data transmission device based on NBIoT networks
CN102548053B (en) A kind of wireless router and its implementation based on 2.4G
CN205945786U (en) Serial port two -way modbus communication gateway of ethernet
CN204291526U (en) A kind of gateway
CN104037946A (en) Machine room power control method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
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: 20130612