doit_yp
Posts: 21
Joined: Wed Aug 19, 2015 1:06 am

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Thu Nov 26, 2015 10:10 am

KevinA wrote:@yangping
Will this be in the MiFiMCU Lua ?
I could use RTC!
Thanks


We are working on it.
Recently Many bugs are fixed in wifimcu 0.9.6.
and a new version merged with loboris' work will be released later in days.
The new version(0.9.7) will be more efficiency and more stable.
Software engineer from DoIT
yangping@doit.am

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Sun Nov 29, 2015 9:11 pm

keithr wrote:Thanks for your work Loboris, itis good to see the improvements that you have made.
I am having a problem trying to connect to an AM2302 (DHT22 clone) with 0.9.7_lobo_0.3 using the sensor module. If I enter

Code: Select all

=sensor.dht11.init(pin)

I should see either "1" or "0" depending on whether the device connects or not. I am however seeing "nil" instead.

BTW the manual mistakenly uses "DTH11" instead of "DHT11"

I'll get DHT22 in couple of days and I'll test it.

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Sun Nov 29, 2015 9:47 pm

UPDATED to 0.9.7_lobo_0.5

Added system parameters which can be modified to set the basic Lua system behavior. The parameters are saved in the parameter area of the WiFiMCU SPI Flash (protected with CRC) and are preserved between reboots/power cycles. The parameters can be set with mcu.setparams() function and read with mcu.getparams & mcu.sgetparams functions.

soft_wdg selects software or hardware watchdog function (default: 0 = hardware; 1 = software)
wdg_tmo watchdog timeout in seconds miliseconds (default: 10000)
stack_size size of the Lua thread stack in bytes (default: 20KB)
inbuf_size size of the Lua input buffer in bytes (default: 256)
baud_rate baud rate of the Lua terminal (default: 115200)
parity parity used in Lua terminal (default: ‘n’, no parity)
init_file name of the file which is executed on system start, if the name is “”, no file is executed. (default: “”)

If some wrong parameters are set, and the system wont start, the parameters can be restored to the default values in bootloader,
executing 3 -e command.

Added two types of watchdog:
Hardware watchdog (type 0) is STM32F411CE IWDG timer which is set on system start and cannot be disabled. The IWDG is enabled even in STOP mode, so you cannot use STOP power save mode if this type of watchdog is used.
Software watchdog (type 1) is simple RTOS timer. It does not run in STOP mode, so it is possible to use STOP power save mode with this watchdog type, but the system will not be protected from some “Hard Fault” errors.

Added functions to upload/download the files using ymodem protocol, file.recv() & file.send(). Files can now be uploaded/downloaded using any terminal software which supports ymodem file transfer.

Some fixes and improvements in code.

Bootloader updated to use CRC checking when receiving the file (wasn't active before), so the transfer is now more reliable. Also added function do erase Lua SPI Flash FS partition

Updated documentation (WiFiMCU LUA Reference_9.7-lobo.pdf).

You can find the new version on GitHub.
Binaries are in binary directory, documentation in Document/WiFiMCU directory.

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Fri Dec 04, 2015 4:16 pm

UPDATED to Ver. 0.9.8_LoBo

  • fixed some problems with Ymodem upload (file.send()), tested with SecureCRT (Windows) and minicom (Linux)
  • merged some changes from DoIt related to execution of functions from gpio & timer interrupts
  • fixed detection of the boot reason
  • many minor fixes and enhancements
  • bootloader updated

keithr
Posts: 5
Joined: Wed Nov 04, 2015 4:33 am

Problem with the sensor module

Thu Dec 10, 2015 4:09 am

I have been trying to use the sensor module with a DHT22. The DHT22 that I am using returns the correct values on an ESP8266 using NodeMCU but under WiFiMCU this is what I get.

Code: Select all

WiFiMCU>
WiFiMCU Lua starting...(Free memory 55168/69632)
  Lua params: OK
    Watchdog: hardware (IWDT).
 Boot reason: BOR_RST
Current Time: Mon Apr  8 12:54:50 2013



[ Ver.  0.9.8_LoBo WiFiMCU Team     ]
[ Build 20151204   modified by LoBo ]


Init file not defined.
> =sensor.dht11.init(8)
true
> =sensor.dht11.get()
0   0
>


(edited for spelling mistake)

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Thu Dec 10, 2015 1:58 pm

UPDATED to Ver. 0.9.9_LoBo

  • fixed bugs in DHT11, support for DHT22 added (must be selected in sensor.dht11.init() function, see WiFiMCU LUA Reference
  • added lcd module with support for cheap 128x160 TFT modules
    • complete set of text, graphic and image functions (including rotated text, 7-segment vector font, rect,circle,triangle (optionaly filled)
    • works with hardware SPI (recommended, 50MHz clock) and software SPI (up to 5 MHz clock)
    • very fast if using hardware SPI (shows 16bit color, 160x128 image from file in 0.1 sec)

Read WiFiMCU LUA Reference_9.9-lobo.pdf for more info.

Image

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Fri Dec 11, 2015 5:26 pm

UPDATED to Ver. 0.9.9a_LoBo

  • some fixes and enhancements in lcd module
Read WiFiMCU LUA Reference_9.9-lobo.pdf for more info.

doit_yp
Posts: 21
Joined: Wed Aug 19, 2015 1:06 am

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Sun Dec 13, 2015 3:17 am

Very Great work.
At present, we are participating a smart hardware design competition held by Mxchip.inc.
http://www.huodongxing.com/event/1304916555300
We are sure that WiFiMCU would be known by more devoploer or students via this competition.
Software engineer from DoIT
yangping@doit.am

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Sun Dec 13, 2015 2:13 pm

UPDATED to Ver. 0.9.10_LoBo

  • some fixes in net module (better handling of 'ON' events)
  • added dostring() function
  • added redirection of standard output to string buffer (used in dostring(), see telnetserv.lua example)
  • added telnet server example (Document/WiFiMCU/demos/5 net/telnetserv.lua)
    • starts telnet server on port 2323
    • connect with telnet client, execute any lua command (lua interpreter)
    • you can use it as remote LUA console from your LAN (or Internet)
    • edit to change SSID & password
    • requires ver. >= 0.9.10_LoBo

loboris
Posts: 40
Joined: Tue Sep 15, 2015 7:47 am
Location: Zagreb, Croatia

Re: WiFiMCU LUA ported to MICO 2.3.0.2

Sun Dec 20, 2015 4:50 pm

UPDATED to Ver. 0.9.11_LoBo

  • improved watchdog (now uses STM32f411 WWDG (Window watchdog) for watchdog type 1)
  • Improved UART module
    • Improved ON (data) function handling
    • Added uart.recv() and uart.recvstat() functions
    • Added software emulated UART
      • TX & RX can be assigned to any GPIO pin
      • Full duplex 1200 ~ 115200 bd
      • even, odd, no parity
      • 5 ~ 9 data bits
      • 1 ~ 2 stop bits
      • ON (data) function callback supported

See WiFiMCU LUA Reference_9.11-lobo.pdf for details.


Return to “WiFiMCU”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest