These are chat archives for SmingHub/Sming

3rd
Nov 2015
evanmj
@evanmj
Nov 03 2015 02:19
Hey guys, I hate to keep coming in here with dumb questions, but I'm having trouble with the python minterm on ubuntu... Launching command 'python -m serial.tools.miniterm /dev/ttyUSB0 115200' works sometimes, but other times I get jibberish characters. It seems random... within a single flash of the ESP, I can launch the command multiple times and eventually it just seems to work. Has anyone seen the problem? I know it is not a baud rate mismatch since it works most of the time. It is not the ESP boot jibberish, this is all within a single boot of the ESP. Anyone seen this? Thanks.
evanmj
@evanmj
Nov 03 2015 02:30
Should I just learn eclipse instead of the command line?
evanmj
@evanmj
Nov 03 2015 02:47
It seems if I change to 56700 and back to 115200 it works. Odd.
57600*
Dmitry Kireev
@kireevco
Nov 03 2015 07:35
@evanmj eclipse does same thing as command
in fact it just executes a command
Tomáš Procházka
@tprochazka
Nov 03 2015 07:38
Hi. Does somebody tried to use GPIO 9 and 10 on the ESP-12E (Nodemcu v1)? It works correctly until I use SPI, when I send tometing over SPI it always cause reset GPIO 9 a 10 to LOW.
alon24
@alon24
Nov 03 2015 07:59
@tprochazka how did u check gpio9 and 10, what espreiff sdk 1.3? 1.4? I tried with dio on a normal (well 12e on a breakoput board, maybe there is an issue with it, not on nodemcu) and GPIO9 kept reseting on me, are you saying that it works for you? I also opened a defect SmingHub/Sming#336
John Harrison
@whyameye
Nov 03 2015 15:37
are there docs for the api somewhere?
for example, where are the docs for procTimer
zhivko
@zhivko
Nov 03 2015 16:10
@whyameye I think there is https://github.com/SmingHub/Sming - this is only docs for Sming, I am aware of.
@whyameye you can download code and if you have eclipse, you press F3 and jump over the code from examples to definitions...
Code is commented so you can read details from there (.cpp and .h) files
Dmitry Kireev
@kireevco
Nov 03 2015 16:11
@whyameye You can explore autocomplete in Eclipse. Api is available when you download Sming
zhivko
@zhivko
Nov 03 2015 16:12
I see http://www.banggood.com/10Pcs-ESP8266-ESP-12E-Remote-Serial-Port-WIFI-Transceiver-Wireless-Module-p-982885.html this is module with 4Mb
Anybody knows what means - improve peripheral circuitry increases impedance matching?
@kireevco do we have working hw pwm now?
Dmitry Kireev
@kireevco
Nov 03 2015 16:13
no idea :)
zhivko
@zhivko
Nov 03 2015 16:13
:)
alon24
@alon24
Nov 03 2015 16:17
@zhivko thats the 12e - basically it is supposed to have better wireless, (i did not test), no change in pins from esp12 - 4M is now standard on 12-12e-12q, and nodemcu v1 - comes with12e and costs 4.6$
hreintke
@hreintke
Nov 03 2015 16:50
@zhivko :
HW_PWM is ready to merge. For all (except @raburton ) it seems to work OK.
Final testing and possible updates for HW_PWM will be done in develop branch
alonewolfx2
@alonewolfx2
Nov 03 2015 18:02
@hreintke i didnt compile hw pwm branch
Tomáš Procházka
@tprochazka
Nov 03 2015 18:46

@tprochazka how did u check gpio9 and 10, what espreiff sdk 1.3? 1.4? I tried with dio on a normal (well 12e on a breakoput board, maybe there is an issue with it, not on nodemcu) and GPIO9 kept reseting on me, are you saying that it works for you? I also opened a defect SmingHub/Sming#336

Until I'm use SPI for communication with SSD1306 OLED display it works correctly. I tested only OUTPUT mode on GPIO 9 a 10 and it works normally. If I use SPI it reset state of this PINS to LOW. I have no problem with reset of whole ESP.

hreintke
@hreintke
Nov 03 2015 19:29
@alonewolfx2 : Don't understand what you want to tell
alonewolfx2
@alonewolfx2
Nov 03 2015 20:08
@hreintke i tried to compile HW_PWM but i have just error messages in compile log
robotiko
@robotiko
Nov 03 2015 20:28
hi
with develop branch..
there is a need to make spiffy manually to make it work, right?
alonewolfx2
@alonewolfx2
Nov 03 2015 20:30
yes
robotiko
@robotiko
Nov 03 2015 20:30
I just added the target
and works
:D
alonewolfx2
@alonewolfx2
Nov 03 2015 20:32
i still cant compile hw_pwm :D
hreintke
@hreintke
Nov 03 2015 20:48
What errormessages ?
alonewolfx2
@alonewolfx2
Nov 03 2015 21:10
SmingCore/HardwarePWM.cpp:34:13: error: 'pwm_start' was not declared in this scope
   pwm_start();
alon24
@alon24
Nov 03 2015 21:17
@raburton would something like be possible with rboot, Igor wrote e-book, which allows for always listening esp for Ota
hreintke
@hreintke
Nov 03 2015 21:18
@alonewolfx2 Are you on windows ?
alonewolfx2
@alonewolfx2
Nov 03 2015 21:18
yes
alon24
@alon24
Nov 03 2015 21:19
@raburton esp8266/Arduino#268
hreintke
@hreintke
Nov 03 2015 21:19
Maybe related to the pmw.h issue, not sure whether is solved in PR already.
Tomáš Procházka
@tprochazka
Nov 03 2015 21:20

I found solution of my problem with GPIO 9 and 10 right now!
I replaced

*csport |= cspinmask;
*dcport |= dcpinmask;
*csport &= ~cspinmask;
*csport |= cspinmask;

by

digitalWrite(cs, HIGH);
digitalWrite(dc, HIGH);
digitalWrite(cs, LOW);
digitalWrite(cs, HIGH);

In Adafruit_SSD1306.cpp on the display() method, line 520
And problem is gone!
It looks that bit mask is incorrect and change more pins!

alon24
@alon24
Nov 03 2015 21:22
wow cool
do interrupts work on 9, 10 for you
Tomáš Procházka
@tprochazka
Nov 03 2015 21:22
I didn't test interrupts on these pins yet
alon24
@alon24
Nov 03 2015 21:23
would appreciate it
😁
Tomáš Procházka
@tprochazka
Nov 03 2015 21:25
I have plan to test interrupts soon. I will inform you.
Now I want to investigate where is problem with Adafruit lib
hreintke
@hreintke
Nov 03 2015 21:26
@alonewolfx2 : remove pwm.h from sming/smingcore.
Get pwm.h from hw_pwm and put into sming/smingcore
The issue is with non-case sensitive from windows
Tomáš Procházka
@tprochazka
Nov 03 2015 21:32
@hreintke I think that issue on the non case senstivie windows was fixed by @raburton in his PR, I tested it yesterday
David
@dmarkey
Nov 03 2015 21:36
@hreintke sorry just read your message
Tomáš Procházka
@tprochazka
Nov 03 2015 22:02
I entered new issue for the SSD1306 problems with some GPIO SmingHub/Sming#397
hreintke
@hreintke
Nov 03 2015 22:24
@alon24 :
With use of HttpServer and rBoot, eventually extended by TelnetServer/CommandProcessor a lot is already possible with Sming. Full "standard remote handling" of ESP is an option probably possible, maybe with some limitations.