These are chat archives for SmingHub/Sming

4th
Jan 2016
Dmitry Kireev
@kireevco
Jan 04 2016 01:12
anyone can review SmingHub/Sming#529
?
/all
Dmitry Kireev
@kireevco
Jan 04 2016 01:30
it's a minor change, affects travisci.yml and adds tests to makefile. I'll merge it.
Dmitry Kireev
@kireevco
Jan 04 2016 01:40
ok, now we're testing sming on mac too https://travis-ci.org/SmingHub/Sming
Richard Antony Burton
@raburton
Jan 04 2016 08:20
@kireevco looks good
it looks like it does 4 builds though, 2 linux and 2 osx, what' the difference between the two on the same platform?
Dmitry Kireev
@kireevco
Jan 04 2016 08:46
ok, so 2 for linux: sdk 1.4.0, 1.5.0, 2 for mac, sdk 1.4.0, 1.5.0
if 1.4.0 support is dropped, we can remove it.
now it also does some sanity tests
and Basic_Rboot won't work, actually
if you try make recurse-samples it will try to build all samples :)
that's a very good regression test.
for now, make test builds blink and HttpServer_Bootstrap
Dmitry Kireev
@kireevco
Jan 04 2016 08:53
( @raburton )
hreintke
@hreintke
Jan 04 2016 11:17
@kireevco : Current travis still gives errors : The command "wget https://bintray.com/artifact/download/kireevco/generic/esp-alt-sdk-1.5.0-linux-x86_64.tar.gz" failed and exited with 8 during .
@kireevco : better to show all log
0.00s$ mkdir -p $TRAVIS_BUILD_DIR/opt/esp-alt-sdk

0.18s$ wget https://bintray.com/artifact/download/kireevco/generic/esp-alt-sdk-1.5.0-linux-x86_64.tar.gz

--2016-01-04 11:16:50--  https://bintray.com/artifact/download/kireevco/generic/esp-alt-sdk-1.5.0-linux-x86_64.tar.gz

Resolving bintray.com (bintray.com)... 75.126.17.2, 108.168.243.152

Connecting to bintray.com (bintray.com)|75.126.17.2|:443... connected.

HTTP request sent, awaiting response... 404 Not Found

2016-01-04 11:16:50 ERROR 404: Not Found.

The command "wget https://bintray.com/artifact/download/kireevco/generic/esp-alt-sdk-1.5.0-linux-x86_64.tar.gz" failed and exited with 8 during .

Your build has been stopped.
crosofg
@crosofg
Jan 04 2016 11:39
hi people
how do i parse data parameters from
POST / HTTP/1.1
User-Agent: curl/7.30.0
Host: 192.168.4.1
Accept: */*
Content-Length: 3
Content-Type: application/x-www-form-urlencoded

asd
in sming framework
I am truying tio use ssl
crosofg
@crosofg
Jan 04 2016 11:55
how do convert it into HttpRequest object
This message was deleted
server handshake start.
server handshake ok!
Data Recieved
Data Recieved
POST / HTTP/1.1
User-Agent: curl/7.30.0
Host: 192.168.4.1
Accept: */*
Content-Length: 3
Content-Type: application/x-www-form-urlencoded

asd
hreintke
@hreintke
Jan 04 2016 12:04
@crosofg : Which/how are you using ssl. That is currently not supported in Sming
crosofg
@crosofg
Jan 04 2016 12:05
I am just using basic espconn_secure_XXXX commands.
espconn_secure_set_size(0x02, 8192);
    espconn_secure_ca_disable(0x02);
    espconn_secure_set_default_certificate(myesp_crt_DER, myesp_crt_DER_len);
    espconn_secure_set_default_private_key(myesp_key_DER, myesp_key_DER_len);
    espconn_secure_accept(&esp_conn);
