These are chat archives for SmingHub/Sming

2nd
Mar 2016
bundabrg
@bundabrg
Mar 02 2016 01:10
@alon24 I've packaged it up at https://github.com/bundabrg/GSlib. It assumes the first 1Mb of your flash is split into 2 roughly 512Kb rom's, the rest to spiffs. HTH
alonewolfx2
@alonewolfx2
Mar 02 2016 05:21
Esp-12
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 08:21
@alonewolfx2 found what was the problem wit DS3232RTC ;)
My bad, and one who wrote the lib :)
if you use default I2C pins which is 0 - SCL 2 - SCDA all works as a charm.. but if you change pins and call Wire.pins there is no effect.. i2c is still on 0, 2... reason is Wire.begin() in DS3232RTC constructor...heh! :(
I check lib and cone on default pins.. so all was good.. my testing was wrong.. sorry.. will make PR for nonOS and RTOS..
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 08:26
meanwhile you can just grab DS3232RTC.cpp and comment out line in constructor i2cBegin();
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 10:13
@alonewolfx2 correct this issue, wait for your feedback..
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 11:29
@hreintke Hello, any news about SmingRTOS and "The big scary apps" ? ;)
Patrick Jahns
@patrickjahns
Mar 02 2016 12:37
do you guys know if I need to reset when I change from dhcp to manual ip or vice versa? And also do I need to reset if I change manual IP Settings?
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 12:59
@patrickjahns don't think you should reset, but better check it yourself for sure..
Jose Barros
@PTDreamer
Mar 02 2016 15:45
Hi all
what are the rules to comment PRs?
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 15:47
@PTDreamer I think there are no strict rules so far... feel free to comment if you have what to say :)
hreintke
@hreintke
Mar 02 2016 15:49
@avr39-ripe : @all
Not yet on big app. I have been busy with non-sming related last couple of days. Will improve by tomorrow, latest on friday.
That is also the reason for not much replying on PR's and issues from my side.
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 15:51
@hreintke okay! We all need to eat sometime.. and to pay food - had to work :( (joking!!) will wait for you become less occuped
Jose Barros
@PTDreamer
Mar 02 2016 15:51
@avr39-ripe I always do :)
Jose Barros
@PTDreamer
Mar 02 2016 15:58
@patrickjahns sorry if the comments sound to harsh, English is not my first language or my second
hreintke
@hreintke
Mar 02 2016 16:03
@avr39-ripe :
Can you have a look at the wifi events PR on SmingRTOS ?
It fails on travis build check.
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 16:04
@hreintke hmm.. okay.. I will..
@hreintke my bad.. I forgot to define WIFI_SSID and WIFI_PWD inside the app... it is on my ENV so it don't fail when I check it..
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 16:16
@hreintke fixed wifievents PR
Patrick Jahns
@patrickjahns
Mar 02 2016 16:51
@PTDreamer no offense taken ;-)
alonewolfx2
@alonewolfx2
Mar 02 2016 19:00
@avr39-ripe still same result :(
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:01
@alonewolfx2 do you update you SmingRTOS with my fixes??
do you rebuild wming lib after?
I tested ds3231 on 0,2 pins and 5,4 pins.. works in both case..
either on rtos and nonos sming..
@alonewolfx2 it must works after removing i2cbegin() from DS3232RTC.cpp.. Early call to Wire.begin() prevents Wire.pins to take effect.. and now it is fixed.. I also update example app.. now it looks bit nicer..
alonewolfx2
@alonewolfx2
Mar 02 2016 19:05
i manually changed that line and rebuild both framework and app
and i tied 2 different module
its weird
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:09
really wired... are you completely sure that you connects module to SCL - 0,SDA - 2 or SCL-5, SDA - 4 ?? can you try default configuration for i2c as SCL - 0,SDA - 2 Wire.pins(0,2) or even without call to Wire.pins it MUST work.. :(
on my hw there in no pullup or pulldown resistors on gpio 4,5.. and there is 10k pullup on 0,2.. on both pin combination it works.. :(
alonewolfx2
@alonewolfx2
Mar 02 2016 19:12
i tried also i2cscanner example and its finding rtc on 0x68
so i think wiring pins are correct
i am trying different things maybe i can find issue
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:13
@alonewolfx2 do you use some adapter pcb for esp-12?
alonewolfx2
@alonewolfx2
Mar 02 2016 19:15
yes
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:15
I use pcb by myself with above described resistors.. as powersource - simple 220-to-5V poweradapter and ams1117-3.3 voltage regulator with ceramic and tantalum capacitors..
does 5,4 pins have any resistors?? does pins 0,2 have any resistors?? are wirring secure? for tests I use cheap cheenes dupont cables approx. 15-20 cm long..
alonewolfx2
@alonewolfx2
Mar 02 2016 19:18
ok i used new code and 0.1mf cap on sda worked fine
without cap its not working both gpio2-0 or 4-5 combination
seems i have weird 2 rtc module
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:19
I think it is powersource issue...
as my own standart I use 100nF + 47uF cap on both input and output of ams1117-3.3 linear regulator..
alonewolfx2
@alonewolfx2
Mar 02 2016 19:21
hmm maybe
i am using 470uf on outputside
thanks for your good example
and library
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:22
with such powering had n issue on many PCB's... large cap is good, but you MUST HAVE small CERAMIC cap on both input and output.. I use 100 nF..
alonewolfx2
@alonewolfx2
Mar 02 2016 19:22
do you think add alarm functionality on example?
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:23
@alonewolfx2 may be later.. this particular app is really handy NTP setter which ?I use to firsttime time set on fresh modules..
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:27
Heh! this is very different type of voltage regulator.. it is nonlinear.. advantage is more efficency, but it outputs VERY high frequency, not "real" DC on its output... LINEAR voltage regulator is less efficient, but outputs real "true" DC... checkout google for difference of this two types voltage regulator..
I do not try to power esp with pulse voltage regulators like you post link above.. cant say whether it is good or not..
alonewolfx2
@alonewolfx2
Mar 02 2016 19:29
ok i will try with this module and ket you knoe
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:30
@alonewolfx2 ok :) will wait to hear some news from you :)
alonewolfx2
@alonewolfx2
Mar 02 2016 19:35
ok seems working with that module without any cap on sda line
is it good or bad things :D
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:36
sounds good :) and what was powersource before?
alonewolfx2
@alonewolfx2
Mar 02 2016 19:37
ams1117
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:38
hmm... odd.. but if there is no small ceramic caps - it isnt so odd :)
alonewolfx2
@alonewolfx2
Mar 02 2016 19:40
haha there is no cap on my ams1117 :) just 470uf on output
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:40
@alonewolfx2 own made ams1117 or some module ???
alonewolfx2
@alonewolfx2
Mar 02 2016 19:41
own made
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 19:44
heh.. when I start to play with ams1117 I either wander why I need such small, 100nF cap if there is already large 47uF or greater cap.. but this two types and capacitance capacitors do different work..
such scheme is suggested by ams1117 datasheet..
alonewolfx2
@alonewolfx2
Mar 02 2016 19:56
set alarm function working fine
Alexander V. Ribchansky
@avr39-ripe
Mar 02 2016 20:01
@alonewolfx2 sounds good :)
HappyCodingRobot
@HappyCodingRobot
Mar 02 2016 20:15
good to hear it is working for you .. but do not use caps on sda/scl. much more important are pull-up resistors for a stable working condition
on the 3.3V, a single device and short cables resistors around 4k7 are ok
the step-down converter are ok but you should put a larger cap on the output
robotiko
@robotiko
Mar 02 2016 21:55
@ystrem around?
rtos gdb does it work for you when you flash the basic_debug example?
or simply resets?
ystrem
@ystrem
Mar 02 2016 21:57
yep, but not tested it only compile, don't have much time now, maybe tomorrow
robotiko
@robotiko
Mar 02 2016 21:57
ok
ystrem
@ystrem
Mar 02 2016 21:58
y a on windows ?
robotiko
@robotiko
Mar 02 2016 21:58
to me it continusly resets
yes
even basic debug
ystrem
@ystrem
Mar 02 2016 21:58
hmm it's hard to set it up in eclipse
?
robotiko
@robotiko
Mar 02 2016 21:59
nopes
but so far I can just run in nonos
ystrem
@ystrem
Mar 02 2016 22:15
do y use esp-alt-sdk ?
I get this error
Could not determine GDB version using command: C:\tools\esp-alt-sdk\xtensa-lx106-elf\bin\xtensa-lx106-elf-gdb.exe --version
ImportError: No module named site
`
zhivko
@zhivko
Mar 02 2016 22:26
I am trying gdb on linux now
Has anybody suceeded making gdb serial conection with sming rtos esp ?
UPs... I flashed my sample... probably need to try with basic debug ?
zhivko
@zhivko
Mar 02 2016 22:32
I try to connect to flashed nodemcu with gdb support ons SMING_RTOS and I get just:
GNU gdb (crosstool-NG 1.20.0) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-build_pc-linux-gnu --target=xtensa-lx106-elf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
zhivko
@zhivko
Mar 02 2016 22:37
@alonewolfx2: I use this: http://www.mcmelectronics.com/product/MURATA-POWER-SOLUTIONS-OKI-78SR-5-1-5-W36-C-/124-10255
it is cheap 4€ and works OK for esp - no problems detected.... for now
it is 36V to 5V poewr supply at 1.5A
zhivko
@zhivko
Mar 02 2016 23:15
Farnell sells this.