These are chat archives for SmingHub/Sming

27th
Jan 2016
laurentppol
@laurentppol
Jan 27 2016 00:10
@dobrishinov I can confirm "no problem" with Samung Galaxy Ace2 (I8160) Android 2.3.6, with ESP program copied from this example.
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 09:22
Maybe with my rom, tnx : )
alon24
@alon24
Jan 27 2016 09:50
@laurentppol change wifif
change channel for April, on esp
alon24
@alon24
Jan 27 2016 11:55
Ap mode...
Auto correct is bad...
Sébastien
@sle118
Jan 27 2016 12:04
Maybe with my rom, tnx : )
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:04
@laurentppol what sming version you use. I try today with Iphone 5s and 2 others Android phones with 5.0.1 and problem still.
Sébastien
@sle118
Jan 27 2016 12:04
It could also be related to the type of esp8266
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:04
Olimex Esp8266 Dev
Sébastien
@sle118
Jan 27 2016 12:04
Some have external antenna connectors
That are not connected
Sébastien
@sle118
Jan 27 2016 12:05
Which causes ceramic/trace antenna to be used
Does it have external antenna connector?
Can't tell from the picture
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:07
have pins on top left, for solder in future
Sébastien
@sle118
Jan 27 2016 12:07
Check it there is a resistor that can be flipped
On some boards, external is defaulted
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:08
i try with some other codes, for AP and work fine
i think this is not a hardware problem
Sébastien
@sle118
Jan 27 2016 12:09
OK. Would you mind doing a call to get clock speed?
Remember click is shared between wifi activities and the rest
If http code grabs too much cpu, data will suffer
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:13
i use in void init
System.setCpuFrequency(eCF_160MHz);
but i connect PC without problems, and i ping 192.168.4.1, without drop package. But on phone wireless network disappear
Sébastien
@sle118
Jan 27 2016 12:16
What is the sequence of events? i.e upload of a file to the server, or upload of the firmware on the board?
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:16
i use example HttpServer_ConfigNetwork, make clean, make flash
Sébastien
@sle118
Jan 27 2016 12:19
And the issue happens as soon as code starts or after using ftp on that example (it starts an ftp server)
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:21
i dont use ftp, code is starts, and issue is start on phones
Sébastien
@sle118
Jan 27 2016 12:26
Not having the board makes it difficult to replicate, this the many questions
*thus
laurentppol
@laurentppol
Jan 27 2016 12:26
incompatibility between Cyanogen and ESP? I have similar problem with routers: TP-LINK to TP-LINK with WDS, "stock TP-LINK" does not work with OpenWRT
Sébastien
@sle118
Jan 27 2016 12:27
Can you run "wifi 360 overview"?
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:27
I run wifi analizer, and wi fi go away for some seconds and then is show again
Sébastien
@sle118
Jan 27 2016 12:27
And see if signal is steady or drops? You can post screenshot here
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:28
now i try with windows phone, and esp still stable.... with android 6.0 too...
Sébastien
@sle118
Jan 27 2016 12:28
Ha
laurentppol
@laurentppol
Jan 27 2016 12:29
reflash Cyanogen with stock firmware?
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:29
tonight i try : ) thanks
what version on sming you use ?
Sébastien
@sle118
Jan 27 2016 12:31
I have a one plus one phone which shipped with cyanogenmod. It has issues even if it's native for the hardware. Bluetooth stuttering on hands free mode, 4g doesn't connect when wifi drops, etc
I use sming dev branch
I'll try flashing the example and see with my cyanogenmod phone
I bought 5 of them
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:33
sent me link to dev sming please :)
Sébastien
@sle118
Jan 27 2016 12:33
Work like a charm and external wifi
Github
Just change branch
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 12:34
ok tnx
Some brave people are porting sming over to the realtime os (aka RTOS)
I'm looking forward to use it
You can also try GDB to debug over serial
Check this pull request
SmingHub/Sming#350
Sébastien
@sle118
Jan 27 2016 12:42
I had ditched arduino for nodemcu and ditched nodemcu for sming because of the nice http server, which can be used as a base project to bootstrap wifi and setup through http
Nodemcu was nice but always running out of memory
Sébastien
@sle118
Jan 27 2016 12:55
@dobrishinov not sure if this applies to you, but this is worth a read
Cyanogen may be more sensitive to channel hopping during scan
hreintke
@hreintke
Jan 27 2016 13:13
@sle118 :
The RTOS port has already all the features of NONOS.
Would be great if you are starting to use
Sébastien
@sle118
Jan 27 2016 14:53
will do, as soon as I can figure out the issue with my image library port that keeps triggering wdt
although RTOS might be more stable for me
Sébastien
@sle118
Jan 27 2016 15:06
@hreintke if you have any hint in troubleshooting wdt, let me know...
something seems to be messing up with the call stack
hreintke
@hreintke
Jan 27 2016 15:43
Why do you think messing up call stack & wdt is related ?
I would expect different "crash reasons" for those ?
On wdt, probably the best to resolve is to go to Sming_RTOS. That has a different wdt behavior anyhow.
And... as we will move away from NONOS... know where to put your effort :smile:
Paweł Borecki
@Uriziel01
Jan 27 2016 16:00
Do we have any plans for integrating Sming into PlatformIO? Sorry if it was already asked but I have not been around for a while.
I've just checked how the Atom plugin for PlatformIO is working. And I have to say its pretty impressive, everything working from the first try, beeing able to flash two of my ESP8266-E12F in like 15 minutes (from the moment of downloading platformio to upload) is really neat :)
hreintke
@hreintke
Jan 27 2016 16:04
@Uriziel01 : See issue #508
You can go into the details on what/when/how is needed to integrate sming into platformio and feedback :smile:
fastlink30
@fastlink30
Jan 27 2016 17:14

