Hi,
I've downloaded the 0.6.2 version, running under Win XP. After spending some time trying to find the settings in various option files, let me ask following: 1. how to set a monospace font (or any other font params) for the "Target" (both normal and Terminal mode) window?? 2. how to set the Language to "eLua" such we can see the "additional features such as "syntax highlighting", "code folding" and "code completion" based on the eLua API" ? Thanks p. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Nuccio Raciti |
Il 01/07/2012 12:48, pito ha scritto:
> Hi, > I've downloaded the 0.6.2 version, running under Win XP. After > spending some time trying to find the settings in various option > files, let me ask following: > 1. how to set a monospace font (or any other font params) for the > "Target" (both normal and Terminal mode) window?? > 2. how to set the Language to "eLua" such we can see the > "additional features such as "syntax highlighting", "code folding" > and "code completion" based on the eLua API" ? > Thanks > p. > > _______________________________________________ > eLua-dev mailing list > [hidden email] > https://lists.berlios.de/mailman/listinfo/elua-dev > thank you for trying Go@: 1- the answer should be here: http://www.scintilla.org/SciTEFAQ.html#FixedWidth the involved file is the GoatGlobal.properties, (following is related to Windows): ***************************************************************************** # Give symbolic names to the set of fonts used in the standard styles. if PLAT_WIN font.base=font:Verdana,size:10 font.small=font:Verdana,size:8 font.comment=font:Comic Sans MS,size:9 font.code.comment.box=$(font.comment) font.code.comment.line=$(font.comment) font.code.comment.doc=$(font.comment) font.code.comment.nested=$(font.comment) font.text=font:Times New Roman,size:11 font.text.comment=font:Verdana,size:9 font.embedded.base=font:Verdana,size:9 font.embedded.comment=font:Comic Sans MS,size:8 font.monospace=font:Courier New,size:10 font.vbs=font:Lucida Sans Unicode,size:10 ****************************************************************************************** 2- In order to set the "Language" as elua, simply you need to create/open a file with extension ".lua" Regards, Nuccio _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Patrick Mc(avery |
Hi Nuccio
Is there a way to set a dark theme? Hope your doing great-Patrick _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
In reply to this post by Nuccio Raciti
Hi Nuccio,
thanks for the hints. >1- the answer should be here: >http://www.scintilla.org/SciTEFAQ.html#FixedWidth 1. the change to $(font.monospace) as described in SciteFaq does not help. The font in "Target window" is still not monospaced - see the enclosed picture. >2- In order to set the "Language" as elua, simply you need to >create/open a file with >extension ".lua" > 2. yes, that is the easy part :). However the eLua source is not highlighted as I can see on the videos :) - see enclosed picture. P. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Hi Nuccio
another experience (goat v0.6.2. WinXP, board stm32f4disco, elua from bike-nomad distro, com 115k 8N1): When uploading ie. hanoi.lua it takes 44.4secs when uploaded via goat. When uploaded with teraterm the same takes 4.3secs. The difference indicates an issue, I think. P. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Martin Guy |
On 1 July 2012 18:29, pito <[hidden email]> wrote:
> another experience (goat v0.6.2. WinXP, board stm32f4disco, elua > from bike-nomad distro, com 115k 8N1): > When uploading ie. hanoi.lua it takes 44.4secs when uploaded via > goat. > When uploaded with teraterm the same takes 4.3secs. > The difference indicates an issue, I think. Hi I found a similar speed difference in an apparently totally different scenario: when using the *same* client on the PC (minicom in this case), but the speed difference was between using the xmodem built in to the eLua shell and my own implementation of xmodem receiver written in Lua. The Lua one was much much faster for the same file. It's currently the only item under https://github.com/martinwguy/elua-tools I only mention it because it may, as you suggest, be a problem in Go@, but from my tests it may also be a timing problem between different implementations of xmodem, or of the variant of the protocol that it happens to use. Could you try my recv.lua with Go@ (if this is possible) and with teraterm and let us know how long these other combinations take? That might help us locate where the problem is Cheers M _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
> Could you try my recv.lua with Go@ (if this is
> possible) and with > teraterm and let us know how long these other > combinations take? > That might help us locate where the problem is Martin, I run your recv(). Teraterm: 1. on the fourth attemp it took the file and did run it. Maybe the timeout shall be tackled as it takes some time to select the right file for sending. When selecting the file it does nothing for ~4sec then it starts and downloads the file in ~4secs (info from the upload window). eLua# lua /mmc/recv1.lua Press CTRL+Z to exit Lua lua: /mmc/recv1.lua:18: attempt to call global 'recv1' (a nil value) stack traceback: /mmc/recv1.lua:18: in function 'purge' /mmc/recv1.lua:63: in function 'recvstring' /mmc/recv1.lua:88: in function 'recv' /mmc/recv1.lua:96: in main chunk [C]: ? eLua# eLua v0.8 Copyright (C) 2007-2011 www.eluaproject.net eLua# lua /mmc/recv1.lua Press CTRL+Z to exit Lua # # # # # ### # # # # # ## # # # # ##### ##### # # # # # # # # # # # ## # # # # # # # # # ### # C: New computer game P: New player game Q: Quit game --------------------------------- Goat: I am not successfull with the upload, it shoots immediately following: eLua# lua /mmc/recv1.lua Press CTRL+Z to exit Lua lua: /mmc/recv1.lua:18: attempt to call global 'recv1' (a nil value) stack traceback: /mmc/recv1.lua:18: in function 'purge' /mmc/recv1.lua:63: in function 'recvstring' /mmc/recv1.lua:88: in function 'recv' /mmc/recv1.lua:96: in main chunk [C]: ? eLua# ecv /mmc/hanoi.lua Invalid command, type 'help' for help eLua# p. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
> eLua# lua /mmc/recv1.lua > Press CTRL+Z to exit Lua recv1.lua is the name of your file (not the function). I run it with recv() placed at the end of your file.. p. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Martin Guy |
In reply to this post by Pito
Sorry folks, this thread went off-list by mistake. Thanks to the new
gmail interface :( ---------- Forwarded message ---------- From: Martin Guy <[hidden email]> Date: 2 July 2012 16:44 Subject: Re: [eLua-dev] The Go@IDE - xmodem upld speed To: pito <[hidden email]> On 2 July 2012 12:36, pito <[hidden email]> wrote: >> Could you try my recv.lua with Go@ (if this is >> possible) and with >> teraterm and let us know how long these other >> combinations take? > When selecting the file it does nothing for ~4sec then it starts and > downloads the file in ~4secs (info from the upload window). I implement the specification for xmodem exactly, and that is full fof 1-second and 10-second timeouts in some circumstances, so don't worry about the startup time. So it looks like the built-in xmodem is what is causing the 44-second upload time. > lua: /mmc/recv1.lua:18: attempt to call global 'recv1' (a nil value) Many thanks. It looks like, in my tests, purge() never got called. Fixed now in github > Goat: I am not successfull with the upload, it shoots immediately > following: > > eLua# lua /mmc/recv1.lua > Press CTRL+Z to exit Lua > lua: /mmc/recv1.lua:18: attempt to call global 'recv1' (a nil > value) Please try again now. Thanks for you help _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Martin Guy |
In reply to this post by Pito
---------- Forwarded message ----------
From: pito <[hidden email]> Date: 2 July 2012 17:31 Subject: Re: [eLua-dev] The Go@IDE - xmodem upld speed To: [hidden email] > Please try again now. > 1. Once it shooted immediately following: eLua# lua /mmc/recvn.lua Press CTRL+Z to exit Lua lua: /mmc/recvn.lua:27: bad argument #1 to 'match' (string expected, got nil) stack traceback: [C]: in function 'match' /mmc/recvn.lua:27: in function 'trim' /mmc/recvn.lua:61: in function 'recvstring' /mmc/recvn.lua:88: in function 'recv' /mmc/recvn.lua:96: in main chunk [C]: ? eLua# 2. Most attempts it does not upload, when the TT upload window is closed it hangs, ctrl-z does not work, a reset is required: eLua# lua /mmc/recvn.lua Press CTRL+Z to exit Lua eLua v0.8 Copyright (C) 2007-2011 www.eluaproject.net eLua# lua /mmc/recvn.lua Press CTRL+Z to exit Lua 3. One Q - I put recv() at the end of the recv.lua fle in order tu run it. It is the correct way how to run your script? p/ _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Martin Guy |
In reply to this post by Pito
---------- Forwarded message ----------
From: Martin Guy <[hidden email]> Date: 3 July 2012 12:41 Subject: Re: [eLua-dev] The Go@IDE - xmodem upld speed To: pito <[hidden email]> On 2 July 2012 17:31, pito <[hidden email]> wrote: > 1. Once it shooted immediately following: > eLua# lua /mmc/recvn.lua > Press CTRL+Z to exit Lua > lua: /mmc/recvn.lua:27: bad argument #1 to 'match' (string expected, > got nil) > stack traceback: > [C]: in function 'match' > /mmc/recvn.lua:27: in function 'trim' > /mmc/recvn.lua:61: in function 'recvstring' This happened if the client sent an EOT packet as the first packet with no data packets. I've fixed this as well (many thanks again!) - it looks like I need to make it more robust against funny clients. > 3. One Q - I put recv() at the end of the recv.lua fle in order to > run it. It is the correct way how to run your script? Yes, that should work. For me, its purpose was an alternative to the built-in xmodem for systems that do not have ROM space for the eLua shell, so I was putting the script in autorun.lua and then saying recv() or recv "/mmc/hanoi.lua" at the Lua prompt. If you fancy keep trying with it I would be grateful, but I won't be able to test it myself for a couple of days while I am out of town Thanks again for you perseverance and help! M _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Martin Guy |
In reply to this post by Pito
---------- Forwarded message ----------
From: pito <[hidden email]> Date: 3 July 2012 13:22 Subject: Re: [eLua-dev] The Go@IDE - xmodem upld speed To: [hidden email], [hidden email] Hmm, quite tricky, indeed :) Teraterm: 1. uploading a file with TT and original recv (written in C) works perfectly (except the 64kB limit) 2. when running your latest recv script: - first attempt - it waited for ~15secs (download indication window open), and then it uploaded the file, and it run it - all others attempts: after ~1minute the download indication window closed itself and finished a) at eLua prompt, or, b) it hanged so I did reset. Goat: 1. when running your latest recv script: - once it uploaded after ~40secs (I saw 2 NAKs) - all other attempts were not successfull - it waits, I see 5-6NAKs after 3minutes ;( p. _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
In reply to this post by Martin Guy
Hi Folks,
Is there any support (code/library) for OneWire devices? Don't mind having a hack at one but thought I better ask first to save myself some pain! Cheers, TiM _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
http://www.omnima.co.uk/forums/index.php?showtopic=209 I see they have forked ELua code here to support among other things OneWire via a OneWire controller chip. Chip is less than $1 so maybe that is an easy option? TiM ----- Original Message ----- From: "Tim Van Der Hulst" <[hidden email]> To: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]> Sent: Thursday, July 5, 2012 3:11:21 PM Subject: [eLua-dev] OneWire Hi Folks, Is there any support (code/library) for OneWire devices? Don't mind having a hack at one but thought I better ask first to save myself some pain! Cheers, TiM _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
code looks very similar with Arduino implementation :P
https://github.com/omnima/elua/blob/master/src/platform/stm32/ow.c Arduino: http://www.pjrc.com/teensy/arduino_libraries/OneWire.zip ------------ Being a newbie I have no idea, so I could in theory use this code and not need the 1-wire hardware controller chip? Help!~ TiM ----- Original Message ----- From: "Tim Van Der Hulst" <[hidden email]> To: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]> Sent: Thursday, July 5, 2012 3:59:54 PM Subject: Re: [eLua-dev] OneWire http://www.omnima.co.uk/forums/index.php?showtopic=209 I see they have forked ELua code here to support among other things OneWire via a OneWire controller chip. Chip is less than $1 so maybe that is an easy option? TiM ----- Original Message ----- From: "Tim Van Der Hulst" <[hidden email]> To: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]> Sent: Thursday, July 5, 2012 3:11:21 PM Subject: [eLua-dev] OneWire Hi Folks, Is there any support (code/library) for OneWire devices? Don't mind having a hack at one but thought I better ask first to save myself some pain! Cheers, TiM _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Tim Van Der Hulst |
Hi there,
Might be coffee time but... dofile('/mmc/test.lua') -- OK require('test') -- Fail!! ------------- /mmc test.txt 5 bytes gprs.lua 2910 bytes util.lua 385 bytes test.lua 385 bytes Total on /mmc: 3685 bytes ------------- Error: [string "xmodem"]:23: module 'test' not found: no field package.preload['test'] no file '/mmc/test.lua;/mmc/test.lc;/rom/test.lua;/rom/test.lc' no file '/mmc/test.lc;/rom/test.lua;/rom/test.lc' no file '/rom/test.lua;/rom/test.lc' no file '/rom/test.lc' ------------ I'm running on platform STM32 The CPU is a STM32F103RE The board name is ET-STM32 ------------ Help please! TiM _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Thiago Naves |
Add
local module_name = module_name like local pio = pio local uart = uart local string = string for each module you wish to use in the code at the beginning of your file, then add a module (...) after that to make you file into a module. Then you'll be able to use the require, but the dofile will not work. I've attached my MIDI module as an example. Best, Thiago On Thu, Jul 5, 2012 at 6:31 PM, Tim Van Der Hulst <[hidden email]> wrote: Hi there, _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev eluamidi.lua (26K) Download Attachment |
Hi,
Wiki has some text (but no links/content) to GSM / GPRS: GSM / GPRS Q64 and Q100 - Wavecom/Sierra Wireless GPRS modems support for eLua TC65 - Siemens GPRS modem support for eLua Radio links 2.4GHz - ---------------------- Anyone have further light on this? Implementing some or most of the application logic/guidelines here is my ideal goal: http://m2m.com/docs/DOC-1007 Tech Notes - Connected Device Design Guidelines and Common AT Commands Will keep developing my own library in case others interested but keen to find other code samples as I am an ELua noobie. TiM _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Tim Van Der Hulst |
In reply to this post by Thiago Naves
I most definately have
module(...) in my file, yet it still fails! received and saved as /mmc/gprs.lua eLua# recv Waiting for file .done, got 641 bytes -------------- Error: [string "xmodem"]:26: module 'gprs' not found: no field package.preload['gprs'] no file '/mmc/gprs.lua;/mmc/gprs.lc;/rom/gprs.lua;/rom/gprs.lc' no file '/mmc/gprs.lc;/rom/gprs.lua;/rom/gprs.lc' no file '/rom/gprs.lua;/rom/gprs.lc' no file '/rom/gprs.lc' eLua# -------- I see a very old (2008) thread semi related: https://lists.berlios.de/pipermail/elua-dev/2008-November/000102.html [eLua-dev] Require(path/modulename) -------- Not sure what to test further, TiM ----- Original Message ----- From: "Thiago Naves" <[hidden email]> To: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]> Sent: Friday, July 6, 2012 12:47:59 PM Subject: Re: [eLua-dev] mmc - dofile OK, require Fails Add local module_name = module_name like local pio = pio local uart = uart local string = string for each module you wish to use in the code at the beginning of your file, then add a module (...) after that to make you file into a module. Then you'll be able to use the require, but the dofile will not work. I've attached my MIDI module as an example. Best, Thiago On Thu, Jul 5, 2012 at 6:31 PM, Tim Van Der Hulst < [hidden email] > wrote: Hi there, Might be coffee time but... dofile('/mmc/test.lua') -- OK require('test') -- Fail!! ------------- /mmc test.txt 5 bytes gprs.lua 2910 bytes util.lua 385 bytes test.lua 385 bytes Total on /mmc: 3685 bytes ------------- Error: [string "xmodem"]:23: module 'test' not found: no field package.preload['test'] no file '/mmc/test.lua;/mmc/ test.lc ;/rom/test.lua;/rom/ test.lc ' no file '/mmc/ test.lc ;/rom/test.lua;/rom/ test.lc ' no file '/rom/test.lua;/rom/ test.lc ' no file '/rom/ test.lc ' ------------ I'm running on platform STM32 The CPU is a STM32F103RE The board name is ET-STM32 ------------ Help please! TiM _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Tim Van Der Hulst |
related:
http://elua-development.2368040.n2.nabble.com/Problem-to-import-module-in-eLua-LM3S-td7455874.html Can someone confirm for STM32 the "require" function works? TiM ----- Original Message ----- From: "Tim Van Der Hulst" <[hidden email]> To: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]> Sent: Monday, July 9, 2012 4:00:02 PM Subject: Re: [eLua-dev] mmc - dofile OK, require Fails I most definately have module(...) in my file, yet it still fails! received and saved as /mmc/gprs.lua eLua# recv Waiting for file .done, got 641 bytes -------------- Error: [string "xmodem"]:26: module 'gprs' not found: no field package.preload['gprs'] no file '/mmc/gprs.lua;/mmc/gprs.lc;/rom/gprs.lua;/rom/gprs.lc' no file '/mmc/gprs.lc;/rom/gprs.lua;/rom/gprs.lc' no file '/rom/gprs.lua;/rom/gprs.lc' no file '/rom/gprs.lc' eLua# -------- I see a very old (2008) thread semi related: https://lists.berlios.de/pipermail/elua-dev/2008-November/000102.html [eLua-dev] Require(path/modulename) -------- Not sure what to test further, TiM ----- Original Message ----- From: "Thiago Naves" <[hidden email]> To: "eLua Users and Development List (www.eluaproject.net)" <[hidden email]> Sent: Friday, July 6, 2012 12:47:59 PM Subject: Re: [eLua-dev] mmc - dofile OK, require Fails Add local module_name = module_name like local pio = pio local uart = uart local string = string for each module you wish to use in the code at the beginning of your file, then add a module (...) after that to make you file into a module. Then you'll be able to use the require, but the dofile will not work. I've attached my MIDI module as an example. Best, Thiago On Thu, Jul 5, 2012 at 6:31 PM, Tim Van Der Hulst < [hidden email] > wrote: Hi there, Might be coffee time but... dofile('/mmc/test.lua') -- OK require('test') -- Fail!! ------------- /mmc test.txt 5 bytes gprs.lua 2910 bytes util.lua 385 bytes test.lua 385 bytes Total on /mmc: 3685 bytes ------------- Error: [string "xmodem"]:23: module 'test' not found: no field package.preload['test'] no file '/mmc/test.lua;/mmc/ test.lc ;/rom/test.lua;/rom/ test.lc ' no file '/mmc/ test.lc ;/rom/test.lua;/rom/ test.lc ' no file '/rom/test.lua;/rom/ test.lc ' no file '/rom/ test.lc ' ------------ I'm running on platform STM32 The CPU is a STM32F103RE The board name is ET-STM32 ------------ Help please! TiM _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |