#1 2016-03-04 12:49:37

jinyistudio
Member
From: Taichung/Taiwan
Registered: 2015-12-07
Posts: 24
Website

Virtual Serial Port for debian ?

Hi

I try to build a Virtual serial port pair(as following). let my old java application(SocketServer) could connect REX through modbus/RTU but i don't know how to build and install it. Does anyone can help(teach) me !!

https://github.com/freemed/tty0tty

Offline

#2 2016-03-07 14:41:29

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Virtual Serial Port for debian ?

I am not able to help with this one but I think it is much easier to get the data into the REX algorithm using UDP communication and the REXLANG programmable block. See the example on data exchange using UDP communication.

Offline

#3 2019-02-08 12:18:22

spencerkrit
Member
Registered: 2019-02-08
Posts: 1

Re: Virtual Serial Port for debian ?

Post old, but suddenly still relevant.
You can try this.
Create virtual serial ports on your computer by using a Virtual port simulator. http://www.eltima.com/products/vspdxp/
Get a Modbus simulator. http://www.plcsimulator.org/
Download Labview Modbus Library. http://zone.ni.com/devzone/cda/epd/p/id/4756
Open the Labview Modbus library and run 'MB Serial Master Example.vi'

Now it should be possible to read/write values into the simulator using the example program.

The Block Diagram of example program can be analyzed to find out how data is being transferred behind the scenes on Modbus protocol.

Offline

Board footer

Powered by FluxBB