These are chat archives for SmingHub/Sming

6th
Feb 2017
Andriy Petrynchyn
@petrynchyn
Feb 06 2017 13:10
@slaff Thank helped, sorry
vjacob
@vjacob
Feb 06 2017 13:16
@slaff , thank you for checking the issue and the explanations, I appreciate it a lot. I did check all the header files for information about the code's functionality. In fact, one of the first things I always do is to generate docs via doxygen.
I've delved deeper into this, and it turned out that the issue was in the way I parsed the received data. I'm using the delegate-callback method, with my own SerialDelegate class parsing the data in an onData callback. Before the HardwareSerial refactor I received a callback for each new received character, also when strings were sent. Now, after the refactor, I receive only a callback for the last received character, seemingly missing a lot of data. So now, upon receiving a character, I read the serial stream and check for the message that I expect to receive. That's now working perfectly, also when swapping the serial over to GPIO13 and GPIO15. Thanks
slaff
@slaff
Feb 06 2017 13:18
@vjacob You are welcome! I hope it is also faster for you.
laurentppol
@laurentppol
Feb 06 2017 19:10
@slaff , is MTU still issue? (I use Sming 2.1.0-develop (2016-03-18) In an app, (modified Http example) I CAN connect over LAN, but can't ovar WAN (through router). Trying to connect over WAN also causes TCP (not IP) to stop responding
SDK 1.4.0
web page is approx 2.5KB
Alexander V. Ribchansky
@avr39-ripe
Feb 06 2017 19:38
@laurentppol you shoul update to reent Sming develop and esp-nonos-sdk-2.0 and use open-lwip where you can adjust mtu.. with your sming/sdk you cannot connect ot device over wan/nat/vpn etc..
Curtis Pope
@piperpilot
Feb 06 2017 19:38
@slaff I'm looking at using serial1 for debug, but right now GPIO2 has a pullup. Is there any issue with that?
laurentppol
@laurentppol
Feb 06 2017 19:41
@avr39-ripe thx, I suspected MTU... esp-nonos-sdk update using instructions to build esp-open-sdk?
Alexander V. Ribchansky
@avr39-ripe
Feb 06 2017 19:44
You can just update esp-nonos sdk by downloading it and put a link in proper place.. compiler (esp-open-sdk) and esp-nonos-sdk (base binary libs and includes) are completely separate things, you can update either or both of them..
laurentppol
@laurentppol
Feb 06 2017 19:44
thx agai for claryfying :)
Alexander V. Ribchansky
@avr39-ripe
Feb 06 2017 19:54
@laurentppol here is my setup:
I use esp-alt-sdk (as complier) but it all the same, I was used esp-open-sdk before :)
so you point ESP_HOME env variable to place where you have your xtensa-lx106-elf directory is (in it there is compiller obtained from alt/open sdk in the same dir pointed by ESP_HOME there is another dir named sdk where actually esp-nonos-sdk lives.. aften sdk is symlink tu unpacked zip from espressif
laurentppol
@laurentppol
Feb 06 2017 19:57
last question: after change, make clean / make in Sming, then in application? right?
Alexander V. Ribchansky
@avr39-ripe
Feb 06 2017 19:58
@laurentppol yes.. if you update Sming to todays develop open-lwip is ENABLED by default and mtu set ot 1390
laurentppol
@laurentppol
Feb 06 2017 19:59
ok :)
slaff
@slaff
Feb 06 2017 21:51
Guys, has anyone of you tried to flash A20 (ESP inside): http://blog.csdn.net/u010386121/article/details/52299159 from AI-Thinker?
Curtis Pope
@piperpilot
Feb 06 2017 22:09
@slaff, nope...looks interesting though