These are chat archives for SmingHub/Sming

2nd
Jan 2016
alonewolfx2
@alonewolfx2
Jan 02 2016 06:35
@ystrem @kireevco very ver nice docs :D
Dmitry Kireev
@kireevco
Jan 02 2016 06:35
readthedocs is a platform for docs :)
alonewolfx2
@alonewolfx2
Jan 02 2016 06:37
i want to docs on readthedocs :D
Dmitry Kireev
@kireevco
Jan 02 2016 06:38
I think it's free
alonewolfx2
@alonewolfx2
Jan 02 2016 06:38
readthedocs is free, worktime is expensive
at least for bosses
@kireevco almost everythings plain but very good https://github.com/eerimoq/simba/tree/master/examples/nrf24l01
ystrem
@ystrem
Jan 02 2016 08:40
@alonewolfx2 I can look at it.
alonewolfx2
@alonewolfx2
Jan 02 2016 08:49
@ystrem maybe we can make same docs
ystrem
@ystrem
Jan 02 2016 08:50
but I'm aware, that we need hosting for that. It can't be hosted on github
Richard Antony Burton
@raburton
Jan 02 2016 08:51
i looked at read the docs the other day, wasn't impressed
ystrem
@ystrem
Jan 02 2016 08:52
@raburton What do you think about Simba ?
another HAL
Richard Antony Burton
@raburton
Jan 02 2016 09:04
@ystrem never heard of it
hreintke
@hreintke
Jan 02 2016 09:13
@ystrem : nice site, structured design, completely C based (no C++)
ystrem
@ystrem
Jan 02 2016 09:16
@hreintke What's you idea about docs for sming ?
Nice book for noobs like me, https://leanpub.com/ESP8266_ESP32
Dmitry Kireev
@kireevco
Jan 02 2016 09:21
@hreintke I really think sming needs more marketing and focusing on users, balancing between development and users.
it's loosing because of lack of that.
alonewolfx2
@alonewolfx2
Jan 02 2016 09:21
@kireevco agreed
Dmitry Kireev
@kireevco
Jan 02 2016 09:22
that would be my last word. IOT users are not pro developers, they just normal people that know how to code ARduino-ish C++
if you don't admit this, sming will go down the incline
realistically, there is no value for the end-user, unless they are expressively showed and marketed that value.
every line of code, every improvement needs to be marketed properly.
crosofg
@crosofg
Jan 02 2016 09:23
@kireevco Agreed!
Dmitry Kireev
@kireevco
Jan 02 2016 09:24
(that is my last attempt)
alonewolfx2
@alonewolfx2
Jan 02 2016 09:24
soo we need to focus doc things firstly i think,
ystrem
@ystrem
Jan 02 2016 09:25
I miss for every class list of methods that I can use. I have to look at github to source...
This is possible to generate from source right ?
Dmitry Kireev
@kireevco
Jan 02 2016 09:27
yep. doxygen docs.
tons of tickets about it
Richard Antony Burton
@raburton
Jan 02 2016 09:27
i think doxygen is the way to go
Dmitry Kireev
@kireevco
Jan 02 2016 09:27
just start putting doxygen in your next commit
ystrem
@ystrem
Jan 02 2016 09:28
My point of view. Sming is harder to install for me, but then you make it all examples work and it's nice. In the other hand Arduino is super easy to install, but there is only few working examples...
Richard Antony Burton
@raburton
Jan 02 2016 09:28
i rarely write stuff that is user facing
hreintke
@hreintke
Jan 02 2016 09:28
@kireevco : I never said documentation/user friendliness is not important.
hreintke
@hreintke
Jan 02 2016 09:33
And on doxygen. I installed already back in june on my system, and it ran (didn't test now) on sming.
But... Also take the remark from @ystrem : "Sming is harder to install for me" "Arduino is super easy to install"
That is independent of doxygen
Richard Antony Burton
@raburton
Jan 02 2016 09:39
@kireevco's new sdk packages should make it easier to install
hreintke
@hreintke
Jan 02 2016 09:41
@raburton : agree, they should be finalized, tested, PR the necessary updates to makefies, readme and wiki -> done
Dmitry Kireev
@kireevco
Jan 02 2016 09:47
we should work with platform.io guys to get sming integrated
Richard Antony Burton
@raburton
Jan 02 2016 09:53
@hreintke make a couple of changes to rtos main makefile, can you test on windows?
Dmitry Kireev
@kireevco
Jan 02 2016 09:53
@hreintke yeah, thanks for pointing on me :-D sorry, I'ts not fun any more, at least right now
ystrem
@ystrem
Jan 02 2016 09:53
What's the benefit in using platformio ?
hreintke
@hreintke
Jan 02 2016 09:53
@kireevco : See #508
Dmitry Kireev
@kireevco
Jan 02 2016 09:53
@ystrem seamless installation and board managment
ystrem
@ystrem
Jan 02 2016 09:53
We don't have compatible code
Dmitry Kireev
@kireevco
Jan 02 2016 09:54
@hreintke I know. but no one actuall done anything. platformio creator is asking me for help
hreintke
@hreintke
Jan 02 2016 09:54
So share your thougts/activities/question on #508 so that we know
Dmitry Kireev
@kireevco
Jan 02 2016 09:54
platformio init . -f sming -b esp8266
@ystrem something like this will do everytithing :smile:
hreintke
@hreintke
Jan 02 2016 09:55
I know that is the result , what needs to be done and maintained to get there
Dmitry Kireev
@kireevco
Jan 02 2016 09:56
a. scons build for sming library
that's the known one
then b. cmake for sming prject
ystrem
@ystrem
Jan 02 2016 09:56
From my point, I rather download single zip with every thing ready to go then install another "junk" only for start programming. That's why I use vmware with ubuntu...
Dmitry Kireev
@kireevco
Jan 02 2016 09:57
@ystrem like PATH and ESP_HOME, and SMING_HOME and make and blahblahblah
?
ystrem
@ystrem
Jan 02 2016 09:57
@kireevco yes, choco can do it too. But I have some settings on W10 and I'm not possible to install it.
Dmitry Kireev
@kireevco
Jan 02 2016 09:57
you can't put environment settings in a zip
ystrem
@ystrem
Jan 02 2016 09:57
yep
Dmitry Kireev
@kireevco
Jan 02 2016 09:57
and rememver, there are linux and mac:)
ystrem
@ystrem
Jan 02 2016 09:57
yes you can like arduino
hreintke
@hreintke
Jan 02 2016 09:58
@ystrem : I personally am the same as you, but for others, especially the Arduino users need simpler
Dmitry Kireev
@kireevco
Jan 02 2016 09:58
alright:)
call me when there is sming ide then :)
ystrem
@ystrem
Jan 02 2016 09:59
arduino way, download 1.6.5 arduino ide add one link to esp8266 and in board manager add esp and boom it's done you can program. It download some file and that's it.
hreintke
@hreintke
Jan 02 2016 10:03
@kireevco see #370, then we are not doing the same what others already do
Dmitry Kireev
@kireevco
Jan 02 2016 10:04
lol. it was a joke.
ystrem
@ystrem
Jan 02 2016 10:07
@hreintke interesting
Dmitry Kireev
@kireevco
Jan 02 2016 10:10
alonewolfx2
@alonewolfx2
Jan 02 2016 10:10
@ystrem i have .net script for one zip file thing on windows. i can share with you but i dont know how can we handle linux and mac with one zip like solution
hreintke
@hreintke
Jan 02 2016 10:10
@ystrem : I personally don't like the arduino IDE as that does nothing on code completion and git integration (am I right ?)
But also for that : If we want to support this, someone needs to go into the details and explain to this community what needs to be done. Then we can decide how to go forward.
alonewolfx2
@alonewolfx2
Jan 02 2016 10:11
i think we can choose eclipse not arduino ide. but we must to create very easy setup
Dmitry Kireev
@kireevco
Jan 02 2016 10:11
@alonewolfx2 no need for one zip
CI builds everything
you can't put other software in a zip file :)
alonewolfx2
@alonewolfx2
Jan 02 2016 10:12
on server side or user side?
Dmitry Kireev
@kireevco
Jan 02 2016 10:12
server side.just like Ive built the whole toolchain+sdk
@all please look into platformio.org
understand it, and if then you still want a zip file - go create a zip file:)
hreintke
@hreintke
Jan 02 2016 10:13
@kireevco : see #508 and share
Dmitry Kireev
@kireevco
Jan 02 2016 10:14
@hreintke what do oyu want me to share?:
I've seen this.

Who will do this:

  • Scons adaptation
  • Cmake adaptation

?

community is too inert. If you like the idea, just start implementing.
alonewolfx2
@alonewolfx2
Jan 02 2016 10:18
@kireevco can you add rtos sdk into the esp-alt sdk
ystrem
@ystrem
Jan 02 2016 10:18
@hreintke yes, arduino ide is only text editor with some stuff for settings. But people use it, becouse it's easy to get work...
Dmitry Kireev
@kireevco
Jan 02 2016 10:18
I'ts became soo boring since all these "let's agree on this, let's agree on that"...
@alonewolfx2 yes, but I still need this one to be tested.
@alonewolfx2 do you want to create a PR?:)
alonewolfx2
@alonewolfx2
Jan 02 2016 10:20
ok i am downloading but i suprised with zip size
Dmitry Kireev
@kireevco
Jan 02 2016 10:20
yep :)
magic
by the way, I didn't create a ticket asking "do you want small file sizes"
alonewolfx2
@alonewolfx2
Jan 02 2016 10:21
@kireevco i still cant make esp-alt-sdk on windows as you know :D
Dmitry Kireev
@kireevco
Jan 02 2016 10:21
@alonewolfx2 I've done some quick tests, executables run fine
@alonewolfx2 environment not clean probably.
Dmitry Kireev
@kireevco
Jan 02 2016 10:22
env/mingw_10.cmd
@ystrem
alonewolfx2
@alonewolfx2
Jan 02 2016 10:23
something wrong on windows side
blob
ystrem
@ystrem
Jan 02 2016 10:23
blob
alonewolfx2
@alonewolfx2
Jan 02 2016 10:23
@kireevco windows doesnt like "./" before char on folder names, as you know
Dmitry Kireev
@kireevco
Jan 02 2016 10:24
wait, that's a part of a directory?
ystrem
@ystrem
Jan 02 2016 10:24
ok 7zip is ok with that file, but windows extract not
Dmitry Kireev
@kireevco
Jan 02 2016 10:25
stupid bsdtar... let me change to zip
ystrem
@ystrem
Jan 02 2016 10:26
Ok, that's all in one file. And now I have to compile it ? Right
Dmitry Kireev
@kireevco
Jan 02 2016 10:26
@ystrem compile your project.
contents of the file should go to your ESP_HOME
ok, uploading a windows-friendly zip file
@ystrem this is like UDK
but open
and better by all other means
  • Cross platform
    • Windows
    • Linux
    • MacOS
  • Up-to-date binary builds
  • Open build process
  • Gcc 5.1.0
  • Gdb on all platforms
  • Small size
    • Stripped out debug symbols
    • UPX compressed
  • Additional tools (also compiled from source)
