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.

TCP/IP connections


PPeters Jan 12, 2016 04:00 AM

Hi All,

Having an issue with a setup involving a CR800 and TCP/IP modem

the modem model is a Maestro M1002G and is set for our APN (Fixed IP). I have been able to set the modem to connect the the gsm network and provide a TCP connection with port 6785. default is no active connection as I am relying on the logger to initiate this

This tests fine and I can actively ping the modem under test conditions.

The logger I am configuring to use the RS232 port (null modem connection to the modem), the PPP configuration is for RS232 with a dial string of ATD*99***1# and RS232 power/handshake set to always on and buffer 1000

In the code I am using  a ping test and PPPOpen with time resets of the modem every 6hrs or 30min if the ping of our server fails.  

    Ping_result =   PingIP ("172.29.101.254",2000)
    SiteIP =  PPPOpen

    If IfTime (1,360,min) Then Flag(3) = -1       'Reset external GPRS every 6 hours via SW12 power
    If IfTime (5,30,min) Then                   ' Or if Ping Fails
      If Ping_result = 0 Then Flag(3) = -1
    EndIf

    If Flag(3) = -1 Then
      Ping_result = PPPClose
      SW12 (0)                 ' powers off for 1 table cycle
      Flag(3) = 0
    EndIf

Full code and logger settings here:  https://www.dropbox.com/sh/6qat3x5zom1ymo3/AAB_JVEvCySf7Ls_zlCN8wLea?dl=0

The issue I am having is at remote sites i am loosing comms

The site go inactive and I can not connect to the logger or ping the modem

On visit the logger is active but the PPP is dead.

resets with program load or logger power cycle, not with the modem power cycle so I think I have something not quite right with my code or logger setup.

I have benched tested and the setup seems robust in that I cant replicate the issue...

Any thoughts or best practise for such setups much apprecuiated

regards

Paul


JDavis Jan 12, 2016 03:26 PM

Are you using the latest CR800 operating system version?


PPeters Jan 12, 2016 07:24 PM

The field unit is running v 28 OS

the test unit as shown in the included xml settings file has 27.04

is there a known TCP issue with historic OS?


JDavis Jan 13, 2016 03:15 PM

https://www.campbellsci.com/revisions?dl=121&rev=338#revisions

There was a PPP fix in OS28.01 that might resolve your problem. I suggest installing 28.02, which is the current release.


PPeters Jan 19, 2016 10:04 PM

Ok.. I have loaded the lastest OS to the site and have now added a second modem on the csi port as a secondary form of comms for redundancy

On install this all tested ok with active pings and the logger successfully initaiting a PPP connection on the primary modem on the rs232 port

settings and code loaded here for reference

https://www.dropbox.com/sh/n4gfsxy1pjbym5e/AAANjuINmItTMIAcpQsJ6cMTa?dl=0

Data connections tested again at office and both active and transmitting data....

but now I have lost connection to the site... both fail, rs232 and on csi/o??

I can ping the csi/o modem as this is managing it's own connection but when I try to get to the logger I am getting a

09:45:13.743
Fault
"open failed","unexpected socket close","10060","connection timed out"

on the rs232 modem I can not ping the modem and get an open failed which would be expected

I suspect the logger has locked up some how but am unsure as to why or how this has occured

I have been having the issue with the modem setup and configuration on the rs232 but I am surprised the csi/o setup has also failed... was relying on this for remote assistance to resolve the rs232 issue.!

So what can I do???

What am I doing wrong?

the only sensors on site are a WaterLog SDI12 level sensor and tipping bucket raingauge

is the PPP control and setup I have in the logger correct and sufficient?

Thinking of next step is to swap the logger core with my bench test unit incase I have a hardware issue as well?

I have another setup similar that is also not working so think its is in my configuration somewhere but all my bench tests have shown to be reliable and the comms recovers with all tests

any help and assistance much appreciated


elham.pm Jan 16, 2017 01:52 PM

Would you please send  settings and code for CR1000?


PPeters Jan 16, 2017 07:49 PM

settings and code in above dropbox link thx Elham.pm


elham.pm Jan 17, 2017 02:55 PM

Thx alot PPeters, but I need settings for CR1000. I used this setting and changed model-no to "CR1000" for my CR1000 datalogger but I can not get IP. My IP - Adress is 0.0.0.0 


PPeters Jan 18, 2017 03:41 AM

sorry I dont have a CR1000 example as the specific setup example I am only using with CR800's

the dropbox xml will have the settings for the logger and imagine they are similar


novicok Jan 18, 2017 06:31 AM

Dear Elham.pm

Could you write modem  and interface name?

if you want to get PPP connection you need to configure modem, interface and logger

first need logger update  last OS

then you will need to configure

do you use SIM Card with Static IP address or not?


elham.pm Jan 18, 2017 08:16 AM

thx alot PPeters


elham.pm Jan 18, 2017 08:26 AM

Dear novicok

My modem model is a GL865T-DUAL (LTE) and the PPP configuration is for RS232.

I have used the same CRBasic program for other CR1000 dataloggers and I do not have any problem with them about their IP  Adress.

Yes I use SIM Card with Static IP address as I have used for my other CR1000 dataloggers.

Do you have a xlm setting file as PPeters have sent for CR800 Series via dropbox?

If yes would you please send me ?


novicok Jan 18, 2017 03:43 PM

Dear elham.pm

Please let us go ahead step by step. Exactly to say, I have never used such modem. I am using fastract xtend modem and SC105 interface with CR1000 data logger. I configured this station it is work now. I want to help you too.

But, I have next questions. Do you use the same configuration in all your station. Did you configure other station yourself?. If, yes please tell me which, OS in your data logger. I am about this -OS28.01 or late. Do you have same OS in other data logger? Do you use the same provider Simcard? What about the interface which interface do you use? It must be bettween logger and modem. Can you make same picture and send me?. i would like to see Into site of the DAQ system. I am about the  Into site of the box. Everything depended of the connection elements and configuration of this elements.

best regards


elham.pm Jan 19, 2017 07:28 AM

Dear novicok,

First of all thanks a lot for your time and consideration. I am using a simple RS232 cable between my datalogger and modem and I do not use an interface such as yours,  and the OS of my datalogger is CR1000.Std.31

Yes, I am using  the same Simcard provider. I want to send you a picture of my system but I need your email address or would you please send me an email? Uni_eli_sa@yahoo.com


novicok Jan 20, 2017 04:25 PM

Dear elham.pm,

rsm_mamedov@hotmail.com

But what about Dev.config 2.8 v

Can you use this software

can you find CR1000 from the list 

and make picture of the Setting Editro-PPP connection and send me too.(in a deployment)

best regards


AFOskar Jun 4, 2018 06:27 AM

Did you solve this issue Elham? I am having the same type of problem on a site I just recently installed. The same setup works fine on other sites but now I am having problems with this new site.  

Br,

Oskar

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