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.

Configure CR1000 with datalogger program for PakBusTcpServer use


Lumox100 Mar 29, 2014 02:38 AM

I am trying to configure a CR1000 datalogger by creating a program that I would load into the datalogger and that then would change some of the datalogger's settings. The reason why I want to write a program to do this is because our dataloggers are in ocean buoys +-5km from the coastline. So instead of having to retrieve the buoys and then setting up the dataloggers manually and which is costly, I would be able to send the program to the datalogger which would change the settings.

The following is a function I have that will change the settings to allow the datalogger to communicate using PakBusTcpServer. The only setting I have not been able to change is the PakBus/TCP Client Connection -> Address for which I cannot find the correct "Field Name" to use.

Function ConfigureCR1000()
SetStatus("PakBusAddress",PB_address)
SetStatus("BaudrateRS232",9600)
SetStatus("pppInterface",1) '1=RS232
SetStatus("pppIPAddr","0.0.0.0")
SetStatus("pppDial","ATV1;AT+CGATT=0;AT+CGDCONT=1,""IP"",""internet"";ATDT*99***1#")
SetStatus("pppDialResponse","CONNECT")

'SetStatus("ServerAddress"?? ,"url.to.use")
SetStatus("TCPPort",6785)

SetStatus("RS232Power",-1) 'set to -1 to check "Port always on"
EndSub

I know that I can use the TCPOpen function to open a connection using a URL but I would prefer the URL to be in the datalogger settings.

Could someone please let me know if it is possible to change this setting in a datalogger program and what the correct Field Name would be. Thanks.


Dana Apr 2, 2014 06:51 PM

The current OS does provide for this. A future OS will let you do this with a new instruction, SetSetting.

There is not currently a release date on the new OS (28).

Dana W.

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