These are chat archives for SmingHub/Sming

7th
Jan 2016
zhivko
@zhivko
Jan 07 2016 00:03
@laurentppol I tried with new nodemcu - same! DT starts from 500mV
and goes to 3.3V
laurentppol
@laurentppol
Jan 07 2016 00:06
so at least You didn't fried Your NodeMCU :)
zhivko
@zhivko
Jan 07 2016 00:12
I wish I would :)
so you also plan to change this resistor ?
on hx711 to make it work on 3.3V ?
laurentppol
@laurentppol
Jan 07 2016 00:15
and I got to change HttpServer_NetworkConfig into a "initial IP config" for my app :) "try to connect, if no success start AP, (web config), on successful connect to external AP disable ESP AP" :)
or You can try "resistor/Zener" on 3.3/5V lines, as I did for I2C LCD
zhivko
@zhivko
Jan 07 2016 00:26
you think resistor/zener will move bottom DT to 0 V ?
DO you have schematics somewhere near the hand ?
laurentppol
@laurentppol
Jan 07 2016 02:03
resistor (330ohm?) from 5V device to 3.3V device, 3.3V zener diode on 3.3V device
works for I2C
zhivko
@zhivko
Jan 07 2016 02:08
But zener only ensures max voltage is kept below 3.3 i think...
I hardly wait what you will measure.
What voltage you plan to measure?
laurentppol
@laurentppol
Jan 07 2016 02:27
Zener on I2C
SPI
as ESPis NOT "5V tolerant"
3.4V Zener works forI2C/LCD bridge
3.3
laurentppol
@laurentppol
Jan 07 2016 02:35
@zhivko voltage? Pt1000 (1k) @ max 100uA
to not heat sensor
laurentppol
@laurentppol
Jan 07 2016 02:45
I am getting debug output despite > " Serial.systemDebugOutput(false);" in Init(). WTF?
laurentppol
@laurentppol
Jan 07 2016 03:00
just ordered IL9341 LCD
Dmitry Kireev
@kireevco
Jan 07 2016 05:32
@alonewolfx2 you around?:)
Richard Antony Burton
@raburton
Jan 07 2016 08:37
@hreintke i've started porting updates from nonos sming to rtos sming
looking through closed prs and porting as appropriate
added a new label that can be applied to them once ported too, and each one submitted with a commit message of "ported SmingHub/Sming#xxx" so it create a reference in the original pr to the new commit
if you do any please do the same
hreintke
@hreintke
Jan 07 2016 08:42
@raburton : Thanks
I looked into and found a not to complicated way in working on PR base.
Downloading f.e https://patch-diff.githubusercontent.com/raw/SmingHub/Sming/pull/413.patch and then updating the patch file to match the new pathnames.
Are you doing similar or do you have a much cleverer option ?
Looking and trying a few of the PR's I think we can leave out the updates to libraries and makefiles.
Libraries will be ported separate, makefiles are not compatible
Jakub Sobieraj
@sobiso
Jan 07 2016 08:49
Hi all
Jakub Sobieraj
@sobiso
Jan 07 2016 08:54
I check new Sming (2.0) with sdk 1.4 and i have problem with example HtppServer_ConfigNetwork. I connect to ESP (esp-07) go to 192.168.4.1 and do nothing, on few seconds i see in console station: 74:e5:43:7b:b9:c1 leave, AID = 1 (my laptop). Anyone know why esp disconnect my laptop ?
When i connect to esp on phone similar situation but when i unlock phone he recoonect to esp
station: 48:50:73:b2:61:64 leave, AID = 1 rm 1 chg_A3:-180 Heap: 37920 125 Connected? :255 Heap: 37920 126 Connected? :255 add 1 aid 1 station: 48:50:73:b2:61:64 join, AID = 1 chg_A3:0
zhivko
@zhivko
Jan 07 2016 09:10
@laurentppol is pt1000 resistor?
@laurentppol again: zener and resistor would probably not solve bottom dt hanging at 500mV?
hreintke
@hreintke
Jan 07 2016 11:02
@crosofg :
Take a look at http://bbs.espressif.com/download/file.php?id=1031 .
It contains espressif ssl example based on standard lwip/rtos .
This is the direction I see ssl support by sming to be implemented in Sming_RTOS.
Richard Antony Burton
@raburton
Jan 07 2016 11:24
@hreintke mostly done then manually, none so far have been very complicated.
hreintke
@hreintke
Jan 07 2016 11:54
@raburton : With your latest commits for basic_rboot it compiles & runs OK on windows.
laurentppol
@laurentppol
Jan 07 2016 11:56
@zhivko pt1000 is platinum industry standard temp sensor, zener & R serve to limit voltage to 3.3V on bus
ystrem
@ystrem
Jan 07 2016 14:13
what do y think about that http://retrobsd.org/ ?
zhivko
@zhivko
Jan 07 2016 14:17
@laurentppol so dummy thermocouple?
@ystrem: it sounds good but - probably will limit already limited esp memory?
ystrem
@ystrem
Jan 07 2016 14:24
I think so, but for ESP32 looks good...
Jony26
@Jony26
Jan 07 2016 15:32
Difficult start SmingFramework. Help is needed. I do not understand simple things. It is desirable for the Russian.
hreintke
@hreintke
Jan 07 2016 15:48
@Jony26 : Just saying that you are Russian and say that you need help is not enough to get help.
First I suppose you followed the install instructions. If not start with that
Jony26
@Jony26
Jan 07 2016 15:58
Established according to the instructions. Of Windows. Import the C: \ tools \ sming \ Sming There are teams all / clean. Teams do not have flash. The project compiles without errors. How to create a firmware file.
I have examples of work on YouTube
hreintke
@hreintke
Jan 07 2016 16:11
I have no idea what issues you have. Better to describe than I looking thru youtube files
Jony26
@Jony26
Jan 07 2016 16:18
AR out/build/app_app.a How to create a firmware file.
hreintke
@hreintke
Jan 07 2016 16:35
The build does already create the firmware files.
If you "make flash" the application will be flashed on the esp
Jony26
@Jony26
Jan 07 2016 16:53
19:52:30 Build of configuration Sming for project SmingFramework
make flash
make: * No rule to make target `flash'. Stop.
Richard Antony Burton
@raburton
Jan 07 2016 16:56
@hreintke just out of interest any plans to move rtos to sminghub in the near future?
hreintke
@hreintke
Jan 07 2016 16:56
I think you did make flash in framework directory and not in application.
Only applications can be flashed
riban-bw
@riban-bw
Jan 07 2016 16:59
@Jony26 Try one if the samples
hreintke
@hreintke
Jan 07 2016 17:02
@raburton :
I planned to do that already but @anakod did not reply to any emails.
After three weeks of mailing he just created the sming_rtos repo without any further remark/comment.
Late december I asked for another repo to put microc in -> no answer.
I do not want to take the risk that I need something to add or change on the sminghub repo and then cannot progress.
So for now -> work from my repo, see what we then still need to update and wait for a reply :worried:
alonewolfx2
@alonewolfx2
Jan 07 2016 17:06
@kireevco now?
Dmitry Kireev
@kireevco
Jan 07 2016 17:06
here
@hreintke what exactly do you need other than sming_rtos?
hreintke
@hreintke
Jan 07 2016 17:07
"Late december I asked for another repo to put microc in -> no answer."
And..... A decent answer to questions I ask
Dmitry Kireev
@kireevco
Jan 07 2016 17:07
do you need microc repo?
@hreintke ?
hreintke
@hreintke
Jan 07 2016 17:08
I just hate to do a lot of work on someone elses framework and do not get any response without reasoning
Dmitry Kireev
@kireevco
Jan 07 2016 17:09
@hreintke no one stops you from forking sming ;)
hreintke
@hreintke
Jan 07 2016 17:09
I did see my repo
Dmitry Kireev
@kireevco
Jan 07 2016 17:10
I'm ok, I'll stay here
you never answered, what exactly do you need? what other repo do you neeed?
hreintke
@hreintke
Jan 07 2016 17:10
If you have "secret lines" to @anakod : Tell him
Dmitry Kireev
@kireevco
Jan 07 2016 17:11
I just write him a message. Never had an issue
hreintke
@hreintke
Jan 07 2016 17:11
I asked anakod and expect him to answer
alonewolfx2
@alonewolfx2
Jan 07 2016 17:11
@hreintke sometimes everyone need fun ;)
hreintke
@hreintke
Jan 07 2016 17:11
I did write 7 emails without any answer
alonewolfx2
@alonewolfx2
Jan 07 2016 17:11
we can talk for fun sometimes :D
Dmitry Kireev
@kireevco
Jan 07 2016 17:12
lol
@alonewolfx2 sorry, I don't get what exactly @hreintke needs.
what repo
alonewolfx2
@alonewolfx2
Jan 07 2016 17:13
microc,microgcc,rtos i think
hreintke
@hreintke
Jan 07 2016 17:13
@kireevco : I do need a repo and some respect from someone who doesn't answer
I asked for that repo on dec 22
Dmitry Kireev
@kireevco
Jan 07 2016 17:14
@hreintke they all look like branches to me, really
hreintke
@hreintke
Jan 07 2016 17:14
no
Dmitry Kireev
@kireevco
Jan 07 2016 17:14
oh, you want to have a microc implementation?
alonewolfx2
@alonewolfx2
Jan 07 2016 17:14
@kireevco microc is library
hreintke
@hreintke
Jan 07 2016 17:15
and source I had to update to get rtos sming running
alonewolfx2
@alonewolfx2
Jan 07 2016 17:15
Dmitry Kireev
@kireevco
Jan 07 2016 17:15
Got it
@hreintke just keep it in your repo
hreintke
@hreintke
Jan 07 2016 17:16
yes, see the @anakod in ?
When it is in that repo I never know what happen
Dmitry Kireev
@kireevco
Jan 07 2016 17:16
relax :)
hreintke
@hreintke
Jan 07 2016 17:17
So w are just scattering all sources for sming across people because one guy refuses to answer
Dmitry Kireev
@kireevco
Jan 07 2016 17:17
Keep developing, and don't stand up a riot here ;-)
hreintke
@hreintke
Jan 07 2016 17:18
I have been seriously thinking of quitting with sming
Dmitry Kireev
@kireevco
Jan 07 2016 17:18
@hreintke yeah, me too :)
so maybe I'll change my mind
hreintke
@hreintke
Jan 07 2016 17:19
it is nothing to :smile:
Dmitry Kireev
@kireevco
Jan 07 2016 17:20
@hreintke maybe you need to be a little less demanding for community and people:) and life
@hreintke I know you are good C++ developer, but most of people are just pepole
hreintke
@hreintke
Jan 07 2016 17:21
I am not demanding on community I am (very little) demanding on one "owner" of sming
Dmitry Kireev
@kireevco
Jan 07 2016 17:23
well, if you are so stressed then you are
I have no issues asking @ankod for anything.
why?
maybe it's the way you ask
but I don't want to know, really.
hreintke
@hreintke
Jan 07 2016 17:30
Last words but these words are clear I think "Re[3]: PLEASE REPLY : Major update Sming !!"
If @anakod does reply to your questions would appreciate you politely ask him to contact me.
@raburton :
Sorry for the discussion after your understandable question.
Richard Antony Burton
@raburton
Jan 07 2016 17:33
no problem
we do seem to lack permission to create repos, which seems odd with admin permission
hreintke
@hreintke
Jan 07 2016 17:35
@alonewolfx2 :
I remember you mentioning that spiffs locating "behind" the application did not work.
In my environment it does work. Can you retest and feedback the results ?
alonewolfx2
@alonewolfx2
Jan 07 2016 17:44
on windows compiled fw?
hreintke
@hreintke
Jan 07 2016 17:44
yes
robotiko
@robotiko
Jan 07 2016 17:44
@alonewolfx2 managed to compile with msingrtos ?
*sming_rtos
solved the includes issues?
alonewolfx2
@alonewolfx2
Jan 07 2016 17:45
yes
i removed includes on my system path :D
easy way
robotiko
@robotiko
Jan 07 2016 17:49
that path was the one created by choco install, rigth?
alonewolfx2
@alonewolfx2
Jan 07 2016 17:51
yes
if you remove or change with rtos repo, it will be fine for compiling
Richard Antony Burton
@raburton
Jan 07 2016 18:18
@hreintke maybe we should get travis going for sming rtos
alonewolfx2
@alonewolfx2
Jan 07 2016 18:46
@raburton did you tried to compile rboot_rtos on windows?
hreintke
@hreintke
Jan 07 2016 18:53
@raburton : Yes, I agree, and then preferable also taking the examples.
@alonewolfx2 :
@raburton is on linux, I am on windows.
Do you still have compile/run issues on windows ?
alonewolfx2
@alonewolfx2
Jan 07 2016 18:55
for rboot yes. but i didnt tried lastest commit yet
hreintke
@hreintke
Jan 07 2016 18:58
the commits from this morning solved my rboot sample compile issus
until then I only could compile with local patches
alonewolfx2
@alonewolfx2
Jan 07 2016 18:59
i will try tonight
hreintke
@hreintke
Jan 07 2016 19:01
OK, One question upfront : do you have sming framework and applications in the same directory of do you have separate ?
robotiko
@robotiko
Jan 07 2016 19:03
I'm shaving same issues
*having :D
hreintke
@hreintke
Jan 07 2016 19:03
same question
robotiko
@robotiko
Jan 07 2016 19:03
main issue was the system vars added by normal choco install.. that had duplicated entries
now that is gone
I checkedout the project
so I have smingRT folder with two subfolders sming and samples
hreintke
@hreintke
Jan 07 2016 19:05
OK, that is what I meant with "same directory"
robotiko
@robotiko
Jan 07 2016 19:06
well .. not in same directory as they were until a few days ago
:D
hreintke
@hreintke
Jan 07 2016 19:06
and after updating system vars it compiles OK ?
ok, ambiguous question :smile:
robotiko
@robotiko
Jan 07 2016 19:07
jsut compiled sming project ..
compiled..ok as usuall
alonewolfx2
@alonewolfx2
Jan 07 2016 19:08
rboot_rtos?
robotiko
@robotiko
Jan 07 2016 19:08
not yet
now gettign weird issues.. vasr are not being detected.. when they are set globally
hreintke
@hreintke
Jan 07 2016 19:11
and when you put them in the makefile-user it works OK ?
I am out to hit some balls on the squash court. talk later
robotiko
@robotiko
Jan 07 2016 19:13
UPDATE
manually adding everything in the makefile-user DOES WORK NOW
good news
@hreintke watch out whose balls you hit :DDD
laurentppol
@laurentppol
Jan 07 2016 19:17
how accurate are "us" and "ms" timers on ESP (No NOS)?
robotiko
@robotiko
Jan 07 2016 19:18
@laurentppol "it depends on cpu load"
laurentppol
@laurentppol
Jan 07 2016 19:18
to control triac gate -> 10ms is half period
robotiko
@robotiko
Jan 07 2016 19:18
if dont use HW timer .... then .. is accurate "sometimes" :D
laurentppol
@laurentppol
Jan 07 2016 19:19
HW timer is not used by framework itself?
Richard Antony Burton
@raburton
Jan 07 2016 19:21
@laurentppol i don't think so, but i never got them to work at all (or hw pcm which uses hw timers), so i did wonder if something else was using them, but i'm pretty sure we don't do it from the sming code
laurentppol
@laurentppol
Jan 07 2016 19:23
which Espressif doc says something about HW timer(s)?
robotiko
@robotiko
Jan 07 2016 19:24
@raburton @laurentppol there is HW timer
dont knwo why it was not merged
and is still in PR
let me find it
we added to give support to Servo lib
that was not merged either
#471
and the servo lib is in #472
I tested and have been usign both extensively
if ther servo PR is to be added.. now it will require to meve to the samples folder
alonewolfx2
@alonewolfx2
Jan 07 2016 20:14
@hreintke are you around?
laurentppol
@laurentppol
Jan 07 2016 20:30
have annoying problem: I issue Serial.systemDebugOutput(false) after serial init, but STILL have debug messages from WiFi stack, what am I missing?
zhivko
@zhivko
Jan 07 2016 20:31
I am also using hw timer it is precise and thats good about it. You can count on it ;)
laurentppol
@laurentppol
Jan 07 2016 20:31
ooo @zhivko thats a good news, how do You use it?
it is not in 24.10.2015 Sming I use
robotiko
@robotiko
Jan 07 2016 20:34
:D
@laurentppol I told you this afternoon

@robotiko
@raburton @laurentppol there is HW timer
dont knwo why it was not merged
and is still in PR
let me find it
we added to give support to Servo lib
that was not merged either

#471

and the servo lib is in #472
I tested and have been usign both extensively
if ther servo PR is to be added.. now it will require to meve to the samples folder

laurentppol
@laurentppol
Jan 07 2016 20:37
if I click on #471 browser loads "something" (bottom status bar) but main window is still chat. Could You provide exact URL?
robotiko
@robotiko
Jan 07 2016 20:43
SmingHub/Sming#471
laurentppol
@laurentppol
Jan 07 2016 20:43
same :(
ystrem
@ystrem
Jan 07 2016 20:43
Hi, it's possible to write down what do I need for Sming on windows with esp-alt-sdk ? I'm little confused about that...
robotiko
@robotiko
Jan 07 2016 20:44
@laurentppol giter converts it
go to github
Pull request
adn look for open ones
number 471
laurentppol
@laurentppol
Jan 07 2016 20:44
ok
laurentppol
@laurentppol
Jan 07 2016 20:50
got it, so I have to download and replace 3 files?
robotiko
@robotiko
Jan 07 2016 20:53
@laurentppol that would eb teh manual way
in this case there is no merge
so it is simple
other way is
laurentppol
@laurentppol
Jan 07 2016 21:01
thx, sorry for basic questions, but I have ZERO knowledge of Git
robotiko
@robotiko
Jan 07 2016 21:02
then better go the manual way in this case
alonewolfx2
@alonewolfx2
Jan 07 2016 21:09
neopixel library working on rtos now
robotiko
@robotiko
Jan 07 2016 21:13
This message was deleted
This message was deleted
what did you do with the ets?
remove
looks like perfect timing
no flicker
alonewolfx2
@alonewolfx2
Jan 07 2016 21:15
comment out ets
robotiko
@robotiko
Jan 07 2016 21:15
expected
that is the benefit of RTOS..
multitasking
so tiem to test the neopixel.. with heavy loaded network..
webserver .. websockests.. etc
alonewolfx2
@alonewolfx2
Jan 07 2016 21:17
yep
i will try to write code for my neopixel bulb
hreintke
@hreintke
Jan 07 2016 21:26
@alonewolfx2 :
Hi I am in now
alonewolfx2
@alonewolfx2
Jan 07 2016 21:26
i have question
why we changed "smingcore" folder name to "sming"
robotiko
@robotiko
Jan 07 2016 21:29
@alonewolfx2 you mean sming_rtos_poc?
alonewolfx2
@alonewolfx2
Jan 07 2016 21:29
@robotiko "smingcore" folder in sming_rtos_poc
hreintke
@hreintke
Jan 07 2016 21:30
We did not really discuss that. As we already wanted to get lower case directory names in sming, Richard took the action todo. He converted from smingcore to sming. I did not see any problem with that
robotiko
@robotiko
Jan 07 2016 21:30
@alonewolfx2 pushed neopixel?
dont see it
to test heavyload
alonewolfx2
@alonewolfx2
Jan 07 2016 21:32
i need to update my repo and push example and library
robotiko
@robotiko
Jan 07 2016 21:33
finally includes wire?
or not needed?
alonewolfx2
@alonewolfx2
Jan 07 2016 21:33
includes
@hreintke no problem. just libraries has smingcore includes. we need to change that lines
@hreintke i am pushing pr for neopixel. is it ok for you
hreintke
@hreintke
Jan 07 2016 21:39
sure, any added library is positive.
robotiko
@robotiko
Jan 07 2016 21:41
@alonewolfx2 Wire() seems to be already in.. the issue in compilation was the SmingCore stuff
hreintke
@hreintke
Jan 07 2016 21:44
I you include smingcore.h it should take the right one
alonewolfx2
@alonewolfx2
Jan 07 2016 21:53
@robotiko yes
alon24
@alon24
Jan 07 2016 21:56
trying to do android native code (androidstudio) to connect to esp sming with websocket
it does not fire onConnect on android
onAccept state: 0 K=1
Free heap size=32936, K=1
+TCP connection
timeout updating: 70 -> 90
TcpServer onClient: 10.100.102.102

Item: Name = command, Size = 4, Value = true
path=/index.html
Host === 10.100.102.152
Sec-WebSocket-Key === j55P1mbQBtOcZ/s8fCaGlA==
Sec-WebSocket-Version === 8
Upgrade === websocket
parsed
Request: GET, nodata
TCP received: 175 bytes
onReadyToSendData: 1
Default server handler for: '/index.html'
found index.html
send file: index.html (2768 bytes)
response sendHeader
Switched to WebSocket Protocol
timeout updating: 90 -> 65535
TCP sent: 127
onReadyToSendData: 2
gradle:
compile 'org.java-websocket:Java-WebSocket:1.3.0'

esp code
void StartServers()
{
    debugf("Starting Server");
    server.listen(80);
    server.addPath("/", onIndex);
    server.setDefaultHandler(onFile);

    // Web Sockets configuration
    server.enableWebSockets(true);
    server.commandProcessing(true,"command");

    server.setWebSocketConnectionHandler(wsConnected);
    server.setWebSocketMessageHandler(wsMessageReceived);
    server.setWebSocketBinaryHandler(wsBinaryReceived);
    server.setWebSocketDisconnectionHandler(wsDisconnected);

    Serial.println("\r\n=== WEB SERVER STARTED ===");
    Serial.println(WifiStation.getIP());
    Serial.println(WifiAccessPoint.getIP());

    Serial.println("==============================\r\n");

//    // Start FTP server
//    ftp.listen(21);
//    ftp.addUser("me", "123"); // FTP account
//
//    Serial.println("\r\n=== FTP SERVER STARTED ===");
//    Serial.println("==============================\r\n");

//    telnet.listen(23);
//    telnet.enableDebug(true);

    Serial.println("\r\n=== TelnetServer SERVER STARTED ===");
    Serial.println("==============================\r\n");

    initCarCommands();
}
when connecting from local (esp served) html code, it does do webscket. but I want from android
anyone use that? android and esp websocket?
Android code 
private void connectWebSocket() {
        URI uri;
        try {
            uri = new URI("ws://10.100.102.152:80/index.html?command=true");
//            uri = new URI("ws://echo.websocket.org");

        } catch (URISyntaxException e) {
            e.printStackTrace();
            return;
        }

        mWebSocketClient = new WebSocketClient(uri) {
            @Override
            public void onOpen(ServerHandshake serverHandshake) {
                Log.i("Websocket", "Opened");
                mWebSocketClient.send("Hello from " + Build.MANUFACTURER + " " + Build.MODEL);
            }

            @Override
            public void onMessage(String s) {
//                final String message = s;
//                runOnUiThread(new Runnable() {
//                    @Override
//                    public void run() {
//                        TextView textView = (TextView)findViewById(R.id.messages);
//                        textView.setText(textView.getText() + "\n" + message);
//                    }
//                });
            }

            @Override
            public void onClose(int i, String s, boolean b) {
                Log.i("Websocket", "Closed " + s);
            }

            @Override
            public void onError(Exception e) {
                isConnected = false;
                updateScreenState();
                Log.i("Websocket", "Error " + e.getMessage());
            }
        };
        mWebSocketClient.connect();
    }
alon24
@alon24
Jan 07 2016 22:05
2 projects:
https://github.com/alon24/SmartCarAndroid
https://github.com/alon24/SmartCarWithOTA

Help??
zhivko
@zhivko
Jan 07 2016 22:53
@laurentppol you can check my repo... it is quite easy to use it - but I am not author...