Page 2 of 3

Re: Reprograming Error and the code is not updated

Posted: Thu May 24, 2018 12:37 pm
by DonMehdi
But i can't access the ftp server on the meshlium using the port 22 (sftp). I'm using filezilla to connect to it

Re: Reprograming Error and the code is not updated

Posted: Thu May 24, 2018 12:40 pm
by DonMehdi
Should i use the port 22 for the ftpSecureOpenSession() ?
anohter thing is that i can't access the ftp server on the meshlium using the port 22 (sftp). I'm using filezilla to connect to it.

Re: Reprograming Error and the code is not updated

Posted: Fri May 25, 2018 8:48 am
by libelium-dev
Hi,

Do you have Meshlium 3 or Meshlium 4?

What credential are you using to access Meshlium? It isn't possible to use port 22 to access Meshlium via ftp.

Regards

Re: Reprograming Error and the code is not updated

Posted: Fri May 25, 2018 12:13 pm
by DonMehdi
I have meshlium 4. and its ftp uses port 21 wich is not secure.i wanted use the meshlium's ftp securely, please help

Re: Reprograming Error and the code is not updated

Posted: Fri May 25, 2018 12:14 pm
by DonMehdi
credentials are user:admin and pass:libelium

Re: Reprograming Error and the code is not updated

Posted: Fri May 25, 2018 12:34 pm
by DonMehdi
If meshlium 4 doesnt support secure ftp. i will have my own ftp then but can the plug and sense connect to that secure ftp ?

Re: Reprograming Error and the code is not updated

Posted: Mon May 28, 2018 8:46 am
by libelium-dev
Hi,

We re sorry but Meshlium doen't support secure ftp.

You can use ftpSecureOpenSession() function to connect to a secure ftp server.

Regards

Re: Reprograming Error and the code is not updated

Posted: Mon May 28, 2018 9:59 am
by DonMehdi
Should i change the ftpOpenSession to ftpSecureOpenSession in the the requestOta function or something else, because what i did is configure a sftp on my server and try to connect to it whith a custom requestOta function but it didnt work, it returned a ERROR 0.

Re: Reprograming Error and the code is not updated

Posted: Tue May 29, 2018 8:41 am
by libelium-dev
Hi,

You can try to replace ftpOpenSession function with ftpSecureOpenSession function but we haven't tried if it works with OTA. Please first try to use the function in the example code to upload a file to the ftp server in order to know if it works with your server.

Regards

Re: Reprograming Error and the code is not updated

Posted: Tue May 29, 2018 2:53 pm
by DonMehdi
Hi,
I have this problem with the requestOta function, please help

Code: Select all

2.2. Request OTA...
[WIFI] delete file
[WIFI] Downloading OTA config file...
[WIFI] _command: AT+iFOPN:xxx.xx.xxx.xx,21,ota,libelium

[WIFI] FTP handle: 0
[WIFI] _buffer:000

[WIFI] Open FTP session OK
[WIFI] _command: AT+iBDRA

[WIFI] _command: AT+iFSZ:0,UPG_002.TXT

[WIFI] FTP file size: 44
[WIFI] _command: AT+iFRCV:0,UPG_002.TXT

[WIFI] [getResponseValue] No answer
[WIFI] [changeBaudRate] step1 no answer
[WIFI] No file size value from server
[WIFI] _command: AT+iFCLS:0

[WIFI] ERROR downloading OTA_ver_file