memanalyzer on linux/mac
and esptool2
hreintke
@hreintke
Jan 02 2016 10:33
@kireevco : agree so finalize on latest tests, PR the necessary updates to makefies, readme and wiki -> done
Dmitry Kireev
@kireevco
Jan 02 2016 10:35
@ystrem @alonewolfx2 let me know abutth the second zip file
.236
ystrem
@ystrem
Jan 02 2016 10:36
HTTP Status 401 -

type Status report

message

description This request requires HTTP authentication.

Apache Tomcat/7.0.32
Dmitry Kireev
@kireevco
Jan 02 2016 10:36
ah, sorry, try in 10 sec
alonewolfx2
@alonewolfx2
Jan 02 2016 10:36
@kireevco same
ystrem
@ystrem
Jan 02 2016 10:38
it's ok now
Dmitry Kireev
@kireevco
Jan 02 2016 10:39
@alonewolfx2 just tried, it's good http://screencast.com/t/WEZy1EKy7edf
@ystrem let me know if there are any path mismatches
I can fix it then
alonewolfx2
@alonewolfx2
Jan 02 2016 11:02
Seems good.
Soo we can make cross platform script if esp-alt-sdk is ready
alonewolfx2
@alonewolfx2
Jan 02 2016 11:09
Or we can make startup script or some gui program for starting easily
ystrem
@ystrem
Jan 02 2016 12:08
I have to say that the ecplise + Arduino C++ IDE plugin is very nice ... and it looks that there will be debug in near future esp8266/Arduino#1350
hreintke
@hreintke
Jan 02 2016 13:18
@ystrem : Isn't the #1350 just about controlling the serial debug output ?
There is a base for similar functionality in Sming in the Debug class.
That gives runtime control of debug output, and selection to serial or telnet
alonewolfx2
@alonewolfx2
Jan 02 2016 13:41
xtensa-elf folder 560MB on udk. yours 115. is it same ?
S├ębastien
@sle118
Jan 02 2016 14:14
@alonewolfx2 I still have some testing and debugging to do and I don't have an ESP with me right now. Let me know how to proceed with sharing the code.
alonewolfx2
@alonewolfx2
Jan 02 2016 14:28
Just zip it and put in there or mail to me
ystrem
@ystrem
Jan 02 2016 14:29
@hreintke yep you are right
robotiko
@robotiko
Jan 02 2016 16:25
@sle118 you can push to your own repo until it is ready for PR here
Dmitry Kireev
@kireevco
Jan 02 2016 17:09
@alonewolfx2 yes, I compressed and stripped binaries
Dmitry Kireev
@kireevco
Jan 02 2016 19:30
This message was deleted
not tested yet
files are there :-D
@alonewolfx2
This message was deleted
actually, hold on
let me rebuild it
alonewolfx2
@alonewolfx2
Jan 02 2016 20:03
ok
@hreintke @raburton are you arround
C+ Libraries/Adafruit_GFX/Adafruit_GFX.cpp
In file included from Libraries/Adafruit_GFX/Adafruit_GFX.cpp:38:0:
Libraries/Adafruit_GFX/glcdfont.c:15:35: error: expected initializer before 'PROGMEM'
 static const unsigned char font[] PROGMEM = {
                                   ^
Libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)':
Libraries/Adafruit_GFX/Adafruit_GFX.cpp:364:54: error: 'pgm_read_byte' was not declared in this scope
       if(pgm_read_byte(bitmap + j * byteWidth + i / 8) & (128 >> (i & 7))) {
seems there is no progmem yet in rtos
Richard Antony Burton
@raburton
Jan 02 2016 21:36
what's progmem?
alonewolfx2
@alonewolfx2
Jan 02 2016 21:40
its coming from arduino side
for Store data in flash (program) memory instead of SRAM.
Richard Antony Burton
@raburton
Jan 02 2016 21:43
what if you manually add the attribute?
or use ICACHE_RODATA_ATTR ?
alonewolfx2
@alonewolfx2
Jan 02 2016 21:53
i dont know
progmem not necessary actually but sming nonos sdk has
Richard Antony Burton
@raburton
Jan 02 2016 21:58
ICACHE_RODATA_ATTR seems to work
tested it with a string, kept it in the rom section