These are chat archives for SmingHub/Sming

5th
Nov 2015
zhivko
@zhivko
Nov 05 2015 07:34
Any chances to completely disable wifi and then when some code completes reenable it?
zhivko
@zhivko
Nov 05 2015 08:06
Ignore my last message ... I can see WifiStation.enable(false); but that will cause my clients to disconnect of course...
alonewolfx2
@alonewolfx2
Nov 05 2015 08:16
@zhivko of course clients loose connection. but there are two method to disable wifi.
1- WifiStation.enable(false);
2- System.deepSleep(10,eDSO_DISABLE_RF );
second method need restart ofcourse but module wifi completely disabled and total current consume about ~15ma
first method doesnt change current (same with enabled station)
crosofg
@crosofg
Nov 05 2015 11:07
How can firebase be integrated in Sming/ESp?https://www.firebase.com/
Dmitry Kireev
@kireevco
Nov 05 2015 11:08
@crosofg sqlite is a better candidate
IMHO
How do you mean? On a chip itself?
Or on a server and sming talks
crosofg
@crosofg
Nov 05 2015 11:14
a firebase clinet for ESP
i mean esp directly impletments the listeners of firebase
Dmitry Kireev
@kireevco
Nov 05 2015 11:15
Gotcha. Isn't it just Json transport that is required ?
alonewolfx2
@alonewolfx2
Nov 05 2015 11:17
@crosofg what is firebase
crosofg
@crosofg
Nov 05 2015 11:18
realtime databse . it provides a lot of cool callbacks
like ondatachngelistner
comes handy
hreintke
@hreintke
Nov 05 2015 11:19
Isn't firebase HTTPS only ?
Dmitry Kireev
@kireevco
Nov 05 2015 11:20
Listeners? What exactly would you like to do ?
crosofg
@crosofg
Nov 05 2015 11:24
suppose I want to make IFTTT kind of tstuff. if someone reaches a particular place, then some notification should be received in a esp module resideing at home
it sshould work immediatly
David
@dmarkey
Nov 05 2015 11:29
so like mqtt?
crosofg
@crosofg
Nov 05 2015 11:32
yeah mqtt seems fine.I wonder why it didnt cross my mind
This message was deleted
crosofg
@crosofg
Nov 05 2015 11:37
?
can we get a online private mqtt broker
David
@dmarkey
Nov 05 2015 11:38
host your own
or use one of the public ones
crosofg
@crosofg
Nov 05 2015 11:39
i have no idea
David
@dmarkey
Nov 05 2015 11:40
no idea about what?
crosofg
@crosofg
Nov 05 2015 11:41
can a mqtt broker be hosted on a shared server hosting
David
@dmarkey
Nov 05 2015 11:42
Well it requires its own TCP port. Google mosquitto.
Dmitry Kireev
@kireevco
Nov 05 2015 11:58
Google mqtt service
There are cloud providers
open-home-automation
@open-home-automation
Nov 05 2015 12:28
cloudmqtt offers a free private one, but it's very limited. Their payed plans are a bit expensive in my opinion though.
Dmitry Kireev
@kireevco
Nov 05 2015 13:19
@open-home-automation yeah...
I tend to configure my own stuff. I like rabbitmq with it’s mqtt connector
and it has websockets out of the box.
David
@dmarkey
Nov 05 2015 13:28
rabbitmq is so heavy
Dmitry Kireev
@kireevco
Nov 05 2015 13:33
@dmarkey why? it depends on your config, rabbitmq is fast and enterprise-ready
David
@dmarkey
Nov 05 2015 13:34
Erlang is heavvvy, mosquitto is a few lines of C
Dmitry Kireev
@kireevco
Nov 05 2015 13:35
@dmarkey yeah… but it scales though
so, if you are up to something bigger than a simple test - rabbitmq is the way to go...
unless mosquito can cluster?
David
@dmarkey
Nov 05 2015 13:37
Not natively, but I dont think @open-home-automation is really at that stage yet.
Dmitry Kireev
@kireevco
Nov 05 2015 13:39
@dmarkey I liked rabbit because I can deploy it with websockets out of the box
something like that
robotiko
@robotiko
Nov 05 2015 18:26
@all just in case that you didn't see the monster from espressif https://twitter.com/EspressifSystem/status/662205725125414912
Dmitry Kireev
@kireevco
Nov 05 2015 18:27
can’t wait… did anyone get a beta device ye?
robotiko
@robotiko
Nov 05 2015 18:28
they are getting the beta ready
Dmitry Kireev
@kireevco
Nov 05 2015 18:28
who has contacts with espressif? I think we should ask for demo for Sming
robotiko
@robotiko
Nov 05 2015 18:28
hum.. can try
Dmitry Kireev
@kireevco
Nov 05 2015 18:28
I would get a device, same as you @robotiko @alonewolfx2 @raburton and others.
robotiko
@robotiko
Nov 05 2015 18:29
we can try with John Lee
but first batch is very tight .,. and they started long time ago
Dmitry Kireev
@kireevco
Nov 05 2015 18:30
Should we create an issue on github with core people signed off?:)
robotiko
@robotiko
Nov 05 2015 18:30
.. based on what the CEO mentioned a few days ago.. the new device.. has new programming paradigm ..
Dmitry Kireev
@kireevco
Nov 05 2015 18:30
ah
any details?
robotiko
@robotiko
Nov 05 2015 18:32
Hello, everyone!
well, it's my pleasure to talk about the new chip: we have been working 24/7 testing the new chip. so far so good, except for a couple of bugs, which are immaterial. it will be sent for reliability testing next week.
The overall architecture of the chip had been totally changed since ESP8266, and we are kind of relieved that it works. So if the Russian guys are decapping the chip again, it will look somewhat different. Hehe. *:_p
And performance has been bumped up quite a bit! We are going to have 100Mbps sustained throughput, and EMMC interface as well. There is a lot more RAM, to go with that data rate. The same 7 external component BOM is still possible, and maybe less. 
We measured about 400DMIPS on the new chip. WiFi uses less than 30DMIPS. I have no idea yet what the Hackers/Makers/Developers are going to do with that 370DMIPS and 100Mbps of data...
We haven't tested the low power portion yet, because of a bug, but it will be fixed in a couple of days, but we have seen hints that it can be very very low power. Low power chip design, unfortunately is sometimes, more like art than science; a lot of things are beyond simulation and models.
there is going to be a temperature sensor as well, but when WiFi transmits, it increases the temperature by at least 20°C. So...
What else have i left out? I need to catch some sleep...
Dmitry Kireev
@kireevco
Nov 05 2015 18:33

