2016-01-07 02:05 AM
How to upgrade firmware of stm32f103 controller using over the air programming?
2016-02-25 01:09 PM
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.2016-03-18 11:45 PM
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); } } }