FUDforum
My FUDforum

Home »  » DeviceMaster RTS, Pro and Serial Hub » UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else (UDP Serial Tunneling)
UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1247] Tue, 24 November 2020 17:12 Go to next message
DMuser is currently offline  DMuser
Messages: 6
Registered: November 2020
Member
I have attempted to setup serial tunneling on a DeviceMaster RTS-16P. PORT 1 is a dedicated serial input connected to PORT 2 with a null cable. Ports 3-6 are using UDP to copy the data from PORT 2.

Using the Diagnostics -> Port Monitor I can see the copied serial data from PORT 2 on PORTS 3-6. However, there is no data coming across when connecting to the COM ports with the programs that need to read the data. I am able to read the output from PORT 1 to PORT 2 using any serial terminal. If I am using the Port Monitor to look at the data on PORT 3-6, and connect to that port with an outside serial terminal, the data stops in Port Monitor as expected.

Revisions:
Portvision rev. 5.01
NS-Link/SocketServer 11.46 (Issue also occurred using the original 11.30)

All ports have passed send/receive and loopback tests.

The UDP settings are based off the guides from COMTROL.

All ports are set to:
RS-232
Baud Rate: 19200
Parity: None
Data Bits: 8
Stop Bits: 1
Flow Control: None

I have forwarded the ports 102, 161, 4606, 7000-7015, and 8000-8015 in my primary router.
I don't use a firewall, but created windows firewall exceptions for those ports anyways.
I have tried other routers with basic, default setups.
I have installed the Device Master drivers on a different laptop with the same results.
I have used Hyperterminal, Putty, WCom2, and my company software to try and read from the device master COM ports. Everything can read COM 2 (jumped from 1) but none can read COM 3-6.

Any help would be appreciated.
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1248 is a reply to message #1247] Tue, 24 November 2020 20:02 Go to previous messageGo to next message
Kurt is currently offline  Kurt
Messages: 288
Registered: July 2016
Location: Minnesota
Power User
Hi,

Did you go through this material and examples.
https://files.comtrol.com/contribs/devicemaster/help_files/u dp/

I'm out this week, if the above link doesn't help, I may need to walk you through this when I get back.

Kurt


Kurt Rees
www.comtrol.com
http://forum.comtrol.com/

Comtrol Corporation
100 Fifth Ave NW
Minneapolis, MN. 55112
Direct +1 763.957.6000 | +1 Fax (763) 957-6001
connect. communicate. control
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1251 is a reply to message #1248] Mon, 30 November 2020 15:36 Go to previous messageGo to next message
DMuser is currently offline  DMuser
Messages: 6
Registered: November 2020
Member
Yes I've been through those. UDP-config-16port-DeviceMaster_via_Com_or_Socket covers what I want to do. Copying that example, I was able to read serial data across PORT 3+ with the Webpage Diagnostics -> Port Monitor, but not with any outside program.

I also did the test from udp_simple_setup_&_test.pdf on a few ports which passed without any issue.
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1252 is a reply to message #1251] Mon, 30 November 2020 15:45 Go to previous messageGo to next message
Kurt is currently offline  Kurt
Messages: 288
Registered: July 2016
Location: Minnesota
Power User
Hi DMuser, UDP is tricky in that it ties up ports being used for UDP and the computer will not communicate to that port. Try this:

Use a serial null modem cable to connect port 1 to port 2.
You computer then connects to port 1 via Com port (if using driver) or socket connection.
Next, configure port 2 to send UDP data to the rest of the ports that are required.

Let me know if you've already tried that or if it does or doesn't work.

Kurt


Kurt Rees
www.comtrol.com
http://forum.comtrol.com/

Comtrol Corporation
100 Fifth Ave NW
Minneapolis, MN. 55112
Direct +1 763.957.6000 | +1 Fax (763) 957-6001
connect. communicate. control
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1253 is a reply to message #1252] Tue, 01 December 2020 11:40 Go to previous messageGo to next message
DMuser is currently offline  DMuser
Messages: 6
Registered: November 2020
Member
test having posting issues
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1254 is a reply to message #1253] Tue, 01 December 2020 11:43 Go to previous messageGo to next message
Kurt is currently offline  Kurt
Messages: 288
Registered: July 2016
Location: Minnesota
Power User
It may be the delay is due to waiting in queue to be approved. This is a moderated forum and posts need to be approved to be public.

