Timeout in CC3000 driver #404
Replies: 15 comments
-
Posted at 2014-02-10 by @gfwilliams Hmm. Is that always repeatable? I've filed a bug here: espruino/Espruino#224 I had the timeout error once or twice but was never able to reliably reproduce it, which makes it hard to track down. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-10 by JumJum On my board, this happens always after disconnect/reconnect. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-10 by @gfwilliams I've just tested and the issue is the Ctrl+C that gets sent on connect. It breaks out of the CC3000's SPI transmit and then causes all kinds of pain. You can just remove the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-10 by randunel In linux, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-10 by JumJum removed the \x03 and it works. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-10 by @gfwilliams @rardunel, thanks! That's perfect. I'll implement u and k, and then the Web IDE can send both of those in order to make sure the line is clear before it sends its command... I don't suppose you know if there are Ctrl+ shortcuts for echo on/echo off? That'd be really handy too :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-11 by randunel @gordon sry for the late reply, I don't know how to enable notifications here :P I don't think you can do that with a shortcut, but when I don't want the output from a script i simply redirect it to |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-11 by randunel Later addition (edit does not work): the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-11 by @gfwilliams In windows command prompt you have I'm after something like that for the Espruino command prompt - so piping stuff to /dev/null doesn't really help ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-09 by hansamann I am just trying to make my plant/soil/light sensor setup more reliable. I pretty much use the CC3000 example code from the code reference page, e.g. I connect every 60 sec, wait to be connected, get some data, then send it to Xively (thx @gordon). The problem is I seem to be getting this from time to time:
The problem is not the error itself, it is that all timers and watches get cleared. That means the espruino stands still. I can live well with that code failing from time to time. I think we had that discussion before - is there a way to keep the system running somehow? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-10 by @gfwilliams I'll look at this today... To be honest I should make it clear only the timer that caused the problem when there is an error - as you say it causes huge problems if all timers are removed. It looks like the error occurs during the call to |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-10 by hansamann Yes, I just realize the console log I posted might cause a misunderstanding. I am logging the disconnecting.... and then it would start connecting again 60 secs later and throws the error. So it might really be an issue in connect(). Thx for looking into this. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-11 by @gfwilliams I posted up somewhere else, but that should be fixed now. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-11 by DrAzzy When an interval gets forcibly cleared like that, how can one detect that and react appropriately? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-12 by @gfwilliams
Good point. There's not an easy way right now until exceptions get implemented - however the best bet at the moment is something like:
If there's an error in wlan.connect, the error flag will be set and execution will stop - so wifiSuccess will never get set to true. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-09 by JumJum
During testing CC3000 and some other requires, sometimes the board stopped working and I had unplug to get it back to work.
After some testing, this workflow breaks Espruino
Some secondes later I get the timeout error (4101).
Next another error comes up, "got '<' expected EOF at line 1 col 2...."
Version 1v50 and this source
Beta Was this translation helpful? Give feedback.
All reactions