it seems to be working
I am just using the sdk functions in the application.ccp
file
hreintke
@hreintke
Jan 04 2016 12:10
Sming is not using the espconn nework layer and so the http/tcp/... servers are not "ssl capable".
The httprequest is created in the httpserver -> no support for ssl in sming.
crosofg
@crosofg
Jan 04 2016 12:14
I am not using Httpserver class. so why does everything work fine
I have just added the code from sdk guide to the Sming example.
I can see
server handshake start.
server handshake ok!
server handshake start.
server handshake ok!
doesnt that mean its working
hreintke
@hreintke
Jan 04 2016 12:17
you can call/use any sdk function yourself, that is what you do with espconn(...)
But for sming functionality the sming classes need to support that
crosofg
@crosofg
Jan 04 2016 12:17
hmm ok
can I use the part of code the actually parses the tcp data
hreintke
@hreintke
Jan 04 2016 12:20
of course, you can use any code from sming
Richard Antony Burton
@raburton
Jan 04 2016 17:01
@kireevco what do you mean Basic_rBoot won't work?
robotiko
@robotiko
Jan 04 2016 18:00
@sle118, any progress with the gdb?
Dmitry Kireev
@kireevco
Jan 04 2016 18:04
@raburton can you try run make recourse-samples
@hreintke that's master, right?
hreintke
@hreintke
Jan 04 2016 18:09
@kireevco : Yes, @raburton mentioned that to the committer and me. I did not notice.
So, in fact it is OK, that it fails. Prevents accidental merging in master instead of develop
Dmitry Kireev
@kireevco
Jan 04 2016 18:14
@hreintke can you try make recourse-samples and show me your log, if it will break somewhre?
riban-bw
@riban-bw
Jan 04 2016 18:46
Hi! I have seem some talk about providing API documentation but this does not seem to be progressing. I would like to push this forward. (Documentation is an great enabler for new and existing users.) To this end, I suggest putting Doxygen generated API docs on github.io with link from the wiki. As proof-of-concept I have documented RAB's rBoot and put it at http://riban-bw.github.io/rboot/api/index.html. Thoughts?
@raburton I tweaked your source (a couple of headers) and changed readme.txt to readme.md. I can submit a PR if you are happy with this.
Dmitry Kireev
@kireevco
Jan 04 2016 18:51
@riban-bw hi, that's really cool
is there a way to expose things that end-user will use at most somehow?
@riban-bw I find this one a good example for the end-user https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en
@alonewolfx2 are you around/
?
Dmitry Kireev
@kireevco
Jan 04 2016 18:58
@riban-bw also, have you seen https://readthedocs.org? it is pretty modern doc platform
riban-bw
@riban-bw
Jan 04 2016 19:24
@kireevco the nodemcu markdown looks like it needs manual maintenance or a clever script. Thus view depends on how many functions we need to expose in a single list. I'll get doxygen working first which will show how much work needs to be done on the source (headers) to provide useful docs.
riban-bw
@riban-bw
Jan 04 2016 19:32
I placed all the rboot functions in a doxygen group because they are global so wouldn't be exposed otherwise. They all appear in a module and are also found with search. I need to she how other elements of the API will be presented.
hreintke
@hreintke
Jan 04 2016 19:42
@kireevco : Where/ in what version do you want me to do make recourse-samples ?
hreintke
@hreintke
Jan 04 2016 19:58
@riban-bw : First of all : Thanks for taking the action to think and hopefully implement the first steps of documentation.
Trying to understand your proposal, is it : 1/ Create html doc with doxygen, 2/ publish on github.io
How is the link between the github.io & github.com ?
I've read (little I must admit) about doxygen and github pages/gh-pages.
Do you have knowledge/experience with these two ? Are they comparable ?
robotiko
@robotiko
Jan 04 2016 20:58
@hreintke I'm getting this error whenc ompiling any of the rtos examples c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: cannot find -lsming
clues?
and
22:00:54 **** Build of configuration SmingRT for project Basic_rBoot ****
make all 
Building file: ../app/application.cpp
Invoking: Cross G++ Compiler
g++ -O2 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"app/application.d" -MT"app/application.d" -o "app/application.o" "../app/application.cpp"
../app/application.cpp:1:25: fatal error: user_config.h: No such file or directory
 #include <user_config.h>
                         ^
