WIZnet Developer Forum

Question about AT+FOTA

Dear All,

i use the WIZFI250 evaluation board with a CPU development board since some weeks.
i’m really happy with this product, work like a charm :smiley:

the link between WIZFI250 and CPU is UART @ 115200bps.

with my WIZFI250 evalboard, i can without trouble update the firmware, using the AT+FOTA command.
here it is the log :

WizFi250 Version 1.0.3.3 (WIZnet Co.Ltd)<CR><LF>
AT+FOTA<CR>
AT+FOTA<CR><LF>
[OK]<CR><LF>
<CR><LF>
<CR><LF>
[OTA Upgrade Handler]<CR><LF>
<CR><LF>
<CR><LF>
>>> Start OTA >>>>>>>>>>>>>>>><CR><LF>
<CR>

now, i design my own PCB with a WIZFI250-CON (only ufl connector).
although my purchase is recent, the module i orderd are with old firmware version (1.0.1.8) :frowning:
so for sure i try to update it
i run the AT+FOTA command with my CPU then here it is the log :

WizFi250 Version 1.0.1.8 (WIZnet Co.Ltd)<CR><LF>
AT+FOTA<CR>
AT+FOTA<CR><LF>
[OK]<CR><LF>

i never receive the rest of the message ([OTA Upgrade … to the end of my first dump)
(don’t see with my logic analyzer spy !)

Please any body can suggest me something ? why i don’t see all the dump (the one i see with the evaluation board) ???
my own design/board don’t run in OTA mode :frowning:
that make me crazy since 3 days ! … please any advice ?

FUNCTION and BOOT pins are tired to 3.3V by my CPU.
i work with hardware flow control enable, all other thing works as expected !


i do the test with the FUNCTION pin as describe here : http://wizwiki.net/wiki/doku.php?id=products:wizfi250:wizfi250pg:io_pin-function_pin_usage

i receive the frst line “Set OTA mode” … then NOTHING ELSE !!!
i’m crazy …
for sure i double , triple and even 1000’s check all signals and RTS/CTS lines .
again all others things works perfectly !!!

thanks, regard

hi phil31

You can refer below regular steps as you know

[code]WizFi250 Version 1.0.1.8 (WIZnet Co.Ltd){0D}{0A}

SEND: AT+MINFO{0D}{0A}
RECV: FW version/HW version{0D}{0A}
RECV: 1.0.1.8/WizFi250 Rev 1.0{0D}{0A}
RECV: [OK]{0D}{0A}

SEND: AT+FOTA{0D}{0A}
RECV: [OK]{0D}{0A}
RECV: {0D}{0A}{0D}{0A}
RECV: [OTA Upgrade Handler]{0D}{0A}{0D}{0A}{0D}{0A}
RECV: >>> Start OTA >>>>>>>>>>>>>>>>{0D}{0A}{0D}[/code]
But you cannot receive special messages about OTA mode from WizFi250.

There are few guides for how to start OTA mode.

  1. The first step you can check the messages after ‘FACTORY DEFAULT’
AT+MFDEF=FR
[OK]
Set Factory Default
[OK]

WizFi250 Version 1.0.1.8 (WIZnet Co.Ltd)
[OK]
WizFi250 Version 1.0.1.8 (WIZnet Co.Ltd)
at+fota
[OK]


[OTA Upgrade Handler]


>>> Start OTA >>>>>>>>>>>>>>>>
  1. Why don’t you can check the list of WLAN on your PC after sending “AT+FOTA” command’.
    If you find AP name “WIZFI_OTA_0008DCxxxxxx”, WizFi250 will start OTA mode even if there is no reply.

  1. you can refer following link for starting OTA mode using WEB server.

http://wizwiki.net/wiki/doku.php?id=products:wizfi250:wizfi250pg:firmware_upgrade

Hi Wizdaniel

thanks for your reply.

but my problem is not about send the AT+FOTA command (1), or check on my smartphone to see the AP name (2)

ALL others AT commands works as expected ( as AT+MINFO by example), so i don’t think i have a problem with the UART communication ( hardware handshake is enable, so RX, TX, CTS and RTS lines are right wired)

my problem occur ONLY on my specific board, not with the evaluation (white board WIZFI250 EVB V1.0)

i do a hard reset to the module, then i send the AT+FOTA command, i receive ONLY :

WizFi250 Version 1.0.1.8 (WIZnet Co.Ltd)
at+fota
[OK]

i don’t receive the next part of the message :



[OTA Upgrade Handler]


>>> Start OTA >>>>>>>>>>>>>>>>

so the module don’t start the OTA procedure ( so i don’t see the AP in my smartphone list !

this procedure work perfectly with the EVB board !

same issue if i try to start the OTA mode by toggling twice the FUNCTION pin. i receive ONLY the first part of the message !!!
i verify that with the help of a logic analyzer … the WIZFI250 module send only the first part of the message !!

hi phil31

I think it’s not a normal situation that you don’t receive OTA message.
So. I prefer to reset the state of FACTORY DEFAULT or upgrade WizFi250 firmware
Because the OTA mode of WizFi250 just needs simple UART(VCC, GND, RX, TX).

1. How to reset to the factory default

AT+MFDEF=FR
[OK]
Set Factory Default
[OK]

WizFi250 Version 1.0.1.8 (WIZnet Co.Ltd)

Then… Try AT+FOTA again.

2. How to use OTA mode(for upgrading firmware) without ‘AT+FOTA’ command

First step. The Web server can be generated by the code below.

AT+WSET=1,WIZFI
[OK]
AT+WSEC=1,WPA2,12345678
[OK]
AT+WNET=0,192.168.12.1,255.255.255.0,192.168.12.1
[OK]
AT+FWEBS=?
0,M
[OK]
AT+FWEBS=1,A		//required
[OK]
AT+MPROF=S		//required
[OK]
AT+MRESET
[OK]

WizFi250 Version 1.0.1.8 (WIZnet Co.Ltd)
AT+WJOIN			// Web server will start after at+wjoin

[Link-Up Event]
  IP Addr    : 192.168.12.1
  Gateway    : 192.168.12.1
[OK]

Second step. You can find and connect the AP(AP name is ‘WIZFI’) on the list of WLAN
Third step. Connect the web page on the Web browser(IP:192.168.12.1) then the configuration page appears.
Fourth step. Use the OTA for upgrading firmware.
http://wizwiki.net/wiki/doku.php?id=products:wizfi250:wizfi250pg:firmware_upgrade

Hi Wizdaniel

well is there anything (hardware or software view) that can bloc the module to send the second part of the message after sending AT+FOTA message ?

by second part of the message i think :



[OTA Upgrade Handler]


>>> Start OTA >>>>>>>>>>>>>>>>

is there any reason to freeze the module ? or any thing else ?
the issue is the same if i try the AT command (AT+FOTA) or the FUNCTION twice toggle procedures !

i will try doing a factory reset just before launch the AT+FOTA when i back on this issue.

thanks for your suggestion, regards
Phil

HI phil31

When a critical problem occurred in WizFi250 application firmware.
You can recover the firmware(in a flash memory) using the backup firmware(another serial flash memory for backup firmware).

  1. Run the Serial Terminal tool and open the Serial port in PC

  2. Set the boot pin to LOW and reset the WizFi250. it can start the boot mode.
    (Reference: pin description and schematic of EVB)
    wizwiki.net/wiki/doku.php?id=pro … escription
    wizwiki.net/wiki/lib/exe/fetch.p … 31224_.pdf

  3. You can check the Serial message like below

  4. Press the ‘3’ for firmware recovery. then it will start firmware recovery using the backup firmware

http://wizwiki.net/wiki/doku.php?id=products:wizfi250:wizfi250pg:firmware_upgrade#firmware_recovery

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.