These are chat archives for SmingHub/Sming

7th
Nov 2015
crosofg
@crosofg
Nov 07 2015 06:52
is there anything like virtual emulator for ESP8266 for testing
Dmitry Kireev
@kireevco
Nov 07 2015 06:52
@crosofg nothing that is ready
crosofg
@crosofg
Nov 07 2015 06:52
ok
Dmitry Kireev
@kireevco
Nov 07 2015 06:52
there is something for xtensa platform
you can write a simulator :)
that will simulate sming code :)
crosofg
@crosofg
Nov 07 2015 06:59
I still dont completely undestand a lot of sming code
Dmitry Kireev
@kireevco
Nov 07 2015 06:59
You can start from basics. Simulate http server?
I was thinking to do that, but then the need went away
crosofg
@crosofg
Nov 07 2015 07:02
i dont know a lot of coding . I wouldnt know where to start. I am highly dependent on tutorials and examples
Dmitry Kireev
@kireevco
Nov 07 2015 07:02
@crosofg what language do oyu normally code in?
crosofg
@crosofg
Nov 07 2015 07:09
C++, I am mostly a hw guy.
Dmitry Kireev
@kireevco
Nov 07 2015 07:09
ah, I see.
check this
it might work actuall...
one day I was able to expose stuff via gdb
qemu-system-xtensa -M esp8266 -nographic -serial stdio -monitor none -s
@crosofg try it please and let us all know, we might have an emulator...
crosofg
@crosofg
Nov 07 2015 07:15
yeah. will try to figure out
Dmitry Kireev
@kireevco
Nov 07 2015 07:19
are you on windows or linux?
@crosofg
crosofg
@crosofg
Nov 07 2015 07:20
windows
@kireevco
Dmitry Kireev
@kireevco
Nov 07 2015 07:20
ok so you have a shorter path, try the binary
crosofg
@crosofg
Nov 07 2015 07:27
This message was deleted
Do you mean qemu-system-xtensa.exe right?
alonewolfx2
@alonewolfx2
Nov 07 2015 07:52
@kireevco do you know reliable seller for 32mbit esp12 module? I need a couple modules.
zhivko
@zhivko
Nov 07 2015 09:25
@hreintke rboot bios is nice feature. Can you estimate time scope for all that features?
hreintke
@hreintke
Nov 07 2015 11:32
@crosofg : are you in ?
icodk
@icodk
Nov 07 2015 12:12
Question regarding Serial interface:
hreintke
@hreintke
Nov 07 2015 12:15

@crosofg :
It is the debugf(...) statement which is causing the crash.
Easy testing : Serial.systemDebugOutput(false) in your application.
Solution : in line 226 of httprequest.cpp change the debugf
from :

debugf("Item: %s = %s", ItemName.c_str(), ItemValue.c_str());

to :

debugf("Item: Name = %s, Size = %d, Value = %s",ItemName.c_str(),ItemValue.length(),ItemValue.substring(0,80).c_str());

I see you want to get into coding/debugging. If it works you can submit a PR to get this update into Sming Framework :smile:
BTW there is limit on size `NETWORK_MAX_HTTP_PARSING_LEN 4096 which you might hit but that will give you a decent debug message. Don't know yet what the consequences of enlarging are

icodk
@icodk
Nov 07 2015 12:15
ESP has UART1 and UART0 . UART1 is Tx only (on GPIO2). Is there any sming best practice to choose between the two whe doing Serial.printf
hreintke
@hreintke
Nov 07 2015 12:28
@icodk : No, there is currently no support for UART1 in Sming
hreintke
@hreintke
Nov 07 2015 12:45
@zhivko : No timeframe yet. Working on the basics now. Getting a generic layer is important now, which also needs confirmation that rBoot will support. Otherwise we/I have to write a lot of duplicate code. However, will share when first drafts/alpha versions are available.
jmccoy555
@jmccoy555
Nov 07 2015 16:25
Hi, anyone here using a DHT22..... does it only publish when the temp has changed?
crosofg
@crosofg
Nov 07 2015 17:29
@hreintke i made a PR for it.
Dmitry Kireev
@kireevco
Nov 07 2015 18:03
@crosofg wha’ts going on? any luck with the emulator?:)
hreintke
@hreintke
Nov 07 2015 21:42
@crosofg : Thx, Hope it will be the first of your contributions.
I know there is "little" documentation but just start with looking thru some code and interpret/add debug messages.
And of course ask questions here if you need help