Reprograming Error and the code is not updated

Using OTA functions with Waspmote
DonMehdi
Posts: 34
Joined: Thu Jan 18, 2018 11:04 am
Company: S2f Network

Re: Reprograming Error and the code is not updated

Post by DonMehdi » Thu May 24, 2018 12:37 pm

But i can't access the ftp server on the meshlium using the port 22 (sftp). I'm using filezilla to connect to it

DonMehdi
Posts: 34
Joined: Thu Jan 18, 2018 11:04 am
Company: S2f Network

Re: Reprograming Error and the code is not updated

Post by DonMehdi » Thu May 24, 2018 12:40 pm

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.

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Reprograming Error and the code is not updated

Post by libelium-dev » Fri May 25, 2018 8:48 am

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

DonMehdi
Posts: 34
Joined: Thu Jan 18, 2018 11:04 am
Company: S2f Network

Re: Reprograming Error and the code is not updated

Post by DonMehdi » Fri May 25, 2018 12:13 pm

I have meshlium 4. and its ftp uses port 21 wich is not secure.i wanted use the meshlium's ftp securely, please help

DonMehdi
Posts: 34
Joined: Thu Jan 18, 2018 11:04 am
Company: S2f Network

Re: Reprograming Error and the code is not updated

Post by DonMehdi » Fri May 25, 2018 12:14 pm

credentials are user:admin and pass:libelium

DonMehdi
Posts: 34
Joined: Thu Jan 18, 2018 11:04 am
Company: S2f Network

Re: Reprograming Error and the code is not updated

Post by DonMehdi » Fri May 25, 2018 12:34 pm

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 ?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Reprograming Error and the code is not updated

Post by libelium-dev » Mon May 28, 2018 8:46 am

Hi,

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

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

Regards

DonMehdi
Posts: 34
Joined: Thu Jan 18, 2018 11:04 am
Company: S2f Network

Re: Reprograming Error and the code is not updated

Post by DonMehdi » Mon May 28, 2018 9:59 am

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.

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Reprograming Error and the code is not updated

Post by libelium-dev » Tue May 29, 2018 8:41 am

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

DonMehdi
Posts: 34
Joined: Thu Jan 18, 2018 11:04 am
Company: S2f Network

Re: Reprograming Error and the code is not updated

Post by DonMehdi » Tue May 29, 2018 2:53 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest