-->
Page 1 of 2

How to transfer binary file ??

PostPosted: Thu Dec 18, 2014 2:20 am
by ok1cdj
Hello, any idea how to transfer binary file to filesystem ??

Regards, Ondra

Re: How to transfer binary file ??

PostPosted: Thu Dec 18, 2014 10:02 am
by ThomasW
ok1cdj wrote:Hello, any idea how to transfer binary file to filesystem ??

Regards, Ondra


Hi,
If you're in a hurry and are adventurous you can try my experimental tftp-server (attached). It's not
cleaned up and a *very* basic implementation but worked for me so far...

Code: Select all-- Start:
tftpd=loadfile("tftpd.lua")():start()
-- Stop:
tftpd:stop() tftpd=nil

Usage Linux:
Code: Select all$ tftp 10.10.1.125
tftp> mode binary
tftp> put mybinary.dat
Sent 6263 bytes in 5.5 seconds
tftp>

Usage Windows:
Code: Select alltftp -i 10.10.1.125 put myfile.dat

You have to enable the tftp-client in Windows >=7 first:
To enable them, open Control Panel > Programs and Features > click Turn Windows features On or Off in left side > enable Client Telnet and Client TFTP then click in OK.


Good Luck ;)
Thomas

Edit: couldn't attach the file as .lua so it's .txt now...

Re: How to transfer binary file ??

PostPosted: Thu Dec 18, 2014 2:29 pm
by ok1cdj
Thank you very much... will try it asap.. i'm on linux, tftp is ok for me...

Regards, Ondra

Re: How to transfer binary file ??

PostPosted: Mon Dec 22, 2014 4:56 pm
by sej7278
seems a bit chicken and egg, how do we get tftpd.lua onto the chip to start with?