compilation terminated.
make: *** [app/application.o] Error 1
when compiling rboot example
Richard Antony Burton
@raburton
Jan 04 2016 21:04
@riban-bw i like the result, would like to see the what it looks like in the repo
is it necessary to rename the readme to .md though? i prefer standard extensions for plain text files, i like plain text!
i see readthedocs mentioned again, when i looked it didn't look great, it didn't seem to play that nicely with doxygen (and I do think doxygen is the way forward), it seemed to need you to litter the repo with a lot of hand written (in horrible format) doc files
didn't make any of the work easier for you, like you get with using doxygen
laurentppol
@laurentppol
Jan 04 2016 21:14
Hi there, now I am having some strange problem with digitalRead and pinMode: GPIO15 always reads as 0, and if I try to make pinMode( INPUT) on GPIO16, 9 and 10 system hangs after flashing in "neverending watchdog reboot", and blue LED is on. I have NodeMCU with CP210x USB/serial. Pins 13, 14, 12, 3, 2, 0, 5 and 4 work OK, for I2C, 1Wire, LED, 4 buttons. WTF?
robotiko
@robotiko
Jan 04 2016 21:18
@laurentppol there are some "troublematic" gpios
gpio16 is very special and any fast speed lib will nto work on it .. basic set should
gpio9 and 10 .. are just available in some boards
and need dio flash mode .. becuase are shared with flash
and even if you are using nodemcu devkit 1.0 .. that shoudl allow to use gpio9.. in most boards it doens't work
the effects. it directly restarts the device
about gpio15.. cannot tell you
Richard Antony Burton
@raburton
Jan 04 2016 21:29
@kireevco had no problem building Basic_rBoot with the recurse-samples target
found about 3 samples that didn't build though, fixed them
also improved the makefile targets a bit (made much simpler and put below the all target, so all remains the default)
laurentppol
@laurentppol
Jan 04 2016 21:47
@robotiko how do I change (in which file) Flash mode and size? (I can see -fm qio -fs 4m during flashing)
and for pins... just ordered PCF8574 :)
riban-bw
@riban-bw
Jan 04 2016 21:50
@hreintke yes, doxygen to generate HTML then commit to github repository which published to github.io. The PoC shows it works quite well. Not much effort to document code and publish API. I will do some sming functions to show what that looks like.
hreintke
@hreintke
Jan 04 2016 21:51
@riban-bw : great that's what I hoped
robotiko
@robotiko
Jan 04 2016 21:52
@laurentppol that is usually set in Makefile-user.mk
riban-bw
@riban-bw
Jan 04 2016 21:52
@raburton I will do a PR so you can see the headers I added docs to. I will see if I can cope with .text file. I did try but failed but will have another go.
robotiko
@robotiko
Jan 04 2016 21:52
SPI_MODE = dio
SPI_SIZE ?= 4M
hreintke
@hreintke
Jan 04 2016 22:00
@riban-bw : and doxygen is : if documented in the code take that otherwise create default ?
Richard Antony Burton
@raburton
Jan 04 2016 22:14
generally creates stubs if there is no doxygen formatted comment
much better to have the documentation in the code like that, easy to write, likely to be kept up to date, when people submit PRs that can be one of the criteria for acceptance - must have doxygen comments
so long as people don't get carried away and pollute the code with excess documentation of course
I prefer the idea of automatic generation though, like readthedocs does, rather than someone having to extract the code, run doxygen and then upload html to the repo (well really we don't want it in the repo, so I suppose it doesn't need to be put in there at all, but still automated would be preferable
hreintke
@hreintke
Jan 04 2016 22:18
@raburton : agree, and in working like that we will gradually improve doc -> no one large update
Richard Antony Burton
@raburton
Jan 04 2016 22:18
readthedocs suggests it can do doxygen but it looked like a bit of a hack to get it working
the way they want you to do it is just to write docs in markup files and put them in the repo, but what's the point in that, you might as well just write it in a wiki
hreintke
@hreintke
Jan 04 2016 22:22
and it adds another dependency
riban-bw
@riban-bw
Jan 04 2016 22:31
@raburton The only way i have found (so far) to keep the .txt extension is to add some markup to the readme.txt file - a line at the start and one at the end.
laurentppol
@laurentppol
Jan 04 2016 22:41
how to change SpiFFs file size? as now firmware is ~220kB, bootloader ~22kB and spiffs 256kB (having only 3 files, ~50bytes)?
riban-bw
@riban-bw
Jan 04 2016 22:42
@raburton PR heading your way. I need to go before I turn in to a pumpkin. Will try to do some Sming documentation tomorrow and create a similar PoC API.
laurentppol
@laurentppol
Jan 04 2016 23:21
ok, got it: SPIFF_SIZE in Makefile_user.mk
sle118
@sle118
Jan 04 2016 23:50
@robotiko just came back from out of town. Will try to make progress tomorrow. Code compiles, jpg is displayed, but i am not satisfied yet as i believe some scaling is taking place and jpg is not showing clean