These are chat archives for SmingHub/Sming

2nd
Dec 2015
David
@dmarkey
Dec 02 2015 00:05
Anyone try 1.5 yet?
has WPA enterprise support
zhivko
@zhivko
Dec 02 2015 06:44
@dmarkey i tried it works with sming
@dmarkey but not tested every (new) functionality
Wpa2 is ok for me
slaff
@slaff
Dec 02 2015 08:00
@crosofg Did you use the gdb-dev branch? Most of the issues are handled there. If you want write me a private message or directly at slaff@linux-bg.org and we can check this together.
alonewolfx2
@alonewolfx2
Dec 02 2015 08:35
@dmarkey I tried too. Wpa2 is OK
alon24
@alon24
Dec 02 2015 09:34
Do we know if the esp8266 arduino peopole are going to move to RTOS??
maybe join forces somehow?
alonewolfx2
@alonewolfx2
Dec 02 2015 09:38
I think if we can use rtos sdk it will very good for multitasking
robotiko
@robotiko
Dec 02 2015 09:46
there is another project
that uses rtos
and is similar in conception to sming ..
issue.. what @hreintke mentions the c++ support
(somehow tehy started and have an example on using c++)
and that is not that mature in terms of lib support
(not tested)
teh good
ssl support
rboot ota
;)
hreintke
@hreintke
Dec 02 2015 10:09
I have seen the esp-open-rtos project. But "Recent releases of the Espressif IoT RTOS SDK cannot be merged"
I don't know how this will work together with future Esspressif RTOS releases and ESP32 RTOS
BTW : Not saying that we not should investigate.
alon24
@alon24
Dec 02 2015 10:10
Checkout the new iteration of Infoscreen, now also a menu, with 1 button menu support : https://github.com/alon24/InfoScreens
alonewolfx2
@alonewolfx2
Dec 02 2015 10:37
@robotiko i saw that link but it has limited cpp support
robotiko
@robotiko
Dec 02 2015 10:37
ayes
yes :D
alonewolfx2
@alonewolfx2
Dec 02 2015 10:38
And it seems it has tftp
robotiko
@robotiko
Dec 02 2015 10:38
issue.. what @hreintke mentions the c++ support
(somehow tehy started and have an example on using c++)
yes is one of teh advantages of having ssl support
didnt look at
but that allows to direct OTA update from IDE
without server config
alonewolfx2
@alonewolfx2
Dec 02 2015 10:42
And how can we integrate rtos into the sming
robotiko
@robotiko
Dec 02 2015 10:43
good question
alonewolfx2
@alonewolfx2
Dec 02 2015 10:43
And if we can, what is real different for rtos based sming g
open-home-automation
@open-home-automation
Dec 02 2015 10:46
Hi guys
I was wondering, Sming has its own lwip source
And I suppose that is the one used by the ESP, not the one in the SDK
hreintke
@hreintke
Dec 02 2015 11:15
@open-home-automation :
Your are wrong in your assumption on own LWIP source. I know there is a http://bbs.espressif.com/viewtopic.php?f=46&t=1221 but that is not included in sming
open-home-automation
@open-home-automation
Dec 02 2015 11:34
damn :-(
could the very same source be recompiled or is that unavailable?
open-home-automation
@open-home-automation
Dec 02 2015 11:41
In other words, if I add that source to my application, will the linker use my code instead of the SDK provided one? And is it supposed to work?
hreintke
@hreintke
Dec 02 2015 12:01
No idea : ;)
Dmitry Kireev
@kireevco
Dec 02 2015 12:19
I looked at esp_open_rtos project, and what I can say, though it is impressive that they implemented this, the implementation doesn't look nice to me, as Sming or Arduino does
maybe on small examples it looks worse because of all multitasking stuff, but my question - why?
well, actually, it's not bad
robotiko
@robotiko
Dec 02 2015 12:24
@kireevco that project is less mature
however moves fast
it is more focused on havign a workign thing
Dmitry Kireev
@kireevco
Dec 02 2015 12:24
yeah
robotiko
@robotiko
Dec 02 2015 12:24
than havign a mutiplatform robust
there are many things solved in sming
that are not even contemplated there.. thigs for usability
sming is more "user friendly" and nicer in design
so ..as 10.000 feet view
if sming could use teh rtos base
it would make sense to join efforts into sming as more mature..and evolved
but that requires the evalutaion and deep changes of having rtos in sming
Dmitry Kireev
@kireevco
Dec 02 2015 12:27
hehe. joining forces usually means "try to collaborate and then just do it yourself" :-D
but yes :)
zhivko
@zhivko
Dec 02 2015 16:36

