These are chat archives for SmingHub/Sming

5th
Feb 2016
laurentppol
@laurentppol
Feb 05 2016 00:26
much faster than XP on 2x2.24GHz....
Dmitry Kireev
@kireevco
Feb 05 2016 04:44
@riban-bw try running docker container
:)
@riban-bw also, sming needs some env varialbes to be set
riban-bw
@riban-bw
Feb 05 2016 07:04
@laurentppol :smile: I have been an avid GNU/Linux user for 16 years. I have to drag my work Windows laptop to and from work each day so use it for fun (developing) en route, hence the desire to get Sming working on it.
hreintke
@hreintke
Feb 05 2016 07:48

@alonewolfx2 :
Re-think the talk we had yesterday on serial.swap.
Your idea is :

it will change serial0 output to mtdo_mtck
gpio13-15
re swap will change serial0 output to gpio1-3
and we will have clean (without boot output) serial for using with other mcu or sensors

But when I read the docs it is : when swapped, all UART0 functionality goes to UART2.
So there is no split between debug/Serial.printf() output.
How I read it now, it swaps usage from pins 1-3 to 15-13 but the rest stays the same.
And for boot : You only can swap within application, when boot is already done. How do you prevent boot messages to go to UART0
Am I missing something ?

Georgi Dobrishinov
@dobrishinov
Feb 05 2016 08:57
Hey, i have issues with tcp and mobile data, 2 days of debug i dont know why tcp close and web page not load with mobile data... i think this is issues from my network op but not. I try with other op and problem still. How i format all memory on esp (all blocks) : ? i use this method - ./esptool.py -p /dev/ttyUSB0 erase_flash, but i think this not format all, because i use sample from sming (after week all work from mobile network, not dont)
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 08:58
@dobrishinov do you have problems with loading esp+sming served web-pages via some REAL internet (mobile inet, adsl inet etc)? if so - I think it is undoable by now.. :(
I was struggling with it without success.. main issue is with MTU... and we can't change MTU on the fly... with default mtu pages do not load via internet..
Georgi Dobrishinov
@dobrishinov
Feb 05 2016 09:01
@avr39-ripe yes i have problem with load sming web pages from mobile net, but from cable net and from any location work, but on mobile data on any mobile op dont...
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 09:02
mtu issue :( cant overcome it either ;( moreover - cant even use dsl inet so serve pages :(((
Georgi Dobrishinov
@dobrishinov
Feb 05 2016 09:02
path=/
Host === 151.237.82.94
Item: Name = _ga, Size = 27, Value = GA1.1.1160910574.1451986361
parsed
Request: GET, nodata
TCP received: 454 bytes
onReadyToSendData: 1
send file: index.html (7814 bytes)
response sendHeader
response sendBody
READ Template (0)
plain template text pos: 0, len: 1024
READ Template (0)
plain template text pos: 1024, len: 1024
READ Template (0)
plain template text pos: 2048, len: 809
onAccept state: 0 K=1
Free heap size=26096, K=1
+TCP connection
timeout updating: 70 -> 90
TcpServer onClient: 212.5.158.27
TCP received: (null)
TCP connection closing
~TCP connection
-TCP connection
~TCP connection
3fff4c70 already freed
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 09:03
on older espressif sdk there was lib/liblwip_536.a with smaller, 536 mtu.. with this lib pages semi work via mobile inet.. but other issues came across.. :(
on recent esperssif sdk ther is NO such lib ;( only with default mtu
Georgi Dobrishinov
@dobrishinov
Feb 05 2016 09:04
@avr39-ripe what this issues, and why everything work for some week, and now...
i try with other sdk too ... but problem still with 1.5.1 and 1.5.0
alonewolfx2
@alonewolfx2
Feb 05 2016 09:12
@hreintke no. If you swap uart to 13-15 there is no bootloader output on 13-15 because swap executing after boot. I am using nextion display and it didn't like bootlog. It's confusing with bootlog. So if anyone use something smiliar, swap function will give full serial usage without bootlog on 13-15. Also 8 am using swap function on esp01 because it has just 4 pin. And if I use swap (ofcourse it has pullup resistor during boot) I can use gpio1-3 for general purpose pin. (I am using for ds18b20+i2c)
hreintke
@hreintke
Feb 05 2016 09:56
@alonewolfx2 :
Ah.. I missed that one.
You connect your device to 13-15, boot output goes to 1-3, then you swap and all serial goes to 13-15.
Nice.
hreintke
@hreintke
Feb 05 2016 10:21

@riban-bw :
I think you only need, but of course anyone is free to correct me :

  • Mingw
  • esp8266 toolchain
  • espressif sdk
  • Eclipse as IDE
  • environment variables
  • Sming repository

Did not try myself but this is what I read about Mingw

1 Install MinGW on a computer,

  1. Copy the whole "mingw" folder to the target system

Should work if you have "somewhere a windows system on which you have admin rights

Toolchain & SDK
Manually download the alt-esp-sdk for either Sming_NONOS or Sming_RTOS.
There is (not yet ?) an alt-esp-sdk which contains both sdk's
@kireevco will be able to give you the download URL's
Copy to a file location -> no admin rights

Eclipse :
Does not require admin rights.

Environment variables.
I set all in eclipse -> works without admin rights
I think you also can set on user-level instead of system-level but cannot test that

riban-bw
@riban-bw
Feb 05 2016 10:26
@hreintke I managed to get it working on the train this morning. I will record how I did it later. I would like to have it working inside cygwin but for now am happy it is working with mingw make. Cheers
Georgi Dobrishinov
@dobrishinov
Feb 05 2016 10:41
@avr39-ripe i try with 1.4.0 sdk, but mtu problem still : ?
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 10:42
yeh.. with 1.3..1.4 sdk I had mtu problem.. but in that sdk I think you can change lib\liblwip_536.a to lib\liblwip.a to reduce mtu.. try it if you whant..
Georgi Dobrishinov
@dobrishinov
Feb 05 2016 10:44
@avr39-ripe but after a month i use 1.4.0 without problem, i have problem with ap and i update to 1.5.1, but tcp work, after 3 days stop work. : ?
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 10:45
@dobrishinov :( heh.. very odd and strange.. have no idea why such happends :(
Georgi Dobrishinov
@dobrishinov
Feb 05 2016 10:45
i think esp is broken but i dont know
robotiko
@robotiko
Feb 05 2016 10:52
@hreintke I guess that is similar to what you are getting ready with commands
robotiko
@robotiko
Feb 05 2016 11:04
@harry-boe what arducam are you using? the mini with OV2640 ?
Harry Böttcher
@harry-boe
Feb 05 2016 11:16
@robotiko that Project has the most recent libs with esp support
the samples are completely different
I use the 2M pixel module ov2640
hreintke
@hreintke
Feb 05 2016 11:18
@robotiko :
Yes, to trigger using the websocket the command processing can be used.
Besides that, with people already working on adding support for new Content-flags and the HTTP-POST command trigger (already in Sming_RTOS) I think it even get more generic,
Harry Böttcher
@harry-boe
Feb 05 2016 11:18
you can check the progress on my fork
the camera end is working now I Ned to do something with the picture
robotiko
@robotiko
Feb 05 2016 11:38
@harry-boe suggestion for the camera: simplest and very interesting usage is motion detection
done by direct pixel comparison between samples
if too heavy this can be "thresholded" in pixel values and subsampling in resolution
laurentppol
@laurentppol
Feb 05 2016 11:41
@dobrishinov don't know if it is relevant, but my (simple) app sending 1 line of text every second WORKS over Internet, You can test it.
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 11:42
@laurentppol @dobrishinov Small data chunks, smaller than mtu are working.. try to send something bigger, >1500 bytes :(
laurentppol
@laurentppol
Feb 05 2016 11:43
@avr39-ripe could we cut this at the router?
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 11:44
@laurentppol don't think so.. mtu is setted up from esp8266 side... :( so it will use its internal mtu...
laurentppol
@laurentppol
Feb 05 2016 11:45
so how work 10-30k files from "NetworkConfig" example?
at least over LAN
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 11:46
over lan we have old good 1500 as mtu.. so all works as a charm.. over dsl or mobile we OFTEN (not always!) have smaller mtu..
laurentppol
@laurentppol
Feb 05 2016 11:47
@avr39-ripe what if You set small MTU on WAN side of router? It will fragment & reassemble
Georgi Dobrishinov
@dobrishinov
Feb 05 2016 11:49
@laurentppol with sdk 1.4.0 work, i update sdk to 1.5.1 and work too, but after some days i dont change anything over mobile data stop work. But on Lan internet work (from different place). Today i downgrade sdk to 1.4.0 but dont work. I upload sample - bootstrap from sming and dont open from mobile data. But after some days works... i dont know why i try everything. I will buy new esp for test...
laurentppol
@laurentppol
Feb 05 2016 11:49
if I remember ok, MTU should be negotiated to smallest on path
maybe they set it fixed 1500?
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 11:50
maybe so if router supports this.. but I don't think we should cure router or network infrastructure.. we should cure esp tcp/ip stack... and we can't do it by now... spressif's lwip isn\t fully compatible with opensource one.. and theirs variant is close-sourse.. and AFAIK, mtu change is possible only at lwip lib COMPILATION.. I can be wrong!! I'm not gugu in this question..
laurentppol
@laurentppol
Feb 05 2016 11:51
OpenWRT would support that
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 11:52
@laurentppol you can try.. and share you results if you can and/or want ;)
laurentppol
@laurentppol
Feb 05 2016 11:54
if / when I'll have working http server on ESP
Alexander V. Ribchansky
@avr39-ripe
Feb 05 2016 11:55
@laurentppol pick one from sming's samples..
laurentppol
@laurentppol
Feb 05 2016 11:56
I did, for WiFi config, but now I am concerned with 24bit ADC (trying to kill noise)
hreintke
@hreintke
Feb 05 2016 15:24

@avr39-ripe :
On espressif bbs site the statement for LWIP in RTOS is : (google translate from chinese)

RTOS LWIP will open in the next version RTOS SDK, and then you can make yourself can print debug information.

There is not yet a statement on when next sdk release will be available but it is on the roadmap

Skurydin Alexey
@anakod
Feb 05 2016 23:24
It's new sub-project and isn't Sming replacement of course :)
SmingNode is developed for fast Smart Home solution development. Script lauange (minimal JS) allow to change algorithms on the fly and Sming background provide powerfull tools for developers.