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
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.
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
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.
This post is under review.