Piping DOS over Ethernet

12th Monday, 2011  |  Engineering News, Life at LAVA  |  no comments

A little-known fact: DOS commands can be sent through LAVA Ether-Serial Links. And it’s actually simple to do. With an Ether-Serial Link configured in Windows Driver mode, and with its port activated as usual, all you need to do is pipe DOS data (using the conventional DOS redirection command “>”) to the serial port of the device server, which will send it to the target device. The diagram below shows this setup connecting a DOS application to a piece of factory equipment.

DOS connection to industrial equipment

DOS connection to industrial equipment

This concept is easy to test, as the diagram below shows. While a two-device setup is used to demonstrate this concept, only one Ether-Serial Link is needed to actually send data to a peripheral, as we saw above. In the diagram below, the DOS application on the left is sending data to the serial device server on the left, by piping its data to COM 4.

Testing DOS to ESL

Testing DOS to ESL

That Ether-Serial Link is connected to the serial port of the Ether-Serial Link on the right, which is in turn monitored by Hyperterminal. DOS commands piped to COM 4 are received at COM 5.

There is one limitation to this use of Ether-Serial Links to transmit DOS data: DOS will only allow this on COM ports 1 to 9.