@hreintke: unfortunately I was too busy, and I could made a test just now for:

IRAM_ATTR delayMicroseconds(uint32_t time)

IRAM_ATTR must be in front of delayMicroseconds in .h AND .cpp - if not resets are happening.

As you may remember I use:

extern Hardware_Timer hardwareTimer;

in my application.cpp

zhivko
@zhivko
Dec 02 2015 16:42
@robotiko: any progress on gpio9?
robotiko
@robotiko
Dec 02 2015 16:47
@zhivko not yet
had no time to check with nodemcu lua
zhivko
@zhivko
Dec 02 2015 16:55
you suspect that in nodemcu lua gio9 write works ?
Maybe there is github room nor nodemcu and maybe we can ask somebody there to do a test - what do you think?
robotiko
@robotiko
Dec 02 2015 16:57
there are post in esp8266 with people that can use gpio9 in nodemcu
zhivko
@zhivko
Dec 02 2015 16:59
ughhh than it is very strange we have problem with gpio9 in sming - it is not special as gpio16 ;)
robotiko
@robotiko
Dec 02 2015 16:59
well is also special
used for flash when in qio
hreintke
@hreintke
Dec 02 2015 17:06
@zhivko : Thanks for testing. If you create the PR for that, I will merge into develop (just before code freeze :smile: )
Richard Antony Burton
@raburton
Dec 02 2015 17:07
@hreintke i've added the requested file to the esptool.py issue, hopefully we'll get some useful information back
hreintke
@hreintke
Dec 02 2015 17:09
@raburton : There was also mentioned a compiler option (sections ??) would that be a possible solution ?
Richard Antony Burton
@raburton
Dec 02 2015 18:31
we already use that option
alonewolfx2
@alonewolfx2
Dec 02 2015 20:24
@all @icodk ported mfrc522 library into the sming :)
zhivko
@zhivko
Dec 02 2015 20:39
@hreintke : there is my d158d32 commit that fixes this - I dont know how to create PR with only this change - github shows a lot of other changes done in my project when I want to create PR. Can you do that with d158d32 ?
zhivko
@zhivko
Dec 02 2015 20:47
@hreintke: can you work with this: SmingHub/Sming@d158d32
robotiko
@robotiko
Dec 02 2015 21:27
@all
anyone is having gpio09 working properly in esp12?
when driving as output I get continuous reset on nodemcu devkit 1
that support dio mode to free that pin
@raburton I checked the image generated 0x0000.bin
should have third byte as 0x02 but it is 0x00
I recall readign somewhere that esptool does it "on the fly"
not changing the bin
any clue?
any help
anyone?
Richard Antony Burton
@raburton
Dec 02 2015 21:30
esptool.py does (as long as you specify the correct command line option), dodgy windows version probably don;t
robotiko
@robotiko
Dec 02 2015 21:30
:D
thanks man
Richard Antony Burton
@raburton
Dec 02 2015 21:31
if you are using esptool2 to generate the image you can set the dio option there too, in case your flasher isn't doing it
robotiko
@robotiko
Dec 02 2015 21:31
I did set
tried with rboot =0
c/Espressif/utils/esptool.exe -p COM8 -b 921600 write_flash -ff 40m -fm dio -fs 4m 0x00000 out/firmware/0x00000.bin 0x09000 out/firmware/0x09000.bin 0x3C000 out/firmware/spiff_rom.bin
I also hex edited the bin to set the byte to 0x02
Richard Antony Burton
@raburton
Dec 02 2015 21:32
i bet that tool doesn;t do it
robotiko
@robotiko
Dec 02 2015 21:33
but still same reset
@raburton would you mind testing if you cna flash in dio mode and set gpio9 to output and set to 0 or 1?
Richard Antony Burton
@raburton
Dec 02 2015 21:34
have you tried setting the -dio option on esptool2?
that should put it in the rom, so if the flasher doesn't do it it will already be there
robotiko
@robotiko
Dec 02 2015 21:34
to use esptool2 I just need to set rboot=1, right?
Richard Antony Burton
@raburton
Dec 02 2015 21:34
no, that will enable ful rboot mode
id you are using develop branch that now uses esptool2 to build the images because of a esptool.py bug
robotiko
@robotiko
Dec 02 2015 21:36
I'm using dev .. but I'm in Nov 30 version
5 behind
looking at repo .. there is nothing related to esptool2 behind that
so should be working?
looks like not /c/Espressif/utils/esptool.exe -p COM8 -b 921600 write_flash -ff 40m -fm dio -fs 4m 0x00000 out/firmware/0x00000.bin 0x09000 out/firmware/0x09000.bin 0x3C000 out/firmware/spiff_rom.bin
T
interesting
blob
should be using esptool2
but is not
I'm jn doggy windows..
was it tested there?
Richard Antony Burton
@raburton
Dec 02 2015 21:43
so you're up to date but don't have the latest code? sounds odd
robotiko
@robotiko
Dec 02 2015 21:45
yes I'm testing teh servo stuff that is nto merged yet
so I'm in the middle
and cannot get last 5 neopixel push
no big deal
should not be related at all with this
Richard Antony Burton
@raburton
Dec 02 2015 21:45
i see
robotiko
@robotiko
Dec 02 2015 21:45
you can see that I have the esptool2 merge
but it is just using it for rboot
Richard Antony Burton
@raburton
Dec 02 2015 21:47
no the change isn't for rboot at all, that already used esptool2, it is for non-rboot
makefile-project.mk should now use esptool2
alonewolfx2
@alonewolfx2
Dec 02 2015 21:47
did anyone tried tone library on sming ?
robotiko
@robotiko
Dec 02 2015 21:47
tone lib?
alonewolfx2
@alonewolfx2
Dec 02 2015 21:48
if i am right i saw in alone24's repo
alon24
@alon24
Dec 02 2015 21:49
tone?
robotiko
@robotiko
Dec 02 2015 21:49
@raburton my makefile-project.mk is from 30 Nov
so should be it
Richard Antony Burton
@raburton
Dec 02 2015 21:49
ok, so what's in it? does it call esptool2?
@alon24 is in your example?
shit i saw it but i dont remember which repo :)
alon24
@alon24
Dec 02 2015 21:50
nope
robotiko
@robotiko
Dec 02 2015 21:50

$(Q) $(ESPTOOL2) elf2image $@ $(flashimageoptions) -o $(FW_BASE)/

it is commented
ok that was int he lastest chaneg.. so I guess is on purpose
yes
@$(ESPTOOL2) $(ESPTOOL2_MAIN_ARGS) $@ $(FW_BASE)/$(IMAGE_MAIN) $(ESPTOOL2_SECTS)
@$(ESPTOOL2) $(ESPTOOL2_SDK_ARGS) $@ $(FW_BASE)/$(IMAGE_SDK)
Richard Antony Burton
@raburton
Dec 02 2015 21:54
ok, so you can add the -dio option to ESPTOOL2_MAIN_ARGS variable and it should set the flag in the binary for you
robotiko
@robotiko
Dec 02 2015 21:54
so..
not considering the dio setting in makefile right?
tried
rom0.bin
still doesnt shwo teh right value
Richard Antony Burton
@raburton
Dec 02 2015 22:00
you've switched to using rboot? rom0.bin isn't the standard name for a non-rboot project
robotiko
@robotiko
Dec 02 2015 22:00
I tried with a project I have usign rboot
Richard Antony Burton
@raburton
Dec 02 2015 22:01
if you are using rboot you need to set dio in a different place
robotiko
@robotiko
Dec 02 2015 22:01
so the makefile params are being ifnored, right?
ignored
Richard Antony Burton
@raburton
Dec 02 2015 22:02
the flag is in the first few bytes of the flash, so if you are using rboot that will be in the rboot bin file, if you are not using rboot that will be in the first few bytes of the first rom file (ram segments)
robotiko
@robotiko
Dec 02 2015 22:02
ok
2 things
I checked in a non rboot .. adn now it is set
I checked in the rboot.bin
and it is not set (in the rboot project )
zhivko
@zhivko
Dec 02 2015 22:04
@raburton: rom0.bin is not standard name for... what is standard? I mean rom0.bin is created by makefile....
robotiko
@robotiko
Dec 02 2015 22:04
blob
that is the rboot.bin just created
with SPI_MODE = dio
and RBOOT_ENABLED ?= 1
zhivko
@zhivko
Dec 02 2015 22:05
@robotiko where is this nice picture from ?
Richard Antony Burton
@raburton
Dec 02 2015 22:05
as far as i know dio_mode isn't passed through to the rboot build
robotiko
@robotiko
Dec 02 2015 22:05
:worried:
neither in the non rboot now
rigth?
@zhivko that is from hexedit
Richard Antony Burton
@raburton
Dec 02 2015 22:06
i don't know, i didn't make the changes to the non-rboot build
robotiko
@robotiko
Dec 02 2015 22:06
ok
Richard Antony Burton
@raburton
Dec 02 2015 22:07
which are hopefully only temporary
robotiko
@robotiko
Dec 02 2015 22:07
I guess that rboot should also consider those flags, right?
just askign to create the issue
Richard Antony Burton
@raburton
Dec 02 2015 22:08
i suppose it could, for the benefit of windows users with broken tools!
should be easy enough to do
zhivko
@zhivko
Dec 02 2015 22:08
@robotiko how do you know where in firmware is dio_mode written?
i just joined this interesting debate about dio_mode - and @robotiko may I ask could this solve gpio9 ?
robotiko
@robotiko
Dec 02 2015 22:09
If you want to flash firmware with esptool.py, you must change third byte in firmware form 0x00 to 0x02
gpio9 is just available when dio mode is active
and in esp12d-e and laters
@raburton :DD
the param pass is affecting all platforms, right?
zhivko
@zhivko
Dec 02 2015 22:12
and if I understand correctly dio mode is not considered in Makefile-rboot.mk
but I see:
flashimageoptions += -fm dio
robotiko
@robotiko
Dec 02 2015 22:14
anyway
the result dio not dio mode is the same
nice crash when using gpio9
@raburton to enable dio mode in rboot
RBOOT_E2_USER_ARGS ?= -quiet -bin -boot2 ?
robotiko
@robotiko
Dec 02 2015 22:21
@raburton thanks for your patience and help
zhivko
@zhivko
Dec 02 2015 22:26
@raburton: It would be super great if we in Sming could use that PIN9... So is it possible to change this 3rd byte in received firmware just before boot in rBoot functionality?
Richard Antony Burton
@raburton
Dec 02 2015 22:27
@robotiko has tried setting the mode to dio and it didn't work
robotiko
@robotiko
Dec 02 2015 22:28
I just flashed in dio mode .. done it manually
and same thing
the thing is that nodemcu firmware manages it
!
zhivko
@zhivko
Dec 02 2015 22:29
nodemcu is not open ?
robotiko
@robotiko
Dec 02 2015 22:29
@raburton to set teh dio mode in rboot
zhivko
@zhivko
Dec 02 2015 22:29
Can we check the code ?
robotiko
@robotiko
Dec 02 2015 22:29
the params are RBOOT_E2_USER_ARGS ?= -quiet -bin -boot2 ?
zhivko
@zhivko
Dec 02 2015 22:57
they are using:
GPIO_OUTPUT_SET
and we not - I think
I see it is commented in Digital.cpp - so we probably used it a while ago...
robotiko
@robotiko
Dec 02 2015 23:00
can try ?
zhivko
@zhivko
Dec 02 2015 23:00
In nodemcu they use:
#define DIRECT_WRITE(pin, level)    (GPIO_OUTPUT_SET(GPIO_ID_PIN(pin_num[pin]), level))
I would like to try but no esp modules at hand that have pin9 brought out
It would be interesting to know why we commented GPIO_OUTPUT_SET in code... can we find that out somehow from github versions maybe
robotiko
@robotiko
Dec 02 2015 23:04
this code is from nodemcu or our code?
zhivko
@zhivko
Dec 02 2015 23:04
The bottom is from nodemcu
BUT we had GPIO_OUTPUT_SET in Digital.cpp and that line is currently commented out.
robotiko
@robotiko
Dec 02 2015 23:05
//GPIO_OUTPUT_SET(pin, (val ? 0xFF : 00));?
ok I can try directly
zhivko
@zhivko
Dec 02 2015 23:08
we need that 9th PIN ! :)
I'm going to try GP2Y0A41SK0F SHARP IR Infrared Range with analogue readings in Sming...
robotiko
@robotiko
Dec 02 2015 23:43
tried with gpio_output_set as defined
and keeps crashing