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.

FTPS


julien55 Oct 20, 2020 03:19 AM

Hello,

Due to security concerns, our IT dpt is asking us to make sure data is pushed to the server, and not pulled (like we currently do through Loggernet).

Many years ago I used the FTP commands to push files directly to FTP. Right now FTP transfers are being shut down, and only FTPS will work.

1. Can we use similar code to push files to FTP via the FTPS protocol ?

2. Are there other alternatives ? We asked IT if using the 128 bit pakbus encryption solution would not be enough with the pulling technique, but I doubt this will be ok.

thanks for your help


nsw Oct 20, 2020 04:58 AM

Is the datalogger sending the files to your server? 

Or is the data rretrieved by LoggeRNet and then a LoggeRNet >Task used to send the files to the server using FTPS?


julien55 Oct 20, 2020 07:15 AM

Editing this answer to make it shorter:

- Right now FTPS is not enabled yet

- We have a server running loggernet. Local files are then pushed via a custom app to the main server via FTP. This app can already do FTPS, but it picks up local files on the computer.

My queries:

1. I need to know if there is not an option in dev config utility that would enable FTPS transfers, and I could then use the FTP commands we had in our code years ago

2. We usually have public fixed IPs. This is easier so our loggernet server can pull data easily. If we are forced to get loggers to push data from site to server, could we stop using fixed IPs ? Since the loggernet on the server does not need to know the IP, I guess the logger on site just needs internet, regardless of its IP..

Thanks


nsw Oct 20, 2020 07:50 AM

1. There is no setting in Dev Config, it is a change to the FTPClient instruction in the datalogger program. I see your other post was regarding a CR800 datalogger, so are these all CR800's? If so, the CR800 datalogger FTPClient instruction has a parameter "PutGetOption" which when you add 10 to the option you want, makes it a FTPS type. 

Extract from CRBasic Help :-

If 10 is added to the option code (e.g., 10, 11), the datalogger will use FTPS (i.e., FTP via TLS – this should not be confused with SFTP, which is file transfer via SSH). The datalogger uses explicit FTPS, unless the port for the IP address is specified as 990. When using implicit FTPS, the data port is 989.

2. You are correct. You could change to dynamic IP SIM cards if the dataloggers are sending the data using FTPS as this does not need a fixed IP. Of course, you do then loose the ability to connect to the datalogger fro LoggerNet manually to view measurements, check operation, change a program from a remote location.

There is the possibility to use dynamic IP SIM cards and still be able to access the dataloggers from LoggerNet, if you use the Konect Premium PakBus Router. Please contact your local office or reseller for details and prices.


julien55 Oct 20, 2020 09:08 AM

Thanks for the replies,

We use mostly CR800 and CR1000 occasionnally.

Now I know about the option code, we can use it and start converting our programs.

Regards


GeoHarry Oct 20, 2020 10:02 AM

Hi, I am a colleague of Julien.

Thanks for your help so far!

Am I correct in saying that if we continue to use the Loggernet scheduler to collect data (pull), then we can only use the PakBus protocol? Otherwise if we want to setup a push (e.g FTPS) we would need to as you said write the instruction in the program?

Thanks


nsw Oct 21, 2020 08:47 AM

Can you send me your contact details to support@campbellsci.co.uk and we can talk about this separately? Thanks.

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