WIFI PRO OTA ERROR 30

Using OTA functions with Waspmote
Post Reply
theo
Posts: 68
Joined: Fri May 01, 2015 8:32 am

WIFI PRO OTA ERROR 30

Post by theo » Fri Dec 13, 2019 9:02 pm

Hi,

I try to programming my new plug & sense WIFI PRO v15 for OTA programming. i am using libelium example WIFI_PRO_OTA_1, meshlium v3 with Current version: 3.2.9 (ftp). But it give me the below error (also debug enable). I can not understand because i have also plug sense wifi v12, and i using ota and it is working perfect. Also i tried to format sd card. attachment UPDATED.TXT and ACC1_

ERROR CODE:30
ERROR CODE: error downloading UPGRADE.TXT

1. WiFi switched ON
2. WiFi is connected OK Time(ms):5006
2.1. Connection Status:
-------------------------------
Rate (Mbps):54
Signal Level (%):100
Link Quality(%):79
-------------------------------
2.2. Request OTA...
[WIFI] ERROR downloading OTA_ver_file
[WIFI] ==> ERROR CODE: error downloading UPGRADE.TXT
3. WiFi switched OFF
Wait...


1. WiFi switched ON
2. WiFi is connected OK Time(ms):4447
2.1. Connection Status:
-------------------------------
Rate (Mbps):54
Signal Level (%):100
Link Quality(%):81
-------------------------------
2.2. Request OTA...
[WIFI] ERROR downloading OTA_ver_file
[WIFI] ==> ERROR CODE: error downloading UPGRADE.TXT
3. WiFi switched OFF
Wait...

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

Re: WIFI PRO OTA ERROR 30

Post by libelium-dev » Mon Dec 16, 2019 11:46 am

Hi,

Does OTA process work using the same files and a v12 device? So we will discard if the files aren't generated properly.

We haven't tested if Meshlium v3 is compatible with v15 devices to perform OTA. Could you please test with another FTP server?

What is the seril ID of the P&S v15 you are using?

Regards

theo
Posts: 68
Joined: Fri May 01, 2015 8:32 am

Re: WIFI PRO OTA ERROR 30

Post by theo » Wed Dec 18, 2019 8:03 pm

Hi,
Serial Number: 495cbc32c8913e33
For my testing i upload on the PLUG & SENSE WIFI_PRO_21_OTA and change server ip,user, password. After convert ACC_01 example binary and upload to ftp with UPGRATE.TXT.

UPGRATE.TXT:

FILE:ACC_01_
PATH:/
SIZE:17770
VERSION:11

Test:
1)Meshlium v3 not work previous post output of debug
2)other ftp debug:


1. WiFi switched ON
2. WiFi is connected OK Time(ms):4440
2.1. Connection Status:
-------------------------------
Rate (Mbps):54
Signal Level (%):88
Link Quality(%):76
-------------------------------
2.2. Request OTA...
[WIFI] [getResponseValue] I/ERROR found: [WIFI] ==> ERROR CODE: FTP data socket could not be opened
[WIFI] There was error 511 --> retry
--------------------------------
[WIFI] FILE:ACC_01_
[WIFI] PATH:/
[WIFI] SIZE:17770
[WIFI] VERSION:11
--------------------------------
[WIFI] Downloading OTA FILE
[WIFI] Server file:/ACC_01_
[WIFI] SD file:ACC_01_
[WIFI] I/ERROR
[WIFI] ==> ERROR CODE: FTP data socket could not be opened
[WIFI] Error getting binary
[WIFI] ==> ERROR CODE: error downloading binary file
3. WiFi switched OFF
Wait...

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

Re: WIFI PRO OTA ERROR 30

Post by libelium-dev » Thu Dec 19, 2019 10:08 am

Hi,

Does the example codes to upload and download files from a FTP server work?

What is the API version used to upload the code? Did you try configuring another FTP server?

Regards

theo
Posts: 68
Joined: Fri May 01, 2015 8:32 am

Re: WIFI PRO OTA ERROR 30

Post by theo » Thu Dec 19, 2019 7:30 pm

Hi,

https://www.dropbox.com/sh/okpg9zgtlnh5 ... jr3Ka?dl=0

On this link you can see my code, OUTPUT, binary file and UPGRATE.TXT.

I am using waspmote-pro-ide-v06.17 .

Yes, i tried other ftp and i have the same output..

Can i try something else??

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

Re: WIFI PRO OTA ERROR 30

Post by libelium-dev » Fri Dec 20, 2019 11:50 am

Hi,

Could you please try to perform OTA using the following files?
https://www.libelium.com/forum/libelium_files/OTA_2.zip

Is the FTP server passive or active?

Try to upload the files using Filezilla and configure transfer mode as Binary instead of Automatic.

Regard

theo
Posts: 68
Joined: Fri May 01, 2015 8:32 am

Re: WIFI PRO OTA ERROR 30

Post by theo » Sat Dec 21, 2019 9:06 pm

Hi,

I tried your example,
i uploaded via Filezilla as Binary, but still i have the same output like previews post. My ftp is passive.

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

Re: WIFI PRO OTA ERROR 30

Post by libelium-dev » Tue Dec 24, 2019 12:57 pm

Hi,

Please try to perform OTA suing our FTP test server. Does it work?

Code: Select all

// FTP server settings 
/////////////////////////////////
char server[] = "pruebas.libelium.com";
char port[] = "21";
char user[] = "usertech03";
char password[] = "jHYSD765rFADS";
/////////////////////////////////
Regards

theo
Posts: 68
Joined: Fri May 01, 2015 8:32 am

Re: WIFI PRO OTA ERROR 30

Post by theo » Tue Dec 24, 2019 1:28 pm

Hi,

Yes, with your ftp it is working!! Thank you!
So i have to fix my ftp server (Meshlium why does not work?)
Can you give me specification for FTP ?

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

Re: WIFI PRO OTA ERROR 30

Post by libelium-dev » Mon Dec 30, 2019 10:52 am

Hi,

Apologies for the delay answering, we have just moved our offices and we don't have all the services enabled. Now we don't have a Meshlium v3 to try to perform OTA using a Meshlium 3 and a Waspmote v15. We will try in the next few days.

Did you try to connect to the Meshlium FTP using FileZilla and to upload the files through it?

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest