Advanced TCP/IP data logger (Professional)

Started by Adamastor77, May 25, 2010, 01:01:31 PM

Previous topic - Next topic

Adamastor77

Hello,


We have just installed and configured Advanced TCP/IP data logger (Professional license) and everything works great but one important detail:

Advanced TCP/IP data logger has been installed on a virtual PC on our data server (see pics attached for "Device" configuration.

The software receives data from a serial server connected to a machine-tool. The problem is when we switch off the machine (for maintenance reasons) or when there is a power breakdown. It switches off automatically the server. Once the server is restarted, I also have to close Advanced TCP/IP data logger software and restart it. Otherwise no data is transmitted (it even crashes the pc that commands our machine-tool when we try to send data...)

Is there anything we could set on Advanced TCP/IP data logger software in order to avoid this ? In the case the serial server is restarted, we shouldn't have to restart the software.


Thank you for your help
Best Regards

   Luis

Arthur Grasin

The software should reconnect to your machine automatically (after 30 seconds). Is it possible the program displays any error in the main window? Did you activate the program protocol at Options - Program options - Protocol?
If you like my work, please take a few seconds and add feedback about our site or our software [here]

Adamastor77

If we launch the software while the serial server is switched off, it works the way you describe (connection is shown as closed, software tries a new attempt every 30 s, when the serial server is switched on: connection is opened - OK)

But if we switch off the serial server while the software is activated, software still sees the connection as opened (the same if we disconnect the serial server ethernet cable).
That's the problem. And when we switch on again the serial server, nothing works. When we try to send data through the network, software doesn't get it and it even crashes the NC machine.


To answer your question, the program protocol is activated (see pic in attachment).
If you need anything more in order to help me, let me know.


Best Regards
   Luis

Arthur Grasin

Please, activate the TCP-IP keep alive mode. In this case the program will try to detect broken connections.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

Adamastor77

I've already made the test with Keep Alive mode activated. It didn't work. Keep alive settings were set to custom values:

Interval: 60 s
TimeOut: 1 s

Firstly we switched off the serial server and the connection was still open for the software, even after 3 minutes. We even removed the ethernet cable from the serial server (while it was switched off) and it changed nothing:  connection was still open for the software.

Arthur Grasin

Please, try system settings, sometimes, the custom settings may not work.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

Adamastor77

why not... I've only got one problem: the default value for the KeepAliveTime is 2 hours (as per the software documentation - page 17). That's too much because our machine-tool sends data every 1h30min. So I need to change them.

In that doc, it is written that the values for KeepAliveInterval and KeepAliveTime are stored in the following Windows registry: 

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters]
KeepAliveTime (32-bit number) = milliseconds
KeepAliveInterval (32-bit number) = milliseconds

My problem is that those values (KeepAliveTime and KeepAliveInterval) do not exist on the computer we are running the software on. Why ? May I create them ?



Arthur Grasin

If you like my work, please take a few seconds and add feedback about our site or our software [here]

Adamastor77

Thanks, I will test it next week. By the way, am I supposed to see anything on the application window (a message by example) when the keep alive signal is sent and retrieved by the software ?? Or is it hidden to the user ?

Arthur Grasin

This signal is hidden for user and our software.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

Arthur Grasin

#10
Hello, Luis.

Today, I've tested Advanced TCP/IP Data Logger v3.5.3.129 with MOXA NPort 5110 and Keep-Alive works as expected. Below are my settings.

NPort Administrator Settings:

TCP Alive = 1 min (minimum value, therefore TCP/IP Data Logger will detect a broken connection before the Nport device);

Max Connection = 3 (because the NPort device may not close the previous TCP connection and TCP/IP Data Logger will not be able to reconnect)

Please, note that the router in our office and my firewall can handle TCP Keep-Alive messages properly. Some routers and firewalls can block TCP Keep-Alive messages and therefore it will not work properly.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

Adamastor77

Hello Arthur,


Thanks a lot for your help. You gave me enough ammunition to make several tests. I will try those settings with Advanced TCP/IP data logger as well as some tests with Advanced serial data logger.
And I will keep you updated.


Best Regards
   Luis

Adamastor77

I have made a few tests with Advanced TCP/IP data logger (Professional) and it nearly works:

KeepAlive modes:

  • custom:  this one definitely doesn't work. No matter which the values are.
  • system:   This one nearly works. The only remaining issue is that KeepAliveTime is always 2 hours, no matter the values entered in the windows register

Windows register modifications:

Added value in:   HKLM\System\CurrentControlSet\Control\Terminal Server
                        KeepAliveEnable  REG_DWORD  0x00000001 (1)

Added values in:  HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
                        KeepAliveTime        REG_DWORD  0x0000ea60 (60000)
                        KeepAliveInterval    REG_DWORD  0x000003e8 (1000)

In this case, KeepAliveTime is set to 60000 ms = 60 seconds. KeepAliveTime is still 2 hours since last successful data transfer. why ?

At least that means that both my router and firewall can handle keepalive messages. We need to set
this KeepAliveTime to any duration lower than 1h20 (the shortest part time being machined on the machine).


I have set Moxa NPort as per your last e-mail
I didn't make any tests with Advanced serial data logger.


Thank you in advance
    Luis

Arthur Grasin

Hello, Luis.

I'm sorry, but I can't say why the system changes the KeepAliveTime time. Could you try to reboot the PC after you set the new value? Do you use Windows XP?
If you like my work, please take a few seconds and add feedback about our site or our software [here]

Toot

Luis,

Back to the problem on your 1st message. Have you thought about keeping the power on to the serial converter? And also try to find a power source for your server that does not get switched off.

By the way. The converter that i am using, the ACT1000 stays always open. I have been testing for almost a week including a weekend. The TCP port stays open. Thursday i get three more ACT's and will use them with the same TCP/IP data logger software hoping the other three IP numbers will behave the same.

good luck,
Otto