with this routine i print some info on serial, but when quit routine, get errors (as you can see on image attached)
the network object must be 'closed'? how is correct?

void inforeadCommand(void)
{
DynamicJsonBuffer jsonBuffer;

JsonObject& network = jsonBuffer.createObject();

network["HEAP"] = system_get_free_heap_size();
network["IP"] = WifiStation.getIP().toString().c_str();
network["MASK"] = WifiStation.getNetworkMask().toString().c_str();
network["GWAY"] = WifiStation.getNetworkGateway().toString().c_str();
network["DHCP"] = WifiStation.isEnabledDHCP();
network["SSID"] = WifiStation.getSSID().c_str();
network["PASS"] = WifiStation.getPassword().c_str();
network["UDP"] = UDP_PORT_SERIALE;
network["CHAN"] = wifi_get_channel();
network["CHIP_ID"] = system_get_chip_id();
network["SDK"] = system_get_sdk_version();
network["VDD"] = system_get_vdd33();
network["CPU_FREQ"] = system_get_cpu_freq();
network["HOSTNAME"] = wifi_station_get_hostname();

Serial.printf("%s\r\n",network.toJsonString().c_str());
}

matsstaff
@matsstaff
Jan 27 2016 20:19
Hi guys!
I don't know if it is ok to ask a question here, that is basically a 'how do you do this with Sming' kind of thing, or not? Or should I post on esp82666.com?
matsstaff
@matsstaff
Jan 27 2016 20:32
What I'm interested in, is if there is some example code, or just some direction, on how to do file upload webpage with Sming (or if it at all possible).
The reason being, I'd like ESP to act as a programmer for a specific PIC micro. I have Arduino code that does that, and I have 'ported' it to Sming as well. And it works. However, right now I have to FTP the HEX file, and just trigger the flash sequence by pointing my browser to an URL that triggers it. Ideally, I'd like not to store the file at all, just flash it as it is received (it is not very large), but if that does not work, uploading it, temporarily storing it on the filesystem and flashing would be ok.
Any suggestions?
Oh, and I'd prefer to do this with a file upload form (multipart). Is it doable or am I barking up the wrong tree here?
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 21:38
Guys, i instrall original rom for my phone, but problem still (network is unstable). I get some phones (3 android phones, 1 iphone 5s and 1 windows phone), after test conclusion is - on android 5.1.1 network unstable, on Iphone too, but on windows phone and one android phone (HTC with 6.0.1) everythink is ok... Somewhere i read for issues with Android 5.1.1 (for older i dont know) and SoftAp. On Android 5.1.1 in "Wi-fi settings -> Advanced settings" i found "Frequency spectrum for Wi-Fi". The options is (automatically, 2.4Ghz and 5Ghz.) Default is automatically, i change to 2.4Ghz and voala. Network with Esp8266 became stable. ^^ I dont know what kind of bug is this.
hreintke
@hreintke
Jan 27 2016 22:24
@matsstaff : Take a look at #552
There is a similar question and I just responde.
Georgi Dobrishinov
@dobrishinov
Jan 27 2016 23:34

Finally i found why network unstable on all kind of my phones. The mistake is mine. I used esp-open-sdk v1.4, but i find v1.5.1.
New:
Optimize the data receiving process under TCP connection.
Optimize low MAC and increase stability of the software.
Optimize watchdog feeding process.
Optimize softAP working mode so that some stations can be easily connected.
Optimize station working mode, enabling connection even when the SSID of the AP has changed.
Optimize station working mode, and increase router’s compatibility during the connection process.
Optimize SSL shakehand.
Optimize espconn internal timer.
Optimize UDP transmission.
Improve the flash writing process.
And other...

Now everything is work. Thank you, @laurentppol @alonewolfx2 @sle118 ^^