Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Chris Elsworth
@celsworth
okay I set it buffering 500 bytes or 50ms, whichever comes first, and set it going again, its working so far :) ifit doesn't break in 10 minutes then I'll close the issue as that was obivously it :)
thanks @Links2004, legend :)
spoke too soon :(
updated the code in the issue
the SoftwareSerial lib only has a single char read so I have to buffer it myself but the end result is the same
Markus
@Links2004
you code looking good, does the same happen when you us "Serial" instead of the sw Serail?
Chris Elsworth
@celsworth
no, I think its some sort of interaction between the interrupts that SoftwareSerial uses, and espconn_sent() in the sdk
Markus
@Links2004
how many data do you send at 9600 to the ESP?
Chris Elsworth
@celsworth
about 200 bytes every 5 seconds - not a lot
Markus
@Links2004
each char will block all interrupts for 1ms at 9600.
around 200ms blocking all interrupts can be very problematic.
Chris Elsworth
@celsworth
well, the interrupts should get turned on between each char, but I see your point
maybe I need a UART-to-SPI chip for this.. I don't want to tie up the real RX with it, thats for debugging the esp :/
Markus
@Links2004
yes but if you send 200 char in the row there will not many space between them.
for debugging out you can use Serial1
Chris Elsworth
@celsworth
yes true, and then programming is OTA anyway :D
okay jsut going to double-check it doesn't happen on real Serial and I may just go with that
a pity, I wonder what use software serial classes on the esp are then.. there's a couple of them, I don't know if others have gotten them to work well
its jsut very critical timing for a relatively long time, the one thing the esp is not very good at :)
Markus
@Links2004
on higher baudrate the problem is less critical per char, if you put the max data in result will always be the same --> interrupts blocked to long,
the implementation has some basic concept problems. blocking interrupts less is possible but then get unstable on high baudrates.
Chris Elsworth
@celsworth
real Serial has been working fine for 5 minutes now, no problem
longer than the software serial ever did
Stavros Korokithakis
@skorokithakis
so does ESP.deepsleep() basically turn off the ESP until the RST line is pulsed?
Chris Elsworth
@celsworth
or until the timer fires, if you use 0 then yes, forever
Stavros Korokithakis
@skorokithakis
doesn't the timer pulse the RST line?
Chris Elsworth
@celsworth
yes, via GPIO16 :)
Stavros Korokithakis
@skorokithakis
basically i want to make a dash button, so it sounds like I need a button hooked up to the RST line and deepsleep(0)
Chris Elsworth
@celsworth
but 0 = no timer set
Stavros Korokithakis
@skorokithakis
right right
by the way, maybe someone will find this useful: https://github.com/skorokithakis/esplights
Chris Elsworth
@celsworth
hey nice :) good range of technologies in there, I like the remote control integration :)
Stavros Korokithakis
@skorokithakis
thanks, it's handy because you can send whatever IR you want over mqtt
theoretically, you could make a very small IR remote that was controlled over wifi
hmm, maybe i should hook four LEDs in a square and make a true universal remote that can work on all directions :P
Stavros Korokithakis
@skorokithakis
has anyone tried to power their ESP from their FTDI programmer? does it work well?
also, which software do you use for designing PCBs?
Chris Elsworth
@celsworth
that one is easy, Eagle :)
Sven Eliasson
@comino
Eagle is the best price/value
Stavros Korokithakis
@skorokithakis
i heard that kicad is better than eagle nowadays
Chris Elsworth
@celsworth
the first time I looked at it, I ran away screaming, but if you sit down with a good mug of favourite drink, you can learn it in an hour or two
beikeland
@beikeland
@skorokithakis varying success. most of my esp-05 doesn't work powered by ftdi, 50/50 on all the others i've tried.
Sven Eliasson
@comino
kicad was shit last time I used it - altium is still pretty nice but not that cheap :P
Chris Elsworth
@celsworth
@comino you mean free? ;)
free is sure good enough for my purposes anyway, not hit the pad limit yet
Stavros Korokithakis
@skorokithakis
@beikeland thanks, i'll try a regulator then
Sven Eliasson
@comino
free is limited - even pro is cheap compared to altium ;)
Stavros Korokithakis
@skorokithakis
hmm, i was going to start with eagle, but i saw this thread https://news.ycombinator.com/item?id=10676514
how much is altium?
Sven Eliasson
@comino
wow - looks like there is a good progress on kiCad
I will give it a try