strange timing with setTimeout #1423
Replies: 11 comments
-
Posted at 2020-08-05 by @gfwilliams Is it possible you have some other interval or setWatch running in the background that could be keeping it really busy? Maybe try a From a board I just tried:
So all that looks pretty good. You'd expect the ~1ms delay because of the time taken to parse and execute |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-05 by @gfwilliams Sorry, you're right. Just tried with version 2v06 and something isn't right. Please could you try a cutting edge build? That's what I tried before and it worked fine. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-05 by JumJum Hmm, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-05 by JumJum Tested with Android and nrf |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-05 by JumJum Just seen new version(V2.06.81) in binaries. board V2.04 V2.06 Based on that, my first guess would be somewhere around implementation of UART for BLE |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-06 by @gfwilliams Thanks - so it'll be related to the nRF52 I guess. I think it's less likely to be a BLE issue, because the entire line is executed only when you hit I guess it could be related to the 'Utility Timer' somehow - that is platform-specific and may have some issues |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-06 by JumJum Hmm, some more (may be helpful) info |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-06 by @gfwilliams That's a strange one. Does Ctrl-C sort it out? Or does the Web IDE console show a flow control message? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-07 by @gfwilliams Ok, I'm pretty sure I've figured this out now. It's definitely a firmware issue that's been around for a while I think. In fact if you:
It's to do with the device sleeping - you probably don't notice it in STM32 boards because they don't sleep when you're connected via USB |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-07 by @gfwilliams Ok, just fixed! If you try a cutting edge build now it should be sorted. It seems this got introduced about 2 months ago and got into 2v06. Just a really minor change that had a big effect! I doubt this will affect your connection issues - but the only times I've had issues with that is when there's extremely poor signal strength. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-08-07 by JumJum Its fixed and works fine. Well done ;-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-08-05 by JumJum
During testing a rotary phone, I ran into problems recognizing pulses.
After some testing brought it down to following samples.
Duration is always much more than expected (by me).
Interesting is last example where only first timeout is wrong.
Testing is done with WebIde. First examples use terminal window for input.
Last testing is uploaded from editor window and called from terminal.
Board is MDBT42Q with 2v06, downloaded from binary
Beta Was this translation helpful? Give feedback.
All reactions