-
Notifications
You must be signed in to change notification settings - Fork 58
Serial not working after wakeup #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @tatulea, wakeup/standby with the USB connected is super tricky since it depends on the operating system/USB controller the board is connected to. |
Hi, I am using Windows 10 and Arduino IDE. |
Hello, I have the same problem with MKR WiFi1010 (and MKR1000) - Win10 |
Hello, I also have the same problem with the Arduino WiFi MKR 1010 and MacBook Pro running OS X Yosemite. |
Hi @facchinm, For me, it's the same problem. |
@grezco which operating system/PC are you using? |
Windows 7 and Windows 10 |
Hi @facchinm, The below script (based on the TimedWakeup example) seems to be working relatively well (after brief testing with Arduino WiFi MKR 1010, MacBook Pro + OS X Yosemite) with the changes from #8. The added delay is from a LowPowerLab/LowPower SAMD21 example sketch.
|
Hi @grezco, If it helps I wait for the led to flash and then repeatedly try to open the serial monitor until text displays. Past that I unfortunately don't have much advice to offer. |
Hi @facchinm |
You may want to take a look at this: #9 |
Hi @polygamma, |
@grezco with the following example, you never see the second message?
Notice the Running that snippet, having my commits included, yields the wanted output of:
at least for me... |
@polygamma, |
Since you wrote in #7 (comment) that you are using Windows 10, I tried the snippet with my fixes on Win10, too. |
@polygamma, thanks for the time spent trying to solve my problem. Until I find a solution, I use
and reopen the serial monitor when the port appear. |
@grezco @polygamma @Durasno thank you all for testing on different platforms; being able to reproduce the behaviour is crucial to get a solution. |
Hi @facchinm |
@facchinm, #8 don't change the behaviour when I use (or not) USBDevice.detach();
|
Hi guys, I had the same problem with MKR1000 and I've solved using the library version on GitHub (the version on Library Manager not works) and adding these lines of code on your project: |
Hi. |
Hi @pchatill , it was proposed for inclusion in the IDE (arduino/Arduino#8046). That PR is already included in Beta builds of the IDE but has some problems with non arduino boards (esp8266 and similar) so we decided to postopone the merge in master. |
Thanks for your response facchinm. |
The beta should be numbered 1.9.0 , please double check if you are using that one 😉 |
Sorry for the mistake: Yes I tried with Arduino 1.9.0-beta. |
Hi facchim. |
I have found the following code using the Arduino low power library is a partial solution - at least it gives you a delay to close & reopen the USB serial port, after the SAMD wakes up. I'm using a 16x2 LCD to see what is happening while the serial port is unavailable - remove if you wish. Also the code is a bit messy with commented out sections where I have been trying other low power libraries. The method uses the Note: Still not an ideal solution, but at least you get a working Serial window back without losing any output. Incidentally, the There are lots of funny timing issues going on here - I would appreciate it if anyone can shed more light on this.
|
Hi netless-ww, Andreas |
When using the As a side note, the measured quiescent current draw of the
|
Hi,
I am using a button to put Arduino in sleep mode and wake it up, but the Serial is not working anymore after it is waking up. What should I do?
The text was updated successfully, but these errors were encountered: