Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

PPPOpen and TCPOpen timeout


MrMiglas Mar 2, 2011 03:34 PM

Hello

I have a CR800 and I'm using GPRS communication.
When I get no registration with my SIM card,
I get some SkippedScans. My questions are:

How much time do PPPOpen and TCPOpen functions take until timeout? Can I configure that timeout?

Does the datalogger wait for those operations to be conclued, and then pass to the next operation? (I'm using SequentialMode)

Thank you in advance.


MrMiglas


aps Mar 3, 2011 01:58 PM

In operating systems shipped to date, PPPOpen does not cause the program to pause, i.e. the instruction just starts off the connection process.

PPPOpen currently never timesout and continues to try to connect until it is stopped with PPPClose. (Adding a timeout is being considered at present)

TCPOpen does wait and hold up the program. It will keep trying to open the socket for a period in about 700 sec.

You cannot change the timeouts other than by issuing PPPClose/TCPClose after some time in your program.

PPPClose and TCPClose both cause the program to wait. PPPClose will try up to 10 sec to close the connection before giving up, whilst TCPClose only takes a few tens of milliseconds and should always be successful.


IslandMan Mar 4, 2011 11:16 AM

Andrew,
I had a similar skipped scan issue with TCPOpen and did some tests. The timeout I found in the OS21 of the CR1000 appears to be about 74 seconds. I believe it used to be much longer than that.
If the program is paused at the TCPopen, how would TCPClose work until it actually timed out?
Thanks,
Dave


aps Mar 7, 2011 11:19 PM

It seems I was working on out of date information, in more recent operating systems the TCPOpen timeout is set to 75 seconds.

You are right TCPClose cannot itself directly abort a TCPOpen which is waiting, but PPPClose can. The PPPClose can be called from another sequence/scan.


victorpatrick Jul 19, 2023 06:46 AM

This post is under review.

Log in or register to post/reply in the forum.