we are kind of relieved that it works

hm, sounds «promising»

if the Russian guys are decapping the chip again,

what did he mean?

robotiko
@robotiko
Nov 05 2015 18:35
soft complaint ..
typical hw reverse engineer for mcu..
Dmitry Kireev
@kireevco
Nov 05 2015 18:36
ah
well, still not sure if they redid everyting in a better way...
probably changed everything completely and nothing is compatible :-D
robotiko
@robotiko
Nov 05 2015 18:42
we will see.. that will mean a hell for them too for sdk etc
and in first post about new device they mentioned that it would be sdk compatible..
Sven Eliasson
@comino
Nov 05 2015 19:01
Wifi + BLE - NICE ! :D
robotiko
@robotiko
Nov 05 2015 19:02
  • all peripheral
alonewolfx2
@alonewolfx2
Nov 05 2015 19:17
@kireevco if anyone of us can receive new chip, maybe we can port sming into the new chips sdk
Sven Eliasson
@comino
Nov 05 2015 19:27
I was apearently convincing :D They told be I will get one of the first batch! Will share everything :)
be = me*
robotiko
@robotiko
Nov 05 2015 19:27
@comino how did you reached them?
alonewolfx2
@alonewolfx2
Nov 05 2015 19:31
@comino I am out :D
zhivko
@zhivko
Nov 05 2015 19:47
If they say that it would be SDK compatible that means it should be not so hard to port SMING to it...
Sven Eliasson
@comino
Nov 05 2015 19:53
They said a lot of stuff in the past ;)
zhivko
@zhivko
Nov 05 2015 19:53
Was there some time estimate for this ESP32?
I don't see time component here :)
But as far as I am concerned they are ahead of TI and Atmel in the field of IOT.
But it's really interesting why they have not took arm design...
Sven Eliasson
@comino
Nov 05 2015 19:54
"... we will be sending out in the next two weeks.." If you mean the beta batch.
zhivko
@zhivko
Nov 05 2015 19:55
Licensing price for ARM is really not that much per cpu...
Sven Eliasson
@comino
Nov 05 2015 19:55
yes - defnetly! Just yesterday I was dreaming ... "gosh.. a ESp with bluetooth would be nice"
zhivko
@zhivko
Nov 05 2015 19:55
@comino Ah ok I missed that.
I just whanted to buy some more esp8266e or f - but now I will wait. But ADCs, DACs... this thing is way more complicated than esp8266...
Looking back for SMING for esp8266 ... it took what - half a year to get usable stable environment... I bet it would take even more for this new chip... but hey -@Anakod & Other smart SMING heads should comment this...
robotiko
@robotiko
Nov 05 2015 19:59
ble + wifi is top trend
for really cool devices..
low bat comm with ble
zhivko
@zhivko
Nov 05 2015 20:00
I really don't see any advantage in BLE.
robotiko
@robotiko
Nov 05 2015 20:00
all iot sensors need it
zhivko
@zhivko
Nov 05 2015 20:00
The main thing for IOT is wifi... and TCP stack
robotiko
@robotiko
Nov 05 2015 20:00
not really
wifi is very batt expensive
zhivko
@zhivko
Nov 05 2015 20:01
but with deep sleep ?
robotiko
@robotiko
Nov 05 2015 20:01
usually you have ble for sensor etc on batt and then you have pluged coordinator that makes teh wifi gateway
with deep sleep is less iot than ble
zhivko
@zhivko
Nov 05 2015 20:01
How would you route BLE trafic to internet - you need again some special hw to do this?
robotiko
@robotiko
Nov 05 2015 20:02
gateway..
Sven Eliasson
@comino
Nov 05 2015 20:02
Wifi + Battery = NO!
alonewolfx2
@alonewolfx2
Nov 05 2015 20:02
@comino definetely right :D
robotiko
@robotiko
Nov 05 2015 20:02
look at the parrot devices
plats etc
all ble
zhivko
@zhivko
Nov 05 2015 20:02
you mean parrot in car for transmitting audio ?
robotiko
@robotiko
Nov 05 2015 20:02
and.. it also depends on what ble version
parrot for transmitting car audio? :D
zhivko
@zhivko
Nov 05 2015 20:03
yea is it 4.0 last one that allows lowest bat consumption ?
:) hehe
robotiko
@robotiko
Nov 05 2015 20:04
those guys are trend gadgets for a long time.. drones.. and and all toys they present all years
zhivko
@zhivko
Nov 05 2015 20:04
whatever for me TCP makes it simple enough... You can have 9V battery and switcher that runs 95%, and lower voltage to 3.3V... I bet it lasts...
And if you have deep sleep
robotiko
@robotiko
Nov 05 2015 20:05
ble 4.1 .. and newests .. are going to fight with wifi for IoT
zhivko
@zhivko
Nov 05 2015 20:05
More important for me is 2 cpus - I assume everything can run faster... and those wifi glitches would not happen anymore
but you need extra HW then - it makes whole solution more expensive again!
zhivko
@zhivko
Nov 05 2015 20:10
Not that esp8266 is not fast enough right now... ESP8266 is still ridiculous cheap.
robotiko
@robotiko
Nov 05 2015 20:11
esp8266 is very fast .. it depends what you use it for..
most projects will not take any advantage of more cpu.. but the power consumption of dual core.. can be an issue in batt world
alonewolfx2
@alonewolfx2
Nov 05 2015 20:14
@robotiko it can be battery hunter
robotiko
@robotiko
Nov 05 2015 20:16
that is what I just pointed
alonewolfx2
@alonewolfx2
Nov 05 2015 20:18
what if it can disable ? john lee said about very very low power mode
robotiko
@robotiko
Nov 05 2015 20:21
then it will be cooler :D
but we will see..
John Harrison
@whyameye
Nov 05 2015 20:29
I'm really struggling about how to support firmware updates for a product intended to be commercial with ESP8266. I'd love to use Sming and have had good luck with rBoot OTA but Sming doesn't support TLS and doing an update w/out TLS seems like not a good idea. Native with rBoot works great but writing all of the code I need natively would be painful. Arduino framework would be great but I don't see any sort of working remote update (different intranet) that could be transparent to the user. Advice?
robotiko
@robotiko
Nov 05 2015 20:31
@whyameye arduino has ota update too .. not sure if their ssl is working yet
zhivko
@zhivko
Nov 05 2015 20:31
@whyameye And if you think of super complex password and using https ?
robotiko
@robotiko
Nov 05 2015 20:31
@zhivko sming doesn't support https
zhivko
@zhivko
Nov 05 2015 20:31
ah...
John Harrison
@whyameye
Nov 05 2015 20:44
@comino that web updater only works when you are on the same intranet as the 8266
@robotiko I don't know of an arduino OTA update option that works with a remote server.
but SSL is working in the arduino framework. I've tested that
alon24
@alon24
Nov 05 2015 20:56
@here how do i fetch just one commit (tprochazka/Sming@8bfca93)
hreintke
@hreintke
Nov 05 2015 21:30
@alon24 : to get the PR from sminghub :
git fetch https://github.com/SmingHub/Sming.git pull/398/head:localbranch
git checkout localbranch
alon24
@alon24
Nov 05 2015 21:32
thanl
ks,
robotico has been kind enough to help