cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f103 firmware upgrade remotely possible or not

bharatig154
Associate II
Posted on January 07, 2016 at 11:05

How to upgrade firmware of stm32f103 controller using over the air programming?

11 REPLIES 11
Posted on February 25, 2016 at 22:09

Does your automated code wait for the SIM to be read, and the modem register on the network? Do you check the registration state, and activate a context?

I don't have a SIM900, so not going to be much help walking you through its behaviour.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
bharatig154
Associate II
Posted on March 19, 2016 at 07:45

I have checked the registration state, and activated a context, now my program is downloading 608 bytes only out of 1.4KB,can anyone suggest me if any correction in my code,ftp file downloading function is as bellow

void configure_FTP(void)

{

if(RegNetwork())//only when registration done

{

if(Upload)

{

//....code....

}

else if (!Download)

{

Download=1;//Download=1;

WriteModem(''AT\r\n'',''OK'',1000);

WriteModem(''AT+SAPBR=3,1,\''contype\'',\''GPRS\''\r\n'',''OK'',3000);

WriteModem(''AT+SAPBR=3,1,\''APN\'',\''CMNET\''\r\n'',''OK'',3000);

WriteModem(''AT+SAPBR=1,1\r\n'',''OK'',5000);

  WriteModem(''AT+SAPBR=2,1\r\n'',''OK'',5000);

 WriteModem(''AT+FTPCID=1\r\n'',''OK'',5000);

WriteModem(''AT+FTPSERV=\''ftp.hostedftp.com\''\r\n'',''OK'',5000);

WriteModem(''AT+FTPPORT=21\r\n'',''OK'',5000);

WriteModem(''AT+FTPUN=\''username\''\r\n'',''OK'',5000);

WriteModem(''AT+FTPPW=\''xyz123\''\r\n'',''OK'',5000);

WriteModem(''AT+FTPMODE?\r\n'',''OK'',5000);

WriteModem(''AT+FTPGETNAME=\''STM3210B-BIN.bin\''\r\n'',''OK'',5000);

WriteModem(''AT+FTPGETPATH=\''/\''\r\n'',''OK'',5000);

WriteModem(''AT+FTPTYPE=\''I\''\r\n'',''OK'',5000);

WriteModem(''AT+FTPGET=1\r\n'',''OK'',5000);

WriteModem(''AT+FTPGET=2,1430\r\n'',''OK'',90000);

}

}

}