Posted by
Martin Guy on
URL: http://elua-development.15.s1.nabble.com/Proper-use-of-sx-tp7578110p7578114.html
On 7 August 2013 21:24, Richard Möhn <
[hidden email]> wrote:
> On Wed, Aug 07, 2013 at 08:26:58AM -0500, Patrick Barrett wrote:
>> I've had success using:
>>
>> sx -bl 32 config.lua
>>
>> Best of Luck
>
> Thanks for your responses, Raman and Patrick. sx sends 128 byte packets
> as I understand it and the above version of sx doesn't work either. (My
> fault, probably, but I don't know what I'm doing wrong.) I have even
> experimented with TeraTerm on wine, but that's worse.
>
> Next I'll be trying TeraTerm on a Windows machine and then, possibly,
> write my own program for sending. Or is there a better way still?
It also depends on the elua end, since there are several flavours of
XMODEM protocol.
While working on our 120KB flash image, where there is no space for
the shell, I wrote an xmodem receiver in Lua that works the same way
as the build-in shell one. It's small, so implements the barest subset
of XMODEM. In my tests (with minicom on Linux as the host end) it
transferred data faster than the built-in elua xmodem written in C,
probably due to better luck with protocol timing windows. You could
give it a try and see if it and your Windows box like each other
better.
Usage is to put it in "recv.lua" on the embedded board (on SD card
or in the ROMFS), then say
require "recv"
to the Lua prompt. You can they use it the same as the "recv"
builtin, to store the data in a file or to put it in RAM and run it
directly.
https://github.com/martinwguy/elua-toolsEnjoy :)
<
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev