requestOTA not working in WIFI V15 with the latest API V027

asaf1234567
Posts: 9
Joined: Thu Nov 03, 2016 10:27 am

Re: requestOTA not working in WIFI V15 with the latest API V

Post by asaf1234567 » Thu Mar 02, 2017 3:11 pm

i am running the sample code now and this is what i am getting

I have the file in the root server !!!


Start program
***************************************
Once the module is set with one or more
AP settings, it attempts to join the AP
automatically once it is powered on
Refer to example 'WIFI_PRO_01' to configure
the WiFi module with proper settings
***************************************
REPROGRAMMING ERROR-------------------------------
Program id: OTATEST
Program version: 1
-------------------------------
[WIFI] no answer received
[WIFI] no answer received
1. WiFi switched ON
[WIFI] _command: AT+iRP10

[WIFI] reportStatus:AT+iRP10
I/(2,54,100,0)

[WIFI] port:2
[WIFI] _rate:54
[WIFI] _level:100
[WIFI] _quality:0
[WIFI] reportStatus:2
[WIFI] _command: AT+iRP10

[WIFI] reportStatus:AT+iRP10
I/(2,54,100,0)

[WIFI] port:2
[WIFI] _rate:54
[WIFI] _level:100
[WIFI] _quality:0
[WIFI] reportStatus:2
[WIFI] _command: AT+iRP10

[WIFI] reportStatus:AT+iRP10
I/(2,54,100,0)

[WIFI] port:2
[WIFI] _rate:54
[WIFI] _level:100
[WIFI] _quality:0
[WIFI] reportStatus:2
[WIFI] _command: AT+iRP10

[WIFI] reportStatus:AT+iRP10
I/(2,54,100,88)

[WIFI] port:2
[WIFI] _rate:54
[WIFI] _level:100
[WIFI] _quality:88
[WIFI] reportStatus:2
[WIFI] _command: AT+iRP10

[WIFI] reportStatus:AT+iRP10
I/(4,54,100,85)

[WIFI] port:4
[WIFI] _rate:54
[WIFI] _level:100
[WIFI] _quality:85
[WIFI] _command: AT+iIPA?

2. WiFi is connected OK Time(ms):3116
2.1. Connection Status:
-------------------------------
Rate (Mbps):54
Signal Level (%):100
Link Quality(%):85
-------------------------------
2.2. Request OTA...
[WIFI] Downloading OTA config file...
[WIFI] _command: AT+iFOPN:[***********]

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

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

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

[WIFI] FTP file size: 41
[WIFI] _command: AT+iFRCV:0,UPGRADE.TXT

[WIFI] DOWNLOAD OK
[WIFI] sd_filesize:41
[WIFI] server_filesize:41
[WIFI] _command: AT+iBDRA

[WIFI] OTA_ver_file downloaded OK
--------------------------------
[WIFI] FILE:WIFI123
[WIFI] PATH:/
[WIFI] SIZE:16434
[WIFI] VERSION:3
--------------------------------
[WIFI] Downloading OTA FILE
[WIFI] Server file:/WIFI123
[WIFI] SD file:WIFI123
[WIFI] _command: AT+iBDRA

[WIFI] _command: AT+iFSZ:0,/WIFI123

[WIFI] I/ERROR
[WIFI] ==> ERROR CODE: Timeout
[WIFI] Error retrieving file size
[WIFI] _command: AT+iFCLS:0

[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: requestOTA not working in WIFI V15 with the latest API V

Post by libelium-dev » Fri Mar 03, 2017 9:01 am

Hi,
[WIFI] ==> ERROR CODE: Timeout
[WIFI] Error retrieving file size
[WIFI] _command: AT+iFCLS:0

[WIFI] Error getting binary
[WIFI] ==> ERROR CODE: error downloading binary file
Make sure the WIFI123 file have the size you put in the UPGRADE.TXT file (SIZE:16434)

Regards

vcaquilpan
Posts: 45
Joined: Tue Apr 11, 2017 5:20 pm

Re: requestOTA not working in WIFI V15 with the latest API V027

Post by vcaquilpan » Tue Feb 06, 2018 4:04 pm

asaf1234567,

How did you solve the problem with the version of your code ? I have the same issue now. When I run the code, It appeared "Program version: 255".

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

Re: requestOTA not working in WIFI V15 with the latest API V027

Post by libelium-dev » Wed Feb 07, 2018 11:20 am

Hi vcaquilpan,

We will continue the conversation in your other topic.

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest