These are chat archives for SmingHub/Sming

10th
Nov 2015
robotiko
@robotiko
Nov 10 2015 00:04
@tprochazka looking at examples.. they will probably not work in sming due to delay and whiles
Tomáš Procházka
@tprochazka
Nov 10 2015 00:06
@robotiko I'm not using example.
robotiko
@robotiko
Nov 10 2015 00:06
how do you know it is not workign if you have no HW to test?
Tomáš Procházka
@tprochazka
Nov 10 2015 00:08
I have HW to test, of course
I'm just not using original example with delay and while
but just one call
pixels.setPixelColor(0, pixels.Color(0,150,0)); // Moderately bright green color.
pixels.show(); // This sends the updated pixel color to the hardware.
robotiko
@robotiko
Nov 10 2015 00:09
I guess that also tried with the sming example...with no luck?
Tomáš Procházka
@tprochazka
Nov 10 2015 00:10
Which sming example<
?
robotiko
@robotiko
Nov 10 2015 00:11
led_ws2812
there is an update as PR
Tomáš Procházka
@tprochazka
Nov 10 2015 00:14
I miss it :-) Maybe it will be better way than trying to port Adafruit library, but the Adafruit library has much better API, there is also modification https://github.com/Makuna/NeoPixelBus which contain transition animation between two colors.
zhivko
@zhivko
Nov 10 2015 00:14
I tried BasicAirUpdate, I can start airupdate procedure but I get:
epc1=0xc3321661, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

 ets Jan  8 2013,rst cause:1, boot mode:(3,6)

load 0x40100000, len 22432, room 16 
tail 0
chksum 0xb8
load 0x3ffe8000, len 852, room 8 
tail 12
chksum 0x77
ho 0 tail 12 room 4
load 0x3ffe8358, len 7096, room 12 
tail 12
chksum 0xe0
csum 0xe0
system param error
38 ef 28 df 39 d1 22 61 01 00 44 22 00 00 00 00 40 61 14 02 41 1a 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1b 24 01 1b 4d c0 00 00 22 49 10 49 21 0c 01 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 52 82 0c 04 5a 56 2d 0f 
6d 0e 05 68 ff 32 21 10 42 21 11 9d 02 f0 23 11 20 24 c0 22 61 12 0c 12 86 84 00 00 62 21 12 30
Tomáš Procházka
@tprochazka
Nov 10 2015 00:14
Thanks!
zhivko
@zhivko
Nov 10 2015 00:15
After airupdate module constantly restarts...
robotiko
@robotiko
Nov 10 2015 00:15
@tprochazka well if it works .. then you can extend
if the basic writing and timming works, the rest of the api doenst seem to be that time sensitive or arduino specific so it migth work
with some refact
robotiko
@robotiko
Nov 10 2015 00:21
@tprochazka the update is basically remove the delay
and some network trash is added
@zhivko the basic AirUpdate was replaced by basic rboot
zhivko
@zhivko
Nov 10 2015 00:29
@robotiko sorry I'm behind with this rboot ;)
never tried it
will try it now.
robotiko
@robotiko
Nov 10 2015 00:29
there is nice wiki
from raburton
in sming
so please use it
zhivko
@zhivko
Nov 10 2015 00:40
does current sminghub master works with 1.4 sdk ?
should I move to 1.4 or stay on 1.3 ?
robotiko
@robotiko
Nov 10 2015 00:41
seems to work with 1.4
expected for 1.3
alonewolfx2
@alonewolfx2
Nov 10 2015 04:30
@tprochazka i tried to port adafruit_neopixel too. but it didnt work me too :) something missing but i didnt find it
@tprochazka btw: led_ws2812 example working well for me and i have 8xws2812 internet connected night light :D
alonewolfx2
@alonewolfx2
Nov 10 2015 04:36
@robotiko while function not problem for sming anymore. just need WDT.allive() in while function. while function can run forever when put wdt allive in it :)
Richard Antony Burton
@raburton
Nov 10 2015 07:39
@hreintke yes, you can write the rBoot config sector yourself, in fact you would want to do that for anything other than the default config, e.g. if you wanted 4 roms instead of the default two or you wanted an asymmetrical layout, etc.
zhivko
@zhivko
Nov 10 2015 09:49
Trying to use rboot on last sming on Linux.
esptool2 doesn't exist on linux we have python version in:
/home/kz/esp8266/esp-open-sdk/esptool/esptool.py
So is there Makefile-rboot.mk adapted to Linux ?
zhivko
@zhivko
Nov 10 2015 09:54
Ah - I saw debate on esptool2 in history ;)
hreintke
@hreintke
Nov 10 2015 10:31
@raburton :
If I would have a Binary file with the bootconfig, could I then use :
$(ESPTOOL) -p $(COM_PORT) -b $(COM_SPEED_ESPTOOL) write_flash $(flashimageoptions) 0x00000 $(RBOOT_BIN) $(RBOOT_CONFIG_LOC) $(RBOOT_CONFIG_FILE)
If so, what should be the RBOOT_CONFIG_LOC, would that be esp type independent (esp-02, esp-12) ?
Is the RBOOT_CONFIG _FILE file then "just the binary of the rboot_config" or should there be some specific format ?
zhivko
@zhivko
Nov 10 2015 10:55

@raburton I compiled esptool2, and I forwarded with build for using rboot, I get:

11:03:47 **** Build of configuration release for project Stepper-DM542 ****
make all 
make -C /home/kz/git/Sming/Sming/rboot
make[1]: Entering directory '/home/kz/git/Sming/Sming/rboot'
FW /home/kz/git/Sming/Stepper-DM542/out/build/rboot-hex2a.h
CC rboot.c
LD /home/kz/git/Sming/Stepper-DM542/out/build/rboot.elf
FW /home/kz/git/Sming/Stepper-DM542/out/firmware/rboot.bin
make[1]: Leaving directory '/home/kz/git/Sming/Sming/rboot'
C+ app/application.cpp
CC /home/kz/git/Sming/Sming/rboot/appcode/rboot-bigflash.c
CC /home/kz/git/Sming/Sming/rboot/appcode/rboot-api.c
In file included from /home/kz/git/Sming/Sming/rboot/appcode/rboot-api.c:16:0:
/home/kz/esp8266/esp-open-sdk/sdk/include/mem.h:5:0: error: "os_free" redefined [-Werror]
/home/kz/git/Sming/Sming/Makefile-rboot.mk:395: recipe for target 'out/build//home/kz/git/Sming/Sming/rboot/appcode/rboot-api.o' failed
 #define os_free(s)        vPortFree(s, "", 0)
 ^
In file included from /home/kz/git/Sming/Sming/system/include/rboot-integration.h:11:0,
                 from /home/kz/git/Sming/Sming/rboot/appcode/rboot-api.c:10:
/home/kz/git/Sming/Sming/system/include/esp_systemapi.h:79:0: note: this is the location of the previous definition
 #define os_free     vPortFree
...

Am I missing something?

So error is:

In file included from /home/kz/git/Sming/Sming/rboot/appcode/rboot-api.c:16:0:
/home/kz/esp8266/esp-open-sdk/sdk/include/mem.h:5:0: error: "os_free" redefined [-Werror]
/home/kz/git/Sming/Sming/Makefile-rboot.mk:395: recipe for target 'out/build//home/kz/git/Sming/Sming/rboot/appcode/rboot-api.o' failed
 #define os_free(s)        vPortFree(s, "", 0)
 ^

anybody saw this before ?

I'm using 1.4 sdk and last Sming Master branch
alon24
@alon24
Nov 10 2015 12:12
hi, how can I use the websocket-command-prompt branch with latest development?
its giving me a lot problems, when trying to get (first dev, then that brach as merge)
alon24
@alon24
Nov 10 2015 12:18
@hreintke is this possible?
zhivko
@zhivko
Nov 10 2015 13:27
HAs any body succesfully compiled last master sming with sdk 1.4 ?
How can I check travis result for sminghub Sming ?
alon24
@alon24
Nov 10 2015 13:58
travis 1.4 works for me
on mac
hreintke
@hreintke
Nov 10 2015 14:17
@zhivko : Latest master branch is supporting SDK 1.3.0.
In develop some PR's are in progress to eventually upgrade support to 1.4.0.
PS : Just to be clear : PR's but not merged into develop
zhivko
@zhivko
Nov 10 2015 14:22
@hreintke thanks...
hreintke
@hreintke
Nov 10 2015 14:22
@alon24 : What websocket-command-prompt BRANCH are you mentioning
latest websocket command is in PR 400.
Last update probably today and then ready for merge.
Updates only to example, not core functionality.
What problems do you have/see ?
zhivko
@zhivko
Nov 10 2015 14:23
@alon24 can I use travis on linux ?
@alon24 are there some instructions how to setup ?
alon24
@alon24
Nov 10 2015 15:00
@zhivko I just meant that the automated build for sming that was setup here and produces esp 1.2. 3
1.3 1.4 works ok, the product is built, esp open sdk
@hreintke perhaps I was not looking in the right place, there is a branch named like what I say, and I tried taking it
@zhivko looking back at what u asked, my answer may have been incorrect, sorry
hreintke
@hreintke
Nov 10 2015 15:05
@alon24 : the branch was from "earlier". Sometimes takes a lot of time to get functionality merged :smile:
The PR 400 is the finished code.
Just noticed that I missed a spiffs_mount() call in my example application. Will be fixed within the hour.
hreintke
@hreintke
Nov 10 2015 15:28
@alon24 : PR 400 updated.
robotiko
@robotiko
Nov 10 2015 15:31
@all anyone tried push buttons
?
debounce etc ?
alon24
@alon24
Nov 10 2015 15:58
my rotary has a push button, and I have software debiunce
so yes @robotiko, also the code there knows click, double click, longbclick, and extra long click
alon24
@alon24
Nov 10 2015 16:39
@hreintke thanks
alon24
@alon24
Nov 10 2015 16:44
This message was deleted
alon24
@alon24
Nov 10 2015 16:50
never mind - found it
Richard Antony Burton
@raburton
Nov 10 2015 17:32
@hreintke yes that would work fine, the location is always the same, 0x1000 (the second flash sector), the config sector is just the binary of the c rBoot config struct, see the header file or readme for details
alon24
@alon24
Nov 10 2015 17:37
anyone has wxample for touch scereen working with esp8266? (not arduino)
zhivko
@zhivko
Nov 10 2015 17:47
@alon24 rBoot with 1.4 doesn't work it looks with 1.3 is working....
alon24
@alon24
Nov 10 2015 18:01
I will need to check on that, i have 2 computers, i might have NOT used rboot on my mac, need to test again
zhivko
@zhivko
Nov 10 2015 18:04
im experiencing rboot flashing problems:
TCP received: 1460 bytes
onReadyToSendData: 1
Write Error!
TCP received: 1460 bytes
onReadyToSendData: 1
TCP received: 1460 bytes
onReadyToSendData: 1
TCP received: 952 bytes
onReadyToSendData: 1
TCP received: (null)
TCP connection closing
-TCP connection

Firmware download failed..
Firmware update failed!
in my make file I have:
#### overridable rBoot options ####
## use rboot build mode
RBOOT_ENABLED ?= 1
## enable big flash support (for multiple roms, each in separate 1mb block of flash)
RBOOT_BIG_FLASH ?= 0
## two rom mode (where two roms sit in the same 1mb block of flash)
RBOOT_TWO_ROMS  ?= 0
## size of the flash chip
SPI_SIZE        ?= 512K
## output file for first rom (.bin will be appended)
#RBOOT_ROM_0     ?= rom0
## input linker file for first rom
#RBOOT_LD_0      ?= rom0.ld
## these next options only needed when using two rom mode
#RBOOT_ROM_1     ?= rom1
#RBOOT_LD_1      ?= rom1.ld
## size of the spiffs to create
#SPIFF_SIZE      ?= 65536
## option to completely disable spiffs
DISABLE_SPIFFS  = 0
I guess SPI_SIZE ?= 512K is OK for my esp12 ?
zhivko
@zhivko
Nov 10 2015 18:10
@raburton should I take new sources from development branch? On web server I am using same rom0.bin and spiff_rom.bin files that make produced.
alon24
@alon24
Nov 10 2015 18:12
esp12 usually comes wiht 4M
zhivko
@zhivko
Nov 10 2015 18:12
@alon24 how can I know for sure?

I have DISABLE_SPIFFS = 0 and also commented lines:

#RBOOT_SPIFFS_0  ?= 0x100000
#RBOOT_SPIFFS_1  ?= 0x300000

maybe that's problem ?
I am using spiff actually

when u run it, u will see on the right side, "automatic....", and unclick alll the ticks on the left uppers side, this way it will get the data for the chip u have
and display it in the right hand lower side
zhivko
@zhivko
Nov 10 2015 18:18
@alon24 I have linux
this is weird rar file :)
OK I have windows too...
zhivko
@zhivko
Nov 10 2015 18:30
Don't see this Automatic button...
esp_flash.png
zhivko
@zhivko
Nov 10 2015 18:36
@alon24
flash vendor:
C8h : GD
flash devID:
4016h
QUAD;32Mbit
crystal:
26 Mhz
so it is 4Mb :) ?
alon24
@alon24
Nov 10 2015 18:38
4M
not 512k
4016h
zhivko
@zhivko
Nov 10 2015 18:39
what is 4016h ?
alon24
@alon24
Nov 10 2015 18:39
congrads u now have more mem than u thought
4016h is 32M in a table, I cannot look for now
zhivko
@zhivko
Nov 10 2015 18:46
OK rBoot working! GREAT!
4M was problem...