Suggest protocol in RC7620 gsm modem to Receive the bin file from server

To implement the OTA , i have receive the around 200kb bin file from server through gsm modem for that please suggest which protocol suits more(UDP,TCP,HTTP,FTP…) and implementation command for same

it depends on what kind of server you are using to put your bin file?
BTW, UDP is not recommended as it is not reliable connection

kind of server means can you elobarate

e.g. TCP,HTTP,FTP server

okay, can you give configuration commands for TCP to receive bin file block by block

from the AT command user guide, there is example of using +KTCP command:

at+cfun=1
OK
at+cpin>
ERROR
at+cpin?
+CPIN: READY

OK

at+ktcpcfg=2,0,“github.com”,80

+KTCPCFG: 1

OK
at+ktcpcnx=1
OK

+KCNX_IND: 2,4,1

+KTCP_IND: 1,1

at+ktcpsnd=1,30

+CME ERROR: 923

+KTCP_NOTIF: 1,4

try this commands getting error

I don’t see problem with latest FW:


ati3
Manufacturer: Sierra Wireless, Incorporated
Model: RC7620-1
Revision: SWI9X07H_01.11.10.00 394448 jenkins 2025/06/06 10:03:06
IMEI: 35363511012345
IMEI SV: 32
FSN: 7T118701512345
+GCAP: +CGSM

OK
at!impref?
!IMPREF:
 preferred fw version:    01.11.10.00
 preferred carrier name:  GENERIC-Data
 preferred config name:   GENERIC-Data_001.004_000
 preferred subpri index:  000
 current fw version:      01.11.10.00
 current carrier name:    GENERIC-Data
 current config name:     GENERIC-Data_001.004_000
 current subpri index:    000

OK


AT+KCNXCFG=2,"GPRS","smartone"
OK
AT+KCNXPROFILE=2
OK
at+ktcpcfg=2,0,"www.google.com",80

+KTCPCFG: 1

OK
at+ktcpcnx=1
OK


+KCNX_IND: 2,4,1



+KCNX_IND: 2,1,0



+KTCP_IND: 1,1

at+ktcpsnd=1,30
CONNECT

OK

now i am able to connect ,but after connects its showing no carrier

at
OK
AT+KTCPCFG=2,0,“raw.githubusercontent.com”,80

+KTCPCFG: 2

OK
AT+KTCPCNX=1
OK

+KTCP_IND: 1,1

AT+KTCPSND=1,113
CONNECT

NO CARRIER

+KTCP_NOTIF: 1,4

Is there any timeout requirement in your server?
did the server receive the TCP data you sent?

You can capture wireshark log in server to see what happens

timeout i m not sure about that,because i am using github server

Probably you should set up a tcp server to investigate

In pythonanywhere website i had upload the bin file,how can i receive that file in gsm modem

is it a HTTP server ? Or TCP server? Or FTP server?

it is http plain server

does rc7620 gsm modem supports http and https or not

I saw there is at+khttp command in the AT command user guide

can you please suggest http configuration steps for gsm modem to receive the bin file from http server

you can see here:

not cleared so much ,can you please elaborate little

which part is not clear?
Have you tried those commands?
Did you see the AT command user guide for the explanation of those commands?