# HL7650 FTP Commands

**URL:** <https://forum.sierrawireless.com/t/hl7650-ftp-commands/18621>\
**Category:** IoT Modules\
**Created:** [December 9, 2019, 3:52pm UTC](https://forum.sierrawireless.com/t/hl7650-ftp-commands/18621 "2019-12-09T15:52:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagarjuna1242](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nagarjuna1242](https://forum.sierrawireless.com/u/nagarjuna1242)\
**Post date:** [December 9, 2019, 3:52pm UTC](https://forum.sierrawireless.com/t/hl7650-ftp-commands/18621/1 "2019-12-09T15:52:29Z")

</div>

How to Send Files using FTP commands. i have done FTP but i am not able to downloading the files but i am able to fetch the inside text file data. how to download files using FTP .  
modem hl7650:  
AT+KFTPCFG=1,“[ftp.drivehq.com](http://ftp.drivehq.com)”,“username”,“password” //username and password i hided  
AT+KFTPRCV=1,"/",“1111.txt”,1 //receiving command  
output: Hello World \<\<EOF …\>\>  
iam able to reading the data but i want to be download the file. how to do could please help to me.

---

<div class="post-metadata">

**Author:** ![jerdung](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jerdung](https://forum.sierrawireless.com/u/jerdung)\
**Post date:** [December 10, 2019, 2:57am UTC](https://forum.sierrawireless.com/t/hl7650-ftp-commands/18621/2 "2019-12-10T02:57:53Z")

</div>

Hi,  
HL7650 does not have any OS, so it does not support download and save file. It can only show the content of that file. It looks like that it reads all the data of that file and displays to terminal.  
The command is that: AT+KFTPRCV=1,“the path of file on server”,“file name”, “type of data: binary or ascii”  
The response will be:  
CONNECT  
…the data of “file name” will be displayed here…–EOF–

And to send file to FTP server  
AT+KFTPSND=1,“path of file in server”,“file name”  
CONNECT  
—send data here---- --EOF–

The data will be sent to server and stored in “file name”

Thanks,

---

<div class="post-metadata">

**Author:** ![nagarjuna1242](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nagarjuna1242](https://forum.sierrawireless.com/u/nagarjuna1242)\
**Post date:** [December 10, 2019, 5:56pm UTC](https://forum.sierrawireless.com/t/hl7650-ftp-commands/18621/3 "2019-12-10T17:56:39Z")

</div>

i thanks to replay to me

Hi Jerdung

I read .zip file from FTP server using AT commands. I got the unreadable format data.  
I taken exactly data i used to online to converted it to zip format, after i did extract, after i am able to reading inside zip file data.

same way how to make the zip using python commands without going to online tool conversion.

---

<div class="post-metadata">

**Author:** ![jerdung](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jerdung](https://forum.sierrawireless.com/u/jerdung)\
**Post date:** [December 11, 2019, 1:57am UTC](https://forum.sierrawireless.com/t/hl7650-ftp-commands/18621/4 "2019-12-11T01:57:31Z")

</div>

Hi,  
Python has “zipfile” library to support zipped/unzipped files.  
You can find more details in [https://docs.python.org/3/library/zipfile.html](https://docs.python.org/3/library/zipfile.html) (for python version3.)  
[https://docs.python.org/2/library/zipfile.html](https://docs.python.org/2/library/zipfile.html) (for python version 2.)

Thanks,