Kurt


Kurt Rees
www.comtrol.com
http://forum.comtrol.com/

Comtrol Corporation
100 Fifth Ave NW
Minneapolis, MN. 55112
Direct +1 763.957.6000 | +1 Fax (763) 957-6001
connect. communicate. control
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1255 is a reply to message #1254] Tue, 01 December 2020 11:58 Go to previous messageGo to next message
DMuser is currently offline  DMuser
Messages: 6
Registered: November 2020
Member
Something is kicking me out to the top level forum menu instead of the confirmation screen. Hopefully this short message works.

I have my Devicemaster configured the way you suggested.

Port 1 receiving a serial stream and connected to Port 2 with a null cable. I can see serial data on Port 2 from my computer.

Port 2 is set up to send data to Port 3 with UDP.

The TX light blinks green on Port 3 and I can see the data through the Port Monitor. If I try to pull the serial data from Port 3 using any program on my computer, the TX light goes off and I can't see anything.

Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1256 is a reply to message #1255] Tue, 01 December 2020 12:10 Go to previous messageGo to next message
Kurt is currently offline  Kurt
Messages: 288
Registered: July 2016
Location: Minnesota
Power User
Hi, I think I need to see additional information on how you are configured.

You have data coming into Port 1, is this through a Com Port or Socket connection?
You mention pulling data from Port 3, are you doing this via a serial cable?

Thanks


Kurt Rees
www.comtrol.com
http://forum.comtrol.com/

Comtrol Corporation
100 Fifth Ave NW
Minneapolis, MN. 55112
Direct +1 763.957.6000 | +1 Fax (763) 957-6001
connect. communicate. control
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1257 is a reply to message #1256] Tue, 01 December 2020 12:29 Go to previous messageGo to next message
DMuser is currently offline  DMuser
Messages: 6
Registered: November 2020
Member
Serial data going into Port 1 through COM 1.

Trying to read serial data off Port 3 through COM 3.
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1258 is a reply to message #1257] Tue, 01 December 2020 12:46 Go to previous messageGo to next message
Kurt is currently offline  Kurt
Messages: 288
Registered: July 2016
Location: Minnesota
Power User
Hi,

Ok, that's the problem. If you have Com 3 configured as UDP and is active for UDP, it is tying up the port so Com 3 can't connect to it.
Your option would be to attach a serial cable to the serial port and go either into a different port that isn't being used, then use the Com port for that. Or, connect a serial port to whatever equipment that was intended to get that serial data.


Kurt Rees
www.comtrol.com
http://forum.comtrol.com/

Comtrol Corporation
100 Fifth Ave NW
Minneapolis, MN. 55112
Direct +1 763.957.6000 | +1 Fax (763) 957-6001
connect. communicate. control
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1259 is a reply to message #1258] Tue, 01 December 2020 19:38 Go to previous messageGo to next message
DMuser is currently offline  DMuser
Messages: 6
Registered: November 2020
Member
Thank you very much.

I completely misunderstood what I could do with the UDP forwarding. I have it working in a way that does what I want now, nulling a UDP forwarded port to another port that can be accessed as a COM port by computers.
Re: UDP Tunneling Issue - Can see data in Port Monitor, but not anywhere else [message #1260 is a reply to message #1259] Wed, 02 December 2020 04:40 Go to previous message
Kurt is currently offline  Kurt
Messages: 288
Registered: July 2016
Location: Minnesota
Power User
I'm very glad to assist and am pleased this is working for you. If you have any other questions, let me know.

Kurt


Kurt Rees
www.comtrol.com
http://forum.comtrol.com/

Comtrol Corporation
100 Fifth Ave NW
Minneapolis, MN. 55112
Direct +1 763.957.6000 | +1 Fax (763) 957-6001
connect. communicate. control
Previous Topic: DeviceMaster RTS
Next Topic: Ns-Link driver for linux kernel 5.4
Goto Forum:
  


Current Time: Tue May 18 21:14:41 CDT 2021

Total time taken to generate the page: 0.00698 seconds