These are chat archives for SmingHub/Sming

8th
Feb 2016
Georgi Dobrishinov
@dobrishinov
Feb 08 2016 01:33
@hreintke l be glad if you add "small lwip" in the option, ( but i found one bug, with network config example and this small lwip - in ipconfig, dont work saving static ip, tcp freeze) : )
slaff
@slaff
Feb 08 2016 14:57
Hi guys, if someone is interested in SSL in Sming then take a look at that repo and branch: https://github.com/slaff/Sming/tree/feature/axtls-dev
I published my SSL integration into Sming.
slaff
@slaff
Feb 08 2016 15:03
The SSL integration works, although on my device it is not that stable. Would be glad if someone can take a look and test it on his device. On my one I got something like this
dhcp client start...
ip:192.168.43.80,mask:255.255.255.0,gw:192.168.43.1
Connected. Got IP: 192.168.43.80
Download: https://raw.githubusercontent.com:443/SmingHub/Sming/master/Readme.md
connect to: raw.githubusercontent.com
realloc 80 -> 211
DNS record found: raw.githubusercontent.com = 23.235.43.133
TcpConnection::connect result:, 0
OnConnected
staticOnConnected: useSSL: 1, Error: 0
SSL: Starting connection...
SSL: Switching to 160 MHz
Error: This is not a valid ASN.1 file
Error: Invalid X509 ASN.1 file (X509 not ok)
please start sntp first !
SSL: handshake is in progress...
TCP sent: 52
please start sntp first !
TCP sent: 342
SSL: Handshake done.
SSL: Switching back to 80 MHz
TCP connected
onReadyToSendData: 0
TCP sent: 133
onReadyToSendData: 2
SSL:decrypted data len 5537
SSL: decrypted data: HTTP/1.1 200 OK
Content-Security-Policy: default-src 'none'
X-XSS-Protection: 1; mode=block
X-Frame-Options: deny
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
(...)Header pos: 736
Content-Security-Policy === default-src 'none'

// <--- somewhere here the devices hangs some seconds before it is reset 

ets Jan  8 2013,rst cause:4, boot mode:(3,6)
robotiko
@robotiko
Feb 08 2016 15:07
@slaff finally ssl in sming?
terrific :D
not that stable.. is just the initial hang
also running?
slaff
@slaff
Feb 08 2016 15:08
SSL is coming to Sming, yes. Just need a review from some Sming C/C++ gurus to make it more stable :)
ystrem
@ystrem
Feb 08 2016 15:09
@slaff :+1:
slaff
@slaff
Feb 08 2016 15:12
The SSL is based on axtls ( the version that @igrr has) + LWIP raw compat stuff that I added. The code is much more cleaner than the SSL integration which Espressif did in their IoT Demo project in SDK 0.9.x
robotiko
@robotiko
Feb 08 2016 15:13
@slaff so it is raw , not socket version?
slaff
@slaff
Feb 08 2016 15:13
Yes, LWIP tcp raw (http://lwip.wikia.com/wiki/Raw/TCP), exactly the same stuff that Sming is using.
ipadjanji
@ipadjanji
Feb 08 2016 16:00
Linux
mk: No such file or directory
make: * No rule to make target '/opt/sming/Sming/Makefile-project.mk'. Stop
Harry Böttcher
@harry-boe
Feb 08 2016 16:01
@slaff
That great. Will have a look.
Why is that project not in SmigCore/Network ? That’s the first place i was looking for
ipadjanji
@ipadjanji
Feb 08 2016 16:02
Makefile:23: /opt/sming/Sming/Makefile-project.mk: No such file or directory
make: * No rule to make target '/opt/sming/Sming/Makefile-project.mk'. Stop
slaff
@slaff
Feb 08 2016 16:02
@harry-boe It has to be polished a bit before it becomes part of SmingCore. There is already a PR request for it.
Harry Böttcher
@harry-boe
Feb 08 2016 16:04
@slaff agreed for the pollishing, but it’s additional effort to move it later
ok just saw the PR
alonewolfx2
@alonewolfx2
Feb 08 2016 16:09
@ipadjanji please check sming home variable in makefile
and esp home
slaff
@slaff
Feb 08 2016 16:14

but it’s additional effort to move it later

Not at all. Once it is polished it can be merged.

alonewolfx2
@alonewolfx2
Feb 08 2016 16:32
@slaff what about rtos based sming ?
slaff
@slaff
Feb 08 2016 16:36
Once step at a time. First in NonOS SDK and then we can integrate it in RTOS.
@alonewolfx2 - Are you good at C/C++ and LWIP? If yes, I need your help :)
alonewolfx2
@alonewolfx2
Feb 08 2016 17:04
@sle118 can we use your image library on ili9341
Harry Böttcher
@harry-boe
Feb 08 2016 19:18
@alonewolfx2 I will try to catch up with the image lib once I have the arducam running
the idea is to have live preview on some tft's
Alexander V. Ribchansky
@avr39-ripe
Feb 08 2016 22:15
Hello! Does somebody use or know work logic of SDK API wifi_station_ap_number_set/wifi_station_ap_change ?? I try to use caching but unsuccessfuly.. cant figure out how it works.. I read sdk 1.5.2 pdf - no light on it either.. :(