Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: kc7kc on November 15, 2016, 05:20:46 PM

Title: DMLogger on PC with 2 networks
Post by: kc7kc on November 15, 2016, 05:20:46 PM
I need to send data to the Do More Logger on a PC with two Ethernet ports.  One of my computer's Ethernet ports connects to the company domain network and the other is for what I call a tool level sub-network.

If I disable my PC's Domain port, I get data to Do More Logger through my tool level Ethernet port.  However, with the Domain port enabled, no data shows up.  Apparently, Do More Logger is just interested in the Domain port when it is on.

I have tried specifying the IP Address on Do More Logger's 'accepting packets' field.  That doesn't help
Title: Re: DMLogger on PC with 2 networks
Post by: Greg on November 18, 2016, 10:45:37 AM
The STREAMOUT to Device @DMLogger in Do-more just causes it to send a broadcast out the Ethernet port. Thus your Do-more's built-in port is sending a UDP/IP telegram to 255.255.255.255, from your Do-more's built-in Ethernet port IP address. It is sent to a destination port number of 29,298 (7272 hex).

So, if there is anything configured in your PC (or network) that rejects broadcasts for whatever reason, it will not see the telegram. Or if it has its ears closed to the port number above, it may reject the broadcast telegram. You might want to download Wireshark (free Ethernet packet sniffer) install it on your PC, and see if you can see the telegrams coming from your Do-more.
Title: Re: DMLogger on PC with 2 networks
Post by: plcnut on November 18, 2016, 11:02:22 AM
If one of the NIC's in your computer is set to 'Home', and the other is set to 'Work' or 'Public', then they will be operating on an entirely different stet of Windows Firewall rules. This may help you with diagnosis.
Title: Re: DMLogger on PC with 2 networks
Post by: kc7kc on December 07, 2016, 08:35:01 AM
Thanks Greg and PLCNUT.  Good advice.  Thanks for your help!

Here are two conditions I tested with regard to network category setting.

LAN 1 - Domain Network
LAN 2 - Public Network
PLC on LAN 2 using STREAMOUT to Device @DMLogger
Results; No LAN 2 data comes to DMLogger or Wireshark.  However, I can connect to the PLC on LAN 2 using DoMore Designer.

LAN 1 - Public Network
LAN 2 - Public Network
PLC on LAN 2 using STREAMOUT to Device @DMLogger
Results; Good data comes to DMLogger and Wireshark.  I can connect to the PLC on LAN2 using DoMore Designer.

Does this indicate that there is a firewall issue?  I am confused by the fact that I can connect to the PLC using Designer when the data logger is not functioning.  Apparently the connection is not being blocked entirely.

I have not been able to change LAN 2 to something other than Public.  I need IT for that.

Any further advice would be appreciated.
Title: Re: DMLogger on PC with 2 networks
Post by: kc7kc on December 07, 2016, 08:51:27 AM
One more question.

Perhaps port 0x7272 is in use by the Domain port.  I can see how to change the port number on DMLogger, but not on the PLC side.  The device @DMLOGGER has no settings.  Can this port number be changed?
Title: Re: DMLogger on PC with 2 networks
Post by: BobO on December 07, 2016, 09:07:33 AM
One more question.

Perhaps port 0x7272 is in use by the Domain port.  I can see how to change the port number on DMLogger, but not on the PLC side.  The device @DMLOGGER has no settings.  Can this port number be changed?

No, but yes. The DMLogger device is basically just a pre-defined UDP. You can do the same thing by creating a UDP device and doing a PACKETOUT to the desired port.
Title: Re: DMLogger on PC with 2 networks
Post by: kc7kc on December 07, 2016, 10:29:55 AM
Thanks BobO,

Problem solved.  Created a UDP device at port 0x2000 (8192) and used the packetout command.  I set Do-More Logger to listen at that port and it took off.

Thanks again