-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitecat console tool, for transfer files without an IDE #56
Comments
For now the only way i found is to open editor in remote terminal, go to
lua program on windows editor and coppy all program code (with ctrl A) ,
then with right click on linux remote terminal copy the code. Than save
it.... I try to find same solution like ssh terminal......
LD
…On 24 July 2017 at 21:24, fjolliton ***@***.***> wrote:
Hi.
I'm playing with an ESP32 Thing from Sparkfun. I like the idea of using a
lightweight scripting language to simplify programming on this board, so I
installed Lua RTOS on it.
However, to my surprise, I found nowhere how to transfer a Lua file from a
Linux terminal to the board.
I searched every terms I could think of. I read a good part of the wiki
(all the pages that seemed relevant). I tried ESPlorer (but that seems
targeted only at NodeMCU, not Lua RTOS).
Maybe it's not possible and there is no simple tool for Linux to achieve
that. But either ways, I think it might be a good idea to talk about that
in the documentation (whether it's feasible or not.)
I don't think the only way is to rebuild the FS image and then flashes it
each time. Right?
With NodeMCU, there is a tool (nodemcu-uploader) to download/upload file.
I was expecting something similar for Lua RTOS.
How do you transfer a single file (without an IDE)? I can't be the only
one wondering about that.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#56>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AI_mxov0nrIIeqD1lc5kKZ0ddbvtbXzDks5sRO9igaJpZM4OhoNO>
.
--
Mag. Boštjan Šuhel
Kajuhova 3, SI3270 Laško, Slovenia
MŠ: 6927840000 DŠ:98351133
++386 (0) 64 11 22 00
Spletna stran <https://sites.google.com/site/bostjansuhel/>
|
Hi @fjolliton, @bsuhel, File transfers can be easily using The Whitecat IDE. Whitecat IDE is available at http://ide.whitecatboard.org. This IDE allows the programmer to develop programs for Lua RTOS using Lua, or blocks. You can find relevant wiki for the IDE at https://github.com/whitecatboard/whitecat-ide/wiki The IDE needs The Whitecat Create Agent, a small piece of software that runs on your computer, and allows the communication beetween a Lua RTOS device and The Whitecat IDE. We can reuse some parts of the The Whitecat Create Agent for create a command line tool for transfer files to a Lua RTOS board if it's really required by the community, but using The Whitecat IDE you have more functionalities:
Please, give me your feedback about our proposal, and the need to develop or not to develop the command line tool. Best regards, Jaume |
Just to clarify things, I was looking for a very simple tool. I do not want to download an entire IDE, or figure how to extract the part that manage file transfer. The IDE is probably nice and convenient for a lot of tasks (and your website seems to indicates that lot of efforts is put into it, which is great for the future of theses boards), but I'm used to Emacs and I use terminal for automating everything. So I just made a tool in Python in the past hour to transfer files myself. I put the source at http://tuxee.net/lua_rtos_transfer.py.txt for anyone interested. It's barely functional, but it works for my specific case (transfering a Lua file from my PC to the board in the most easiest way possible). A command line tool seems mandatory from my point of view. Not everyone use an IDE. Thanks for your feedback. |
This issue is now an enhancement |
Please take a look at this new repo, with first version of the requested tool. List files in /examples directory: Download system.lua file and store it as s.lua in your computer: Upload s.lua file and store it as system.lua in your board: Note: it's a go program and works on Mac OS, Linux and Windows. We can provide build versions if you send us your private mails until binaries will not be published online (we must test it before). |
Sorry, my mail: |
Sounds great! I will try it later today. |
You can upgrade the board with last available firmware from the tool. ./wcc -p /dev/tty.SLAB_USBtoUART -f |
That seems to work nicely. Two little issues:
I can open an issue on the Anyway, this is exactly the kind of convenient tool I was expecting. Thanks :) |
Thanks for report this, Solved in whitecatboard/whitecat-console@6e425be Please, give us an star in Lua RTOS github, if you want, and you think that Lua RTOS is useful. This helps the Lua RTOS to be better known and reach more people. ;) |
Hi.
I'm playing with an ESP32 Thing from Sparkfun. I like the idea of using a lightweight scripting language to simplify programming on this board, so I installed Lua RTOS on it.
However, to my surprise, I found nowhere how to transfer a Lua file from a Linux terminal to the board.
I searched every terms I could think of. I read a good part of the wiki (all the pages that seemed relevant). I tried ESPlorer (but that seems targeted only at NodeMCU, not Lua RTOS).
Maybe it's not possible and there is no simple tool for Linux to achieve that. But either ways, I think it might be a good idea to talk about that in the documentation (whether it's feasible or not.)
I don't think the only way is to rebuild the FS image and then flashes it each time. Right?
With NodeMCU, there is a tool (nodemcu-uploader) to download/upload file. I was expecting something similar for Lua RTOS.
How do you transfer a single file (without an IDE)? I can't be the only one wondering about that.
The text was updated successfully, but these errors were encountered: